mac80211: Self-protected management frames are not robust
authorThomas Pedersen <[email protected]>
Tue, 3 May 2011 23:57:14 +0000 (16:57 -0700)
committerJohn W. Linville <[email protected]>
Wed, 11 May 2011 18:44:48 +0000 (14:44 -0400)
They may contain encrypted information elements (as AMPE frames do)
but they are not encrypted.

Signed-off-by: Thomas Pedersen <[email protected]>
Signed-off-by: Javier Cardona <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
include/linux/ieee80211.h

index d527fb7bd67a6185c4a9d3f149667f3b337555da..b2eee5879883b3fbaf4d00ce28330320c03a9213 100644 (file)
@@ -1520,6 +1520,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_SELF_PROTECTED &&
                        *category != WLAN_CATEGORY_VENDOR_SPECIFIC;
        }