diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2008-12-23 18:58:44 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:59:32 -0500 |
commit | de27e64e5eb72ff3edcaf5edce2f306ada1f094d (patch) | |
tree | 0447dc8c87523ea7073ddfbea3f99e65cea47b3d /drivers/net/wireless/iwlwifi/iwl-agn.c | |
parent | ecf70441a3d53dd96cb1b454060fe39f9c3db301 (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.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 6 |
1 files changed, 3 insertions, 3 deletions
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"); |