]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Build TX radiotap header dynamically
authorHelmut Schaa <helmut.schaa@googlemail.com>
Tue, 11 Oct 2011 16:08:54 +0000 (18:08 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 14 Oct 2011 18:48:14 +0000 (14:48 -0400)
commitad0610382735514b05b5a1080ff9d167d727712e
tree4330d321d7a62f50f5ec7e7f14e4f258b721e7a7
parent0e36aff0e06fb7c40c9f0d14076e775cfd3418f2
mac80211: Build TX radiotap header dynamically

Get rid of the ieee80211_tx_status_rtap_hdr struct and instead build the
rtap header dynamically. This makes it easier to extend the rtap header
generation in the future.

Add ieee80211_tx_radiotap_len to calculate the expected size of the
rtap header before generating it. Since we can't check if the rtap
header fits into the requested headroom during compile time anymore
add a WARN_ON_ONCE.

Also move the actual rtap header generation into its own function.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ieee80211_i.h
net/mac80211/main.c
net/mac80211/status.c