iwlwifi: make sure runtime calibration is enabled after association
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 3 Sep 2010 18:42:04 +0000 (11:42 -0700)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Sat, 11 Sep 2010 15:52:11 +0000 (08:52 -0700)
Clear the "start calib" flag only for new association,
The flag will be set in post_associate function to trigger
the runtime calibration. Set this flag to "0" will stop the
runtime sensitivity calibration

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

index a19671d992480b097628d237614c43782753e76d..36df9a7fcbcbc6e72a9815bfebb45e0994c07e69 100644 (file)
@@ -226,9 +226,8 @@ int iwl_commit_rxon(struct iwl_priv *priv, struct iwl_rxon_context *ctx)
                        return ret;
                }
        }
-
-       priv->start_calib = 0;
        if (new_assoc) {
+               priv->start_calib = 0;
                /* Apply the new configuration
                 * RXON assoc doesn't clear the station table in uCode,
                 */