staging: r8188eu: remove rtw_action_frame_parse()
authorMichael Straube <straube.linux@gmail.com>
Wed, 22 Sep 2021 20:04:09 +0000 (22:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Sep 2021 15:29:42 +0000 (17:29 +0200)
Function rtw_action_frame_parse() is not used, remove it.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20210922200420.9693-37-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_ieee80211.c
drivers/staging/r8188eu/include/ieee80211.h

index 29bf3bdb598ba213b46cdca17ed0b426b1d9b6a8..bc7ab84c0e0512a9d1d2c685a42f9a3327124a54 100644 (file)
@@ -1339,32 +1339,3 @@ u16 rtw_mcs_rate(u8 rf_type, u8 bw_40MHz, u8 short_GI_20, u8 short_GI_40, unsign
        }
        return max_rate;
 }
-
-int rtw_action_frame_parse(const u8 *frame, u32 frame_len, u8 *category, u8 *action)
-{
-       const u8 *frame_body = frame + sizeof(struct rtw_ieee80211_hdr_3addr);
-       u16 fc;
-       u8 c, a = 0;
-
-       fc = le16_to_cpu(((struct rtw_ieee80211_hdr_3addr *)frame)->frame_ctl);
-
-       if ((fc & (RTW_IEEE80211_FCTL_FTYPE | RTW_IEEE80211_FCTL_STYPE)) !=
-           (RTW_IEEE80211_FTYPE_MGMT | RTW_IEEE80211_STYPE_ACTION))
-               return false;
-
-       c = frame_body[0];
-
-       switch (c) {
-       case RTW_WLAN_CATEGORY_P2P: /* vendor-specific */
-               break;
-       default:
-               a = frame_body[1];
-       }
-
-       if (category)
-               *category = c;
-       if (action)
-               *action = a;
-
-       return true;
-}
index af1e074e0bdfe912b84527dfc9ecb4bc47820147..36c95adb9d8545c9a0aa4130d50d51e5952ead11 100644 (file)
@@ -1169,7 +1169,4 @@ void rtw_macaddr_cfg(u8 *mac_addr);
 u16 rtw_mcs_rate(u8 rf_type, u8 bw_40MHz, u8 short_GI_20, u8 short_GI_40,
                 unsigned char *MCS_rate);
 
-int rtw_action_frame_parse(const u8 *frame, u32 frame_len, u8 *category,
-                          u8 *action);
-
 #endif /* IEEE80211_H */