aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2015-03-20 09:18:27 -0400
committerJohannes Berg <johannes.berg@intel.com>2015-03-20 11:27:36 -0400
commit7c10770f995820ec1ed26c761b1583bfc4d88872 (patch)
tree5934c5a2448bf0765c93de85c8f82ffaa9f6bd1e /net/mac80211/cfg.c
parente33f5569aafadfa68aea32457a9246818d3dfe48 (diff)
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>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 57b71432ec65..0aaf8b04a738 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -3576,7 +3576,7 @@ static int ieee80211_probe_client(struct wiphy *wiphy, struct net_device *dev,
3576 nullfunc->qos_ctrl = cpu_to_le16(7); 3576 nullfunc->qos_ctrl = cpu_to_le16(7);
3577 3577
3578 local_bh_disable(); 3578 local_bh_disable();
3579 ieee80211_xmit(sdata, skb); 3579 ieee80211_xmit(sdata, sta, skb);
3580 local_bh_enable(); 3580 local_bh_enable();
3581 rcu_read_unlock(); 3581 rcu_read_unlock();
3582 3582