mac80211: mesh: avoid pointless station lookup
authorJohannes Berg <johannes.berg@intel.com>
Fri, 20 Mar 2015 15:01:52 +0000 (16:01 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 20 Mar 2015 15:27:36 +0000 (16:27 +0100)
commite33f5569aafadfa68aea32457a9246818d3dfe48
treef6f1c3c220af922320ece867a35ec4a0d69c814c
parenta8d15ff0050aef96a14a185b5138f01f98109b40
mac80211: mesh: avoid pointless station lookup

In ieee80211_build_hdr(), the station is looked up to build the
header correctly (QoS field) and to check for authorization. For
mesh, authorization isn't checked here, and QoS capability is
mandatory, so the station lookup can be avoided.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tx.c