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
@@ -402,7 +402,7 @@ int p54_scan(struct p54_common *priv, u16 mode, u16 dwell)
|
||||
struct p54_rssi_db_entry *rssi_data;
|
||||
unsigned int i;
|
||||
void *entry;
|
||||
__le16 freq = cpu_to_le16(priv->hw->conf.channel->center_freq);
|
||||
__le16 freq = cpu_to_le16(priv->hw->conf.chandef.chan->center_freq);
|
||||
|
||||
skb = p54_alloc_skb(priv, P54_HDR_FLAG_CONTROL_OPSET, sizeof(*head) +
|
||||
2 + sizeof(*iq_autocal) + sizeof(*body) +
|
||||
@@ -532,7 +532,7 @@ int p54_scan(struct p54_common *priv, u16 mode, u16 dwell)
|
||||
err:
|
||||
wiphy_err(priv->hw->wiphy, "frequency change to channel %d failed.\n",
|
||||
ieee80211_frequency_to_channel(
|
||||
priv->hw->conf.channel->center_freq));
|
||||
priv->hw->conf.chandef.chan->center_freq));
|
||||
|
||||
dev_kfree_skb_any(skb);
|
||||
return -EINVAL;
|
||||
|
@@ -340,7 +340,7 @@ static int p54_config(struct ieee80211_hw *dev, u32 changed)
|
||||
* TODO: Use the LM_SCAN_TRAP to determine the current
|
||||
* operating channel.
|
||||
*/
|
||||
priv->curchan = priv->hw->conf.channel;
|
||||
priv->curchan = priv->hw->conf.chandef.chan;
|
||||
p54_reset_stats(priv);
|
||||
WARN_ON(p54_fetch_statistics(priv));
|
||||
}
|
||||
@@ -480,7 +480,7 @@ static void p54_bss_info_changed(struct ieee80211_hw *dev,
|
||||
p54_set_edcf(priv);
|
||||
}
|
||||
if (changed & BSS_CHANGED_BASIC_RATES) {
|
||||
if (dev->conf.channel->band == IEEE80211_BAND_5GHZ)
|
||||
if (dev->conf.chandef.chan->band == IEEE80211_BAND_5GHZ)
|
||||
priv->basic_rate_mask = (info->basic_rates << 4);
|
||||
else
|
||||
priv->basic_rate_mask = info->basic_rates;
|
||||
|
@@ -354,13 +354,13 @@ static int p54_rx_data(struct p54_common *priv, struct sk_buff *skb)
|
||||
rx_status->signal = p54_rssi_to_dbm(priv, hdr->rssi);
|
||||
if (hdr->rate & 0x10)
|
||||
rx_status->flag |= RX_FLAG_SHORTPRE;
|
||||
if (priv->hw->conf.channel->band == IEEE80211_BAND_5GHZ)
|
||||
if (priv->hw->conf.chandef.chan->band == IEEE80211_BAND_5GHZ)
|
||||
rx_status->rate_idx = (rate < 4) ? 0 : rate - 4;
|
||||
else
|
||||
rx_status->rate_idx = rate;
|
||||
|
||||
rx_status->freq = freq;
|
||||
rx_status->band = priv->hw->conf.channel->band;
|
||||
rx_status->band = priv->hw->conf.chandef.chan->band;
|
||||
rx_status->antenna = hdr->antenna;
|
||||
|
||||
tsf32 = le32_to_cpu(hdr->tsf32);
|
||||
|
Reference in New Issue
Block a user