aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlegacy/4965-mac.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/intel/iwlegacy/4965-mac.c')
-rw-r--r--drivers/net/wireless/intel/iwlegacy/4965-mac.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/drivers/net/wireless/intel/iwlegacy/4965-mac.c b/drivers/net/wireless/intel/iwlegacy/4965-mac.c
index f9ed48070e17..a91d170a614b 100644
--- a/drivers/net/wireless/intel/iwlegacy/4965-mac.c
+++ b/drivers/net/wireless/intel/iwlegacy/4965-mac.c
@@ -457,7 +457,7 @@ il4965_rxq_stop(struct il_priv *il)
457} 457}
458 458
459int 459int
460il4965_hwrate_to_mac80211_idx(u32 rate_n_flags, enum ieee80211_band band) 460il4965_hwrate_to_mac80211_idx(u32 rate_n_flags, enum nl80211_band band)
461{ 461{
462 int idx = 0; 462 int idx = 0;
463 int band_offset = 0; 463 int band_offset = 0;
@@ -468,7 +468,7 @@ il4965_hwrate_to_mac80211_idx(u32 rate_n_flags, enum ieee80211_band band)
468 return idx; 468 return idx;
469 /* Legacy rate format, search for match in table */ 469 /* Legacy rate format, search for match in table */
470 } else { 470 } else {
471 if (band == IEEE80211_BAND_5GHZ) 471 if (band == NL80211_BAND_5GHZ)
472 band_offset = IL_FIRST_OFDM_RATE; 472 band_offset = IL_FIRST_OFDM_RATE;
473 for (idx = band_offset; idx < RATE_COUNT_LEGACY; idx++) 473 for (idx = band_offset; idx < RATE_COUNT_LEGACY; idx++)
474 if (il_rates[idx].plcp == (rate_n_flags & 0xFF)) 474 if (il_rates[idx].plcp == (rate_n_flags & 0xFF))
@@ -688,8 +688,8 @@ il4965_hdl_rx(struct il_priv *il, struct il_rx_buf *rxb)
688 rx_status.mactime = le64_to_cpu(phy_res->timestamp); 688 rx_status.mactime = le64_to_cpu(phy_res->timestamp);
689 rx_status.band = 689 rx_status.band =
690 (phy_res-> 690 (phy_res->
691 phy_flags & RX_RES_PHY_FLAGS_BAND_24_MSK) ? IEEE80211_BAND_2GHZ : 691 phy_flags & RX_RES_PHY_FLAGS_BAND_24_MSK) ? NL80211_BAND_2GHZ :
692 IEEE80211_BAND_5GHZ; 692 NL80211_BAND_5GHZ;
693 rx_status.freq = 693 rx_status.freq =
694 ieee80211_channel_to_frequency(le16_to_cpu(phy_res->channel), 694 ieee80211_channel_to_frequency(le16_to_cpu(phy_res->channel),
695 rx_status.band); 695 rx_status.band);
@@ -766,7 +766,7 @@ il4965_hdl_rx_phy(struct il_priv *il, struct il_rx_buf *rxb)
766 766
767static int 767static int
768il4965_get_channels_for_scan(struct il_priv *il, struct ieee80211_vif *vif, 768il4965_get_channels_for_scan(struct il_priv *il, struct ieee80211_vif *vif,
769 enum ieee80211_band band, u8 is_active, 769 enum nl80211_band band, u8 is_active,
770 u8 n_probes, struct il_scan_channel *scan_ch) 770 u8 n_probes, struct il_scan_channel *scan_ch)
771{ 771{
772 struct ieee80211_channel *chan; 772 struct ieee80211_channel *chan;
@@ -822,7 +822,7 @@ il4965_get_channels_for_scan(struct il_priv *il, struct ieee80211_vif *vif,
822 * power level: 822 * power level:
823 * scan_ch->tx_gain = ((1 << 5) | (2 << 3)) | 3; 823 * scan_ch->tx_gain = ((1 << 5) | (2 << 3)) | 3;
824 */ 824 */
825 if (band == IEEE80211_BAND_5GHZ) 825 if (band == NL80211_BAND_5GHZ)
826 scan_ch->tx_gain = ((1 << 5) | (3 << 3)) | 3; 826 scan_ch->tx_gain = ((1 << 5) | (3 << 3)) | 3;
827 else 827 else
828 scan_ch->tx_gain = ((1 << 5) | (5 << 3)); 828 scan_ch->tx_gain = ((1 << 5) | (5 << 3));
@@ -870,7 +870,7 @@ il4965_request_scan(struct il_priv *il, struct ieee80211_vif *vif)
870 u32 rate_flags = 0; 870 u32 rate_flags = 0;
871 u16 cmd_len; 871 u16 cmd_len;
872 u16 rx_chain = 0; 872 u16 rx_chain = 0;
873 enum ieee80211_band band; 873 enum nl80211_band band;
874 u8 n_probes = 0; 874 u8 n_probes = 0;
875 u8 rx_ant = il->hw_params.valid_rx_ant; 875 u8 rx_ant = il->hw_params.valid_rx_ant;
876 u8 rate; 876 u8 rate;
@@ -944,7 +944,7 @@ il4965_request_scan(struct il_priv *il, struct ieee80211_vif *vif)
944 scan->tx_cmd.stop_time.life_time = TX_CMD_LIFE_TIME_INFINITE; 944 scan->tx_cmd.stop_time.life_time = TX_CMD_LIFE_TIME_INFINITE;
945 945
946 switch (il->scan_band) { 946 switch (il->scan_band) {
947 case IEEE80211_BAND_2GHZ: 947 case NL80211_BAND_2GHZ:
948 scan->flags = RXON_FLG_BAND_24G_MSK | RXON_FLG_AUTO_DETECT_MSK; 948 scan->flags = RXON_FLG_BAND_24G_MSK | RXON_FLG_AUTO_DETECT_MSK;
949 chan_mod = 949 chan_mod =
950 le32_to_cpu(il->active.flags & RXON_FLG_CHANNEL_MODE_MSK) >> 950 le32_to_cpu(il->active.flags & RXON_FLG_CHANNEL_MODE_MSK) >>
@@ -956,7 +956,7 @@ il4965_request_scan(struct il_priv *il, struct ieee80211_vif *vif)
956 rate_flags = RATE_MCS_CCK_MSK; 956 rate_flags = RATE_MCS_CCK_MSK;
957 } 957 }
958 break; 958 break;
959 case IEEE80211_BAND_5GHZ: 959 case NL80211_BAND_5GHZ:
960 rate = RATE_6M_PLCP; 960 rate = RATE_6M_PLCP;
961 break; 961 break;
962 default: 962 default:
@@ -1590,7 +1590,7 @@ il4965_tx_cmd_build_rate(struct il_priv *il,
1590 || rate_idx > RATE_COUNT_LEGACY) 1590 || rate_idx > RATE_COUNT_LEGACY)
1591 rate_idx = rate_lowest_index(&il->bands[info->band], sta); 1591 rate_idx = rate_lowest_index(&il->bands[info->band], sta);
1592 /* For 5 GHZ band, remap mac80211 rate indices into driver indices */ 1592 /* For 5 GHZ band, remap mac80211 rate indices into driver indices */
1593 if (info->band == IEEE80211_BAND_5GHZ) 1593 if (info->band == NL80211_BAND_5GHZ)
1594 rate_idx += IL_FIRST_OFDM_RATE; 1594 rate_idx += IL_FIRST_OFDM_RATE;
1595 /* Get PLCP rate for tx_cmd->rate_n_flags */ 1595 /* Get PLCP rate for tx_cmd->rate_n_flags */
1596 rate_plcp = il_rates[rate_idx].plcp; 1596 rate_plcp = il_rates[rate_idx].plcp;
@@ -3051,7 +3051,7 @@ il4965_sta_alloc_lq(struct il_priv *il, u8 sta_id)
3051 } 3051 }
3052 /* Set up the rate scaling to start at selected rate, fall back 3052 /* Set up the rate scaling to start at selected rate, fall back
3053 * all the way down to 1M in IEEE order, and then spin on 1M */ 3053 * all the way down to 1M in IEEE order, and then spin on 1M */
3054 if (il->band == IEEE80211_BAND_5GHZ) 3054 if (il->band == NL80211_BAND_5GHZ)
3055 r = RATE_6M_IDX; 3055 r = RATE_6M_IDX;
3056 else 3056 else
3057 r = RATE_1M_IDX; 3057 r = RATE_1M_IDX;
@@ -5790,12 +5790,12 @@ il4965_mac_setup_register(struct il_priv *il, u32 max_probe_length)
5790 5790
5791 hw->max_listen_interval = IL_CONN_MAX_LISTEN_INTERVAL; 5791 hw->max_listen_interval = IL_CONN_MAX_LISTEN_INTERVAL;
5792 5792
5793 if (il->bands[IEEE80211_BAND_2GHZ].n_channels) 5793 if (il->bands[NL80211_BAND_2GHZ].n_channels)
5794 il->hw->wiphy->bands[IEEE80211_BAND_2GHZ] = 5794 il->hw->wiphy->bands[NL80211_BAND_2GHZ] =
5795 &il->bands[IEEE80211_BAND_2GHZ]; 5795 &il->bands[NL80211_BAND_2GHZ];
5796 if (il->bands[IEEE80211_BAND_5GHZ].n_channels) 5796 if (il->bands[NL80211_BAND_5GHZ].n_channels)
5797 il->hw->wiphy->bands[IEEE80211_BAND_5GHZ] = 5797 il->hw->wiphy->bands[NL80211_BAND_5GHZ] =
5798 &il->bands[IEEE80211_BAND_5GHZ]; 5798 &il->bands[NL80211_BAND_5GHZ];
5799 5799
5800 il_leds_init(il); 5800 il_leds_init(il);
5801 5801
@@ -6368,7 +6368,7 @@ il4965_init_drv(struct il_priv *il)
6368 6368
6369 il->ieee_channels = NULL; 6369 il->ieee_channels = NULL;
6370 il->ieee_rates = NULL; 6370 il->ieee_rates = NULL;
6371 il->band = IEEE80211_BAND_2GHZ; 6371 il->band = NL80211_BAND_2GHZ;
6372 6372
6373 il->iw_mode = NL80211_IFTYPE_STATION; 6373 il->iw_mode = NL80211_IFTYPE_STATION;
6374 il->current_ht_config.smps = IEEE80211_SMPS_STATIC; 6374 il->current_ht_config.smps = IEEE80211_SMPS_STATIC;
@@ -6480,7 +6480,7 @@ il4965_set_hw_params(struct il_priv *il)
6480 il->hw_params.max_data_size = IL49_RTC_DATA_SIZE; 6480 il->hw_params.max_data_size = IL49_RTC_DATA_SIZE;
6481 il->hw_params.max_inst_size = IL49_RTC_INST_SIZE; 6481 il->hw_params.max_inst_size = IL49_RTC_INST_SIZE;
6482 il->hw_params.max_bsm_size = BSM_SRAM_SIZE; 6482 il->hw_params.max_bsm_size = BSM_SRAM_SIZE;
6483 il->hw_params.ht40_channel = BIT(IEEE80211_BAND_5GHZ); 6483 il->hw_params.ht40_channel = BIT(NL80211_BAND_5GHZ);
6484 6484
6485 il->hw_params.rx_wrt_ptr_reg = FH49_RSCSR_CHNL0_WPTR; 6485 il->hw_params.rx_wrt_ptr_reg = FH49_RSCSR_CHNL0_WPTR;
6486 6486