iwlagn: set correct calibration flag
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 8 Jul 2011 21:29:45 +0000 (14:29 -0700)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Thu, 21 Jul 2011 14:28:24 +0000 (07:28 -0700)
Set calibration config flag for complete notification

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

index 89363007ede0284881527f2d5b04c48fff1d9a8c..f5f5f06b77819d94ca3bd1c1a2be133dcbbefa8e 100644 (file)
@@ -190,7 +190,8 @@ static int iwlagn_send_calib_cfg(struct iwl_priv *priv)
        calib_cfg_cmd.ucd_calib_cfg.once.is_enable = IWL_CALIB_INIT_CFG_ALL;
        calib_cfg_cmd.ucd_calib_cfg.once.start = IWL_CALIB_INIT_CFG_ALL;
        calib_cfg_cmd.ucd_calib_cfg.once.send_res = IWL_CALIB_INIT_CFG_ALL;
-       calib_cfg_cmd.ucd_calib_cfg.flags = IWL_CALIB_INIT_CFG_ALL;
+       calib_cfg_cmd.ucd_calib_cfg.flags =
+               IWL_CALIB_CFG_FLAG_SEND_COMPLETE_NTFY_MSK;
 
        return trans_send_cmd(priv, &cmd);
 }
index 324a6282dd5496d3828a7781963bbcc1fa16f68d..200389d671824683f401d3c222b962166a46f252 100644 (file)
@@ -3168,7 +3168,8 @@ enum {
 
 #define IWL_MAX_PHY_CALIBRATE_TBL_SIZE         (253)
 
-#define IWL_CALIB_INIT_CFG_ALL cpu_to_le32(0xffffffff)
+#define IWL_CALIB_INIT_CFG_ALL                         cpu_to_le32(0xffffffff)
+#define IWL_CALIB_CFG_FLAG_SEND_COMPLETE_NTFY_MSK      cpu_to_le32(BIT(0))
 
 /* This enum defines the bitmap of various calibrations to enable in both
  * init ucode and runtime ucode through CALIBRATION_CFG_CMD.