From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796379613; b=dTbsGI7n0peImd5eLNJl2k0rtkReUTnpY1NxubXTyRSVXMX64gLUbSiVK8AUFrn/JwuT nJyzUa/1e8CmFv2iKuFF7y8LyINK3ym6XHsKuB0tpANVZC0LQ4EiJd3c2DvAEeNBAG1A/ mSjTFgN/6Zh4oAt8sJL8LDKGuIKUM6nYyqk0lQljsuJt21oIPretXYuujPv47Xt269XP2 UczqiASPXp+SuKCyYGbiN4Ljaw6q+E74904KiYX8HOxx3D5BrpeawNdMPcO/c0qQRhrpw nj8pH0NXsVdJAsWbMdpOwZfiX9TYyW72qTweycGVscUjr4r3TPSoisynBHhzGY1Fx1w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796379613; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=LCemmKBZA0k1k8v2ow9Q7SNTH0sG1jSmzFvEpafHPzc=; b=2fsxqMHbJN50YoJMU6VgnpiV6PS8rVulpMQzrxDWdraX+iKX91yo7NhQl/TJA7FfHB0f DQ2WGWws3JIu5VIZSTGpSqATDQwmhdqIwcvwyWUPZKOPdzZpLDuZJHLLK7NUy7MtYxR0o GA4/JrZsGaJNO9LLuWp2x8R8lCv7laP2uk7hKQdVpbfGKsX/QLOKnm3evPP1JqeaJt2d8 f9LxUYwiJK7x9XOrVE9VLrUj5LFAFPGORLTJ20zFcvVwI7QFSb9ZeaZLBf7LjKETnkON3 gduNXqHTQqx8wjTfp2ZIQ+MB6nDi3VPFse/1u1sE9URDxm4dZcS316jQtHCUmqUrBSQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=ERgrhQpj; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 798AA606A680; Fri, 4 Dec 2026 10:20:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=ERgrhQpj Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA40C1F00897; Fri, 4 Dec 2026 10:20:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796379613; bh=LCemmKBZA0k1k8v2ow9Q7SNTH0sG1jSmzFvEpafHPzc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ERgrhQpjp2leyDjQ6g+WLsvcQVlwGcjCm46J8d1IN5ghKhk6yH+uykxjuo/uBZ5VH vL7wrXiyJqg+wPCyPu7hAopMO9SpsCpmnXgsHJ9FkoABB8EXkXN5p4gSXyDRBtAJ8h FAa+WlEI2lMo2vZL2qwm4AjEQlOqbJbREyg2cDww= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Mehmet Fide , =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= , Jeff Johnson , Sasha Levin Subject: [PATCH 6.1 0029/1059] wifi: ath9k_htc: start ANI when an AP interface begins to beacon Date: Fri, 4 Dec 2026 18:52:40 +0900 Message-ID: <20261204100644.790509595@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mehmet Fide [ Upstream commit 5c1b202d67a212c87e7389aaa093ce77828fa98f ] ath9k_htc_vif_reconfig() re-arms ANI after a channel change when an AP interface beacons. mac80211 configures the channel before it enables the beacon, so during a normal AP start that never triggers, and the start from add_interface that the previous patch removed was cancelled by the same channel configuration: with hostapd, ANI and the periodic calibration it drives did not run in AP mode until a later channel change. Start ANI when the beacon is enabled. The channel and its calibration data are in place by then, which is the state vif_reconfig() re-arms it in, and remove_interface() already stops it with the last AP interface. Fixes: a236254c35f0 ("ath9k_htc: Add ANI for AP mode") Signed-off-by: Mehmet Fide Acked-by: Toke Høiland-Jørgensen Link: https://patch.msgid.link/20261005072209.4101009-3-mehmet.fide@gmail.com Signed-off-by: Jeff Johnson Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath9k/htc_drv_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c index 61875c45366b7..7d1d37df74a6d 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c @@ -1553,6 +1553,9 @@ static void ath9k_htc_bss_info_changed(struct ieee80211_hw *hw, ath9k_htc_set_tsfadjust(priv, vif); priv->cur_beacon_conf.enable_beacon = 1; ath9k_htc_beacon_config(priv, vif); + if (priv->ah->opmode == NL80211_IFTYPE_AP && + !test_bit(ATH_OP_ANI_RUN, &common->op_flags)) + ath9k_htc_start_ani(priv); } if ((changed & BSS_CHANGED_BEACON_ENABLED) && !bss_conf->enable_beacon) { -- 2.53.0