mac80211: Self-protected management frames are not robust
authorThomas Pedersen <thomas@cozybit.com>
Tue, 3 May 2011 23:57:14 +0000 (23:57 +0000)
committerChristian Lamparter <chunkeey@googlemail.com>
Sat, 28 May 2011 16:39:15 +0000 (18:39 +0200)
They may contain encrypted information elements (as AMPE frames do)
but they are not encrypted.

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
include/linux/ieee80211.h

index 45b437423b4137aafa6e37498cd3f21d30a4d10c..4a9a25f5525dd32126ce76ca209bbc157c2c6438 100644 (file)
@@ -1550,6 +1550,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;
        }