Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp356099rwr; Thu, 27 Apr 2023 02:12:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5RCJLftA5MKymod1MsHuLcpdBpJ3GeyUuu301kafpBBdHmnbdXzMgdkZPLW48Gea0dXNwf X-Received: by 2002:a17:903:1250:b0:1a9:b62f:933b with SMTP id u16-20020a170903125000b001a9b62f933bmr766916plh.53.1682586771281; Thu, 27 Apr 2023 02:12:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682586771; cv=none; d=google.com; s=arc-20160816; b=McSFZf/iFKDBzWs3KgNzDeAfCNeCjHAHleai2ThLudbJkdRpSlD4k1w9N0knpQKZhc 8pUjRY5C66AHcxDMPxECzJ0jF79PNjFI0yJVi9CtgJ3icCEnYVpzzZrsk9eczFuSVJeo 4DD0CRYY1SwcwOeNy534CUMA7S6L/KOvhG9wrzKGxrG3ya0nP+Mp0cuyQjuJ9b1MgHpe sv9PGugv0P940RW4Tbe3nDvae+cyX7gIHZCGoF3Zt+n/2hREPplReNUQcXj0EGBJr1JE CEI31nQUsJPPErSm+ucxGqp6LO8M+JURSJzr/bknh0C0YQIERYZg/0p0S+JTarZbmM8h nG8A== 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=uelio+zrlTU2EbZbb8dv0RQo03SNemxsFEQaYJ7ROeY=; b=DgAFYAD8tix4Q8aPB5Zz4OERsNKExZNmU1cw/NlHjZp8Z/PIvXA+CAd63m4xbXq9Xk yzmxwa1vUHvlEewRWQ9OMMzx01dMwZkWI4XvAXLsm1h8Maba1S8LAh1ApTn4jcYUOJzX kKsmX1SLwctHacz3ZMaQzXwkmWLmRKguWT9lBGJfTnhpVSB3Th7S7l1yB5uZL4yu+VoJ UTYQe7hMEqp20TkX1vNUd7zHhicA6yk2zlQhwCIb62UMIXMch+GYwjp1dSgz2VtjjwWk ZCX+pIRwst5z4xXFjp/ZyKBCQbvQEygcsIAZK9er4jnWDEzUOdQb7ms3Lb63gkPRhuQt iGJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=HqzfBneN; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 p8-20020a170902bd0800b001a6dc4a98f7si6044533pls.365.2023.04.27.02.12.42; Thu, 27 Apr 2023 02:12:51 -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=HqzfBneN; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 S243335AbjD0JKS (ORCPT + 62 others); Thu, 27 Apr 2023 05:10:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243357AbjD0JJv (ORCPT ); Thu, 27 Apr 2023 05:09:51 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F13F46B1 for ; Thu, 27 Apr 2023 02:09:46 -0700 (PDT) From: Martin Kaistra DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1682586585; 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=uelio+zrlTU2EbZbb8dv0RQo03SNemxsFEQaYJ7ROeY=; b=HqzfBneNqSgF7v+xJx6uc7UWlAbU95nwEkHtDNcHNZOvAXw5j62SJ8HEQ25TJ1ObIuZTQY SZXE7Rznl+xiVgFLRYRopW7QLtZL2lpOWqj+czSLAOi23qGR6rHBiD1HUUu5ChUi1k5dJW AEnZ4BgE9fesmkfb9VBFutkEo5Cw4HC/NzmMHaFidyWW0LaQgGVYQBA4K2kTga9kE+ymiW vfKI3Q34fP3OxLXvAG3gkjniiFFr/tYgfOZqZl+ZNkRcmU0+QVccl2Qxaros3S78obNVeu 1W1JvDdGdYAqD6cX44BTr4Rt9E0TFqhdQ4lJx6+sNlZH2HjEdllBm9nuRlgbwA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1682586585; 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=uelio+zrlTU2EbZbb8dv0RQo03SNemxsFEQaYJ7ROeY=; b=ch6Rp9eup+arRMG5ArGOEZD2R+XeOQIKoec/mVGEVbINgLdY2Yl/kBV9I4dV921P5lwWSz yfZwDbIF5NwA/UDA== To: linux-wireless@vger.kernel.org Cc: Jes Sorensen , Kalle Valo , Ping-Ke Shih , Bitterblue Smith , Sebastian Andrzej Siewior Subject: [PATCH v3 04/18] wifi: rtl8xxxu: Add set_tim() callback Date: Thu, 27 Apr 2023 11:09:08 +0200 Message-Id: <20230427090922.165088-5-martin.kaistra@linutronix.de> In-Reply-To: <20230427090922.165088-1-martin.kaistra@linutronix.de> References: <20230427090922.165088-1-martin.kaistra@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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 a733c6856fb20..551ceb2a2b653 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -4503,6 +4503,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) { @@ -7193,6 +7203,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