Эх сурвалжийг харах

qcacmn: Do not limit the max length of RSN/WPA IE as 28

Do not limit the max length of RSN/WPA IE as they can contain multiple AKM
and CIPHER. We need to consider all the variables to limit the max length.

Change-Id: I204f86d7c773d0c104ad1f58b3648d6c5577af94
CRs-Fixed: 3051247
Shashikala Prabhu 3 жил өмнө
parent
commit
f833646e06

+ 0 - 1
umac/cmn_services/cmn_defs/inc/wlan_cmn_ieee80211.h

@@ -2192,7 +2192,6 @@ struct oce_reduced_wan_metrics {
 	uint8_t uplink_av_cap:4;
 };
 
-#define WLAN_VENDOR_WPA_IE_LEN 28
 /**
  * is_wpa_oui() - If vendor IE is WPA type
  * @frm: vendor IE pointer

+ 0 - 3
umac/scan/dispatcher/src/wlan_scan_utils_api.c

@@ -979,9 +979,6 @@ util_scan_parse_vendor_ie(struct scan_cache_entry *scan_params,
 		scan_params->ie_list.vendor = (uint8_t *)ie;
 
 	if (is_wpa_oui((uint8_t *)ie)) {
-		if (ie->ie_len > WLAN_VENDOR_WPA_IE_LEN)
-			return QDF_STATUS_E_INVAL;
-
 		scan_params->ie_list.wpa = (uint8_t *)ie;
 	} else if (is_wps_oui((uint8_t *)ie)) {
 		scan_params->ie_list.wps = (uint8_t *)ie;