diff options
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c')
| -rw-r--r-- | drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c b/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c index 93a689583dff..14743c37d976 100644 --- a/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c +++ b/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c | |||
| @@ -308,7 +308,7 @@ static int iwl_init_channel_map(struct device *dev, const struct iwl_cfg *cfg, | |||
| 308 | 308 | ||
| 309 | channel->hw_value = nvm_chan[ch_idx]; | 309 | channel->hw_value = nvm_chan[ch_idx]; |
| 310 | channel->band = (ch_idx < num_2ghz_channels) ? | 310 | channel->band = (ch_idx < num_2ghz_channels) ? |
| 311 | IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ; | 311 | NL80211_BAND_2GHZ : NL80211_BAND_5GHZ; |
| 312 | channel->center_freq = | 312 | channel->center_freq = |
| 313 | ieee80211_channel_to_frequency( | 313 | ieee80211_channel_to_frequency( |
| 314 | channel->hw_value, channel->band); | 314 | channel->hw_value, channel->band); |
| @@ -320,7 +320,7 @@ static int iwl_init_channel_map(struct device *dev, const struct iwl_cfg *cfg, | |||
| 320 | * is not used in mvm, and is used for backwards compatibility | 320 | * is not used in mvm, and is used for backwards compatibility |
| 321 | */ | 321 | */ |
| 322 | channel->max_power = IWL_DEFAULT_MAX_TX_POWER; | 322 | channel->max_power = IWL_DEFAULT_MAX_TX_POWER; |
| 323 | is_5ghz = channel->band == IEEE80211_BAND_5GHZ; | 323 | is_5ghz = channel->band == NL80211_BAND_5GHZ; |
| 324 | 324 | ||
| 325 | /* don't put limitations in case we're using LAR */ | 325 | /* don't put limitations in case we're using LAR */ |
| 326 | if (!lar_supported) | 326 | if (!lar_supported) |
| @@ -439,22 +439,22 @@ static void iwl_init_sbands(struct device *dev, const struct iwl_cfg *cfg, | |||
| 439 | &ch_section[NVM_CHANNELS_FAMILY_8000], | 439 | &ch_section[NVM_CHANNELS_FAMILY_8000], |
| 440 | lar_supported); | 440 | lar_supported); |
| 441 | 441 | ||
| 442 | sband = &data->bands[IEEE80211_BAND_2GHZ]; | 442 | sband = &data->bands[NL80211_BAND_2GHZ]; |
| 443 | sband->band = IEEE80211_BAND_2GHZ; | 443 | sband->band = NL80211_BAND_2GHZ; |
| 444 | sband->bitrates = &iwl_cfg80211_rates[RATES_24_OFFS]; | 444 | sband->bitrates = &iwl_cfg80211_rates[RATES_24_OFFS]; |
| 445 | sband->n_bitrates = N_RATES_24; | 445 | sband->n_bitrates = N_RATES_24; |
| 446 | n_used += iwl_init_sband_channels(data, sband, n_channels, | 446 | n_used += iwl_init_sband_channels(data, sband, n_channels, |
| 447 | IEEE80211_BAND_2GHZ); | 447 | NL80211_BAND_2GHZ); |
| 448 | iwl_init_ht_hw_capab(cfg, data, &sband->ht_cap, IEEE80211_BAND_2GHZ, | 448 | iwl_init_ht_hw_capab(cfg, data, &sband->ht_cap, NL80211_BAND_2GHZ, |
| 449 | tx_chains, rx_chains); | 449 | tx_chains, rx_chains); |
| 450 | 450 | ||
| 451 | sband = &data->bands[IEEE80211_BAND_5GHZ]; | 451 | sband = &data->bands[NL80211_BAND_5GHZ]; |
| 452 | sband->band = IEEE80211_BAND_5GHZ; | 452 | sband->band = NL80211_BAND_5GHZ; |
| 453 | sband->bitrates = &iwl_cfg80211_rates[RATES_52_OFFS]; | 453 | sband->bitrates = &iwl_cfg80211_rates[RATES_52_OFFS]; |
| 454 | sband->n_bitrates = N_RATES_52; | 454 | sband->n_bitrates = N_RATES_52; |
| 455 | n_used += iwl_init_sband_channels(data, sband, n_channels, | 455 | n_used += iwl_init_sband_channels(data, sband, n_channels, |
| 456 | IEEE80211_BAND_5GHZ); | 456 | NL80211_BAND_5GHZ); |
| 457 | iwl_init_ht_hw_capab(cfg, data, &sband->ht_cap, IEEE80211_BAND_5GHZ, | 457 | iwl_init_ht_hw_capab(cfg, data, &sband->ht_cap, NL80211_BAND_5GHZ, |
| 458 | tx_chains, rx_chains); | 458 | tx_chains, rx_chains); |
| 459 | if (data->sku_cap_11ac_enable && !iwlwifi_mod_params.disable_11ac) | 459 | if (data->sku_cap_11ac_enable && !iwlwifi_mod_params.disable_11ac) |
| 460 | iwl_init_vht_hw_capab(cfg, data, &sband->vht_cap, | 460 | iwl_init_vht_hw_capab(cfg, data, &sband->vht_cap, |
| @@ -781,7 +781,7 @@ iwl_parse_nvm_mcc_info(struct device *dev, const struct iwl_cfg *cfg, | |||
| 781 | struct ieee80211_regdomain *regd; | 781 | struct ieee80211_regdomain *regd; |
| 782 | int size_of_regd; | 782 | int size_of_regd; |
| 783 | struct ieee80211_reg_rule *rule; | 783 | struct ieee80211_reg_rule *rule; |
| 784 | enum ieee80211_band band; | 784 | enum nl80211_band band; |
| 785 | int center_freq, prev_center_freq = 0; | 785 | int center_freq, prev_center_freq = 0; |
| 786 | int valid_rules = 0; | 786 | int valid_rules = 0; |
| 787 | bool new_rule; | 787 | bool new_rule; |
| @@ -809,7 +809,7 @@ iwl_parse_nvm_mcc_info(struct device *dev, const struct iwl_cfg *cfg, | |||
| 809 | for (ch_idx = 0; ch_idx < num_of_ch; ch_idx++) { | 809 | for (ch_idx = 0; ch_idx < num_of_ch; ch_idx++) { |
| 810 | ch_flags = (u16)__le32_to_cpup(channels + ch_idx); | 810 | ch_flags = (u16)__le32_to_cpup(channels + ch_idx); |
| 811 | band = (ch_idx < NUM_2GHZ_CHANNELS) ? | 811 | band = (ch_idx < NUM_2GHZ_CHANNELS) ? |
| 812 | IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ; | 812 | NL80211_BAND_2GHZ : NL80211_BAND_5GHZ; |
| 813 | center_freq = ieee80211_channel_to_frequency(nvm_chan[ch_idx], | 813 | center_freq = ieee80211_channel_to_frequency(nvm_chan[ch_idx], |
| 814 | band); | 814 | band); |
| 815 | new_rule = false; | 815 | new_rule = false; |
| @@ -857,7 +857,7 @@ iwl_parse_nvm_mcc_info(struct device *dev, const struct iwl_cfg *cfg, | |||
| 857 | IWL_DEBUG_DEV(dev, IWL_DL_LAR, | 857 | IWL_DEBUG_DEV(dev, IWL_DL_LAR, |
| 858 | "Ch. %d [%sGHz] %s%s%s%s%s%s%s%s%s(0x%02x): Ad-Hoc %ssupported\n", | 858 | "Ch. %d [%sGHz] %s%s%s%s%s%s%s%s%s(0x%02x): Ad-Hoc %ssupported\n", |
| 859 | center_freq, | 859 | center_freq, |
| 860 | band == IEEE80211_BAND_5GHZ ? "5.2" : "2.4", | 860 | band == NL80211_BAND_5GHZ ? "5.2" : "2.4", |
| 861 | CHECK_AND_PRINT_I(VALID), | 861 | CHECK_AND_PRINT_I(VALID), |
| 862 | CHECK_AND_PRINT_I(ACTIVE), | 862 | CHECK_AND_PRINT_I(ACTIVE), |
| 863 | CHECK_AND_PRINT_I(RADAR), | 863 | CHECK_AND_PRINT_I(RADAR), |
