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>
This commit is contained in:

committed by
Johannes Berg

parent
219c38674c
commit
675a0b049a
@@ -1709,7 +1709,7 @@ netdev_tx_t ieee80211_monitor_start_xmit(struct sk_buff *skb,
|
||||
if (chanctx_conf)
|
||||
chan = chanctx_conf->def.chan;
|
||||
else if (!local->use_chanctx)
|
||||
chan = local->_oper_channel;
|
||||
chan = local->_oper_chandef.chan;
|
||||
else
|
||||
goto fail_rcu;
|
||||
|
||||
@@ -1843,7 +1843,7 @@ netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb,
|
||||
* This is the exception! WDS style interfaces are prohibited
|
||||
* when channel contexts are in used so this must be valid
|
||||
*/
|
||||
band = local->hw.conf.channel->band;
|
||||
band = local->hw.conf.chandef.chan->band;
|
||||
break;
|
||||
#ifdef CONFIG_MAC80211_MESH
|
||||
case NL80211_IFTYPE_MESH_POINT:
|
||||
|
Reference in New Issue
Block a user