Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2208637rwl; Sun, 26 Mar 2023 18:23:03 -0700 (PDT) X-Google-Smtp-Source: AKy350Z1hyyw94BpGojC6Zfs6UkTTRyP8RvBYe80g07R4NFMisAUlHJKytKJGpFA643n8X05iFoP X-Received: by 2002:a17:906:d966:b0:8b0:f58d:2da9 with SMTP id rp6-20020a170906d96600b008b0f58d2da9mr10623941ejb.64.1679880182880; Sun, 26 Mar 2023 18:23:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679880182; cv=none; d=google.com; s=arc-20160816; b=atVammhOZdh0SL37BD00EScNPApUela6lxQPZk03YyFBxMcCTt4VnQqGPsjcc03w1P 5FK0SYIRTKDJc4yxhPaVwKt5fG3Uz+DLSh4i8/f4GSx9KFuKfkf2AC+l8Ps+N77TyEcx 5K82IA8rmQhprZ+ICpZvQHoeLfqekI6iVEb1QaNaW1xFq1FeGW/diTZUkum+R7rqmJBj MMaVlcAzC7jwa+2y5XYaKMDcCAAJX3cr1adCzTAC0pjGbsMjm5e1cYDtg25YnJW8MCLH qW+9BKUT872rPLXg9x8928IMvOQzP9onB4fGRB6vtrbPL0z7Km2sqK7EPmqdGnizVXq7 Rorw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=nIQKVaCDRh9pZhxZ6t/pxhQ5RwobldyrJi6UtcxTMKo=; b=Azcz3SYWTxsCyqaFvaeuCUsStieb+CF9l1gaxHP/RxebSJ4eOF4CvEZmgsNoAXhthX zsquLl/vEZGHLh9kX/MsDbnlMtWi5usE4PC25xpVgHyn4x66QOnC6/lbrllG7wWUwAFi UFhvfVyDwZUH74WBzTKEnDlWq57nsDlOfHHOidQl3rmur7q1SlnVAOc+BQ6fu8rhsP1J rLdrIsUgrNk2rTqeeASajyCQok+Q5b186nlYv/ROZb5Te9YMhdolgRXQc10/OM9FjZaO OE5AGaHdRwqcC08bkXAphn22ZMOzXyFaJUDYan3OUHq4QUeoiOJK/QSjIFF373HMMXqz v5eg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb11-20020a170907960b00b00937d0d8f640si20719731ejc.128.2023.03.26.18.22.44; Sun, 26 Mar 2023 18:23:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229651AbjC0BUY convert rfc822-to-8bit (ORCPT + 59 others); Sun, 26 Mar 2023 21:20:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229622AbjC0BUX (ORCPT ); Sun, 26 Mar 2023 21:20:23 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F5C55242 for ; Sun, 26 Mar 2023 18:20:22 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 32R1JuS22013608, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 32R1JuS22013608 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Mon, 27 Mar 2023 09:19:56 +0800 Received: from RTEXMBS05.realtek.com.tw (172.21.6.98) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Mon, 27 Mar 2023 09:20:12 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS05.realtek.com.tw (172.21.6.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Mon, 27 Mar 2023 09:20:12 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::b4a2:2bcc:48d1:8b02]) by RTEXMBS04.realtek.com.tw ([fe80::b4a2:2bcc:48d1:8b02%5]) with mapi id 15.01.2375.007; Mon, 27 Mar 2023 09:20:12 +0800 From: Ping-Ke Shih To: Martin Kaistra , "linux-wireless@vger.kernel.org" CC: Jes Sorensen , Kalle Valo , Bitterblue Smith , Sebastian Andrzej Siewior Subject: RE: [RFC PATCH 04/14] wifi: rtl8xxxu: Add set_tim() callback Thread-Topic: [RFC PATCH 04/14] wifi: rtl8xxxu: Add set_tim() callback Thread-Index: AQHZXOKHYYobt9vonUag8+xa0Uo4Wa8N2rfQ Date: Mon, 27 Mar 2023 01:20:11 +0000 Message-ID: References: <20230322171905.492855-1-martin.kaistra@linutronix.de> <20230322171905.492855-5-martin.kaistra@linutronix.de> In-Reply-To: <20230322171905.492855-5-martin.kaistra@linutronix.de> Accept-Language: en-US, zh-TW Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.69.188] x-kse-serverinfo: RTEXMBS05.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > -----Original Message----- > From: Martin Kaistra > Sent: Thursday, March 23, 2023 1:19 AM > To: linux-wireless@vger.kernel.org > Cc: Jes Sorensen ; Kalle Valo ; Ping-Ke Shih > ; Bitterblue Smith ; Sebastian Andrzej Siewior > > Subject: [RFC PATCH 04/14] wifi: rtl8xxxu: Add set_tim() callback > > Update beacon content if TIM bitmap maintained by mac80211 is changed. > > Signed-off-by: Martin Kaistra Reviewed-by: Ping-Ke Shih > --- > drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c > b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c > index 404fa6e322f58..f8380a2d51ae2 100644 > --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c > +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c > @@ -4438,6 +4438,16 @@ int rtl8xxxu_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) > return 0; > } > > +static int rtl8xxxu_set_tim(struct ieee80211_hw *hw, struct ieee80211_sta *sta, > + bool set) > +{ > + struct rtl8xxxu_priv *priv = hw->priv; > + > + schedule_work(&priv->update_beacon_work); > + > + return 0; > +} > + > static void rtl8xxxu_sw_scan_start(struct ieee80211_hw *hw, > struct ieee80211_vif *vif, const u8 *mac) > { > @@ -7133,6 +7143,7 @@ static const struct ieee80211_ops rtl8xxxu_ops = { > .ampdu_action = rtl8xxxu_ampdu_action, > .sta_statistics = rtl8xxxu_sta_statistics, > .get_antenna = rtl8xxxu_get_antenna, > + .set_tim = rtl8xxxu_set_tim, > }; > > static int rtl8xxxu_parse_usb(struct rtl8xxxu_priv *priv, > -- > 2.30.2