]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
iwlwifi: clear dbg_fixed_rate during init
authorShanyu Zhao <shanyu.zhao@intel.com>
Thu, 2 Dec 2010 19:02:54 +0000 (11:02 -0800)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Mon, 13 Dec 2010 23:51:01 +0000 (15:51 -0800)
This prevent bad fixed_rate keeps crashing uCode in an endless loop.

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

index f450adc723610c9b5136ce29817c57d2e47c9886..ee123482e1d5ef3ac0d989c76dbd113eb473d225 100644 (file)
@@ -2873,6 +2873,8 @@ void iwl_rs_rate_init(struct iwl_priv *priv, struct ieee80211_sta *sta, u8 sta_i
                lq_sta->last_txrate_idx += IWL_FIRST_OFDM_RATE;
        lq_sta->is_agg = 0;
 
+       lq_sta->dbg_fixed_rate = 0;
+
        rs_initialize_lq(priv, conf, sta, lq_sta);
 }