aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi
diff options
context:
space:
mode:
authorWinkler, Tomas <tomas.winkler@intel.com>2008-12-17 03:52:27 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-12-19 15:23:32 -0500
commit34c22cf93d1446791c966c878cc691e07c39d8d3 (patch)
tree58cafcb2363b019b17e5b86670a661b24ba4b118 /drivers/net/wireless/iwlwifi
parent135541215ca87ff00c269e65bcaef0bdcb99aab9 (diff)
iwlwifi: cleanup iwl-dev.h
The patch removes unused definition and moves code to proper places. Signed-off-by: Tomas Winkler <tomas.winkler@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/wireless/iwlwifi')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.h6
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-calib.c9
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-commands.h2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-dev.h29
4 files changed, 14 insertions, 32 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.h b/drivers/net/wireless/iwlwifi/iwl-3945.h
index ffe5a8dd4210..2c0ddc5110c6 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.h
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.h
@@ -405,12 +405,6 @@ struct iwl3945_rx_queue {
405 405
406#define SCAN_INTERVAL 100 406#define SCAN_INTERVAL 100
407 407
408#define MAX_A_CHANNELS 252
409#define MIN_A_CHANNELS 7
410
411#define MAX_B_CHANNELS 14
412#define MIN_B_CHANNELS 1
413
414#define STATUS_HCMD_ACTIVE 0 /* host command in progress */ 408#define STATUS_HCMD_ACTIVE 0 /* host command in progress */
415#define STATUS_HCMD_SYNC_ACTIVE 1 /* sync host command in progress */ 409#define STATUS_HCMD_SYNC_ACTIVE 1 /* sync host command in progress */
416#define STATUS_INT_ENABLED 2 410#define STATUS_INT_ENABLED 2
diff --git a/drivers/net/wireless/iwlwifi/iwl-calib.c b/drivers/net/wireless/iwlwifi/iwl-calib.c
index 7956e0873614..f836ecc55758 100644
--- a/drivers/net/wireless/iwlwifi/iwl-calib.c
+++ b/drivers/net/wireless/iwlwifi/iwl-calib.c
@@ -70,6 +70,15 @@
70 * INIT calibrations framework 70 * INIT calibrations framework
71 *****************************************************************************/ 71 *****************************************************************************/
72 72
73struct statistics_general_data {
74 u32 beacon_silence_rssi_a;
75 u32 beacon_silence_rssi_b;
76 u32 beacon_silence_rssi_c;
77 u32 beacon_energy_a;
78 u32 beacon_energy_b;
79 u32 beacon_energy_c;
80};
81
73int iwl_send_calib_results(struct iwl_priv *priv) 82int iwl_send_calib_results(struct iwl_priv *priv)
74{ 83{
75 int ret = 0; 84 int ret = 0;
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h
index 60e79d9bd725..52966ffbef6e 100644
--- a/drivers/net/wireless/iwlwifi/iwl-commands.h
+++ b/drivers/net/wireless/iwlwifi/iwl-commands.h
@@ -2418,6 +2418,8 @@ struct statistics_rx_ht_phy {
2418 __le32 reserved2; 2418 __le32 reserved2;
2419} __attribute__ ((packed)); 2419} __attribute__ ((packed));
2420 2420
2421#define INTERFERENCE_DATA_AVAILABLE __constant_cpu_to_le32(1)
2422
2421struct statistics_rx_non_phy { 2423struct statistics_rx_non_phy {
2422 __le32 bogus_cts; /* CTS received when not expecting CTS */ 2424 __le32 bogus_cts; /* CTS received when not expecting CTS */
2423 __le32 bogus_ack; /* ACK received when not expecting ACK */ 2425 __le32 bogus_ack; /* ACK received when not expecting ACK */
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index eaf0c9cc33a5..0468fcc1ea98 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -323,14 +323,6 @@ struct iwl_rx_queue {
323 323
324#define IWL_SUPPORTED_RATES_IE_LEN 8 324#define IWL_SUPPORTED_RATES_IE_LEN 8
325 325
326#define SCAN_INTERVAL 100
327
328#define MAX_A_CHANNELS 252
329#define MIN_A_CHANNELS 7
330
331#define MAX_B_CHANNELS 14
332#define MIN_B_CHANNELS 1
333
334#define MAX_TID_COUNT 9 326#define MAX_TID_COUNT 9
335 327
336#define IWL_INVALID_RATE 0xFF 328#define IWL_INVALID_RATE 0xFF
@@ -496,8 +488,6 @@ struct iwl_sensitivity_ranges {
496}; 488};
497 489
498 490
499#define IWL_FAT_CHANNEL_52 BIT(IEEE80211_BAND_5GHZ)
500
501#define KELVIN_TO_CELSIUS(x) ((x)-273) 491#define KELVIN_TO_CELSIUS(x) ((x)-273)
502#define CELSIUS_TO_KELVIN(x) ((x)+273) 492#define CELSIUS_TO_KELVIN(x) ((x)+273)
503 493
@@ -546,9 +536,6 @@ struct iwl_hw_params {
546 const struct iwl_sensitivity_ranges *sens; 536 const struct iwl_sensitivity_ranges *sens;
547}; 537};
548 538
549#define HT_SHORT_GI_20MHZ (1 << 0)
550#define HT_SHORT_GI_40MHZ (1 << 1)
551
552 539
553/****************************************************************************** 540/******************************************************************************
554 * 541 *
@@ -590,15 +577,15 @@ static inline u8 get_cmd_index(struct iwl_queue *q, u32 index, int is_huge)
590} 577}
591 578
592 579
593struct iwl_priv;
594
595
596struct iwl_dma_ptr { 580struct iwl_dma_ptr {
597 dma_addr_t dma; 581 dma_addr_t dma;
598 void *addr; 582 void *addr;
599 size_t size; 583 size_t size;
600}; 584};
601 585
586#define HT_SHORT_GI_20MHZ (1 << 0)
587#define HT_SHORT_GI_40MHZ (1 << 1)
588
602#define IWL_CHANNEL_WIDTH_20MHZ 0 589#define IWL_CHANNEL_WIDTH_20MHZ 0
603#define IWL_CHANNEL_WIDTH_40MHZ 1 590#define IWL_CHANNEL_WIDTH_40MHZ 1
604 591
@@ -613,7 +600,6 @@ struct iwl_dma_ptr {
613#define TX_POWER_IWL_ILLEGAL_VOLTAGE -10000 600#define TX_POWER_IWL_ILLEGAL_VOLTAGE -10000
614 601
615/* Sensitivity and chain noise calibration */ 602/* Sensitivity and chain noise calibration */
616#define INTERFERENCE_DATA_AVAILABLE __constant_cpu_to_le32(1)
617#define INITIALIZATION_VALUE 0xFFFF 603#define INITIALIZATION_VALUE 0xFFFF
618#define CAL_NUM_OF_BEACONS 20 604#define CAL_NUM_OF_BEACONS 20
619#define MAXIMUM_ALLOWED_PATHLOSS 15 605#define MAXIMUM_ALLOWED_PATHLOSS 15
@@ -666,15 +652,6 @@ enum iwl4965_calib_enabled_state {
666 IWL_CALIB_ENABLED = 1, 652 IWL_CALIB_ENABLED = 1,
667}; 653};
668 654
669struct statistics_general_data {
670 u32 beacon_silence_rssi_a;
671 u32 beacon_silence_rssi_b;
672 u32 beacon_silence_rssi_c;
673 u32 beacon_energy_a;
674 u32 beacon_energy_b;
675 u32 beacon_energy_c;
676};
677
678 655
679/* 656/*
680 * enum iwl_calib 657 * enum iwl_calib