diff options
author | John W. Linville <linville@tuxdriver.com> | 2013-01-28 19:54:03 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-01-28 19:54:03 +0100 |
commit | 9ebea3829fac7505e0cd2642fbd13cfa9c038831 (patch) | |
tree | ed690568a27b7231b8a507e8ba07c1ae34868e5c /net/mac80211/tx.c | |
parent | ath9k_hw: remove a useless WARN_ON (diff) | |
parent | mwifiex: fix typo in PCIe adapter NULL check (diff) | |
download | linux-9ebea3829fac7505e0cd2642fbd13cfa9c038831.tar.xz linux-9ebea3829fac7505e0cd2642fbd13cfa9c038831.zip |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
Conflicts:
drivers/net/wireless/ath/ath9k/main.c
drivers/net/wireless/iwlwifi/dvm/tx.c
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 0d7381679a5c..f32d68186dbc 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -1673,10 +1673,13 @@ netdev_tx_t ieee80211_monitor_start_xmit(struct sk_buff *skb, chanctx_conf = rcu_dereference(tmp_sdata->vif.chanctx_conf); } - if (!chanctx_conf) - goto fail_rcu; - chan = chanctx_conf->def.chan; + if (chanctx_conf) + chan = chanctx_conf->def.chan; + else if (!local->use_chanctx) + chan = local->_oper_channel; + else + goto fail_rcu; /* * Frame injection is not allowed if beaconing is not allowed |