mac80211: avoid duplicate TX path station lookup
authorJohannes Berg <johannes.berg@intel.com>
Fri, 20 Mar 2015 13:18:27 +0000 (14:18 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 20 Mar 2015 15:27:36 +0000 (16:27 +0100)
commit7c10770f995820ec1ed26c761b1583bfc4d88872
tree5934c5a2448bf0765c93de85c8f82ffaa9f6bd1e
parente33f5569aafadfa68aea32457a9246818d3dfe48
mac80211: avoid duplicate TX path station lookup

Instead of looking up the destination station twice in the TX path
(first to build the header, and then for control processing), save
it when building the header and use it later in the TX path.

To avoid having to look up the station in the many callers, allow
those to pass %NULL which keeps the existing lookup.

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