Wen Gong <quic_wgong@xxxxxxxxxxx> writes: > When scan request on channel 1, it also receive beacon from other > channels, and the beacon also indicate to mac80211 and wpa_supplicant, > and then the bss info appears in radio measurement report of radio > measurement sent from wpa_supplicant, thus lead RRM case fail. > > This is to drop the beacon and probe response which is not the same > channel of scanning. > > Tested-on: QCA6174 hw3.2 SDIO WLAN.RMH.4.4.1-00049 > > Signed-off-by: Wen Gong <quic_wgong@xxxxxxxxxxx> > --- > v2: rebased to ath.git ath-202112071521 > > drivers/net/wireless/ath/ath10k/wmi.c | 28 ++++++++++++++++++++++++++- > 1 file changed, 27 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c > index 7c1c2658cb5f..07764ee409fe 100644 > --- a/drivers/net/wireless/ath/ath10k/wmi.c > +++ b/drivers/net/wireless/ath/ath10k/wmi.c > @@ -2610,10 +2610,32 @@ int ath10k_wmi_event_mgmt_rx(struct ath10k *ar, struct sk_buff *skb) > if (ieee80211_is_beacon(hdr->frame_control)) > ath10k_mac_handle_beacon(ar, skb); > > + This caused a new warning: drivers/net/wireless/ath/ath10k/wmi.c:2613: Please don't use multiple blank lines Fixed in the pending branch. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches