Re: [PATCH ath-current 2/2] wifi: ath9k_htc: start ANI when an AP interface begins to beacon

From: Toke Høiland-Jørgensen

Date: Mon Oct 19 2026 - 16:43:20 EST


Mehmet Fide <mehmet.fide@xxxxxxxxx> writes:

> From: Mehmet Fide <mehmet.fide@xxxxxxxxxxxxxxxxxx>
>
> 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 <mehmet.fide@xxxxxxxxxxxxxxxxxx>

Acked-by: Toke Høiland-Jørgensen <toke@xxxxxxx>