Browse Source

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
Krupali Dhanvijay 1 năm trước cách đây
mục cha
commit
8cd067442d
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      umac/scan/dispatcher/src/wlan_scan_utils_api.c

+ 2 - 1
umac/scan/dispatcher/src/wlan_scan_utils_api.c

@@ -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;