diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-03-26 09:14:55 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-27 16:03:20 -0400 |
commit | 6c507cd0400cb51dd2ee251c1b8756b9375a1128 (patch) | |
tree | 2b3d44a34e2c3d2ba1e9e0c557fb0730227f5bb4 /net | |
parent | 7d5796118353cd45e9e301fdf3ff99fdec5390e9 (diff) |
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 'net')
-rw-r--r-- | net/wireless/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 | } |
34 | EXPORT_SYMBOL(ieee80211_frequency_to_channel); | 34 | EXPORT_SYMBOL(ieee80211_frequency_to_channel); |
35 | 35 | ||
36 | struct ieee80211_channel *ieee80211_get_channel(struct wiphy *wiphy, | 36 | struct 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 | } |
57 | EXPORT_SYMBOL(ieee80211_get_channel); | 57 | EXPORT_SYMBOL(__ieee80211_get_channel); |
58 | 58 | ||
59 | static void set_mandatory_flags_band(struct ieee80211_supported_band *sband, | 59 | static void set_mandatory_flags_band(struct ieee80211_supported_band *sband, |
60 | enum ieee80211_band band) | 60 | enum ieee80211_band band) |