diff options
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rxon.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c b/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c index d594a1658a9e..d9d617fd5078 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c | |||
@@ -569,6 +569,20 @@ void iwlagn_bss_info_changed(struct ieee80211_hw *hw, | |||
569 | if (force || memcmp(&ctx->staging, &ctx->active, sizeof(ctx->staging))) | 569 | if (force || memcmp(&ctx->staging, &ctx->active, sizeof(ctx->staging))) |
570 | iwlagn_commit_rxon(priv, ctx); | 570 | iwlagn_commit_rxon(priv, ctx); |
571 | 571 | ||
572 | if (changes & BSS_CHANGED_ASSOC && bss_conf->assoc) { | ||
573 | /* | ||
574 | * The chain noise calibration will enable PM upon | ||
575 | * completion. If calibration has already been run | ||
576 | * then we need to enable power management here. | ||
577 | */ | ||
578 | if (priv->chain_noise_data.state == IWL_CHAIN_NOISE_DONE) | ||
579 | iwl_power_update_mode(priv, false); | ||
580 | |||
581 | /* Enable RX differential gain and sensitivity calibrations */ | ||
582 | iwl_chain_noise_reset(priv); | ||
583 | priv->start_calib = 1; | ||
584 | } | ||
585 | |||
572 | if (changes & BSS_CHANGED_IBSS) { | 586 | if (changes & BSS_CHANGED_IBSS) { |
573 | ret = iwlagn_manage_ibss_station(priv, vif, | 587 | ret = iwlagn_manage_ibss_station(priv, vif, |
574 | bss_conf->ibss_joined); | 588 | bss_conf->ibss_joined); |