aboutsummaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-rs.c6
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c6
2 files changed, 6 insertions, 6 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");
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index 1ef9f58fec85..f3f6dba7a673 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -522,9 +522,9 @@ static void iwl_ht_conf(struct iwl_priv *priv,
522 */ 522 */
523 523
524 iwl_conf->extension_chan_offset = IEEE80211_HT_PARAM_CHA_SEC_NONE; 524 iwl_conf->extension_chan_offset = IEEE80211_HT_PARAM_CHA_SEC_NONE;
525 if (priv->hw->conf.ht.channel_type == NL80211_CHAN_HT40MINUS) 525 if (conf_is_ht40_minus(&priv->hw->conf))
526 iwl_conf->extension_chan_offset = IEEE80211_HT_PARAM_CHA_SEC_BELOW; 526 iwl_conf->extension_chan_offset = IEEE80211_HT_PARAM_CHA_SEC_BELOW;
527 else if(priv->hw->conf.ht.channel_type == NL80211_CHAN_HT40PLUS) 527 else if (conf_is_ht40_plus(&priv->hw->conf))
528 iwl_conf->extension_chan_offset = IEEE80211_HT_PARAM_CHA_SEC_ABOVE; 528 iwl_conf->extension_chan_offset = IEEE80211_HT_PARAM_CHA_SEC_ABOVE;
529 529
530 /* If no above or below channel supplied disable FAT channel */ 530 /* If no above or below channel supplied disable FAT channel */
@@ -2546,7 +2546,7 @@ static int iwl_mac_config(struct ieee80211_hw *hw, u32 changed)
2546 mutex_lock(&priv->mutex); 2546 mutex_lock(&priv->mutex);
2547 IWL_DEBUG_MAC80211("enter to channel %d\n", conf->channel->hw_value); 2547 IWL_DEBUG_MAC80211("enter to channel %d\n", conf->channel->hw_value);
2548 2548
2549 priv->current_ht_config.is_ht = conf->ht.enabled; 2549 priv->current_ht_config.is_ht = conf_is_ht(conf);
2550 2550
2551 if (conf->radio_enabled && iwl_radio_kill_sw_enable_radio(priv)) { 2551 if (conf->radio_enabled && iwl_radio_kill_sw_enable_radio(priv)) {
2552 IWL_DEBUG_MAC80211("leave - RF-KILL - waiting for uCode\n"); 2552 IWL_DEBUG_MAC80211("leave - RF-KILL - waiting for uCode\n");