aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-commands.h
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-12-18 21:37:05 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 15:58:53 -0500
commit4c897253cc9ae1c6a2798b27b5fe8e6d94ab6185 (patch)
treefa9538d37c07da9134e35ce96e6e8a00fa956696 /drivers/net/wireless/iwlwifi/iwl-commands.h
parent600c0e11ea6161e00e8cb4b4dda39a64ce988c60 (diff)
iwlwifi: 3945 remove duplicated code from iwl-3945-commands.h
This patch remove trivial (renames) commands and defines from iwl-3945-commands.h Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Acked-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-commands.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-commands.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h
index 20ab7fb75c3c..8b2d7012a2a0 100644
--- a/drivers/net/wireless/iwlwifi/iwl-commands.h
+++ b/drivers/net/wireless/iwlwifi/iwl-commands.h
@@ -75,6 +75,12 @@
75#define IWL_UCODE_API(ver) (((ver) & 0x0000FF00) >> 8) 75#define IWL_UCODE_API(ver) (((ver) & 0x0000FF00) >> 8)
76#define IWL_UCODE_SERIAL(ver) ((ver) & 0x000000FF) 76#define IWL_UCODE_SERIAL(ver) ((ver) & 0x000000FF)
77 77
78
79/* Tx rates */
80#define IWL_CCK_RATES 4
81#define IWL_OFDM_RATES 8
82#define IWL_MAX_RATES (IWL_CCK_RATES + IWL_OFDM_RATES)
83
78enum { 84enum {
79 REPLY_ALIVE = 0x1, 85 REPLY_ALIVE = 0x1,
80 REPLY_ERROR = 0x2, 86 REPLY_ERROR = 0x2,
@@ -784,6 +790,8 @@ struct iwl_qosparam_cmd {
784#define IWL_AP_ID 0 790#define IWL_AP_ID 0
785#define IWL_MULTICAST_ID 1 791#define IWL_MULTICAST_ID 1
786#define IWL_STA_ID 2 792#define IWL_STA_ID 2
793#define IWL3945_BROADCAST_ID 24
794#define IWL3945_STATION_COUNT 25
787#define IWL4965_BROADCAST_ID 31 795#define IWL4965_BROADCAST_ID 31
788#define IWL4965_STATION_COUNT 32 796#define IWL4965_STATION_COUNT 32
789#define IWL5000_BROADCAST_ID 15 797#define IWL5000_BROADCAST_ID 15
@@ -792,6 +800,8 @@ struct iwl_qosparam_cmd {
792#define IWL_STATION_COUNT 32 /* MAX(3945,4965)*/ 800#define IWL_STATION_COUNT 32 /* MAX(3945,4965)*/
793#define IWL_INVALID_STATION 255 801#define IWL_INVALID_STATION 255
794 802
803#define STA_FLG_TX_RATE_MSK cpu_to_le32(1 << 2);
804#define STA_FLG_PWR_SAVE_MSK cpu_to_le32(1 << 8);
795#define STA_FLG_PWR_SAVE_MSK cpu_to_le32(1 << 8); 805#define STA_FLG_PWR_SAVE_MSK cpu_to_le32(1 << 8);
796#define STA_FLG_RTS_MIMO_PROT_MSK cpu_to_le32(1 << 17) 806#define STA_FLG_RTS_MIMO_PROT_MSK cpu_to_le32(1 << 17)
797#define STA_FLG_AGG_MPDU_8US_MSK cpu_to_le32(1 << 18) 807#define STA_FLG_AGG_MPDU_8US_MSK cpu_to_le32(1 << 18)
@@ -2181,6 +2191,7 @@ struct iwl_ssid_ie {
2181 u8 ssid[32]; 2191 u8 ssid[32];
2182} __attribute__ ((packed)); 2192} __attribute__ ((packed));
2183 2193
2194#define PROBE_OPTION_MAX_API1 0x4
2184#define PROBE_OPTION_MAX 0x14 2195#define PROBE_OPTION_MAX 0x14
2185#define TX_CMD_LIFE_TIME_INFINITE cpu_to_le32(0xFFFFFFFF) 2196#define TX_CMD_LIFE_TIME_INFINITE cpu_to_le32(0xFFFFFFFF)
2186#define IWL_GOOD_CRC_TH cpu_to_le16(1) 2197#define IWL_GOOD_CRC_TH cpu_to_le16(1)