aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKolekar, Abhijeet <abhijeet.kolekar@intel.com>2008-12-19 10:37:42 +0800
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 15:59:22 -0500
commitcbba18c6e3d1b2610f9a63c4636247af26141686 (patch)
tree3689c2619a56278b3b1e56d6bfaaf1fe3d9d63ad
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>
-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 17f01a69287..aaa6058dd8b 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 = {
/* the rest are 0 by default */
};
-static const struct ieee80211_supported_band *iwl3945_get_band(
- struct iwl_priv *priv, enum ieee80211_band band)
-{
- return priv->hw->wiphy->bands[band];
-}
-
/*************** DMA-QUEUE-GENERAL-FUNCTIONS *****
* DMA services
*
@@ -2462,7 +2456,7 @@ static void iwl3945_set_rate(struct iwl_priv *priv)
struct ieee80211_rate *rate;
int i;
- sband = iwl3945_get_band(priv, priv->band);
+ sband = iwl_get_hw_mode(priv, priv->band);
if (!sband) {
IWL_ERR(priv, "Failed to set rate: unable to get hw mode\n");
return;
@@ -4537,7 +4531,7 @@ static int iwl3945_get_channels_for_scan(struct iwl_priv *priv,
u16 active_dwell = 0;
int added, i;
- sband = iwl3945_get_band(priv, band);
+ sband = iwl_get_hw_mode(priv, band);
if (!sband)
return 0;