mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-10 00:04:17 +00:00
switch to common ieee80211 headers
This patch switches to <linux/ieee80211.h> and <net/cfg80211.h> and deletes a lot of duplicate definitions plus many unused ones. rtw_ieee80211_hdr_3addr_qos is duplicate of ieee80211_qos_hdr. rtw_ieee80211_spectrum_mgmt_actioncode is a duplication of ieee80211_spectrum_mgmt_actioncode rtw_ieee80211_hdr_3addr is duplicate of ieee80211_hdr_3addr. rtw_ieee80211_hdr is duplicate of ieee80211_hdr rtw_ieee80211s_hdr is duplicate of ieee80211s_hdr rtw_ieee80211_rann_ie is duplicate of ieee80211_rann_ie from include/linux/ieee80211.h. Link: https://lore.kernel.org/r/20200906133236.556427-1-insafonov@gmail.com Link: https://lore.kernel.org/r/20200609194848.166130-1-pterjan@google.com Also port 5cd8396540b5f7ef7c3ac499e967dd4deb8e9930 bbfe286b07d8282f4957dee692e85b3bd60de770 d87f574d6923c546e7d0f75ce0581436376b98a6 36eb7d108e8de3097f373eb8629d8739d4fa3e74 1b9e6df5169b36b3242e2e28c39f9bbfc01863e8 d94971aa97670d400371baef5d9d5cf6dc8ea2b5
This commit is contained in:
@@ -2775,12 +2775,12 @@ u16 rtw_mcs_rate(u8 rf_type, u8 bw_40MHz, u8 short_GI, unsigned char *MCS_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);
|
||||
const u8 *frame_body = frame + sizeof(struct ieee80211_hdr_3addr);
|
||||
u16 fc;
|
||||
u8 c;
|
||||
u8 a = ACT_PUBLIC_MAX;
|
||||
|
||||
fc = le16_to_cpu(((struct rtw_ieee80211_hdr_3addr *)frame)->frame_ctl);
|
||||
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)
|
||||
@@ -2804,29 +2804,3 @@ int rtw_action_frame_parse(const u8 *frame, u32 frame_len, u8 *category, u8 *act
|
||||
return _TRUE;
|
||||
}
|
||||
|
||||
static const char *_action_public_str[] = {
|
||||
"ACT_PUB_BSSCOEXIST",
|
||||
"ACT_PUB_DSE_ENABLE",
|
||||
"ACT_PUB_DSE_DEENABLE",
|
||||
"ACT_PUB_DSE_REG_LOCATION",
|
||||
"ACT_PUB_EXT_CHL_SWITCH",
|
||||
"ACT_PUB_DSE_MSR_REQ",
|
||||
"ACT_PUB_DSE_MSR_RPRT",
|
||||
"ACT_PUB_MP",
|
||||
"ACT_PUB_DSE_PWR_CONSTRAINT",
|
||||
"ACT_PUB_VENDOR",
|
||||
"ACT_PUB_GAS_INITIAL_REQ",
|
||||
"ACT_PUB_GAS_INITIAL_RSP",
|
||||
"ACT_PUB_GAS_COMEBACK_REQ",
|
||||
"ACT_PUB_GAS_COMEBACK_RSP",
|
||||
"ACT_PUB_TDLS_DISCOVERY_RSP",
|
||||
"ACT_PUB_LOCATION_TRACK",
|
||||
"ACT_PUB_RSVD",
|
||||
};
|
||||
|
||||
const char *action_public_str(u8 action)
|
||||
{
|
||||
action = (action >= ACT_PUBLIC_MAX) ? ACT_PUBLIC_MAX : action;
|
||||
return _action_public_str[action];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user