summaryrefslogtreecommitdiff
path: root/net/wireless/scan.c
diff options
context:
space:
mode:
authorIlan Peer <ilan.peer@intel.com>2021-04-08 15:32:24 +0300
committerJohannes Berg <johannes.berg@intel.com>2021-04-08 16:33:00 +0300
commit8a16ffdc4cf37c1e6204054b0fb44052c8a48f0d (patch)
tree9a4376385975daa2a0b018959459f02107b4d0a6 /net/wireless/scan.c
parentdb878e27a98106a70315d264cc92230d84009e72 (diff)
downloadlinux-8a16ffdc4cf37c1e6204054b0fb44052c8a48f0d.tar.xz
cfg80211: Remove wrong RNR IE validation check
Remove a wrong length check for RNR information element as it can have arbitrary length. Signed-off-by: Ilan Peer <ilan.peer@intel.com> Link: https://lore.kernel.org/r/20210408143224.c7eeaf1a5270.Iead7762982e941a1cbff93f68bf8b5139447ff0c@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/scan.c')
-rw-r--r--net/wireless/scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/scan.c b/net/wireless/scan.c
index 019952d4fc7d..c3b51efff5c6 100644
--- a/net/wireless/scan.c
+++ b/net/wireless/scan.c
@@ -589,7 +589,7 @@ static int cfg80211_parse_colocated_ap(const struct cfg80211_bss_ies *ies,
elem = cfg80211_find_elem(WLAN_EID_REDUCED_NEIGHBOR_REPORT, ies->data,
ies->len);
- if (!elem || elem->datalen > IEEE80211_MAX_SSID_LEN)
+ if (!elem)
return 0;
pos = elem->data;