diff options
| author | Karl Beldan <karl.beldan@rivierawaves.com> | 2013-03-25 11:26:57 -0400 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2013-03-25 14:19:35 -0400 |
| commit | 675a0b049abf6edf30f8dd84c5610b6edc2296c8 (patch) | |
| tree | 164178c576642dc1ec8ae70d9e26a5ec33472d26 /drivers/net/wireless/p54 | |
| parent | 219c38674c262378ec411dd8318ebfd199fbce8d (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 'drivers/net/wireless/p54')
| -rw-r--r-- | drivers/net/wireless/p54/fwio.c | 4 | ||||
| -rw-r--r-- | drivers/net/wireless/p54/main.c | 4 | ||||
| -rw-r--r-- | drivers/net/wireless/p54/txrx.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/p54/fwio.c b/drivers/net/wireless/p54/fwio.c index 9ba85106eec0..b3879fbf5368 100644 --- a/drivers/net/wireless/p54/fwio.c +++ b/drivers/net/wireless/p54/fwio.c | |||
| @@ -402,7 +402,7 @@ int p54_scan(struct p54_common *priv, u16 mode, u16 dwell) | |||
| 402 | struct p54_rssi_db_entry *rssi_data; | 402 | struct p54_rssi_db_entry *rssi_data; |
| 403 | unsigned int i; | 403 | unsigned int i; |
| 404 | void *entry; | 404 | void *entry; |
| 405 | __le16 freq = cpu_to_le16(priv->hw->conf.channel->center_freq); | 405 | __le16 freq = cpu_to_le16(priv->hw->conf.chandef.chan->center_freq); |
| 406 | 406 | ||
| 407 | skb = p54_alloc_skb(priv, P54_HDR_FLAG_CONTROL_OPSET, sizeof(*head) + | 407 | skb = p54_alloc_skb(priv, P54_HDR_FLAG_CONTROL_OPSET, sizeof(*head) + |
| 408 | 2 + sizeof(*iq_autocal) + sizeof(*body) + | 408 | 2 + sizeof(*iq_autocal) + sizeof(*body) + |
| @@ -532,7 +532,7 @@ int p54_scan(struct p54_common *priv, u16 mode, u16 dwell) | |||
| 532 | err: | 532 | err: |
| 533 | wiphy_err(priv->hw->wiphy, "frequency change to channel %d failed.\n", | 533 | wiphy_err(priv->hw->wiphy, "frequency change to channel %d failed.\n", |
| 534 | ieee80211_frequency_to_channel( | 534 | ieee80211_frequency_to_channel( |
| 535 | priv->hw->conf.channel->center_freq)); | 535 | priv->hw->conf.chandef.chan->center_freq)); |
| 536 | 536 | ||
| 537 | dev_kfree_skb_any(skb); | 537 | dev_kfree_skb_any(skb); |
| 538 | return -EINVAL; | 538 | return -EINVAL; |
diff --git a/drivers/net/wireless/p54/main.c b/drivers/net/wireless/p54/main.c index ee654a691f38..067e6f2fd050 100644 --- a/drivers/net/wireless/p54/main.c +++ b/drivers/net/wireless/p54/main.c | |||
| @@ -340,7 +340,7 @@ static int p54_config(struct ieee80211_hw *dev, u32 changed) | |||
| 340 | * TODO: Use the LM_SCAN_TRAP to determine the current | 340 | * TODO: Use the LM_SCAN_TRAP to determine the current |
| 341 | * operating channel. | 341 | * operating channel. |
| 342 | */ | 342 | */ |
| 343 | priv->curchan = priv->hw->conf.channel; | 343 | priv->curchan = priv->hw->conf.chandef.chan; |
| 344 | p54_reset_stats(priv); | 344 | p54_reset_stats(priv); |
| 345 | WARN_ON(p54_fetch_statistics(priv)); | 345 | WARN_ON(p54_fetch_statistics(priv)); |
| 346 | } | 346 | } |
| @@ -480,7 +480,7 @@ static void p54_bss_info_changed(struct ieee80211_hw *dev, | |||
| 480 | p54_set_edcf(priv); | 480 | p54_set_edcf(priv); |
| 481 | } | 481 | } |
| 482 | if (changed & BSS_CHANGED_BASIC_RATES) { | 482 | if (changed & BSS_CHANGED_BASIC_RATES) { |
| 483 | if (dev->conf.channel->band == IEEE80211_BAND_5GHZ) | 483 | if (dev->conf.chandef.chan->band == IEEE80211_BAND_5GHZ) |
| 484 | priv->basic_rate_mask = (info->basic_rates << 4); | 484 | priv->basic_rate_mask = (info->basic_rates << 4); |
| 485 | else | 485 | else |
| 486 | priv->basic_rate_mask = info->basic_rates; | 486 | priv->basic_rate_mask = info->basic_rates; |
diff --git a/drivers/net/wireless/p54/txrx.c b/drivers/net/wireless/p54/txrx.c index 12f0a34477f2..f95de0d16216 100644 --- a/drivers/net/wireless/p54/txrx.c +++ b/drivers/net/wireless/p54/txrx.c | |||
| @@ -354,13 +354,13 @@ static int p54_rx_data(struct p54_common *priv, struct sk_buff *skb) | |||
| 354 | rx_status->signal = p54_rssi_to_dbm(priv, hdr->rssi); | 354 | rx_status->signal = p54_rssi_to_dbm(priv, hdr->rssi); |
| 355 | if (hdr->rate & 0x10) | 355 | if (hdr->rate & 0x10) |
| 356 | rx_status->flag |= RX_FLAG_SHORTPRE; | 356 | rx_status->flag |= RX_FLAG_SHORTPRE; |
| 357 | if (priv->hw->conf.channel->band == IEEE80211_BAND_5GHZ) | 357 | if (priv->hw->conf.chandef.chan->band == IEEE80211_BAND_5GHZ) |
| 358 | rx_status->rate_idx = (rate < 4) ? 0 : rate - 4; | 358 | rx_status->rate_idx = (rate < 4) ? 0 : rate - 4; |
| 359 | else | 359 | else |
| 360 | rx_status->rate_idx = rate; | 360 | rx_status->rate_idx = rate; |
| 361 | 361 | ||
| 362 | rx_status->freq = freq; | 362 | rx_status->freq = freq; |
| 363 | rx_status->band = priv->hw->conf.channel->band; | 363 | rx_status->band = priv->hw->conf.chandef.chan->band; |
| 364 | rx_status->antenna = hdr->antenna; | 364 | rx_status->antenna = hdr->antenna; |
| 365 | 365 | ||
| 366 | tsf32 = le32_to_cpu(hdr->tsf32); | 366 | tsf32 = le32_to_cpu(hdr->tsf32); |
