commit:     0338bf162978025ca9260648dbcdbd457c9a2bf4
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Thu Sep  3 13:29:19 2020 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Thu Sep  3 17:37:33 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0338bf16

net-wireless/iwd: add kernel version check related to crda support

Closes: https://bugs.gentoo.org/736545
Package-Manager: Portage-3.0.5, Repoman-3.0.1
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>

 net-wireless/iwd/iwd-1.8-r1.ebuild | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/net-wireless/iwd/iwd-1.8-r1.ebuild 
b/net-wireless/iwd/iwd-1.8-r1.ebuild
index 61bd996e8df..aa4d449bc90 100644
--- a/net-wireless/iwd/iwd-1.8-r1.ebuild
+++ b/net-wireless/iwd/iwd-1.8-r1.ebuild
@@ -93,6 +93,10 @@ pkg_setup() {
        check_extra_config
 
        if ! use crda; then
+               if use kernel_linux && kernel_is -lt 4 15; then
+                       ewarn "POSSIBLE REGULATORY DOMAIN PROBLEM:"
+                       ewarn "Regulatory domain support for kernels older than 
4.15 requires crda."
+               fi
                if linux_config_exists && linux_chkconfig_builtin CFG80211 &&
                        [[ $(linux_chkconfig_string EXTRA_FIRMWARE) != 
*regulatory.db* ]]
                then

Reply via email to