Re: [PATCH] wifi: ath9k: restore background spectral scan after reset

From: Toke Høiland-Jørgensen

Date: Thu Nov 19 2026 - 06:45:28 EST


> A reset leaves spectral_mode set to SPECTRAL_BACKGROUND, but resets the
> spectral registers and receive filter. The driver therefore still reports
> a background scan even though the hardware no longer produces FFT samples.
>
> Re-trigger background spectral scanning after reset recovery so the
> software and hardware state match again. Do not re-trigger spectral
> scanning in disabled, manual, channel-scan, radar, or off-channel modes.

Looking at this again, it's not obvious to me that the right thing to do here is
to re-trigger the scan. Shouldn't the reset just set the state back to disabled
instead?

-Toke

--