summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Kodukula <quic_akodukul@quicinc.com>2021-03-01 22:40:58 +0530
committerchenpaul <chenpaul@google.com>2021-03-23 19:04:26 +0800
commit33c6b064b7e6722e23f55759dd2081e822425f7e (patch)
treefc50a15c013ea5d3a9ec835a1810abe060471c91
parent3e19812c8eba342b24e04f2580ec6f387effca47 (diff)
downloadqca-wfi-host-cmn-33c6b064b7e6722e23f55759dd2081e822425f7e.tar.gz
qcacmn: Modify the WIDE_BW_CHAN_SWITCH IE length checkandroid-11.0.0_r0.99android-11.0.0_r0.94android-11.0.0_r0.85
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. Change-Id: I8cba60b631022f4348cce90ae41a003964040ad1 CRs-Fixed: 2884249 Bug: 182351550 Signed-off-by: Aditya Kodukula <quic_akodukul@quicinc.com>
-rw-r--r--umac/scan/dispatcher/src/wlan_scan_utils_api.c2
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 dd233e7d1..d82b620c6 100644
--- a/umac/scan/dispatcher/src/wlan_scan_utils_api.c
+++ b/umac/scan/dispatcher/src/wlan_scan_utils_api.c
@@ -313,7 +313,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;