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.h25
1 files changed, 21 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.h b/drivers/net/wireless/iwlwifi/iwl-4965.h
index 35a67cdf707c..31f5447b797e 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.h
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.h
@@ -55,6 +55,8 @@ extern struct iwl_cfg iwl4965_agn_cfg;
55 * This number will also appear in << 8 position of 1st dword of uCode file */ 55 * This number will also appear in << 8 position of 1st dword of uCode file */
56#define IWL4965_UCODE_API "-1" 56#define IWL4965_UCODE_API "-1"
57 57
58/* CT-KILL constants */
59#define CT_KILL_THRESHOLD 110 /* in Celsius */
58 60
59/* Default noise level to report when noise measurement is not available. 61/* Default noise level to report when noise measurement is not available.
60 * This may be because we're: 62 * This may be because we're:
@@ -570,16 +572,25 @@ struct iwl_sensitivity_ranges {
570 u16 auto_corr_min_cck_mrc; 572 u16 auto_corr_min_cck_mrc;
571}; 573};
572 574
575
576#define IWL_FAT_CHANNEL_52 BIT(IEEE80211_BAND_5GHZ)
577
573/** 578/**
574 * struct iwl_hw_params 579 * struct iwl_hw_params
575 * @max_txq_num: Max # Tx queues supported 580 * @max_txq_num: Max # Tx queues supported
576 * @tx_cmd_len: Size of Tx command (but not including frame itself) 581 * @tx_cmd_len: Size of Tx command (but not including frame itself)
577 * @tx_ant_num: Number of TX antennas 582 * @tx/rx_chains_num: Number of TX/RX chains
583 * @valid_tx/rx_ant: usable antennas
578 * @max_rxq_size: Max # Rx frames in Rx queue (must be power-of-2) 584 * @max_rxq_size: Max # Rx frames in Rx queue (must be power-of-2)
579 * @rx_buffer_size:
580 * @max_rxq_log: Log-base-2 of max_rxq_size 585 * @max_rxq_log: Log-base-2 of max_rxq_size
586 * @rx_buf_size: Rx buffer size
581 * @max_stations: 587 * @max_stations:
582 * @bcast_sta_id: 588 * @bcast_sta_id:
589 * @fat_channel: is 40MHz width possible in band 2.4
590 * BIT(IEEE80211_BAND_5GHZ) BIT(IEEE80211_BAND_5GHZ)
591 * @sw_crypto: 0 for hw, 1 for sw
592 * @max_xxx_size: for ucode uses
593 * @ct_kill_threshold: temperature threshold
583 * @struct iwl_sensitivity_ranges: range of sensitivity values 594 * @struct iwl_sensitivity_ranges: range of sensitivity values
584 */ 595 */
585struct iwl_hw_params { 596struct iwl_hw_params {
@@ -595,13 +606,19 @@ struct iwl_hw_params {
595 u32 max_pkt_size; 606 u32 max_pkt_size;
596 u8 max_stations; 607 u8 max_stations;
597 u8 bcast_sta_id; 608 u8 bcast_sta_id;
609 u8 fat_channel;
610 u8 sw_crypto;
611 u32 max_inst_size;
612 u32 max_data_size;
613 u32 max_bsm_size;
614 u32 ct_kill_threshold; /* value in hw-dependent units */
598#ifdef CONFIG_IWLWIFI_RUN_TIME_CALIB 615#ifdef CONFIG_IWLWIFI_RUN_TIME_CALIB
599 const struct iwl_sensitivity_ranges *sens; 616 const struct iwl_sensitivity_ranges *sens;
600#endif 617#endif
601}; 618};
602 619
603#define HT_SHORT_GI_20MHZ_ONLY (1 << 0) 620#define HT_SHORT_GI_20MHZ_ONLY (1 << 0)
604#define HT_SHORT_GI_40MHZ_ONLY (1 << 1) 621#define HT_SHORT_GI_40MHZ_ONLY (1 << 1)
605 622
606 623
607#define IWL_RX_HDR(x) ((struct iwl4965_rx_frame_hdr *)(\ 624#define IWL_RX_HDR(x) ((struct iwl4965_rx_frame_hdr *)(\