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
This commit is contained in:
gaurank kathpalia 2018-03-02 14:23:29 +05:30 • committed by nshrivas
commit 1e6e00f350
2 changed files with 0 additions and 13 deletions

View file

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

View file

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