staging: rtl8723au: Remove obsolete rtw_action_frame_parse23a()
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 21 May 2014 07:38:33 +0000 (09:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 07:27:52 +0000 (16:27 +0900)
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 88ef166f66478963603f2c94847581b9570c5dfa..adb86a54bdb261326aa626e7e500986834244d71 100644 (file)
@@ -1041,37 +1041,6 @@ u16 rtw_mcs_rate23a(u8 rf_type, u8 bw_40MHz, u8 short_GI_20, u8 short_GI_40,
        return max_rate;
 }
 
-int rtw_action_frame_parse23a(const u8 *frame, u32 frame_len, u8* category,
-                          u8 *action)
-{
-       const u8 *frame_body = frame + sizeof(struct ieee80211_hdr_3addr);
-       u16 fc;
-       u8 c, a = 0;
-
-       fc = le16_to_cpu(((struct ieee80211_hdr_3addr *)frame)->frame_control);
-
-       if ((fc & (IEEE80211_FCTL_FTYPE|IEEE80211_FCTL_STYPE)) !=
-           (IEEE80211_FTYPE_MGMT|IEEE80211_STYPE_ACTION)) {
-               return false;
-       }
-
-       c = frame_body[0];
-
-       switch (c) {
-       case WLAN_CATEGORY_VENDOR_SPECIFIC: /* vendor-specific */
-               break;
-       default:
-               a = frame_body[1];
-       }
-
-       if (category)
-               *category = c;
-       if (action)
-               *action = a;
-
-       return true;
-}
-
 static const char *_action_public_str23a[] = {
        "ACT_PUB_BSSCOEXIST",
        "ACT_PUB_DSE_ENABLE",
index 2a9a3d2dbc0193b9b3cc3c0b09e66773704facf2..e69f1cc67883e1d073203359b6c7bc75112526d5 100644 (file)
@@ -460,7 +460,6 @@ void rtw_get_bcn_info23a(struct wlan_network *pnetwork);
 
 u16 rtw_mcs_rate23a(u8 rf_type, u8 bw_40MHz, u8 short_GI_20, u8 short_GI_40, unsigned char * MCS_rate);
 
-int rtw_action_frame_parse23a(const u8 *frame, u32 frame_len, u8* category, u8 *action);
 const char *action_public_str23a(u8 action);
 
 #endif /* IEEE80211_H */