wpa_supplicant-2.9-r8 (and other versions) emit the warning "REGULATORY DOMAIN PROBLEM: please enable CFG80211_CRDA_SUPPORT for proper regulatory domain support" even if the warning is pointless. The warning originates from the following function pkg_pretend() { CONFIG_CHECK="" if use crda ; then CONFIG_CHECK="${CONFIG_CHECK} ~CFG80211_CRDA_SUPPORT" WARNING_CFG80211_CRDA_SUPPORT="REGULATORY DOMAIN PROBLEM: please enable CFG80211_CRDA_SUPPORT for proper regulatory domain support" fi ... } Please note that the USE flag crda is enabled by default for this package. However, in order to gain access to the kernel option CFG80211_CRDA_SUPPORT, i.e. to make it visible at all, the "expert options" of the kernel must be unlocked first. This means CONFIG_EXPERT must be set. Then, the option CFG80211_CRDA_SUPPORT can be enabled/disabled. However, the default is enabled. In expert mode, the option can explicitly disabled and the help message states to only disable it if "you know for sure you have no need for it". Hence, the ebuild should not unconditionally check if CFG80211_CRDA_SUPPORT is set/not set, but also take into consideration whether CONFIG_EXPERT is enabled. If and only if CONFIG_EXPERT is enabled, and CFG80211_CRDA_SUPPORT is disabled a warning should be emitted. Reproducible: Always Steps to Reproduce: 1. Use a kernel with "CONFIG_EXPERT" not being set 2. Emerge wpa_supplicant with default USE flags Actual Results: The false warning "REGULATORY DOMAIN PROBLEM: please enable CFG80211_CRDA_SUPPORT for proper regulatory domain support" is emitted. Expected Results: No false warning should be emitted.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb05f1c34454ccbad4bca7032537917d05f894ac commit eb05f1c34454ccbad4bca7032537917d05f894ac Author: Rick Farina <zerochaos@gentoo.org> AuthorDate: 2023-08-19 16:57:45 +0000 Commit: Rick Farina <zerochaos@gentoo.org> CommitDate: 2023-08-19 17:29:38 +0000 net-wireless/wpa_supplicant: make crda optional net-wireless/wireless-regdb now handles crda if requested and other packages do not need that handling. Closes: https://bugs.gentoo.org/829958 Signed-off-by: Rick Farina <zerochaos@gentoo.org> .../wpa_supplicant/wpa_supplicant-2.10-r2.ebuild | 490 +++++++++++++++++++++ .../wpa_supplicant/wpa_supplicant-9999.ebuild | 35 +- 2 files changed, 498 insertions(+), 27 deletions(-)