mac80211: optimize tx status processing
authorFelix Fietkau <nbd@openwrt.org>
Thu, 11 Mar 2010 15:28:24 +0000 (16:28 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Mar 2010 19:31:59 +0000 (15:31 -0400)
commiteaf55530c94cb7adcd320c28ed6c7d463c9a3727
tree0071ca8d20a17233cced7448f46b4888d6555b51
parent819cf15e7cde0a1b0fa4f831478f792434f55679
mac80211: optimize tx status processing

When a cooked monitor interface is active, ieee80211_tx_status()
generates a radiotap header for every single frame, even if it wasn't
injected and thus won't be sent to a monitor interface.
This patch reduces cpu utilization by moving the cooked monitor check a
bit earlier, before it generates the rtap header.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/status.c