diff options
author | Ben Cahill <ben.m.cahill@intel.com> | 2007-11-28 22:09:53 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:05:22 -0500 |
commit | 74093ddf4c42da74922b63fb6844989e21164d9e (patch) | |
tree | 3ffe5217d647a391fb3f13bac1eac141aa8eea19 /drivers/net | |
parent | 1fea8e8838d009545d94588ac41037d8f20f969d (diff) |
iwlwifi: clean up some unused definitions in iwl-4965.h and iwl-3945.h
Clean up some unused definitions in iwl-4965.h and iwl-3945.h
Move STA_FLG_ definitions to iwl-4965-commands.h
Signed-off-by: Ben Cahill <ben.m.cahill@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.h | 21 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965-commands.h | 8 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.h | 26 |
3 files changed, 8 insertions, 47 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.h b/drivers/net/wireless/iwlwifi/iwl-3945.h index 607a1ed542fb..2f3a8b41f991 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.h +++ b/drivers/net/wireless/iwlwifi/iwl-3945.h | |||
@@ -191,14 +191,6 @@ struct iwl3945_scan_power_info { | |||
191 | s8 requested_power; /* scan pwr (dBm) requested for chnl/rate */ | 191 | s8 requested_power; /* scan pwr (dBm) requested for chnl/rate */ |
192 | }; | 192 | }; |
193 | 193 | ||
194 | /* Channel unlock period is 15 seconds. If no beacon or probe response | ||
195 | * has been received within 15 seconds on a locked channel then the channel | ||
196 | * remains locked. */ | ||
197 | #define TX_UNLOCK_PERIOD 15 | ||
198 | |||
199 | /* CSA lock period is 15 seconds. If a CSA has been received on a channel in | ||
200 | * the last 15 seconds, the channel is locked */ | ||
201 | #define CSA_LOCK_PERIOD 15 | ||
202 | /* | 194 | /* |
203 | * One for each channel, holds all channel setup data | 195 | * One for each channel, holds all channel setup data |
204 | * Some of the fields (e.g. eeprom and flags/max_power_avg) are redundant | 196 | * Some of the fields (e.g. eeprom and flags/max_power_avg) are redundant |
@@ -560,19 +552,6 @@ struct iwl3945_driver_hw_info { | |||
560 | dma_addr_t shared_phys; | 552 | dma_addr_t shared_phys; |
561 | }; | 553 | }; |
562 | 554 | ||
563 | |||
564 | #define STA_FLG_RTS_MIMO_PROT_MSK __constant_cpu_to_le32(1 << 17) | ||
565 | #define STA_FLG_AGG_MPDU_8US_MSK __constant_cpu_to_le32(1 << 18) | ||
566 | #define STA_FLG_MAX_AGG_SIZE_POS (19) | ||
567 | #define STA_FLG_MAX_AGG_SIZE_MSK __constant_cpu_to_le32(3 << 19) | ||
568 | #define STA_FLG_FAT_EN_MSK __constant_cpu_to_le32(1 << 21) | ||
569 | #define STA_FLG_MIMO_DIS_MSK __constant_cpu_to_le32(1 << 22) | ||
570 | #define STA_FLG_AGG_MPDU_DENSITY_POS (23) | ||
571 | #define STA_FLG_AGG_MPDU_DENSITY_MSK __constant_cpu_to_le32(7 << 23) | ||
572 | #define HT_SHORT_GI_20MHZ_ONLY (1 << 0) | ||
573 | #define HT_SHORT_GI_40MHZ_ONLY (1 << 1) | ||
574 | |||
575 | |||
576 | #define IWL_RX_HDR(x) ((struct iwl3945_rx_frame_hdr *)(\ | 555 | #define IWL_RX_HDR(x) ((struct iwl3945_rx_frame_hdr *)(\ |
577 | x->u.rx_frame.stats.payload + \ | 556 | x->u.rx_frame.stats.payload + \ |
578 | x->u.rx_frame.stats.phy_count)) | 557 | x->u.rx_frame.stats.phy_count)) |
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-commands.h b/drivers/net/wireless/iwlwifi/iwl-4965-commands.h index 575a065f8e5c..bd55709e48f2 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965-commands.h +++ b/drivers/net/wireless/iwlwifi/iwl-4965-commands.h | |||
@@ -515,6 +515,14 @@ struct iwl4965_qosparam_cmd { | |||
515 | #define IWL_INVALID_STATION 255 | 515 | #define IWL_INVALID_STATION 255 |
516 | 516 | ||
517 | #define STA_FLG_PWR_SAVE_MSK __constant_cpu_to_le32(1<<8); | 517 | #define STA_FLG_PWR_SAVE_MSK __constant_cpu_to_le32(1<<8); |
518 | #define STA_FLG_RTS_MIMO_PROT_MSK __constant_cpu_to_le32(1 << 17) | ||
519 | #define STA_FLG_AGG_MPDU_8US_MSK __constant_cpu_to_le32(1 << 18) | ||
520 | #define STA_FLG_MAX_AGG_SIZE_POS (19) | ||
521 | #define STA_FLG_MAX_AGG_SIZE_MSK __constant_cpu_to_le32(3 << 19) | ||
522 | #define STA_FLG_FAT_EN_MSK __constant_cpu_to_le32(1 << 21) | ||
523 | #define STA_FLG_MIMO_DIS_MSK __constant_cpu_to_le32(1 << 22) | ||
524 | #define STA_FLG_AGG_MPDU_DENSITY_POS (23) | ||
525 | #define STA_FLG_AGG_MPDU_DENSITY_MSK __constant_cpu_to_le32(7 << 23) | ||
518 | 526 | ||
519 | #define STA_CONTROL_MODIFY_MSK 0x01 | 527 | #define STA_CONTROL_MODIFY_MSK 0x01 |
520 | 528 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.h b/drivers/net/wireless/iwlwifi/iwl-4965.h index 321767f5390e..9438c635f454 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.h +++ b/drivers/net/wireless/iwlwifi/iwl-4965.h | |||
@@ -192,14 +192,6 @@ struct iwl4965_scan_power_info { | |||
192 | s8 requested_power; /* scan pwr (dBm) requested for chnl/rate */ | 192 | s8 requested_power; /* scan pwr (dBm) requested for chnl/rate */ |
193 | }; | 193 | }; |
194 | 194 | ||
195 | /* Channel unlock period is 15 seconds. If no beacon or probe response | ||
196 | * has been received within 15 seconds on a locked channel then the channel | ||
197 | * remains locked. */ | ||
198 | #define TX_UNLOCK_PERIOD 15 | ||
199 | |||
200 | /* CSA lock period is 15 seconds. If a CSA has been received on a channel in | ||
201 | * the last 15 seconds, the channel is locked */ | ||
202 | #define CSA_LOCK_PERIOD 15 | ||
203 | /* | 195 | /* |
204 | * One for each channel, holds all channel setup data | 196 | * One for each channel, holds all channel setup data |
205 | * Some of the fields (e.g. eeprom and flags/max_power_avg) are redundant | 197 | * Some of the fields (e.g. eeprom and flags/max_power_avg) are redundant |
@@ -620,15 +612,6 @@ struct iwl4965_driver_hw_info { | |||
620 | dma_addr_t shared_phys; | 612 | dma_addr_t shared_phys; |
621 | }; | 613 | }; |
622 | 614 | ||
623 | |||
624 | #define STA_FLG_RTS_MIMO_PROT_MSK __constant_cpu_to_le32(1 << 17) | ||
625 | #define STA_FLG_AGG_MPDU_8US_MSK __constant_cpu_to_le32(1 << 18) | ||
626 | #define STA_FLG_MAX_AGG_SIZE_POS (19) | ||
627 | #define STA_FLG_MAX_AGG_SIZE_MSK __constant_cpu_to_le32(3 << 19) | ||
628 | #define STA_FLG_FAT_EN_MSK __constant_cpu_to_le32(1 << 21) | ||
629 | #define STA_FLG_MIMO_DIS_MSK __constant_cpu_to_le32(1 << 22) | ||
630 | #define STA_FLG_AGG_MPDU_DENSITY_POS (23) | ||
631 | #define STA_FLG_AGG_MPDU_DENSITY_MSK __constant_cpu_to_le32(7 << 23) | ||
632 | #define HT_SHORT_GI_20MHZ_ONLY (1 << 0) | 615 | #define HT_SHORT_GI_20MHZ_ONLY (1 << 0) |
633 | #define HT_SHORT_GI_40MHZ_ONLY (1 << 1) | 616 | #define HT_SHORT_GI_40MHZ_ONLY (1 << 1) |
634 | 617 | ||
@@ -860,17 +843,8 @@ struct iwl4965_kw { | |||
860 | #define NRG_NUM_PREV_STAT_L 20 | 843 | #define NRG_NUM_PREV_STAT_L 20 |
861 | #define NUM_RX_CHAINS (3) | 844 | #define NUM_RX_CHAINS (3) |
862 | 845 | ||
863 | #define TX_POWER_IWL_ILLEGAL_VDET -100000 | ||
864 | #define TX_POWER_IWL_ILLEGAL_VOLTAGE -10000 | 846 | #define TX_POWER_IWL_ILLEGAL_VOLTAGE -10000 |
865 | #define TX_POWER_IWL_CLOSED_LOOP_MIN_POWER 18 | ||
866 | #define TX_POWER_IWL_CLOSED_LOOP_MAX_POWER 34 | ||
867 | #define TX_POWER_IWL_VDET_SLOPE_BELOW_NOMINAL 17 | ||
868 | #define TX_POWER_IWL_VDET_SLOPE_ABOVE_NOMINAL 20 | ||
869 | #define TX_POWER_IWL_NOMINAL_POWER 26 | ||
870 | #define TX_POWER_IWL_CLOSED_LOOP_ITERATION_LIMIT 1 | ||
871 | #define TX_POWER_IWL_VOLTAGE_CODES_PER_03V 7 | 847 | #define TX_POWER_IWL_VOLTAGE_CODES_PER_03V 7 |
872 | #define TX_POWER_IWL_DEGREES_PER_VDET_CODE 11 | ||
873 | #define IWL_TX_POWER_MAX_NUM_PA_MEASUREMENTS 1 | ||
874 | #define IWL_TX_POWER_CCK_COMPENSATION_B_STEP (9) | 848 | #define IWL_TX_POWER_CCK_COMPENSATION_B_STEP (9) |
875 | #define IWL_TX_POWER_CCK_COMPENSATION_C_STEP (5) | 849 | #define IWL_TX_POWER_CCK_COMPENSATION_C_STEP (5) |
876 | 850 | ||