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: