aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKolekar, Abhijeet <abhijeet.kolekar@intel.com>2008-12-18 21:37:42 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 15:59:22 -0500
commitcbba18c6e3d1b2610f9a63c4636247af26141686 (patch)
tree3689c2619a56278b3b1e56d6bfaaf1fe3d9d63ad /drivers
parentd552bfb65241a35d48e44ddb0d27e0454f579ab4 (diff)
iwl3945: use iwl_get_hw_mode
Use iwl_get_hw_mode for 3945. Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-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