aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl3945-base.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 17f01a692870..aaa6058dd8b0 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -94,12 +94,6 @@ struct iwl_mod_params iwl3945_mod_params = {
94 /* the rest are 0 by default */ 94 /* the rest are 0 by default */
95}; 95};
96 96
97static const struct ieee80211_supported_band *iwl3945_get_band(
98 struct iwl_priv *priv, enum ieee80211_band band)
99{
100 return priv->hw->wiphy->bands[band];
101}
102
103/*************** DMA-QUEUE-GENERAL-FUNCTIONS ***** 97/*************** DMA-QUEUE-GENERAL-FUNCTIONS *****
104 * DMA services 98 * DMA services
105 * 99 *
@@ -2462,7 +2456,7 @@ static void iwl3945_set_rate(struct iwl_priv *priv)
2462 struct ieee80211_rate *rate; 2456 struct ieee80211_rate *rate;
2463 int i; 2457 int i;
2464 2458
2465 sband = iwl3945_get_band(priv, priv->band); 2459 sband = iwl_get_hw_mode(priv, priv->band);
2466 if (!sband) { 2460 if (!sband) {
2467 IWL_ERR(priv, "Failed to set rate: unable to get hw mode\n"); 2461 IWL_ERR(priv, "Failed to set rate: unable to get hw mode\n");
2468 return; 2462 return;
@@ -4537,7 +4531,7 @@ static int iwl3945_get_channels_for_scan(struct iwl_priv *priv,
4537 u16 active_dwell = 0; 4531 u16 active_dwell = 0;
4538 int added, i; 4532 int added, i;
4539 4533
4540 sband = iwl3945_get_band(priv, band); 4534 sband = iwl_get_hw_mode(priv, band);
4541 if (!sband) 4535 if (!sband)
4542 return 0; 4536 return 0;
4543 4537