From: Johannes Berg Date: Wed, 8 Apr 2015 07:16:32 +0000 (+0200) Subject: cfg80211: don't allow disabling WEXT if it's required X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=6d00ec0514bd909e89ede59501342732dbef49fd;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git 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 Reported-by: Jim Davis Signed-off-by: Johannes Berg --- 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 Most distributions have a CRDA package. So if unsure, say N. config CFG80211_WEXT - bool "cfg80211 wireless extensions compatibility" + bool "cfg80211 wireless extensions compatibility" if !CFG80211_WEXT_EXPORT depends on CFG80211 select WEXT_CORE default y if CFG80211_WEXT_EXPORT