OSDN Git Service

staging: rtl8723au: Remove (hopefully) last duplicate define of WLAN_EID_RSN
authorJes Sorensen <Jes.Sorensen@redhat.com>
Sat, 21 Jun 2014 14:50:15 +0000 (16:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Jun 2014 20:08:37 +0000 (13:08 -0700)
So much for thinking the removal of the previous 217 duplicate copies
would suffice ....

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_ieee80211.c
drivers/staging/rtl8723au/core/rtw_mlme.c
drivers/staging/rtl8723au/include/rtw_security.h

index f2c4a0e..efad6f8 100644 (file)
@@ -547,7 +547,7 @@ int rtw_parse_wpa2_ie23a(const u8* rsn_ie, int rsn_ie_len, int *group_cipher,
                return _FAIL;
        }
 
-       if (*rsn_ie != _WPA2_IE_ID_ || *(rsn_ie+1) != (u8)(rsn_ie_len - 2)) {
+       if (*rsn_ie != WLAN_EID_RSN || *(rsn_ie+1) != (u8)(rsn_ie_len - 2)) {
                return _FAIL;
        }
 
index 77714fe..fc84831 100644 (file)
@@ -2031,7 +2031,7 @@ int rtw_restruct_sec_ie23a(struct rtw_adapter *adapter, u8 *in_ie, u8 *out_ie,
                authmode = WLAN_EID_VENDOR_SPECIFIC;
        if (ndisauthmode == Ndis802_11AuthModeWPA2 ||
            ndisauthmode == Ndis802_11AuthModeWPA2PSK)
-               authmode = _WPA2_IE_ID_;
+               authmode = WLAN_EID_RSN;
 
        if (check_fwstate(pmlmepriv, WIFI_UNDER_WPS)) {
                memcpy(out_ie + ielength, psecuritypriv->wps_ie,
@@ -2039,7 +2039,7 @@ int rtw_restruct_sec_ie23a(struct rtw_adapter *adapter, u8 *in_ie, u8 *out_ie,
 
                ielength += psecuritypriv->wps_ie_len;
        } else if (authmode == WLAN_EID_VENDOR_SPECIFIC ||
-                  authmode == _WPA2_IE_ID_) {
+                  authmode == WLAN_EID_RSN) {
                /* copy RSN or SSN */
                memcpy(&out_ie[ielength], &psecuritypriv->supplicant_ie[0],
                       psecuritypriv->supplicant_ie[1] + 2);
@@ -2050,7 +2050,7 @@ int rtw_restruct_sec_ie23a(struct rtw_adapter *adapter, u8 *in_ie, u8 *out_ie,
        if (iEntry < 0)
                return ielength;
        else {
-               if (authmode == _WPA2_IE_ID_)
+               if (authmode == WLAN_EID_RSN)
                        ielength = rtw_append_pmkid(adapter, iEntry,
                                                    out_ie, ielength);
        }
index 8ed7b2f..624a9d7 100644 (file)
@@ -23,8 +23,6 @@
 #define is_wep_enc(alg) (alg == WLAN_CIPHER_SUITE_WEP40 || \
                         alg == WLAN_CIPHER_SUITE_WEP104)
 
-#define _WPA2_IE_ID_   0x30
-
 #define SHA256_MAC_LEN 32
 #define AES_BLOCK_SIZE 16
 #define AES_PRIV_SIZE (4 * 44)