diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-07-22 17:51:16 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-22 17:51:16 -0400 |
commit | 41bf37117b47fc5ce2aae91f6a108e7e42e0b046 (patch) | |
tree | d5c8f24075313edfe548256dd931527f1569921e /drivers/net/wireless/iwlwifi/iwl-agn-rs.c | |
parent | 415b3334a21aa67806c52d1acf4e72e14f7f402f (diff) | |
parent | 6e6e8c510a84fe3237ef02b954e58cca6a3f4b1a (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-rs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rs.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c index ebcd13bc10d9..3789ff4bf53b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c | |||
@@ -354,9 +354,11 @@ static void rs_program_fix_rate(struct iwl_priv *priv, | |||
354 | lq_sta->active_mimo2_rate = 0x1FD0; /* 6 - 60 MBits, no 9, no CCK */ | 354 | lq_sta->active_mimo2_rate = 0x1FD0; /* 6 - 60 MBits, no 9, no CCK */ |
355 | lq_sta->active_mimo3_rate = 0x1FD0; /* 6 - 60 MBits, no 9, no CCK */ | 355 | lq_sta->active_mimo3_rate = 0x1FD0; /* 6 - 60 MBits, no 9, no CCK */ |
356 | 356 | ||
357 | #ifdef CONFIG_IWLWIFI_DEVICE_SVTOOL | ||
357 | /* testmode has higher priority to overwirte the fixed rate */ | 358 | /* testmode has higher priority to overwirte the fixed rate */ |
358 | if (priv->tm_fixed_rate) | 359 | if (priv->tm_fixed_rate) |
359 | lq_sta->dbg_fixed_rate = priv->tm_fixed_rate; | 360 | lq_sta->dbg_fixed_rate = priv->tm_fixed_rate; |
361 | #endif | ||
360 | 362 | ||
361 | IWL_DEBUG_RATE(priv, "sta_id %d rate 0x%X\n", | 363 | IWL_DEBUG_RATE(priv, "sta_id %d rate 0x%X\n", |
362 | lq_sta->lq.sta_id, lq_sta->dbg_fixed_rate); | 364 | lq_sta->lq.sta_id, lq_sta->dbg_fixed_rate); |
@@ -1080,7 +1082,8 @@ done: | |||
1080 | /* See if there's a better rate or modulation mode to try. */ | 1082 | /* See if there's a better rate or modulation mode to try. */ |
1081 | if (sta && sta->supp_rates[sband->band]) | 1083 | if (sta && sta->supp_rates[sband->band]) |
1082 | rs_rate_scale_perform(priv, skb, sta, lq_sta); | 1084 | rs_rate_scale_perform(priv, skb, sta, lq_sta); |
1083 | #ifdef CONFIG_MAC80211_DEBUGFS | 1085 | |
1086 | #if defined(CONFIG_MAC80211_DEBUGFS) && defined(CONFIG_IWLWIFI_DEVICE_SVTOOL) | ||
1084 | if ((priv->tm_fixed_rate) && | 1087 | if ((priv->tm_fixed_rate) && |
1085 | (priv->tm_fixed_rate != lq_sta->dbg_fixed_rate)) | 1088 | (priv->tm_fixed_rate != lq_sta->dbg_fixed_rate)) |
1086 | rs_program_fix_rate(priv, lq_sta); | 1089 | rs_program_fix_rate(priv, lq_sta); |
@@ -2904,8 +2907,9 @@ void iwl_rs_rate_init(struct iwl_priv *priv, struct ieee80211_sta *sta, u8 sta_i | |||
2904 | if (sband->band == IEEE80211_BAND_5GHZ) | 2907 | if (sband->band == IEEE80211_BAND_5GHZ) |
2905 | lq_sta->last_txrate_idx += IWL_FIRST_OFDM_RATE; | 2908 | lq_sta->last_txrate_idx += IWL_FIRST_OFDM_RATE; |
2906 | lq_sta->is_agg = 0; | 2909 | lq_sta->is_agg = 0; |
2907 | 2910 | #ifdef CONFIG_IWLWIFI_DEVICE_SVTOOL | |
2908 | priv->tm_fixed_rate = 0; | 2911 | priv->tm_fixed_rate = 0; |
2912 | #endif | ||
2909 | #ifdef CONFIG_MAC80211_DEBUGFS | 2913 | #ifdef CONFIG_MAC80211_DEBUGFS |
2910 | lq_sta->dbg_fixed_rate = 0; | 2914 | lq_sta->dbg_fixed_rate = 0; |
2911 | #endif | 2915 | #endif |