summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gentoo.org>2020-09-03 08:29:19 -0500
committerBen Kohler <bkohler@gentoo.org>2020-09-03 12:37:33 -0500
commit0338bf162978025ca9260648dbcdbd457c9a2bf4 (patch)
tree758169693ac04e715ea14c6bba698e298a563f28 /net-wireless
parentdev-python/fqdn: add python3.8 support (diff)
downloadgentoo-0338bf162978025ca9260648dbcdbd457c9a2bf4.tar.gz
gentoo-0338bf162978025ca9260648dbcdbd457c9a2bf4.tar.bz2
gentoo-0338bf162978025ca9260648dbcdbd457c9a2bf4.zip
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@gentoo.org>
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/iwd/iwd-1.8-r1.ebuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/net-wireless/iwd/iwd-1.8-r1.ebuild b/net-wireless/iwd/iwd-1.8-r1.ebuild
index 61bd996e8df6..aa4d449bc90c 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