diff options
Diffstat (limited to 'drivers/net/wireless/intel/iwlegacy/common.h')
-rw-r--r-- | drivers/net/wireless/intel/iwlegacy/common.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/net/wireless/intel/iwlegacy/common.h b/drivers/net/wireless/intel/iwlegacy/common.h index ce52cf114fde..726ede391cb9 100644 --- a/drivers/net/wireless/intel/iwlegacy/common.h +++ b/drivers/net/wireless/intel/iwlegacy/common.h | |||
@@ -432,7 +432,7 @@ u16 il_eeprom_query16(const struct il_priv *il, size_t offset); | |||
432 | int il_init_channel_map(struct il_priv *il); | 432 | int il_init_channel_map(struct il_priv *il); |
433 | void il_free_channel_map(struct il_priv *il); | 433 | void il_free_channel_map(struct il_priv *il); |
434 | const struct il_channel_info *il_get_channel_info(const struct il_priv *il, | 434 | const struct il_channel_info *il_get_channel_info(const struct il_priv *il, |
435 | enum ieee80211_band band, | 435 | enum nl80211_band band, |
436 | u16 channel); | 436 | u16 channel); |
437 | 437 | ||
438 | #define IL_NUM_SCAN_RATES (2) | 438 | #define IL_NUM_SCAN_RATES (2) |
@@ -497,7 +497,7 @@ struct il_channel_info { | |||
497 | 497 | ||
498 | u8 group_idx; /* 0-4, maps channel to group1/2/3/4/5 */ | 498 | u8 group_idx; /* 0-4, maps channel to group1/2/3/4/5 */ |
499 | u8 band_idx; /* 0-4, maps channel to band1/2/3/4/5 */ | 499 | u8 band_idx; /* 0-4, maps channel to band1/2/3/4/5 */ |
500 | enum ieee80211_band band; | 500 | enum nl80211_band band; |
501 | 501 | ||
502 | /* HT40 channel info */ | 502 | /* HT40 channel info */ |
503 | s8 ht40_max_power_avg; /* (dBm) regul. eeprom, normal Tx, any rate */ | 503 | s8 ht40_max_power_avg; /* (dBm) regul. eeprom, normal Tx, any rate */ |
@@ -811,7 +811,7 @@ struct il_sensitivity_ranges { | |||
811 | * @rx_wrt_ptr_reg: FH{39}_RSCSR_CHNL0_WPTR | 811 | * @rx_wrt_ptr_reg: FH{39}_RSCSR_CHNL0_WPTR |
812 | * @max_stations: | 812 | * @max_stations: |
813 | * @ht40_channel: is 40MHz width possible in band 2.4 | 813 | * @ht40_channel: is 40MHz width possible in band 2.4 |
814 | * BIT(IEEE80211_BAND_5GHZ) BIT(IEEE80211_BAND_5GHZ) | 814 | * BIT(NL80211_BAND_5GHZ) BIT(NL80211_BAND_5GHZ) |
815 | * @sw_crypto: 0 for hw, 1 for sw | 815 | * @sw_crypto: 0 for hw, 1 for sw |
816 | * @max_xxx_size: for ucode uses | 816 | * @max_xxx_size: for ucode uses |
817 | * @ct_kill_threshold: temperature threshold | 817 | * @ct_kill_threshold: temperature threshold |
@@ -1141,13 +1141,13 @@ struct il_priv { | |||
1141 | struct list_head free_frames; | 1141 | struct list_head free_frames; |
1142 | int frames_count; | 1142 | int frames_count; |
1143 | 1143 | ||
1144 | enum ieee80211_band band; | 1144 | enum nl80211_band band; |
1145 | int alloc_rxb_page; | 1145 | int alloc_rxb_page; |
1146 | 1146 | ||
1147 | void (*handlers[IL_CN_MAX]) (struct il_priv *il, | 1147 | void (*handlers[IL_CN_MAX]) (struct il_priv *il, |
1148 | struct il_rx_buf *rxb); | 1148 | struct il_rx_buf *rxb); |
1149 | 1149 | ||
1150 | struct ieee80211_supported_band bands[IEEE80211_NUM_BANDS]; | 1150 | struct ieee80211_supported_band bands[NUM_NL80211_BANDS]; |
1151 | 1151 | ||
1152 | /* spectrum measurement report caching */ | 1152 | /* spectrum measurement report caching */ |
1153 | struct il_spectrum_notification measure_report; | 1153 | struct il_spectrum_notification measure_report; |
@@ -1176,10 +1176,10 @@ struct il_priv { | |||
1176 | unsigned long scan_start; | 1176 | unsigned long scan_start; |
1177 | unsigned long scan_start_tsf; | 1177 | unsigned long scan_start_tsf; |
1178 | void *scan_cmd; | 1178 | void *scan_cmd; |
1179 | enum ieee80211_band scan_band; | 1179 | enum nl80211_band scan_band; |
1180 | struct cfg80211_scan_request *scan_request; | 1180 | struct cfg80211_scan_request *scan_request; |
1181 | struct ieee80211_vif *scan_vif; | 1181 | struct ieee80211_vif *scan_vif; |
1182 | u8 scan_tx_ant[IEEE80211_NUM_BANDS]; | 1182 | u8 scan_tx_ant[NUM_NL80211_BANDS]; |
1183 | u8 mgmt_tx_ant; | 1183 | u8 mgmt_tx_ant; |
1184 | 1184 | ||
1185 | /* spinlock */ | 1185 | /* spinlock */ |
@@ -1479,7 +1479,7 @@ il_is_channel_radar(const struct il_channel_info *ch_info) | |||
1479 | static inline u8 | 1479 | static inline u8 |
1480 | il_is_channel_a_band(const struct il_channel_info *ch_info) | 1480 | il_is_channel_a_band(const struct il_channel_info *ch_info) |
1481 | { | 1481 | { |
1482 | return ch_info->band == IEEE80211_BAND_5GHZ; | 1482 | return ch_info->band == NL80211_BAND_5GHZ; |
1483 | } | 1483 | } |
1484 | 1484 | ||
1485 | static inline int | 1485 | static inline int |
@@ -1673,7 +1673,7 @@ struct il_cfg { | |||
1673 | /* params not likely to change within a device family */ | 1673 | /* params not likely to change within a device family */ |
1674 | struct il_base_params *base_params; | 1674 | struct il_base_params *base_params; |
1675 | /* params likely to change within a device family */ | 1675 | /* params likely to change within a device family */ |
1676 | u8 scan_rx_antennas[IEEE80211_NUM_BANDS]; | 1676 | u8 scan_rx_antennas[NUM_NL80211_BANDS]; |
1677 | enum il_led_mode led_mode; | 1677 | enum il_led_mode led_mode; |
1678 | 1678 | ||
1679 | int eeprom_size; | 1679 | int eeprom_size; |
@@ -1707,9 +1707,9 @@ void il_set_rxon_hwcrypto(struct il_priv *il, int hw_decrypt); | |||
1707 | int il_check_rxon_cmd(struct il_priv *il); | 1707 | int il_check_rxon_cmd(struct il_priv *il); |
1708 | int il_full_rxon_required(struct il_priv *il); | 1708 | int il_full_rxon_required(struct il_priv *il); |
1709 | int il_set_rxon_channel(struct il_priv *il, struct ieee80211_channel *ch); | 1709 | int il_set_rxon_channel(struct il_priv *il, struct ieee80211_channel *ch); |
1710 | void il_set_flags_for_band(struct il_priv *il, enum ieee80211_band band, | 1710 | void il_set_flags_for_band(struct il_priv *il, enum nl80211_band band, |
1711 | struct ieee80211_vif *vif); | 1711 | struct ieee80211_vif *vif); |
1712 | u8 il_get_single_channel_number(struct il_priv *il, enum ieee80211_band band); | 1712 | u8 il_get_single_channel_number(struct il_priv *il, enum nl80211_band band); |
1713 | void il_set_rxon_ht(struct il_priv *il, struct il_ht_config *ht_conf); | 1713 | void il_set_rxon_ht(struct il_priv *il, struct il_ht_config *ht_conf); |
1714 | bool il_is_ht40_tx_allowed(struct il_priv *il, | 1714 | bool il_is_ht40_tx_allowed(struct il_priv *il, |
1715 | struct ieee80211_sta_ht_cap *ht_cap); | 1715 | struct ieee80211_sta_ht_cap *ht_cap); |
@@ -1793,9 +1793,9 @@ int il_force_reset(struct il_priv *il, bool external); | |||
1793 | u16 il_fill_probe_req(struct il_priv *il, struct ieee80211_mgmt *frame, | 1793 | u16 il_fill_probe_req(struct il_priv *il, struct ieee80211_mgmt *frame, |
1794 | const u8 *ta, const u8 *ie, int ie_len, int left); | 1794 | const u8 *ta, const u8 *ie, int ie_len, int left); |
1795 | void il_setup_rx_scan_handlers(struct il_priv *il); | 1795 | void il_setup_rx_scan_handlers(struct il_priv *il); |
1796 | u16 il_get_active_dwell_time(struct il_priv *il, enum ieee80211_band band, | 1796 | u16 il_get_active_dwell_time(struct il_priv *il, enum nl80211_band band, |
1797 | u8 n_probes); | 1797 | u8 n_probes); |
1798 | u16 il_get_passive_dwell_time(struct il_priv *il, enum ieee80211_band band, | 1798 | u16 il_get_passive_dwell_time(struct il_priv *il, enum nl80211_band band, |
1799 | struct ieee80211_vif *vif); | 1799 | struct ieee80211_vif *vif); |
1800 | void il_setup_scan_deferred_work(struct il_priv *il); | 1800 | void il_setup_scan_deferred_work(struct il_priv *il); |
1801 | void il_cancel_scan_deferred_work(struct il_priv *il); | 1801 | void il_cancel_scan_deferred_work(struct il_priv *il); |
@@ -1955,7 +1955,7 @@ il_commit_rxon(struct il_priv *il) | |||
1955 | } | 1955 | } |
1956 | 1956 | ||
1957 | static inline const struct ieee80211_supported_band * | 1957 | static inline const struct ieee80211_supported_band * |
1958 | il_get_hw_mode(struct il_priv *il, enum ieee80211_band band) | 1958 | il_get_hw_mode(struct il_priv *il, enum nl80211_band band) |
1959 | { | 1959 | { |
1960 | return il->hw->wiphy->bands[band]; | 1960 | return il->hw->wiphy->bands[band]; |
1961 | } | 1961 | } |
@@ -2813,7 +2813,7 @@ struct il_lq_sta { | |||
2813 | u8 action_counter; /* # mode-switch actions tried */ | 2813 | u8 action_counter; /* # mode-switch actions tried */ |
2814 | u8 is_green; | 2814 | u8 is_green; |
2815 | u8 is_dup; | 2815 | u8 is_dup; |
2816 | enum ieee80211_band band; | 2816 | enum nl80211_band band; |
2817 | 2817 | ||
2818 | /* The following are bitmaps of rates; RATE_6M_MASK, etc. */ | 2818 | /* The following are bitmaps of rates; RATE_6M_MASK, etc. */ |
2819 | u32 supp_rates; | 2819 | u32 supp_rates; |