aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-commands.h
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-06-11 21:47:12 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-06-14 12:18:08 -0400
commitf53696de6722a4aac00b76e25a5321c01e88a55f (patch)
treecd735b6fd5bfa7a5ba593eb591cfc6d62d26e7dd /drivers/net/wireless/iwlwifi/iwl-commands.h
parente7d326ac437e9e9425dcd79382f4e5f6ca31fb16 (diff)
iwlwifi: cleans up scanning code
This patch 1. cleans up scanning code. 2. It adds round robin of TX antannas/chains. 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/iwl-commands.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-commands.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h
index 058e76415042..6613d323262a 100644
--- a/drivers/net/wireless/iwlwifi/iwl-commands.h
+++ b/drivers/net/wireless/iwlwifi/iwl-commands.h
@@ -281,16 +281,7 @@ struct iwl_cmd_header {
281#define RATE_MCS_ANT_C_MSK 0x10000 281#define RATE_MCS_ANT_C_MSK 0x10000
282#define RATE_MCS_ANT_ABC_MSK 0x1C000 282#define RATE_MCS_ANT_ABC_MSK 0x1C000
283 283
284 284#define RATE_MCS_ANT_INIT_IND 1
285/**
286 * struct iwl4965_tx_power - txpower format used in REPLY_SCAN_CMD
287 *
288 * Scan uses only one transmitter, so only one analog/dsp gain pair is needed.
289 */
290struct iwl4965_tx_power {
291 u8 tx_gain; /* gain for analog radio */
292 u8 dsp_atten; /* gain for DSP */
293} __attribute__ ((packed));
294 285
295#define POWER_TABLE_NUM_ENTRIES 33 286#define POWER_TABLE_NUM_ENTRIES 33
296#define POWER_TABLE_NUM_HT_OFDM_ENTRIES 32 287#define POWER_TABLE_NUM_HT_OFDM_ENTRIES 32
@@ -2128,7 +2119,8 @@ struct iwl_scan_channel {
2128 */ 2119 */
2129 u8 type; 2120 u8 type;
2130 u8 channel; /* band is selected by iwl4965_scan_cmd "flags" field */ 2121 u8 channel; /* band is selected by iwl4965_scan_cmd "flags" field */
2131 struct iwl4965_tx_power tpc; 2122 u8 tx_gain; /* gain for analog radio */
2123 u8 dsp_atten; /* gain for DSP */
2132 __le16 active_dwell; /* in 1024-uSec TU (time units), typ 5-50 */ 2124 __le16 active_dwell; /* in 1024-uSec TU (time units), typ 5-50 */
2133 __le16 passive_dwell; /* in 1024-uSec TU (time units), typ 20-500 */ 2125 __le16 passive_dwell; /* in 1024-uSec TU (time units), typ 20-500 */
2134} __attribute__ ((packed)); 2126} __attribute__ ((packed));