mac80211: fix monitor mode tx radiotap header handling
commit17ad353b8d9843731258b5d23556667b764939e9
authorFelix Fietkau <nbd@openwrt.org>
Sun, 31 Jan 2010 20:56:25 +0000 (31 21:56 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 1 Feb 2010 20:40:08 +0000 (1 15:40 -0500)
tree26c84253888ded3b008c7b1d8c29763646b673bf
parent4754ffd68bc14de8db01451c49bb07adebe1e422
mac80211: fix monitor mode tx radiotap header handling

When an injected frame gets buffered for a powersave STA or filtered
and retransmitted, mac80211 attempts to parse the radiotap header
again, which doesn't work because it's gone at that point.
This patch adds a new flag for checking the availability of a radiotap
header, so that it only attempts to parse it once, reusing the tx info
on the next call to ieee80211_tx().
This fixes severe issues with rekeying in AP mode.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Cc: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/mac80211.h
net/mac80211/tx.c