[PATCH ath-current 0/2] wifi: ath9k_htc: start ANI for an AP interface at the right time

From: Mehmet Fide

Date: Mon Oct 05 2026 - 03:23:43 EST


From: Mehmet Fide <mehmet.fide@xxxxxxxxxxxxxxxxxx>

ath9k_htc starts ANI for an AP interface in add_interface, before a
channel and the calibration data exist. When the bring-up stalls
between add_interface and the first channel configuration, the first
ANI tick dereferences a NULL ah->caldata and the device does not
recover. Patch 1 removes that start. Patch 2 starts ANI once the
interface beacons, which is where ath9k_htc_vif_reconfig() already
re-arms it after a channel change; without it ANI and the periodic
calibration never ran during a normal AP start.

Tested with AR9271 on 6.18.48 and on a 6.12 product kernel: the oops
reproduces on every start with a 500 ms delay after add_interface and
is gone with the series; an hour as an AP, station mode, a channel
switch, hostapd disable/enable and a restart are clean.

Mehmet Fide (2):
wifi: ath9k_htc: do not start ANI before the first channel is set
wifi: ath9k_htc: start ANI when an AP interface begins to beacon

drivers/net/wireless/ath/ath9k/htc_drv_main.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

--
2.55.0