Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829958 - net-wireless/wpa_supplicant-2.9-r8 emits false warning about CFG80211_CRDA_SUPPORT not being set
Summary: net-wireless/wpa_supplicant-2.9-r8 emits false warning about CFG80211_CRDA_SU...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Rick Farina (Zero_Chaos)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-25 11:30 UTC by Matthias Nagel
Modified: 2021-12-25 23:17 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Nagel 2021-12-25 11:30:41 UTC
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.