]> git.karo-electronics.de Git - linux-beck.git/commitdiff
iwl3945: use iwl_get_hw_mode
authorKolekar, Abhijeet <abhijeet.kolekar@intel.com>
Fri, 19 Dec 2008 02:37:42 +0000 (10:37 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Jan 2009 20:59:22 +0000 (15:59 -0500)
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>
drivers/net/wireless/iwlwifi/iwl3945-base.c

index 17f01a69287045812e12b157be9f1950d5d3f1ea..aaa6058dd8b0dd00e8d4e2ce3b677936415a0229 100644 (file)
@@ -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;