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>
This commit is contained in:
committed by
John W. Linville
parent
e7d326ac43
commit
f53696de67
@@ -281,16 +281,7 @@ struct iwl_cmd_header {
|
||||
#define RATE_MCS_ANT_C_MSK 0x10000
|
||||
#define RATE_MCS_ANT_ABC_MSK 0x1C000
|
||||
|
||||
|
||||
/**
|
||||
* struct iwl4965_tx_power - txpower format used in REPLY_SCAN_CMD
|
||||
*
|
||||
* Scan uses only one transmitter, so only one analog/dsp gain pair is needed.
|
||||
*/
|
||||
struct iwl4965_tx_power {
|
||||
u8 tx_gain; /* gain for analog radio */
|
||||
u8 dsp_atten; /* gain for DSP */
|
||||
} __attribute__ ((packed));
|
||||
#define RATE_MCS_ANT_INIT_IND 1
|
||||
|
||||
#define POWER_TABLE_NUM_ENTRIES 33
|
||||
#define POWER_TABLE_NUM_HT_OFDM_ENTRIES 32
|
||||
@@ -2128,7 +2119,8 @@ struct iwl_scan_channel {
|
||||
*/
|
||||
u8 type;
|
||||
u8 channel; /* band is selected by iwl4965_scan_cmd "flags" field */
|
||||
struct iwl4965_tx_power tpc;
|
||||
u8 tx_gain; /* gain for analog radio */
|
||||
u8 dsp_atten; /* gain for DSP */
|
||||
__le16 active_dwell; /* in 1024-uSec TU (time units), typ 5-50 */
|
||||
__le16 passive_dwell; /* in 1024-uSec TU (time units), typ 20-500 */
|
||||
} __attribute__ ((packed));
|
||||
|
Reference in New Issue
Block a user