diff options
author | Johannes Berg <johannes.berg@intel.com> | 2014-11-09 11:50:09 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-11-19 12:44:35 -0500 |
commit | 73c4e195e6396eea04e11f88dc0336e1bc3c8e66 (patch) | |
tree | 3e66d96368ba197c30139f07e8b7964e176a4b8c /net/mac80211/cfg.c | |
parent | 1277b4a9f531e84e26f9e0210c1801b0c0bf81ca (diff) |
mac80211: move skb info band assignment out
Instead of passing the band as a parameter to ieee80211_xmit()
and ieee80211_tx(), move it outside of the two functions while
making sure info->band is set up before calling them.
This removes the parameter and simplifies the follow commit.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index a43a14863ecb..3ecbf68dadf1 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -3514,6 +3514,7 @@ static int ieee80211_probe_client(struct wiphy *wiphy, struct net_device *dev, | |||
3514 | 3514 | ||
3515 | info->flags |= IEEE80211_TX_CTL_REQ_TX_STATUS | | 3515 | info->flags |= IEEE80211_TX_CTL_REQ_TX_STATUS | |
3516 | IEEE80211_TX_INTFL_NL80211_FRAME_TX; | 3516 | IEEE80211_TX_INTFL_NL80211_FRAME_TX; |
3517 | info->band = band; | ||
3517 | 3518 | ||
3518 | skb_set_queue_mapping(skb, IEEE80211_AC_VO); | 3519 | skb_set_queue_mapping(skb, IEEE80211_AC_VO); |
3519 | skb->priority = 7; | 3520 | skb->priority = 7; |
@@ -3521,7 +3522,7 @@ static int ieee80211_probe_client(struct wiphy *wiphy, struct net_device *dev, | |||
3521 | nullfunc->qos_ctrl = cpu_to_le16(7); | 3522 | nullfunc->qos_ctrl = cpu_to_le16(7); |
3522 | 3523 | ||
3523 | local_bh_disable(); | 3524 | local_bh_disable(); |
3524 | ieee80211_xmit(sdata, skb, band); | 3525 | ieee80211_xmit(sdata, skb); |
3525 | local_bh_enable(); | 3526 | local_bh_enable(); |
3526 | rcu_read_unlock(); | 3527 | rcu_read_unlock(); |
3527 | 3528 | ||