From 1e6e00f35018e7b69247771ba9db9c202bea25c9 Mon Sep 17 00:00:00 2001 From: gaurank kathpalia Date: Fri, 2 Mar 2018 14:23:29 +0530 Subject: [PATCH] qcacmn: Remove 11ax IE length checks With IE length sanity check, that involved by Change-Id I9a091486, 11ax AP cant be found due to the addition of +1 byte in HE-operation IE in latest spec of 11ax (D2.2). Remove all 11ax extended capability IE length checks for now due to 11ax being under development. Change-Id: I45d676325c72c8e0020ca52d094fb1652f8fcaf2 CRs-Fixed: 2197252 --- umac/cmn_services/cmn_defs/inc/wlan_cmn_ieee80211.h | 5 ----- umac/scan/dispatcher/src/wlan_scan_utils_api.c | 8 -------- 2 files changed, 13 deletions(-) diff --git a/umac/cmn_services/cmn_defs/inc/wlan_cmn_ieee80211.h b/umac/cmn_services/cmn_defs/inc/wlan_cmn_ieee80211.h index b3e53b4ed635..b25b13b6c1a1 100644 --- a/umac/cmn_services/cmn_defs/inc/wlan_cmn_ieee80211.h +++ b/umac/cmn_services/cmn_defs/inc/wlan_cmn_ieee80211.h @@ -104,11 +104,6 @@ #define WLAN_MOBILITY_DOMAIN_IE_MAX_LEN 3 #define WLAN_OPMODE_IE_MAX_LEN 1 #define WLAN_IBSSDFS_IE_MIN_LEN 7 -#define WLAN_EXT_ESP_IE_MAX_LEN 96 -#define WLAN_HE_CAP_IE_MIN_LEN 18 -#define WLAN_HE_CAP_IE_MAX_LEN 53 -#define WLAN_HE_OP_IE_MIN_LEN 6 -#define WLAN_HE_OP_IE_MAX_LEN 10 /* HT capability flags */ #define WLAN_HTCAP_C_ADVCODING 0x0001 diff --git a/umac/scan/dispatcher/src/wlan_scan_utils_api.c b/umac/scan/dispatcher/src/wlan_scan_utils_api.c index cda1208a2fd8..5eff9fab0be2 100644 --- a/umac/scan/dispatcher/src/wlan_scan_utils_api.c +++ b/umac/scan/dispatcher/src/wlan_scan_utils_api.c @@ -352,20 +352,12 @@ util_scan_parse_extn_ie(struct scan_cache_entry *scan_params, scan_params->ie_list.srp = (uint8_t *)ie; break; case WLAN_EXTN_ELEMID_HECAP: - if ((extn_ie->ie_len < WLAN_HE_CAP_IE_MIN_LEN) || - (extn_ie->ie_len > WLAN_HE_CAP_IE_MAX_LEN)) - return QDF_STATUS_E_INVAL; scan_params->ie_list.hecap = (uint8_t *)ie; break; case WLAN_EXTN_ELEMID_HEOP: - if ((extn_ie->ie_len < WLAN_HE_OP_IE_MIN_LEN) || - (extn_ie->ie_len > WLAN_HE_OP_IE_MAX_LEN)) - return QDF_STATUS_E_INVAL; scan_params->ie_list.heop = (uint8_t *)ie; break; case WLAN_EXTN_ELEMID_ESP: - if (extn_ie->ie_len > WLAN_EXT_ESP_IE_MAX_LEN) - return QDF_STATUS_E_INVAL; scan_params->ie_list.esp = (uint8_t *)ie; break; default: