From c27558138953755569b9ce5579b03029511b4673 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 21 Feb 2019 14:08:56 -0800 Subject: [PATCH] tools: add option to disable reg domain verification HT/VHT require channels who's use is restricted depending on country. When using these channels, cfg80211 tries to load the regulatory.db file in /lib/firmware and verify the signature. This poses a problem as the host machine may not have a signed regulatory.db, or it may have not been signed with the expected signature which would cause cfg80211 to fail to load the database. If cfg80211 fails to load the database the country will be set to 00, which is the most restrictive "world roaming" setting. This does not allow HT/VHT to work properly. In the context of test-runner we can simply disable the verification. Unforunately this is not a very common practice, so CONFIG_EXPERT must be enabled. If your system does not have /lib/firmware/regulatory.db you must get it. More info can be found here: https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb --- tools/test_runner_kernel_config | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/test_runner_kernel_config b/tools/test_runner_kernel_config index 65d19a72..5d95d5d1 100755 --- a/tools/test_runner_kernel_config +++ b/tools/test_runner_kernel_config @@ -4,6 +4,10 @@ scripts/config --enable CONFIG_MAC80211_HWSIM scripts/config --enable CONFIG_NLMON scripts/config --enable CONFIG_VLAN_8021Q +scripts/config --enable CONFIG_EXPERT +scripts/config --enable CONFIG_CFG80211_CERTIFICATION_ONUS +scripts/config --enable CONFIG_EXTRA_FIRMWARE="regulatory.db" + scripts/config --enable CONFIG_CRYPTO_USER_API_SKCIPHER scripts/config --enable CONFIG_CRYPTO_USER_API_AEAD scripts/config --enable CONFIG_CRYPTO_USER_API_HASH