Skip to content

wifi: ath9k_htc: start ANI for an AP interface at the right time

Mehmet Fide linux-wireless lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2wifi: ath9k_htc: do not start ANI before the first channel is setdrivers/net/wireless/ath/ath9k/htc_drv_main.c+1 -41 reply
2/2wifi: ath9k_htc: start ANI when an AP interface begins to beacondrivers/net/wireless/ath/ath9k/htc_drv_main.c+3 -01 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchToke Høiland-Jørgensen
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

From: Mehmet Fide <[email protected]>

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(-)
Signature · 1 line
2.55.0