aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/net/wireless.h18
-rw-r--r--net/wireless/util.c6
2 files changed, 18 insertions, 6 deletions
diff --git a/include/net/wireless.h b/include/net/wireless.h
index f4b77ab66bae..667b4080d30f 100644
--- a/include/net/wireless.h
+++ b/include/net/wireless.h
@@ -304,10 +304,22 @@ extern int ieee80211_channel_to_frequency(int chan);
304 */ 304 */
305extern int ieee80211_frequency_to_channel(int freq); 305extern int ieee80211_frequency_to_channel(int freq);
306 306
307/*
308 * Name indirection necessary because the ieee80211 code also has
309 * a function named "ieee80211_get_channel", so if you include
310 * cfg80211's header file you get cfg80211's version, if you try
311 * to include both header files you'll (rightfully!) get a symbol
312 * clash.
313 */
314extern struct ieee80211_channel *__ieee80211_get_channel(struct wiphy *wiphy,
315 int freq);
316
307/** 317/**
308 * ieee80211_get_channel - get channel struct from wiphy for specified frequency 318 * ieee80211_get_channel - get channel struct from wiphy for specified frequency
309 */ 319 */
310extern struct ieee80211_channel *ieee80211_get_channel(struct wiphy *wiphy, 320static inline struct ieee80211_channel *
311 int freq); 321ieee80211_get_channel(struct wiphy *wiphy, int freq)
312 322{
323 return __ieee80211_get_channel(wiphy, freq);
324}
313#endif /* __NET_WIRELESS_H */ 325#endif /* __NET_WIRELESS_H */
diff --git a/net/wireless/util.c b/net/wireless/util.c
index f3e623df3515..f54424693a38 100644
--- a/net/wireless/util.c
+++ b/net/wireless/util.c
@@ -33,8 +33,8 @@ int ieee80211_frequency_to_channel(int freq)
33} 33}
34EXPORT_SYMBOL(ieee80211_frequency_to_channel); 34EXPORT_SYMBOL(ieee80211_frequency_to_channel);
35 35
36struct ieee80211_channel *ieee80211_get_channel(struct wiphy *wiphy, 36struct ieee80211_channel *__ieee80211_get_channel(struct wiphy *wiphy,
37 int freq) 37 int freq)
38{ 38{
39 enum ieee80211_band band; 39 enum ieee80211_band band;
40 struct ieee80211_supported_band *sband; 40 struct ieee80211_supported_band *sband;
@@ -54,7 +54,7 @@ struct ieee80211_channel *ieee80211_get_channel(struct wiphy *wiphy,
54 54
55 return NULL; 55 return NULL;
56} 56}
57EXPORT_SYMBOL(ieee80211_get_channel); 57EXPORT_SYMBOL(__ieee80211_get_channel);
58 58
59static void set_mandatory_flags_band(struct ieee80211_supported_band *sband, 59static void set_mandatory_flags_band(struct ieee80211_supported_band *sband,
60 enum ieee80211_band band) 60 enum ieee80211_band band)