diff options
author | Zhu Yi <yi.zhu@intel.com> | 2009-06-25 06:28:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-10 15:02:25 -0400 |
commit | fd2c7fe0b4dedc34ea0a2a72e00648bd2b8c7c3a (patch) | |
tree | bf112bfd0dcb3a7d6efdb8af59898a65e3cf6167 /drivers/net/wireless/iwmc3200wifi/lmac.h | |
parent | dd13fd649879b6230be5d855e00c286c5e60f354 (diff) |
iwmc3200wifi: simplify calibration map
The patch simplifies calibration map by combining the init_calib_map
and periodic_calib_map into one calib_map in struct iwm_conf. Now the
initial calibration map is stored in the lower 16 bits of calib_map
and the periodic calibration map is stored in the higher 16 bits.
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwmc3200wifi/lmac.h')
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/lmac.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwmc3200wifi/lmac.h b/drivers/net/wireless/iwmc3200wifi/lmac.h index db2e5eea1895..19213e165f5f 100644 --- a/drivers/net/wireless/iwmc3200wifi/lmac.h +++ b/drivers/net/wireless/iwmc3200wifi/lmac.h | |||
@@ -396,6 +396,10 @@ enum { | |||
396 | CALIBRATION_CMD_NUM, | 396 | CALIBRATION_CMD_NUM, |
397 | }; | 397 | }; |
398 | 398 | ||
399 | #define IWM_CALIB_MAP_INIT_MSK 0xFFFF | ||
400 | #define IWM_CALIB_MAP_PER_LMAC(m) ((m & 0xFF0000) >> 16) | ||
401 | #define IWM_CALIB_MAP_PER_UMAC(m) ((m & 0xFF000000) >> 24) | ||
402 | |||
399 | struct iwm_lmac_calib_hdr { | 403 | struct iwm_lmac_calib_hdr { |
400 | u8 opcode; | 404 | u8 opcode; |
401 | u8 first_grp; | 405 | u8 first_grp; |