diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-03-26 14:14:55 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-27 21:03:20 +0100 |
commit | 6c507cd0400cb51dd2ee251c1b8756b9375a1128 (patch) | |
tree | 2b3d44a34e2c3d2ba1e9e0c557fb0730227f5bb4 /include/net/wireless.h | |
parent | libertas: the compact flash driver is no longer experimental (diff) | |
download | linux-6c507cd0400cb51dd2ee251c1b8756b9375a1128.tar.xz linux-6c507cd0400cb51dd2ee251c1b8756b9375a1128.zip |
cfg80211: don't export ieee80211_get_channel
This patch makes ieee80211_get_channel a static inline defined in
cfg80211's header file which simply calls __ieee80211_get_channel
to avoid symbol clashes with the ieee80211 code.
The problem was pointed out by David Miller, thanks!
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/wireless.h')
-rw-r--r-- | include/net/wireless.h | 18 |
1 files changed, 15 insertions, 3 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); */ extern int ieee80211_frequency_to_channel(int freq); +/* + * Name indirection necessary because the ieee80211 code also has + * a function named "ieee80211_get_channel", so if you include + * cfg80211's header file you get cfg80211's version, if you try + * to include both header files you'll (rightfully!) get a symbol + * clash. + */ +extern struct ieee80211_channel *__ieee80211_get_channel(struct wiphy *wiphy, + int freq); + /** * ieee80211_get_channel - get channel struct from wiphy for specified frequency */ -extern struct ieee80211_channel *ieee80211_get_channel(struct wiphy *wiphy, - int freq); - +static inline struct ieee80211_channel * +ieee80211_get_channel(struct wiphy *wiphy, int freq) +{ + return __ieee80211_get_channel(wiphy, freq); +} #endif /* __NET_WIRELESS_H */ |