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 18:57:45 +0800
commit79a559a941d03b88b23cf63c0d73dda301037b87 (patch)
treebfe3ebc0e48661850b6c06a2689966a137f06e5d
parentc4bd328ddf4dd38ba146837ba630378a47f7723e (diff)
downloadqca-wfi-host-cmn-79a559a941d03b88b23cf63c0d73dda301037b87.tar.gz
qcacmn: Modify the WIDE_BW_CHAN_SWITCH IE length checkandroid-11.0.0_r0.98android-11.0.0_r0.93android-11.0.0_r0.84
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;