aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-4965.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.h60
1 files changed, 30 insertions, 30 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.h b/drivers/net/wireless/iwlwifi/iwl-4965.h
index bf174d3b8fbf..d61cf0e26e81 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.h
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.h
@@ -434,8 +434,8 @@ struct iwl_rx_queue {
434#define IWL_INVALID_RATE 0xFF 434#define IWL_INVALID_RATE 0xFF
435#define IWL_INVALID_VALUE -1 435#define IWL_INVALID_VALUE -1
436 436
437#ifdef CONFIG_IWLWIFI_HT 437#ifdef CONFIG_IWL4965_HT
438#ifdef CONFIG_IWLWIFI_HT_AGG 438#ifdef CONFIG_IWL4965_HT_AGG
439struct iwl_ht_agg { 439struct iwl_ht_agg {
440 u16 txq_id; 440 u16 txq_id;
441 u16 frame_count; 441 u16 frame_count;
@@ -445,16 +445,16 @@ struct iwl_ht_agg {
445 u32 bitmap1; 445 u32 bitmap1;
446 u32 rate_n_flags; 446 u32 rate_n_flags;
447}; 447};
448#endif /* CONFIG_IWLWIFI_HT_AGG */ 448#endif /* CONFIG_IWL4965_HT_AGG */
449#endif /* CONFIG_IWLWIFI_HT */ 449#endif /* CONFIG_IWL4965_HT */
450 450
451struct iwl_tid_data { 451struct iwl_tid_data {
452 u16 seq_number; 452 u16 seq_number;
453#ifdef CONFIG_IWLWIFI_HT 453#ifdef CONFIG_IWL4965_HT
454#ifdef CONFIG_IWLWIFI_HT_AGG 454#ifdef CONFIG_IWL4965_HT_AGG
455 struct iwl_ht_agg agg; 455 struct iwl_ht_agg agg;
456#endif /* CONFIG_IWLWIFI_HT_AGG */ 456#endif /* CONFIG_IWL4965_HT_AGG */
457#endif /* CONFIG_IWLWIFI_HT */ 457#endif /* CONFIG_IWL4965_HT */
458}; 458};
459 459
460struct iwl_hw_key { 460struct iwl_hw_key {
@@ -471,7 +471,7 @@ union iwl_ht_rate_supp {
471 }; 471 };
472}; 472};
473 473
474#ifdef CONFIG_IWLWIFI_HT 474#ifdef CONFIG_IWL4965_HT
475#define CFG_HT_RX_AMPDU_FACTOR_DEF (0x3) 475#define CFG_HT_RX_AMPDU_FACTOR_DEF (0x3)
476#define HT_IE_MAX_AMSDU_SIZE_4K (0) 476#define HT_IE_MAX_AMSDU_SIZE_4K (0)
477#define CFG_HT_MPDU_DENSITY_2USEC (0x5) 477#define CFG_HT_MPDU_DENSITY_2USEC (0x5)
@@ -494,9 +494,9 @@ struct sta_ht_info {
494 u8 tx_chan_width; 494 u8 tx_chan_width;
495 u8 chan_width_cap; 495 u8 chan_width_cap;
496}; 496};
497#endif /*CONFIG_IWLWIFI_HT */ 497#endif /*CONFIG_IWL4965_HT */
498 498
499#ifdef CONFIG_IWLWIFI_QOS 499#ifdef CONFIG_IWL4965_QOS
500 500
501union iwl_qos_capabity { 501union iwl_qos_capabity {
502 struct { 502 struct {
@@ -525,7 +525,7 @@ struct iwl_qos_info {
525 union iwl_qos_capabity qos_cap; 525 union iwl_qos_capabity qos_cap;
526 struct iwl_qosparam_cmd def_qos_parm; 526 struct iwl_qosparam_cmd def_qos_parm;
527}; 527};
528#endif /*CONFIG_IWLWIFI_QOS */ 528#endif /*CONFIG_IWL4965_QOS */
529 529
530#define STA_PS_STATUS_WAKE 0 530#define STA_PS_STATUS_WAKE 0
531#define STA_PS_STATUS_SLEEP 1 531#define STA_PS_STATUS_SLEEP 1
@@ -617,7 +617,7 @@ extern int iwl_is_network_packet(struct iwl_priv *priv,
617 struct ieee80211_hdr *header); 617 struct ieee80211_hdr *header);
618extern int iwl_power_init_handle(struct iwl_priv *priv); 618extern int iwl_power_init_handle(struct iwl_priv *priv);
619extern int iwl_eeprom_init(struct iwl_priv *priv); 619extern int iwl_eeprom_init(struct iwl_priv *priv);
620#ifdef CONFIG_IWLWIFI_DEBUG 620#ifdef CONFIG_IWL4965_DEBUG
621extern void iwl_report_frame(struct iwl_priv *priv, 621extern void iwl_report_frame(struct iwl_priv *priv,
622 struct iwl_rx_packet *pkt, 622 struct iwl_rx_packet *pkt,
623 struct ieee80211_hdr *header, int group100); 623 struct ieee80211_hdr *header, int group100);
@@ -764,8 +764,8 @@ extern int iwl4965_set_fat_chan_info(struct iwl_priv *priv, int phymode,
764 u8 fat_extension_channel); 764 u8 fat_extension_channel);
765extern void iwl4965_rf_kill_ct_config(struct iwl_priv *priv); 765extern void iwl4965_rf_kill_ct_config(struct iwl_priv *priv);
766 766
767#ifdef CONFIG_IWLWIFI_HT 767#ifdef CONFIG_IWL4965_HT
768#ifdef CONFIG_IWLWIFI_HT_AGG 768#ifdef CONFIG_IWL4965_HT_AGG
769extern int iwl_mac_ht_tx_agg_start(struct ieee80211_hw *hw, u8 *da, 769extern int iwl_mac_ht_tx_agg_start(struct ieee80211_hw *hw, u8 *da,
770 u16 tid, u16 *start_seq_num); 770 u16 tid, u16 *start_seq_num);
771extern int iwl_mac_ht_rx_agg_start(struct ieee80211_hw *hw, u8 *da, 771extern int iwl_mac_ht_rx_agg_start(struct ieee80211_hw *hw, u8 *da,
@@ -775,8 +775,8 @@ extern int iwl_mac_ht_rx_agg_stop(struct ieee80211_hw *hw, u8 *da,
775extern int iwl_mac_ht_tx_agg_stop(struct ieee80211_hw *hw, u8 *da, 775extern int iwl_mac_ht_tx_agg_stop(struct ieee80211_hw *hw, u8 *da,
776 u16 tid, int generator); 776 u16 tid, int generator);
777extern void iwl4965_turn_off_agg(struct iwl_priv *priv, u8 tid); 777extern void iwl4965_turn_off_agg(struct iwl_priv *priv, u8 tid);
778#endif /* CONFIG_IWLWIFI_HT_AGG */ 778#endif /* CONFIG_IWL4965_HT_AGG */
779#endif /*CONFIG_IWLWIFI_HT */ 779#endif /*CONFIG_IWL4965_HT */
780/* Structures, enum, and defines specific to the 4965 */ 780/* Structures, enum, and defines specific to the 4965 */
781 781
782#define IWL4965_KW_SIZE 0x1000 /*4k */ 782#define IWL4965_KW_SIZE 0x1000 /*4k */
@@ -843,7 +843,7 @@ struct iwl_traffic_load {
843 u32 total; 843 u32 total;
844}; 844};
845 845
846#ifdef CONFIG_IWLWIFI_HT_AGG 846#ifdef CONFIG_IWL4965_HT_AGG
847struct iwl_agg_control { 847struct iwl_agg_control {
848 unsigned long next_retry; 848 unsigned long next_retry;
849 u32 wait_for_agg_status; 849 u32 wait_for_agg_status;
@@ -855,10 +855,10 @@ struct iwl_agg_control {
855 u32 ba_timeout; 855 u32 ba_timeout;
856 struct iwl_traffic_load traffic_load[TID_MAX_LOAD_COUNT]; 856 struct iwl_traffic_load traffic_load[TID_MAX_LOAD_COUNT];
857}; 857};
858#endif /*CONFIG_IWLWIFI_HT_AGG */ 858#endif /*CONFIG_IWL4965_HT_AGG */
859 859
860struct iwl_lq_mngr { 860struct iwl_lq_mngr {
861#ifdef CONFIG_IWLWIFI_HT_AGG 861#ifdef CONFIG_IWL4965_HT_AGG
862 struct iwl_agg_control agg_ctrl; 862 struct iwl_agg_control agg_ctrl;
863#endif 863#endif
864 spinlock_t lock; 864 spinlock_t lock;
@@ -1040,7 +1040,7 @@ struct iwl_chain_noise_data {
1040#define EEPROM_SEM_RETRY_LIMIT 1000 1040#define EEPROM_SEM_RETRY_LIMIT 1000
1041 1041
1042 1042
1043#ifdef CONFIG_IWLWIFI_SPECTRUM_MEASUREMENT 1043#ifdef CONFIG_IWL4965_SPECTRUM_MEASUREMENT
1044 1044
1045enum { 1045enum {
1046 MEASUREMENT_READY = (1 << 0), 1046 MEASUREMENT_READY = (1 << 0),
@@ -1068,7 +1068,7 @@ struct iwl_priv {
1068 1068
1069 const struct ieee80211_hw_mode *modes; 1069 const struct ieee80211_hw_mode *modes;
1070 1070
1071#ifdef CONFIG_IWLWIFI_SPECTRUM_MEASUREMENT 1071#ifdef CONFIG_IWL4965_SPECTRUM_MEASUREMENT
1072 /* spectrum measurement report caching */ 1072 /* spectrum measurement report caching */
1073 struct iwl_spectrum_notification measure_report; 1073 struct iwl_spectrum_notification measure_report;
1074 u8 measurement_status; 1074 u8 measurement_status;
@@ -1157,14 +1157,14 @@ struct iwl_priv {
1157 u8 channel_width; /* 0=20MHZ, 1=40MHZ */ 1157 u8 channel_width; /* 0=20MHZ, 1=40MHZ */
1158 u8 current_channel_width; 1158 u8 current_channel_width;
1159 u8 valid_antenna; /* Bit mask of antennas actually connected */ 1159 u8 valid_antenna; /* Bit mask of antennas actually connected */
1160#ifdef CONFIG_IWLWIFI_SENSITIVITY 1160#ifdef CONFIG_IWL4965_SENSITIVITY
1161 struct iwl_sensitivity_data sensitivity_data; 1161 struct iwl_sensitivity_data sensitivity_data;
1162 struct iwl_chain_noise_data chain_noise_data; 1162 struct iwl_chain_noise_data chain_noise_data;
1163 u8 start_calib; 1163 u8 start_calib;
1164 __le16 sensitivity_tbl[HD_TABLE_SIZE]; 1164 __le16 sensitivity_tbl[HD_TABLE_SIZE];
1165#endif /*CONFIG_IWLWIFI_SENSITIVITY*/ 1165#endif /*CONFIG_IWL4965_SENSITIVITY*/
1166 1166
1167#ifdef CONFIG_IWLWIFI_HT 1167#ifdef CONFIG_IWL4965_HT
1168 struct sta_ht_info current_assoc_ht; 1168 struct sta_ht_info current_assoc_ht;
1169#endif 1169#endif
1170 u8 active_rate_ht[2]; 1170 u8 active_rate_ht[2];
@@ -1253,9 +1253,9 @@ struct iwl_priv {
1253 u16 assoc_capability; 1253 u16 assoc_capability;
1254 u8 ps_mode; 1254 u8 ps_mode;
1255 1255
1256#ifdef CONFIG_IWLWIFI_QOS 1256#ifdef CONFIG_IWL4965_QOS
1257 struct iwl_qos_info qos_data; 1257 struct iwl_qos_info qos_data;
1258#endif /*CONFIG_IWLWIFI_QOS */ 1258#endif /*CONFIG_IWL4965_QOS */
1259 1259
1260 struct workqueue_struct *workqueue; 1260 struct workqueue_struct *workqueue;
1261 1261
@@ -1290,20 +1290,20 @@ struct iwl_priv {
1290 u32 pm_state[16]; 1290 u32 pm_state[16];
1291#endif 1291#endif
1292 1292
1293#ifdef CONFIG_IWLWIFI_DEBUG 1293#ifdef CONFIG_IWL4965_DEBUG
1294 /* debugging info */ 1294 /* debugging info */
1295 u32 framecnt_to_us; 1295 u32 framecnt_to_us;
1296 atomic_t restrict_refcnt; 1296 atomic_t restrict_refcnt;
1297#endif 1297#endif
1298 1298
1299 struct work_struct txpower_work; 1299 struct work_struct txpower_work;
1300#ifdef CONFIG_IWLWIFI_SENSITIVITY 1300#ifdef CONFIG_IWL4965_SENSITIVITY
1301 struct work_struct sensitivity_work; 1301 struct work_struct sensitivity_work;
1302#endif 1302#endif
1303 struct work_struct statistics_work; 1303 struct work_struct statistics_work;
1304 struct timer_list statistics_periodic; 1304 struct timer_list statistics_periodic;
1305 1305
1306#ifdef CONFIG_IWLWIFI_HT_AGG 1306#ifdef CONFIG_IWL4965_HT_AGG
1307 struct work_struct agg_work; 1307 struct work_struct agg_work;
1308#endif 1308#endif
1309}; /*iwl_priv */ 1309}; /*iwl_priv */