Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6420712rwl; Wed, 22 Mar 2023 10:20:35 -0700 (PDT) X-Google-Smtp-Source: AK7set+ykL1bLfcyAt9cm8eHAEocEHdAAMAb0qsGkOce+KovHOyGvWfx107BO2D2gNyN2hQbST6Z X-Received: by 2002:a17:906:480c:b0:931:73d:4cc3 with SMTP id w12-20020a170906480c00b00931073d4cc3mr6500122ejq.11.1679505634749; Wed, 22 Mar 2023 10:20:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679505634; cv=none; d=google.com; s=arc-20160816; b=tEhvy0QCLnLx7uHug2wcT3q43XcFo69s7hvxN1pZqIxGTg4R5PkLybm90+RkTpl6AD 2itTrE+AdnhTScnonbGklHZz22b7lLikRffgae4alfxlVvFP4gwbi/7BNG3+kgGs9eP+ ibqHjM6qWwe3fT+KINHtyZjlwVZ4PKbyYiwkyjvBddAvg7r8LGDh/rEaJ2ToIKiJvYzm ky+SiQU5JClOq8zSBmeA41VKJEumHUFuXYEpFzbbvcX8grE3gRhffSx1+cnANPxNmigB cXcaLuA2+fUPIGnCEo4yhSBmbwyqgg3u9uLp2iKu3o8vIsG2QCRBdTPQGw76fM7Iv39d R0rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :dkim-signature:from; bh=XUXUwnxkFGgPFMoE0610Xdltz8qG3jRuoMtYF72QBDI=; b=Y6EMO40PlU3FsrpxSw1z4lTMEgXtpegY418QlGcEbSITC31MFZCSBmaBjB+GknDSCE ILZIbhqTZlmUyyqdG/BWaoFk1K1mMQpi+0sA9gzcCVfaSmT+zMxiPPZCw/2XrSCEHE7P UGr0rqzdfEEGIMnk/go/miWsY+pGmsMPU9flJeZHcmxBVgacw5gDKdrudMrTbONXGNWp jAVp3CDL7EkFY0fXD3LLJxCLLn942IVa4V8bz1ejNCALCpF12O9GwiS5oiaJfuLTgb0R biTi9JuWLDWe3UDM6OuYPy4jj9LBjQPSPgoX80QRm1s1XaNZ28Pzo0GbzCYTfRFVthbx +yww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=KBsG4I75; dkim=neutral (no key) header.i=@linutronix.de header.b="Y/r77Pyb"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz18-20020a170906cd1200b00931309c5e79si13210686ejb.312.2023.03.22.10.20.19; Wed, 22 Mar 2023 10:20:34 -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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=KBsG4I75; dkim=neutral (no key) header.i=@linutronix.de header.b="Y/r77Pyb"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229847AbjCVRTo (ORCPT + 60 others); Wed, 22 Mar 2023 13:19:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230421AbjCVRT3 (ORCPT ); Wed, 22 Mar 2023 13:19:29 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7635267001 for ; Wed, 22 Mar 2023 10:19:15 -0700 (PDT) From: Martin Kaistra DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1679505551; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XUXUwnxkFGgPFMoE0610Xdltz8qG3jRuoMtYF72QBDI=; b=KBsG4I75W2mrudSvKfngPm0gUN8jtWC3Mm7XOX92SNlyrU5x0oVAj3vJkWO31+XzmEmkPK rGKZH5xM1fCxiYrbc+6kcCXIbjWK8tlliaIvuLuZGYgGH94txVUev6/WWO3kLH4Xohf9CD euUmejwfVO0II7Et2qapTXYg8B8ypvO0xC51h8y1dibvTUKykqniB261OlMuNeevZ1iyT0 Pw83B+woNiEAtYMhUrJrAZoJbN+mxDzbZHutdxxEuihq/tKFu747HAdy4E2MnAtZxw/Rho 6j4Y7MA3x9gCMIlicR9ezXPn9knOs3C9s0nFI+0uTXkX67lQGXYRPN0Y0F7ppw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1679505551; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XUXUwnxkFGgPFMoE0610Xdltz8qG3jRuoMtYF72QBDI=; b=Y/r77Pybyd3b5AOraz7jNefwWbO/yzZ+LC5OudTzWoRVw3PYSdPNSLlzn0aLpN2vRi3X++ ewQlkgkQmMGcjKBA== 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 Date: Wed, 22 Mar 2023 18:18:55 +0100 Message-Id: <20230322171905.492855-5-martin.kaistra@linutronix.de> In-Reply-To: <20230322171905.492855-1-martin.kaistra@linutronix.de> References: <20230322171905.492855-1-martin.kaistra@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 Update beacon content if TIM bitmap maintained by mac80211 is changed. Signed-off-by: Martin Kaistra --- 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