staging: rtl8723au: Remove obsolete rtw_action_frame_parse23a()
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ea2ea44079
commit
96df4b65f3
|
@ -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",
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue