Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2263492rwr; Fri, 28 Apr 2023 08:09:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4sLJtBZZEcM4rxsFvXB0mvUPnZKd2SeDyXDZomPJGYzQke/N2ERrnZW1VCYYGJrz9F4MF/ X-Received: by 2002:a17:90a:3b41:b0:24b:3476:9867 with SMTP id t1-20020a17090a3b4100b0024b34769867mr5198957pjf.48.1682694593582; Fri, 28 Apr 2023 08:09:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682694593; cv=none; d=google.com; s=arc-20160816; b=S4wvjMXWgyFNXJRmUr0W37+rtH7hOi/WKXLfQxsHz7aqHHYTheaio1qd08gFJQibwt fNuqCJd3wKLHoZQHVnrSvdDYZlSuMc6a1JH/SXPoXYKXo+BfziCZ37AVQjZq8PIuFwsD oUeajUfKqT4shrLb0JWEUV7NXc+0A0yyGyt6wrjXkafiB5Qi4J6FeDIJqNweBN4ul/cr AHDbWxT/rizAI2YRsSOvmKMuTeSZcTLX4w/pNtdBYrb49OiV/78to+Ud3kV0qkkBWQwE +On4+mpz+TfZKA149MI5nZJ1eL4BUwQMqDhXc8vNeX+JpJoSrhIxR5kzKFkm2+M5EKmk A58w== 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=S+IA/8VUrfEjUysOG8nS+DCO56j+blJgNtEnXdUDo74=; b=ZMKxVvEL/ffWWQdMwTGYfaQDHt+pyGc4KgXgWhxTFWQie7JH2CIgiCeMA4aMPgzUsm ImPY6J/a0aP9vF8Q7uPi+zH5zcLCa4BtcIT/5bPRBeuux/Cms0qFzuFKJrvigv6Q+LL5 q/b/AO/XkVQ8MPKMBqFwyus/zo2FucfcwgWXn0z7CDFmJ/kUFNhAU/megvUjzFJoAMHz NxS7w8IShH8Ryx/ePAvDNNBl2d/VfYpDBztN3a0qSk71Jx2YSOS06RoYLB/cyp5eETd+ iJ+H2P7Zu/Aq5/6Jtg22XxVEeuxBfr7Te+3KtFlfl1UvBhGv9QWU5GbLJzEHFfS+2QUt DKSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=JiBM4Tnm; dkim=neutral (no key) header.i=@linutronix.de header.b=FPsUHHiP; 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 y1-20020a17090ad70100b0024bf50a83e7si6982855pju.174.2023.04.28.08.09.45; Fri, 28 Apr 2023 08:09:53 -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=JiBM4Tnm; dkim=neutral (no key) header.i=@linutronix.de header.b=FPsUHHiP; 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 S1346147AbjD1PIt (ORCPT + 62 others); Fri, 28 Apr 2023 11:08:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346252AbjD1PIs (ORCPT ); Fri, 28 Apr 2023 11:08:48 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAD42270C for ; Fri, 28 Apr 2023 08:08:40 -0700 (PDT) From: Martin Kaistra DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1682694519; 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=S+IA/8VUrfEjUysOG8nS+DCO56j+blJgNtEnXdUDo74=; b=JiBM4Tnmk2T2r0L/ojFx7vlxkKG888KobY1EsErX7uj2e1cCDcW1uwrY8ug664OFAlUHMw G4SMOvQP4UM9xbJ2mZ/DVf9klKw0W8a7fKf9QAl0sCRgeJJAt465st2M3taSNP17YvzoEv mFWLOVVMbY8RE/5aEKDZkpr7M4GfUSyFKv0J6pwaGuMDpZuh1jTIDii6GwItCeyKnZqWP4 gQMi/dq16F/XRBse+B8EAJ0Yj2fbrvmjBRhpt/8r13jFaUn3/J2YFfARdjVun8o+GDC+fQ Q7663e4i9B1cQqV6RWxl4qC/ReCeg+PcSL8bkoywTOLNOHCQC58pGS8JgQKrPw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1682694519; 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=S+IA/8VUrfEjUysOG8nS+DCO56j+blJgNtEnXdUDo74=; b=FPsUHHiPMZkb1s1DQXSuf7Z2pkrDwSEZ6I0fLj+Tb52IBLfGhqTTSPDTA2mrdVeco5LGil o6v4UZHdy6EmHCDg== To: linux-wireless@vger.kernel.org Cc: Jes Sorensen , Kalle Valo , Ping-Ke Shih , Bitterblue Smith , Sebastian Andrzej Siewior Subject: [PATCH v4 04/18] wifi: rtl8xxxu: Add set_tim() callback Date: Fri, 28 Apr 2023 17:08:19 +0200 Message-Id: <20230428150833.218605-5-martin.kaistra@linutronix.de> In-Reply-To: <20230428150833.218605-1-martin.kaistra@linutronix.de> References: <20230428150833.218605-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,URIBL_BLOCKED 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 a152e5c9ea691..37794739c71c8 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) { @@ -7194,6 +7204,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