mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 12:44:11 +08:00
wireless: add WNM action frame categories
Add the WNM and unprotected WNM categories and mark the latter as not robust. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
a4288289f5
commit
af61426187
@ -1932,6 +1932,8 @@ enum ieee80211_category {
|
||||
WLAN_CATEGORY_HT = 7,
|
||||
WLAN_CATEGORY_SA_QUERY = 8,
|
||||
WLAN_CATEGORY_PROTECTED_DUAL_OF_ACTION = 9,
|
||||
WLAN_CATEGORY_WNM = 10,
|
||||
WLAN_CATEGORY_WNM_UNPROTECTED = 11,
|
||||
WLAN_CATEGORY_TDLS = 12,
|
||||
WLAN_CATEGORY_MESH_ACTION = 13,
|
||||
WLAN_CATEGORY_MULTIHOP_ACTION = 14,
|
||||
@ -2396,6 +2398,7 @@ static inline bool _ieee80211_is_robust_mgmt_frame(struct ieee80211_hdr *hdr)
|
||||
category = ((u8 *) hdr) + 24;
|
||||
return *category != WLAN_CATEGORY_PUBLIC &&
|
||||
*category != WLAN_CATEGORY_HT &&
|
||||
*category != WLAN_CATEGORY_WNM_UNPROTECTED &&
|
||||
*category != WLAN_CATEGORY_SELF_PROTECTED &&
|
||||
*category != WLAN_CATEGORY_UNPROT_DMG &&
|
||||
*category != WLAN_CATEGORY_VHT &&
|
||||
|
Loading…
Reference in New Issue
Block a user