diff options
author | David S. Miller <davem@davemloft.net> | 2015-01-26 17:32:24 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-26 17:32:24 -0800 |
commit | 7d63585bf0a6c99382f97a5af71c5b5547fb58a4 (patch) | |
tree | b9e69e379e8f664a7715191da2472f16fa8f7c41 /net/wireless/util.c | |
parent | df4d92549f23e1c037e83323aff58a21b3de7fe0 (diff) | |
parent | 0fa7b39131576dd1baa6ca17fca53c65d7f62249 (diff) |
Merge tag 'mac80211-for-davem-2015-01-23' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211
Another set of last-minute fixes:
* fix station double-removal when suspending while associating
* fix the HT (802.11n) header length calculation
* fix the CCK radiotap flag used for monitoring, a pretty
old regression but a simple one-liner
* fix per-station group-key handling
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/wireless/util.c')
-rw-r--r-- | net/wireless/util.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/wireless/util.c b/net/wireless/util.c index d0ac795445b7..5488c3662f7d 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c @@ -308,6 +308,12 @@ unsigned int __attribute_const__ ieee80211_hdrlen(__le16 fc) goto out; } + if (ieee80211_is_mgmt(fc)) { + if (ieee80211_has_order(fc)) + hdrlen += IEEE80211_HT_CTL_LEN; + goto out; + } + if (ieee80211_is_ctl(fc)) { /* * ACK and CTS are 10 bytes, all others 16. To see how |