mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Cc: David Miller <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
7d57961183
commit
6c507cd040
2 changed files with 18 additions and 6 deletions
|
|
@ -33,8 +33,8 @@ int ieee80211_frequency_to_channel(int freq)
|
|||
}
|
||||
EXPORT_SYMBOL(ieee80211_frequency_to_channel);
|
||||
|
||||
struct ieee80211_channel *ieee80211_get_channel(struct wiphy *wiphy,
|
||||
int freq)
|
||||
struct ieee80211_channel *__ieee80211_get_channel(struct wiphy *wiphy,
|
||||
int freq)
|
||||
{
|
||||
enum ieee80211_band band;
|
||||
struct ieee80211_supported_band *sband;
|
||||
|
|
@ -54,7 +54,7 @@ struct ieee80211_channel *ieee80211_get_channel(struct wiphy *wiphy,
|
|||
|
||||
return NULL;
|
||||
}
|
||||
EXPORT_SYMBOL(ieee80211_get_channel);
|
||||
EXPORT_SYMBOL(__ieee80211_get_channel);
|
||||
|
||||
static void set_mandatory_flags_band(struct ieee80211_supported_band *sband,
|
||||
enum ieee80211_band band)
|
||||
|
|
|
|||
Loading…
Reference in a new issue