iwlagn: save the latest smps mode
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 3 Jun 2011 14:54:12 +0000 (07:54 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 3 Jun 2011 19:16:36 +0000 (15:16 -0400)
When change smps mode due to bt coex, save it

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

index 4ab77c8a584c022574e356b6b996e9cea005cb67..677f73c4c1e3af52457a8c8650191d162f19c125 100644 (file)
@@ -1797,6 +1797,7 @@ static void iwlagn_bt_traffic_change_work(struct work_struct *work)
                priv->cfg->ops->lib->update_chain_flags(priv);
 
        if (smps_request != -1) {
+               priv->current_ht_config.smps = smps_request;
                for_each_context(priv, ctx) {
                        if (ctx->vif && ctx->vif->type == NL80211_IFTYPE_STATION)
                                ieee80211_request_smps(ctx->vif, smps_request);