cfg80211: add missing dependency to CFG80211 suboptions
authorRomain Naour <romain.naour@gmail.com>
Sun, 25 Feb 2018 12:39:56 +0000 (13:39 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 27 Feb 2018 09:54:12 +0000 (10:54 +0100)
commita78872363614367c3f37e3a5b4181c7a6b207b37
treedd42d4df31323948dbdd03df80f163bdde3d3c00
parentb323ac19b7734a1c464b2785a082ee50bccd3b91
cfg80211: add missing dependency to CFG80211 suboptions

New options introduced by the patch this fixes are still
enabled even if CFG80211 is disabled.

.config:
    # CONFIG_CFG80211 is not set
    CONFIG_CFG80211_REQUIRE_SIGNED_REGDB=y
    CONFIG_CFG80211_USE_KERNEL_REGDB_KEYS=y
    # CONFIG_LIB80211 is not set

When CFG80211_REQUIRE_SIGNED_REGDB is enabled, it selects
SYSTEM_DATA_VERIFICATION which selects SYSTEM_TRUSTED_KEYRING
that need extract-cert tool. extract-cert needs some openssl
headers to be installed on the build machine.

Instead of adding missing "depends on CFG80211", it's
easier to use a 'if' block around all options related
to CFG80211, so do that.

Fixes: 90a53e4432b1 ("cfg80211: implement regdb signature checking")
Signed-off-by: Romain Naour <romain.naour@gmail.com>
[touch up commit message a bit]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/Kconfig