diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/wmi.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/wmi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index f7ec65f263a0..4c75c74be5e7 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c | |||
@@ -2281,9 +2281,9 @@ int ath10k_wmi_event_mgmt_rx(struct ath10k *ar, struct sk_buff *skb) | |||
2281 | * of mgmt rx. | 2281 | * of mgmt rx. |
2282 | */ | 2282 | */ |
2283 | if (channel >= 1 && channel <= 14) { | 2283 | if (channel >= 1 && channel <= 14) { |
2284 | status->band = IEEE80211_BAND_2GHZ; | 2284 | status->band = NL80211_BAND_2GHZ; |
2285 | } else if (channel >= 36 && channel <= 165) { | 2285 | } else if (channel >= 36 && channel <= 165) { |
2286 | status->band = IEEE80211_BAND_5GHZ; | 2286 | status->band = NL80211_BAND_5GHZ; |
2287 | } else { | 2287 | } else { |
2288 | /* Shouldn't happen unless list of advertised channels to | 2288 | /* Shouldn't happen unless list of advertised channels to |
2289 | * mac80211 has been changed. | 2289 | * mac80211 has been changed. |
@@ -2293,7 +2293,7 @@ int ath10k_wmi_event_mgmt_rx(struct ath10k *ar, struct sk_buff *skb) | |||
2293 | return 0; | 2293 | return 0; |
2294 | } | 2294 | } |
2295 | 2295 | ||
2296 | if (phy_mode == MODE_11B && status->band == IEEE80211_BAND_5GHZ) | 2296 | if (phy_mode == MODE_11B && status->band == NL80211_BAND_5GHZ) |
2297 | ath10k_dbg(ar, ATH10K_DBG_MGMT, "wmi mgmt rx 11b (CCK) on 5GHz\n"); | 2297 | ath10k_dbg(ar, ATH10K_DBG_MGMT, "wmi mgmt rx 11b (CCK) on 5GHz\n"); |
2298 | 2298 | ||
2299 | sband = &ar->mac.sbands[status->band]; | 2299 | sband = &ar->mac.sbands[status->band]; |
@@ -2352,7 +2352,7 @@ static int freq_to_idx(struct ath10k *ar, int freq) | |||
2352 | struct ieee80211_supported_band *sband; | 2352 | struct ieee80211_supported_band *sband; |
2353 | int band, ch, idx = 0; | 2353 | int band, ch, idx = 0; |
2354 | 2354 | ||
2355 | for (band = IEEE80211_BAND_2GHZ; band < IEEE80211_NUM_BANDS; band++) { | 2355 | for (band = NL80211_BAND_2GHZ; band < NUM_NL80211_BANDS; band++) { |
2356 | sband = ar->hw->wiphy->bands[band]; | 2356 | sband = ar->hw->wiphy->bands[band]; |
2357 | if (!sband) | 2357 | if (!sband) |
2358 | continue; | 2358 | continue; |