Re: [PATCH 1/3] wifi: ath10k: add firmware feature bit to skip channel stats events
From: Gianluca Boiano
Date: Wed Nov 25 2026 - 12:14:33 EST
Hi Loic,
On Wed, Nov 25, 2026 Loic Poulain wrote:
> Are we handling or using the CHAN_STAT_EVENT data in the driver? If
> so, which event handler or function currently consumes it?
Yes. With WMI_SCAN_CHAN_STAT_EVENT set, the firmware sends
WMI_TLV_CHAN_INFO_EVENTID for each scanned channel.
ath10k_wmi_event_chan_info() handles it and parses it with
ath10k_wmi_tlv_op_pull_ch_info_ev(). The default WCN3990
firmware-5.bin doesn't set single-chan-info-per-channel, so on SDM660
the event goes through ath10k_wmi_event_chan_info_paired(). That fills
ar->survey[] with noise floor, active time and busy time.
ath10k_get_survey() reports ar->survey[] to mac80211 for survey dump
and ACS.
With the bit set, survey data for scanned channels isn't populated on
these devices. I accept that to avoid the firmware crash on every scan.
Regards,
Gianluca