Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2779520pxb; Mon, 19 Apr 2021 13:48:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9Mm4xFYWyyqhpE/FfdOIacWQpZoI+w1I67YhUK66Tj6FnvDQ1qiaHZPxNrfvvAgMpqHwN X-Received: by 2002:a17:90a:d201:: with SMTP id o1mr1015438pju.230.1618865322465; Mon, 19 Apr 2021 13:48:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618865322; cv=none; d=google.com; s=arc-20160816; b=IYTT+Xe+zyjHw3r2eajhPeV7mpAafRGUDOSijPhhkP+/eNtGK96mOmSoIf8Bzj4HRf H+h0fFIvdA8neMJc5kYXFNooJkXXdIbGPb58114xUZeDAfUl/aANXUZTjIOFYKufs9fP NK9YUnslZ/GNHfDGkuIp+DwsUV//dKX1ocMZh2uHFo1Glq6t0pG4zVDQzijF5qMQprIs tj0BeVgoHXy5Rz/mCdj3zLwM/sTsDgZzBESA2pwPio+C9xjequ1Z7PMbxmQNM8nE2BZS +0/nFo+egtZG+AjTKcavLJFNGnrV5IBRp8w+oIZElJq+njSx+Zz8DwFcmpJMGxzA5nF6 P/uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=/8a0B3F3Frw0we7fbLKpCeDx8107deldG2M4rthPJkk=; b=LqN46u1VEF34LsX5gdKzE0C/B3c1L615IeEso1aU7j7VhKXNuGPz4DjUbuJCAhfOQB p/ja96TYMUa9KRY2OH0WsOmGRjrOv4kwnmdhu7lcZtPY0BiFrp2yw0OVDoQ5Bw7AsQCt 5Lzl7QTodpZ26CgXOMtHyMGBgZrtmq2ipqe7lNwyscZ+iKlIOAC6ntjdsAdrxhN8xMQs bnxTLtCunDoBzkSVtRBzXEIcBYfaQ4j3rthjC9NcPoQnwCLNy762undD8HiHbevSeO5O CmYmz4FL2n6xERKnOeO3S97oRLE77lLe84O68Ml2Xczma+gsrtc0IXp8HTx+brPr0+uI ujJg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q11si333427pls.2.2021.04.19.13.48.28; Mon, 19 Apr 2021 13:48:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234801AbhDSTY0 (ORCPT + 99 others); Mon, 19 Apr 2021 15:24:26 -0400 Received: from vps-vb.mhejs.net ([37.28.154.113]:48498 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233253AbhDSTYZ (ORCPT ); Mon, 19 Apr 2021 15:24:25 -0400 Received: from MUA by vps-vb.mhejs.net with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.93.0.4) (envelope-from ) id 1lYZUn-0001Ii-WE; Mon, 19 Apr 2021 21:23:46 +0200 Subject: Re: [PATCH] rtlwifi: implement set_tim by update beacon content To: Ping-Ke Shih Cc: linux-wireless@vger.kernel.org, Larry.Finger@lwfinger.net, kvalo@codeaurora.org References: <20210419065956.6085-1-pkshih@realtek.com> From: "Maciej S. Szmigiero" Message-ID: Date: Mon, 19 Apr 2021 21:23:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: <20210419065956.6085-1-pkshih@realtek.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 19.04.2021 08:59, Ping-Ke Shih wrote: > Once beacon content is changed, we update the content to wifi card by > send_beacon_frame(). Then, STA with PS can wake up properly to receive its > packets. > > Since we update beacon content to PCI wifi devices every beacon interval, > the only one usb device, 8192CU, needs to update beacon content when > mac80211 calling set_tim. > > Reported-by: Maciej S. Szmigiero > Signed-off-by: Ping-Ke Shih > --- > drivers/net/wireless/realtek/rtlwifi/core.c | 32 +++++++++++++++++++++ > drivers/net/wireless/realtek/rtlwifi/core.h | 1 + > drivers/net/wireless/realtek/rtlwifi/usb.c | 3 ++ > drivers/net/wireless/realtek/rtlwifi/wifi.h | 1 + > 4 files changed, 37 insertions(+) Tested-by: Maciej S. Szmigiero Thanks.