diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-dev.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-dev.h | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h index 4d789e353e3a..c19db438306c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-dev.h +++ b/drivers/net/wireless/iwlwifi/iwl-dev.h | |||
@@ -36,7 +36,7 @@ | |||
36 | #include <linux/kernel.h> | 36 | #include <linux/kernel.h> |
37 | #include <net/ieee80211_radiotap.h> | 37 | #include <net/ieee80211_radiotap.h> |
38 | 38 | ||
39 | #define DRV_NAME "iwl4965" | 39 | #define DRV_NAME "iwlagn" |
40 | #include "iwl-rfkill.h" | 40 | #include "iwl-rfkill.h" |
41 | #include "iwl-eeprom.h" | 41 | #include "iwl-eeprom.h" |
42 | #include "iwl-4965-hw.h" | 42 | #include "iwl-4965-hw.h" |
@@ -45,6 +45,7 @@ | |||
45 | #include "iwl-debug.h" | 45 | #include "iwl-debug.h" |
46 | #include "iwl-led.h" | 46 | #include "iwl-led.h" |
47 | #include "iwl-power.h" | 47 | #include "iwl-power.h" |
48 | #include "iwl-agn-rs.h" | ||
48 | 49 | ||
49 | /* configuration for the iwl4965 */ | 50 | /* configuration for the iwl4965 */ |
50 | extern struct iwl_cfg iwl4965_agn_cfg; | 51 | extern struct iwl_cfg iwl4965_agn_cfg; |
@@ -134,8 +135,7 @@ struct iwl_tx_info { | |||
134 | struct iwl_tx_queue { | 135 | struct iwl_tx_queue { |
135 | struct iwl_queue q; | 136 | struct iwl_queue q; |
136 | struct iwl_tfd_frame *bd; | 137 | struct iwl_tfd_frame *bd; |
137 | struct iwl_cmd *cmd; | 138 | struct iwl_cmd *cmd[TFD_TX_CMD_SLOTS]; |
138 | dma_addr_t dma_addr_cmd; | ||
139 | struct iwl_tx_info *txb; | 139 | struct iwl_tx_info *txb; |
140 | int need_update; | 140 | int need_update; |
141 | int sched_retry; | 141 | int sched_retry; |
@@ -191,7 +191,6 @@ struct iwl4965_clip_group { | |||
191 | const s8 clip_powers[IWL_MAX_RATES]; | 191 | const s8 clip_powers[IWL_MAX_RATES]; |
192 | }; | 192 | }; |
193 | 193 | ||
194 | #include "iwl-4965-rs.h" | ||
195 | 194 | ||
196 | #define IWL_TX_FIFO_AC0 0 | 195 | #define IWL_TX_FIFO_AC0 0 |
197 | #define IWL_TX_FIFO_AC1 1 | 196 | #define IWL_TX_FIFO_AC1 1 |
@@ -219,7 +218,7 @@ enum iwl_pwr_src { | |||
219 | struct iwl_frame { | 218 | struct iwl_frame { |
220 | union { | 219 | union { |
221 | struct ieee80211_hdr frame; | 220 | struct ieee80211_hdr frame; |
222 | struct iwl4965_tx_beacon_cmd beacon; | 221 | struct iwl_tx_beacon_cmd beacon; |
223 | u8 raw[IEEE80211_FRAME_LEN]; | 222 | u8 raw[IEEE80211_FRAME_LEN]; |
224 | u8 cmd[360]; | 223 | u8 cmd[360]; |
225 | } u; | 224 | } u; |
@@ -283,10 +282,9 @@ struct iwl_cmd { | |||
283 | u32 val32; | 282 | u32 val32; |
284 | struct iwl4965_bt_cmd bt; | 283 | struct iwl4965_bt_cmd bt; |
285 | struct iwl4965_rxon_time_cmd rxon_time; | 284 | struct iwl4965_rxon_time_cmd rxon_time; |
286 | struct iwl4965_powertable_cmd powertable; | 285 | struct iwl_powertable_cmd powertable; |
287 | struct iwl_qosparam_cmd qosparam; | 286 | struct iwl_qosparam_cmd qosparam; |
288 | struct iwl_tx_cmd tx; | 287 | struct iwl_tx_cmd tx; |
289 | struct iwl4965_tx_beacon_cmd tx_beacon; | ||
290 | struct iwl4965_rxon_assoc_cmd rxon_assoc; | 288 | struct iwl4965_rxon_assoc_cmd rxon_assoc; |
291 | struct iwl_rem_sta_cmd rm_sta; | 289 | struct iwl_rem_sta_cmd rm_sta; |
292 | u8 *indirect; | 290 | u8 *indirect; |
@@ -590,6 +588,7 @@ extern unsigned int iwl4965_fill_beacon_frame(struct iwl_priv *priv, | |||
590 | const u8 *dest, int left); | 588 | const u8 *dest, int left); |
591 | extern void iwl4965_update_chain_flags(struct iwl_priv *priv); | 589 | extern void iwl4965_update_chain_flags(struct iwl_priv *priv); |
592 | int iwl4965_set_pwr_src(struct iwl_priv *priv, enum iwl_pwr_src src); | 590 | int iwl4965_set_pwr_src(struct iwl_priv *priv, enum iwl_pwr_src src); |
591 | extern int iwl4965_set_power(struct iwl_priv *priv, void *cmd); | ||
593 | 592 | ||
594 | extern const u8 iwl_bcast_addr[ETH_ALEN]; | 593 | extern const u8 iwl_bcast_addr[ETH_ALEN]; |
595 | 594 | ||
@@ -642,10 +641,6 @@ struct iwl_priv; | |||
642 | * Forward declare iwl-4965.c functions for iwl-base.c | 641 | * Forward declare iwl-4965.c functions for iwl-base.c |
643 | */ | 642 | */ |
644 | extern void iwl4965_rf_kill_ct_config(struct iwl_priv *priv); | 643 | extern void iwl4965_rf_kill_ct_config(struct iwl_priv *priv); |
645 | |||
646 | int iwl4965_mac_ampdu_action(struct ieee80211_hw *hw, | ||
647 | enum ieee80211_ampdu_mlme_action action, | ||
648 | const u8 *addr, u16 tid, u16 *ssn); | ||
649 | int iwl4965_check_empty_hw_queue(struct iwl_priv *priv, int sta_id, | 644 | int iwl4965_check_empty_hw_queue(struct iwl_priv *priv, int sta_id, |
650 | u8 tid, int txq_id); | 645 | u8 tid, int txq_id); |
651 | 646 | ||
@@ -812,14 +807,11 @@ struct iwl_chain_noise_data { | |||
812 | #define EEPROM_SEM_RETRY_LIMIT 1000 /* number of attempts (not time) */ | 807 | #define EEPROM_SEM_RETRY_LIMIT 1000 /* number of attempts (not time) */ |
813 | 808 | ||
814 | 809 | ||
815 | #ifdef CONFIG_IWL4965_SPECTRUM_MEASUREMENT | ||
816 | |||
817 | enum { | 810 | enum { |
818 | MEASUREMENT_READY = (1 << 0), | 811 | MEASUREMENT_READY = (1 << 0), |
819 | MEASUREMENT_ACTIVE = (1 << 1), | 812 | MEASUREMENT_ACTIVE = (1 << 1), |
820 | }; | 813 | }; |
821 | 814 | ||
822 | #endif | ||
823 | 815 | ||
824 | #define IWL_MAX_NUM_QUEUES 20 /* FIXME: do dynamic allocation */ | 816 | #define IWL_MAX_NUM_QUEUES 20 /* FIXME: do dynamic allocation */ |
825 | 817 | ||
@@ -844,7 +836,7 @@ struct iwl_priv { | |||
844 | 836 | ||
845 | struct ieee80211_supported_band bands[IEEE80211_NUM_BANDS]; | 837 | struct ieee80211_supported_band bands[IEEE80211_NUM_BANDS]; |
846 | 838 | ||
847 | #ifdef CONFIG_IWL4965_SPECTRUM_MEASUREMENT | 839 | #ifdef CONFIG_IWLAGN_SPECTRUM_MEASUREMENT |
848 | /* spectrum measurement report caching */ | 840 | /* spectrum measurement report caching */ |
849 | struct iwl4965_spectrum_notification measure_report; | 841 | struct iwl4965_spectrum_notification measure_report; |
850 | u8 measurement_status; | 842 | u8 measurement_status; |