qcacmn: Change minimum mbssid ie length value to 1

Currently, in the driver, the minimum MBSSID IE length value
in the driver is set to 4. Some APs advertize this value as
1. In such situations, driver fails to parse the the ie.
So, to avoid such cases, modify the minimum mbssid ie length
value to 1.

Change-Id: I6ef89706b95318cb9bd38e04cab56b0fdef99fd5
CRs-Fixed: 3684794
This commit is contained in:
Krupali Dhanvijay
2024-02-08 09:45:28 +05:30
committed by Ravindra Konda
parent b2253d3444
commit 8cd067442d

View File

@@ -3985,7 +3985,8 @@ util_scan_parse_beacon_frame(struct wlan_objmgr_pdev *pdev,
mbssid_ie = util_scan_find_ie(WLAN_ELEMID_MULTIPLE_BSSID,
(uint8_t *)&bcn->ie, ie_len);
if (mbssid_ie) {
if (mbssid_ie[TAG_LEN_POS] < VALID_ELEM_LEAST_LEN) {
/* some APs announce the MBSSID ie_len as 1 */
if (mbssid_ie[TAG_LEN_POS] < 1) {
scm_debug("MBSSID IE length is wrong %d",
mbssid_ie[TAG_LEN_POS]);
return status;