diff options
author | Ron Rindjunsky <ron.rindjunsky@intel.com> | 2008-05-29 04:35:19 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-03 15:00:26 -0400 |
commit | 3c57601d0a1993cfc12a27cc6652b750bb44c523 (patch) | |
tree | f93ced5cadb98459ca8d3107168090ef7671a632 /drivers/net | |
parent | 37a44211cbe27795dbb79b2ea7036ff784f18d73 (diff) |
iwlwifi: move iwl_get_hw_mode to iwl-core.h
This patch moves iwl_get_hw_mode to iwl-core.h.
Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.h | 6 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl4965-base.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h index 004c68444006..6b5af7afbb25 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.h +++ b/drivers/net/wireless/iwlwifi/iwl-core.h | |||
@@ -342,4 +342,10 @@ static inline int iwl_send_rxon_assoc(struct iwl_priv *priv) | |||
342 | return priv->cfg->ops->hcmd->rxon_assoc(priv); | 342 | return priv->cfg->ops->hcmd->rxon_assoc(priv); |
343 | } | 343 | } |
344 | 344 | ||
345 | static inline const struct ieee80211_supported_band *iwl_get_hw_mode( | ||
346 | struct iwl_priv *priv, enum ieee80211_band band) | ||
347 | { | ||
348 | return priv->hw->wiphy->bands[band]; | ||
349 | } | ||
350 | |||
345 | #endif /* __iwl_core_h__ */ | 351 | #endif /* __iwl_core_h__ */ |
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index 49e72d461474..676d04356b55 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -87,12 +87,6 @@ MODULE_VERSION(DRV_VERSION); | |||
87 | MODULE_AUTHOR(DRV_COPYRIGHT); | 87 | MODULE_AUTHOR(DRV_COPYRIGHT); |
88 | MODULE_LICENSE("GPL"); | 88 | MODULE_LICENSE("GPL"); |
89 | 89 | ||
90 | static const struct ieee80211_supported_band *iwl_get_hw_mode( | ||
91 | struct iwl_priv *priv, enum ieee80211_band band) | ||
92 | { | ||
93 | return priv->hw->wiphy->bands[band]; | ||
94 | } | ||
95 | |||
96 | static int iwl4965_is_empty_essid(const char *essid, int essid_len) | 90 | static int iwl4965_is_empty_essid(const char *essid, int essid_len) |
97 | { | 91 | { |
98 | /* Single white space is for Linksys APs */ | 92 | /* Single white space is for Linksys APs */ |