Re: [PATCH] wifi: ath9k: refuse spectral scan control while the hardware is disabled
From: Toke Høiland-Jørgensen
Date: Wed Sep 09 2026 - 07:13:35 EST
Nerijus Bendžiūnas <nerijus.bendziunas@xxxxxxxxx> writes:
> The spectral_scan_ctl debugfs file drives PHY register writes, and
> nothing checks whether the hardware is up. While the interface is down
> the chip is asleep, and on the AR9271 those writes go over WMI to a
> sleeping target and hang the firmware until the device is re-enumerated.
>
> Refuse the write with -EBUSY while ATH_OP_INVALID is set. The reset
> control already refuses on the same flag.
>
> Assisted-by: LLM
> Signed-off-by: Nerijus Bendžiūnas <nerijus.bendziunas@xxxxxxxxx>
Acked-by: Toke Høiland-Jørgensen <toke@xxxxxxx>