iwlagn: calibration bitmap
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Thu, 7 Jul 2011 19:24:46 +0000 (12:24 -0700)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Sat, 16 Jul 2011 14:38:25 +0000 (07:38 -0700)
Define bitmap for calibration

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-2000.c
drivers/net/wireless/iwlwifi/iwl-6000.c
drivers/net/wireless/iwlwifi/iwl-commands.h

index f72f619dfc110966e0bdd597ea99c4f064b7f212..68ee25b99c1d62201bfe1a78cbb7cbcdda090e77 100644 (file)
@@ -156,7 +156,7 @@ static int iwl2000_hw_set_hw_params(struct iwl_priv *priv)
                BIT(IWL_CALIB_TX_IQ)            |
                BIT(IWL_CALIB_BASE_BAND);
        if (priv->cfg->need_dc_calib)
-               priv->hw_params.calib_rt_cfg |= BIT(IWL_CALIB_CFG_DC_IDX);
+               priv->hw_params.calib_rt_cfg |= IWL_CALIB_CFG_DC_IDX;
        if (priv->cfg->need_temp_offset_calib)
                priv->hw_params.calib_init_cfg |= BIT(IWL_CALIB_TEMP_OFFSET);
 
index 5ab75242986b806dc68abbd42ddd7e8a4be0b25b..cffff09a7973306054abaac4d1101c2d224f7db5 100644 (file)
@@ -176,7 +176,7 @@ static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
                BIT(IWL_CALIB_TX_IQ)            |
                BIT(IWL_CALIB_BASE_BAND);
        if (priv->cfg->need_dc_calib)
-               priv->hw_params.calib_rt_cfg |= BIT(IWL_CALIB_CFG_DC_IDX);
+               priv->hw_params.calib_rt_cfg |= IWL_CALIB_CFG_DC_IDX;
        if (priv->cfg->need_temp_offset_calib)
                priv->hw_params.calib_init_cfg |= BIT(IWL_CALIB_TEMP_OFFSET);
 
index ee2563777e8dc25644ac3441b44af8c0cd8bfd1d..324a6282dd5496d3828a7781963bbcc1fa16f68d 100644 (file)
@@ -3174,14 +3174,17 @@ enum {
  * init ucode and runtime ucode through CALIBRATION_CFG_CMD.
  */
 enum iwl_ucode_calib_cfg {
-       IWL_CALIB_CFG_RX_BB_IDX,
-       IWL_CALIB_CFG_DC_IDX,
-       IWL_CALIB_CFG_TX_IQ_IDX,
-       IWL_CALIB_CFG_RX_IQ_IDX,
-       IWL_CALIB_CFG_NOISE_IDX,
-       IWL_CALIB_CFG_CRYSTAL_IDX,
-       IWL_CALIB_CFG_TEMPERATURE_IDX,
-       IWL_CALIB_CFG_PAPD_IDX,
+       IWL_CALIB_CFG_RX_BB_IDX                 = BIT(0),
+       IWL_CALIB_CFG_DC_IDX                    = BIT(1),
+       IWL_CALIB_CFG_LO_IDX                    = BIT(2),
+       IWL_CALIB_CFG_TX_IQ_IDX                 = BIT(3),
+       IWL_CALIB_CFG_RX_IQ_IDX                 = BIT(4),
+       IWL_CALIB_CFG_NOISE_IDX                 = BIT(5),
+       IWL_CALIB_CFG_CRYSTAL_IDX               = BIT(6),
+       IWL_CALIB_CFG_TEMPERATURE_IDX           = BIT(7),
+       IWL_CALIB_CFG_PAPD_IDX                  = BIT(8),
+       IWL_CALIB_CFG_SENSITIVITY_IDX           = BIT(9),
+       IWL_CALIB_CFG_TX_PWR_IDX                = BIT(10),
 };