]> git.baikalelectronics.ru Git - kernel.git/commit
[MAC80211]: don't send invalid QoS frames
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 14 Sep 2007 15:10:24 +0000 (11:10 -0400)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:49:26 +0000 (16:49 -0700)
commit83008cb62bc2b3aeae30d3b922288794eead02cf
tree5db640ccdfb46b84a6de16d84e18b1011d6ab452
parentabc80eb1bd80a05868beda2acbf0a3a89925409a
[MAC80211]: don't send invalid QoS frames

Kalle Valo noticed that QoS frames are sent with an invalid QoS control
field; this is because we increase the header length but neither
initialise the space nor actually have enough space in the header
structure for the QoS control field.

This patch fixes it by treating the QoS field specially and appending it
explicitly, initialising it to zero.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Michael Wu <flamingice@sourmilk.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mac80211/tx.c