diff options
author | Shashikala Prabhu <pshashik@codeaurora.org> | 2021-03-01 22:40:58 +0530 |
---|---|---|
committer | Hsiu Chang Chen <hsiuchangchen@google.com> | 2021-03-25 06:42:02 +0000 |
commit | 90f9930ba02518d5b90ebb811d21b204a8f40f51 (patch) | |
tree | 3f72dd903168504471de138442a64194fa7bafc8 | |
parent | 244a904da4423dd29d36b80ae0ee5ecf21c3f82f (diff) | |
download | qca-wfi-host-cmn-90f9930ba02518d5b90ebb811d21b204a8f40f51.tar.gz |
qcacmn: Modify the WIDE_BW_CHAN_SWITCH IE length check
Modify the length check to drop beacons which has
WLAN_ELEMID_WIDE_BAND_CHAN_SWITCH IE length less than 3. This is to
accommodate the addition of fields to this IE in the future.
Bug: 182351550
Change-Id: I8cba60b631022f4348cce90ae41a003964040ad1
CRs-Fixed: 2884249
Signed-off-by: Hsiu-Chang Chen <hsiuchangchen@google.com>
-rw-r--r-- | umac/scan/dispatcher/src/wlan_scan_utils_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/umac/scan/dispatcher/src/wlan_scan_utils_api.c b/umac/scan/dispatcher/src/wlan_scan_utils_api.c index 79cd8d359..b1c9ea5ac 100644 --- a/umac/scan/dispatcher/src/wlan_scan_utils_api.c +++ b/umac/scan/dispatcher/src/wlan_scan_utils_api.c @@ -376,7 +376,7 @@ util_scan_parse_chan_switch_wrapper_ie(struct scan_cache_entry *scan_params, scan_params->ie_list.country = (uint8_t *)sub_ie; break; case WLAN_ELEMID_WIDE_BAND_CHAN_SWITCH: - if (sub_ie->ie_len != WLAN_WIDE_BW_CHAN_SWITCH_IE_LEN) + if (sub_ie->ie_len < WLAN_WIDE_BW_CHAN_SWITCH_IE_LEN) return QDF_STATUS_E_INVAL; scan_params->ie_list.widebw = (uint8_t *)sub_ie; break; |