Commit 5dc82090 authored by Chenming Huang's avatar Chenming Huang Committed by Treehugger Robot
Browse files

FROMGIT: wifi: cfg80211: Do not create BSS entries for unsupported channels



Currently, in cfg80211_parse_ml_elem_sta_data(), when RNR element
indicates a BSS that operates in a channel that current regulatory
domain doesn't support, a NULL value is returned by
ieee80211_get_channel_khz() and assigned to this BSS entry's channel
field. Later in cfg80211_inform_single_bss_data(), the reported
BSS entry's channel will be wrongly overridden by transmitted BSS's.
This could result in connection failure that when wpa_supplicant
tries to select this reported BSS entry while it actually resides in
an unsupported channel.

Since this channel is not supported, it is reasonable to skip such
entries instead of reporting wrong information.

Signed-off-by: default avatarChenming Huang <quic_chenhuan@quicinc.com>
Link: https://patch.msgid.link/20240923021644.12885-1-quic_chenhuan@quicinc.com


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>

Bug: 375982127
(cherry picked from commit e1a9ae3a
https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless.git

 main)
Change-Id: I1f8672e73890df2df8a171d9aa57fd9d93b78601
Signed-off-by: default avatarChenming Huang <quic_chenhuan@quicinc.com>
parent 5c5911ff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment