summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Eichenberger <eichest@gmail.com>2022-10-21 17:51:47 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2022-10-27 13:18:32 +0200
commit77761803f98fcc5618c43c606ab1086063bce7a9 (patch)
tree37a37f2dc29db30c28a7a8346a6d842398d6705f
parentfc348f5a1a77e9bb4121248ec06596b9496f08f7 (diff)
linux-toradex-mainline: Compile wifi stack as modules
Compile the 80211 drivers as loadable kernel modules. By having them as loadable modules we have the filesystem already ready when loading so that the modules can access the regulatory.db under /lib/firmware/regulatory.db. This will allow us to change the regulatory domain with iw reg set if required. Related-to: ELB-4815 Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com> (cherry picked from commit ca5ce278e2baa20b50ab5ce7b6a0f5a2d8898e4d)
-rw-r--r--recipes-kernel/linux/linux-toradex-mainline-git/defconfig6
-rw-r--r--recipes-kernel/linux/linux-toradex-mainline-git/toradex_imx_v6_v7.config4
2 files changed, 8 insertions, 2 deletions
diff --git a/recipes-kernel/linux/linux-toradex-mainline-git/defconfig b/recipes-kernel/linux/linux-toradex-mainline-git/defconfig
index 3a7586c..31cd24f 100644
--- a/recipes-kernel/linux/linux-toradex-mainline-git/defconfig
+++ b/recipes-kernel/linux/linux-toradex-mainline-git/defconfig
@@ -68,9 +68,9 @@ CONFIG_BT_HCIUART=y
CONFIG_BT_HCIUART_LL=y
CONFIG_BT_MRVL=m
CONFIG_BT_MRVL_SDIO=m
-CONFIG_CFG80211=y
+CONFIG_CFG80211=m
CONFIG_CFG80211_WEXT=y
-CONFIG_MAC80211=y
+CONFIG_MAC80211=m
CONFIG_RFKILL=y
CONFIG_RFKILL_INPUT=y
CONFIG_PCI=y
@@ -520,6 +520,8 @@ CONFIG_NLS_ISO8859_1=y
CONFIG_NLS_ISO8859_15=m
CONFIG_NLS_UTF8=y
CONFIG_SECURITYFS=y
+CONFIG_CRYPTO_CTR=y
+CONFIG_CRYPTO_GHASH=y
CONFIG_CRYPTO_DEV_FSL_CAAM=y
CONFIG_CRYPTO_DEV_SAHARA=y
CONFIG_CRYPTO_DEV_MXS_DCP=y
diff --git a/recipes-kernel/linux/linux-toradex-mainline-git/toradex_imx_v6_v7.config b/recipes-kernel/linux/linux-toradex-mainline-git/toradex_imx_v6_v7.config
index 2d9cc4f..1b505db 100644
--- a/recipes-kernel/linux/linux-toradex-mainline-git/toradex_imx_v6_v7.config
+++ b/recipes-kernel/linux/linux-toradex-mainline-git/toradex_imx_v6_v7.config
@@ -64,6 +64,10 @@ CONFIG_RTL8192CU=m
CONFIG_RTL8XXXU=m
CONFIG_R8188EU=m
+# 80211 as modules, so that regulatory.db is available when loading
+CONFIG_CFG80211=m
+CONFIG_MAC80211=m
+
# Networking
CONFIG_BRIDGE=m
CONFIG_VLAN_8021Q=m