mac80211: skip radiotap space calculation if no monitor exists
authorHelmut Schaa <helmut.schaa@googlemail.com>
Wed, 5 Dec 2012 13:36:12 +0000 (14:36 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 5 Dec 2012 15:54:59 +0000 (16:54 +0100)
The radiotap header length "needed_headroom" is only required if we're
sending the skb to a monitor interface. Hence, move the calculation a
bit later so the calculation can be skipped if no monitor interface is
present.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

No differences found