Re: [PATCH ath-next v4 4/8] wifi: ath9k: stop a failed register read from opening the RX filter
From: Toke Høiland-Jørgensen
Date: Mon Oct 19 2026 - 15:51:32 EST
Nerijus Bendžiūnas <nerijus.bendziunas@xxxxxxxxx> writes:
> On USB a register read is a WMI round trip and a timeout returns -1.
> The spectral trigger reads AR_RX_FILTER back, ORs in the PHY error
> bits and writes it, so a timed-out read stores 0xffffffff and the
> device forwards every frame and PHY error to the host.
>
> Add ath9k_hw_enable_rxfilter(), which sets the requested bits with
> REG_SET_BIT() instead of reading the register from the driver, and
> use it in the trigger. With firmware 1.4 and later the
> read-modify-write is done by the firmware; older firmware still reads
> from the host.
>
> Fixes: e93d083f42a1 ("ath9k: add spectral scan feature")
> Cc: stable@xxxxxxxxxxxxxxx
> Assisted-by: LLM
> Signed-off-by: Nerijus Bendžiūnas <nerijus.bendziunas@xxxxxxxxx>
Acked-by: Toke Høiland-Jørgensen <toke@xxxxxxx>