|
@@ -2517,7 +2517,6 @@ QDF_STATUS wlan_crypto_wpaie_check(struct wlan_crypto_params *crypto_params,
|
|
|
* version, mcast cipher, and 2 selector counts.
|
|
|
* Other, variable-length data, must be checked separately.
|
|
|
*/
|
|
|
- RESET_AUTHMODE(crypto_params);
|
|
|
SET_AUTHMODE(crypto_params, WLAN_CRYPTO_AUTH_WPA);
|
|
|
|
|
|
if (len < 14)
|
|
@@ -2532,7 +2531,6 @@ QDF_STATUS wlan_crypto_wpaie_check(struct wlan_crypto_params *crypto_params,
|
|
|
frm += 2, len -= 2;
|
|
|
|
|
|
/* multicast/group cipher */
|
|
|
- RESET_MCAST_CIPHERS(crypto_params);
|
|
|
w = wlan_crypto_wpa_suite_to_cipher(frm);
|
|
|
if (w < 0)
|
|
|
return QDF_STATUS_E_INVAL;
|
|
@@ -2545,7 +2543,6 @@ QDF_STATUS wlan_crypto_wpaie_check(struct wlan_crypto_params *crypto_params,
|
|
|
if (len < n*4+2)
|
|
|
return QDF_STATUS_E_INVAL;
|
|
|
|
|
|
- RESET_UCAST_CIPHERS(crypto_params);
|
|
|
for (; n > 0; n--) {
|
|
|
w = wlan_crypto_wpa_suite_to_cipher(frm);
|
|
|
if (w < 0)
|
|
@@ -2564,7 +2561,6 @@ QDF_STATUS wlan_crypto_wpaie_check(struct wlan_crypto_params *crypto_params,
|
|
|
return QDF_STATUS_E_INVAL;
|
|
|
|
|
|
w = 0;
|
|
|
- RESET_KEY_MGMT(crypto_params);
|
|
|
for (; n > 0; n--) {
|
|
|
w = wlan_crypto_wpa_suite_to_keymgmt(frm);
|
|
|
if (w < 0)
|
|
@@ -3136,7 +3132,6 @@ QDF_STATUS wlan_crypto_wapiie_check(struct wlan_crypto_params *crypto_params,
|
|
|
* version, mcast cipher, and 2 selector counts.
|
|
|
* Other, variable-length data, must be checked separately.
|
|
|
*/
|
|
|
- RESET_AUTHMODE(crypto_params);
|
|
|
SET_AUTHMODE(crypto_params, WLAN_CRYPTO_AUTH_WAPI);
|
|
|
|
|
|
if (len < WLAN_CRYPTO_WAPI_IE_LEN)
|
|
@@ -3155,7 +3150,6 @@ QDF_STATUS wlan_crypto_wapiie_check(struct wlan_crypto_params *crypto_params,
|
|
|
if (len < n*4+2)
|
|
|
return QDF_STATUS_E_INVAL;
|
|
|
|
|
|
- RESET_KEY_MGMT(crypto_params);
|
|
|
for (; n > 0; n--) {
|
|
|
w = wlan_crypto_wapi_keymgmt(frm);
|
|
|
if (w < 0)
|
|
@@ -3171,7 +3165,6 @@ QDF_STATUS wlan_crypto_wapiie_check(struct wlan_crypto_params *crypto_params,
|
|
|
if (len < n*4+2)
|
|
|
return QDF_STATUS_E_INVAL;
|
|
|
|
|
|
- RESET_UCAST_CIPHERS(crypto_params);
|
|
|
for (; n > 0; n--) {
|
|
|
w = wlan_crypto_wapi_suite_to_cipher(frm);
|
|
|
if (w < 0)
|
|
@@ -3184,7 +3177,6 @@ QDF_STATUS wlan_crypto_wapiie_check(struct wlan_crypto_params *crypto_params,
|
|
|
return QDF_STATUS_E_INVAL;
|
|
|
|
|
|
/* multicast/group cipher */
|
|
|
- RESET_MCAST_CIPHERS(crypto_params);
|
|
|
w = wlan_crypto_wapi_suite_to_cipher(frm);
|
|
|
|
|
|
if (w < 0)
|