aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/tx.c
diff options
context:
space:
mode:
authorKarl Beldan <karl.beldan@rivierawaves.com>2013-03-25 11:26:57 -0400
committerJohannes Berg <johannes.berg@intel.com>2013-03-25 14:19:35 -0400
commit675a0b049abf6edf30f8dd84c5610b6edc2296c8 (patch)
tree164178c576642dc1ec8ae70d9e26a5ec33472d26 /net/mac80211/tx.c
parent219c38674c262378ec411dd8318ebfd199fbce8d (diff)
mac80211: Use a cfg80211_chan_def in ieee80211_hw_conf_chan
Drivers that don't use chanctxes cannot perform VHT association because they still use a "backward compatibility" pair of {ieee80211_channel, nl80211_channel_type} in ieee80211_conf and ieee80211_local. Signed-off-by: Karl Beldan <karl.beldan@rivierawaves.com> [fix kernel-doc] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r--net/mac80211/tx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 4a83d8dea840..aad0bf5d8812 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -1709,7 +1709,7 @@ netdev_tx_t ieee80211_monitor_start_xmit(struct sk_buff *skb,
1709 if (chanctx_conf) 1709 if (chanctx_conf)
1710 chan = chanctx_conf->def.chan; 1710 chan = chanctx_conf->def.chan;
1711 else if (!local->use_chanctx) 1711 else if (!local->use_chanctx)
1712 chan = local->_oper_channel; 1712 chan = local->_oper_chandef.chan;
1713 else 1713 else
1714 goto fail_rcu; 1714 goto fail_rcu;
1715 1715
@@ -1843,7 +1843,7 @@ netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb,
1843 * This is the exception! WDS style interfaces are prohibited 1843 * This is the exception! WDS style interfaces are prohibited
1844 * when channel contexts are in used so this must be valid 1844 * when channel contexts are in used so this must be valid
1845 */ 1845 */
1846 band = local->hw.conf.channel->band; 1846 band = local->hw.conf.chandef.chan->band;
1847 break; 1847 break;
1848#ifdef CONFIG_MAC80211_MESH 1848#ifdef CONFIG_MAC80211_MESH
1849 case NL80211_IFTYPE_MESH_POINT: 1849 case NL80211_IFTYPE_MESH_POINT: