staging: rtl8723au: Remove obsolete rtw_get_wpa{2,}_ie23a() functions
authorJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 15 Apr 2014 17:44:09 +0000 (19:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Apr 2014 18:04:02 +0000 (11:04 -0700)
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/include/ieee80211.h

index f3904ec9391772c67cd0f7f78ef72f701e1a706c..a28b81667993633c01ed3a105f3aec6e5b7b8624 100644 (file)
@@ -460,60 +460,6 @@ int rtw_generate_ie23a(struct registry_priv *pregistrypriv)
        return sz;
 }
 
-unsigned char *rtw_get_wpa_ie23a(unsigned char *pie, int *wpa_ie_len, int limit)
-{
-       int len;
-       u16 val16;
-       unsigned char wpa_oui_type[] = {0x00, 0x50, 0xf2, 0x01};
-       u8 *pbuf = pie;
-       int limit_new = limit;
-
-       while(1) {
-               pbuf = rtw_get_ie23a(pbuf, WLAN_EID_VENDOR_SPECIFIC,
-                                    &len, limit_new);
-
-               if (pbuf) {
-                       /* check if oui matches... */
-                       if (memcmp((pbuf + 2), wpa_oui_type,
-                                  sizeof(wpa_oui_type))) {
-                               goto check_next_ie;
-                       }
-
-                       /* check version... */
-                       memcpy((u8 *)&val16, (pbuf + 6), sizeof(val16));
-
-                       val16 = le16_to_cpu(val16);
-                       if (val16 != 0x0001)
-                               goto check_next_ie;
-
-                       *wpa_ie_len = *(pbuf + 1);
-
-                       return pbuf;
-               } else {
-                       *wpa_ie_len = 0;
-                       return NULL;
-               }
-
-check_next_ie:
-
-               limit_new = limit - (pbuf - pie) - 2 - len;
-
-               if (limit_new <= 0)
-                       break;
-
-               pbuf += (2 + len);
-       }
-
-       *wpa_ie_len = 0;
-
-       return NULL;
-}
-
-unsigned char *rtw_get_wpa2_ie23a(unsigned char *pie, int *rsn_ie_len, int limit)
-{
-       return rtw_get_ie23a(pie, _WPA2_IE_ID_, rsn_ie_len, limit);
-}
-
 int rtw_get_wpa_cipher_suite23a(const u8 *s)
 {
        if (!memcmp(s, WPA_CIPHER_SUITE_NONE23A, WPA_SELECTOR_LEN))
index b82f3150cfcf4612202bea8f52bd742bf7f4c97d..e1117382e8fe2f52adc15afb9d80acba58e4519c 100644 (file)
@@ -537,8 +537,6 @@ int rtw_ies_remove_ie23a(u8 *ies, uint *ies_len, uint offset, u8 eid, u8 *oui, u
 
 void rtw_set_supported_rate23a(u8* SupportedRates, uint mode) ;
 
-unsigned char *rtw_get_wpa_ie23a(unsigned char *pie, int *wpa_ie_len, int limit);
-unsigned char *rtw_get_wpa2_ie23a(unsigned char *pie, int *rsn_ie_len, int limit);
 int rtw_get_wpa_cipher_suite23a(const u8 *s);
 int rtw_get_wpa2_cipher_suite23a(const u8 *s);
 int rtw_parse_wpa_ie23a(const u8* wpa_ie, int wpa_ie_len, int *group_cipher, int *pairwise_cipher, int *is_8021x);