aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2008-12-23 18:58:44 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 15:59:32 -0500
commitde27e64e5eb72ff3edcaf5edce2f306ada1f094d (patch)
tree0447dc8c87523ea7073ddfbea3f99e65cea47b3d /drivers/net/wireless/iwlwifi/iwl-agn-rs.c
parentecf70441a3d53dd96cb1b454060fe39f9c3db301 (diff)
iwlwifi: make use of conf_is_ht*() helpers
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Acked-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-rs.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-rs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
index 75b418e5e874..d3ae04112c34 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
@@ -1130,7 +1130,7 @@ static int rs_switch_to_mimo2(struct iwl_priv *priv,
1130 s32 rate; 1130 s32 rate;
1131 s8 is_green = lq_sta->is_green; 1131 s8 is_green = lq_sta->is_green;
1132 1132
1133 if (!conf->ht.enabled || !sta->ht_cap.ht_supported) 1133 if (!conf_is_ht(conf) || !sta->ht_cap.ht_supported)
1134 return -1; 1134 return -1;
1135 1135
1136 if (((sta->ht_cap.cap & IEEE80211_HT_CAP_SM_PS) >> 2) 1136 if (((sta->ht_cap.cap & IEEE80211_HT_CAP_SM_PS) >> 2)
@@ -1197,7 +1197,7 @@ static int rs_switch_to_siso(struct iwl_priv *priv,
1197 u8 is_green = lq_sta->is_green; 1197 u8 is_green = lq_sta->is_green;
1198 s32 rate; 1198 s32 rate;
1199 1199
1200 if (!conf->ht.enabled || !sta->ht_cap.ht_supported) 1200 if (!conf_is_ht(conf) || !sta->ht_cap.ht_supported)
1201 return -1; 1201 return -1;
1202 1202
1203 IWL_DEBUG_RATE("LQ: try to switch to SISO\n"); 1203 IWL_DEBUG_RATE("LQ: try to switch to SISO\n");
@@ -1997,7 +1997,7 @@ lq_update:
1997 * stay with best antenna legacy modulation for a while 1997 * stay with best antenna legacy modulation for a while
1998 * before next round of mode comparisons. */ 1998 * before next round of mode comparisons. */
1999 tbl1 = &(lq_sta->lq_info[lq_sta->active_tbl]); 1999 tbl1 = &(lq_sta->lq_info[lq_sta->active_tbl]);
2000 if (is_legacy(tbl1->lq_type) && !conf->ht.enabled && 2000 if (is_legacy(tbl1->lq_type) && !conf_is_ht(conf) &&
2001 lq_sta->action_counter >= 1) { 2001 lq_sta->action_counter >= 1) {
2002 lq_sta->action_counter = 0; 2002 lq_sta->action_counter = 0;
2003 IWL_DEBUG_RATE("LQ: STAY in legacy table\n"); 2003 IWL_DEBUG_RATE("LQ: STAY in legacy table\n");