diff options
author | Johannes Berg <johannes.berg@intel.com> | 2015-04-08 03:16:32 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-04-08 03:19:29 -0400 |
commit | 6d00ec0514bd909e89ede59501342732dbef49fd (patch) | |
tree | 3c2b90a88ed46f469d8df20bfd0710b05f5acfd5 /net/wireless | |
parent | 46b9d180141dac76cd6065bf497cec44816ab4c6 (diff) |
cfg80211: don't allow disabling WEXT if it's required
The change to only export WEXT symbols when required could break
the build if CONFIG_CFG80211_WEXT was explicitly disabled while
a driver like orinoco selected it.
Fix this by hiding the symbol when it's required so it can't be
disabled in that case.
Fixes: 2afe38d15cee ("cfg80211-wext: export symbols only when needed")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: Jim Davis <jim.epost@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/Kconfig b/net/wireless/Kconfig index b13dfb4ff001..4f5543dd2524 100644 --- a/net/wireless/Kconfig +++ b/net/wireless/Kconfig | |||
@@ -175,7 +175,7 @@ config CFG80211_INTERNAL_REGDB | |||
175 | Most distributions have a CRDA package. So if unsure, say N. | 175 | Most distributions have a CRDA package. So if unsure, say N. |
176 | 176 | ||
177 | config CFG80211_WEXT | 177 | config CFG80211_WEXT |
178 | bool "cfg80211 wireless extensions compatibility" | 178 | bool "cfg80211 wireless extensions compatibility" if !CFG80211_WEXT_EXPORT |
179 | depends on CFG80211 | 179 | depends on CFG80211 |
180 | select WEXT_CORE | 180 | select WEXT_CORE |
181 | default y if CFG80211_WEXT_EXPORT | 181 | default y if CFG80211_WEXT_EXPORT |