summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2022-12-14 15:06:00 -0600
committerJohn Klug <john.klug@multitech.com>2023-01-10 16:42:56 -0600
commitfdd1c360794118ca281fc32e336ef2aed5cbaa20 (patch)
tree9983b8c7445f5907825bfb573a528466147a9fb1
parentda74f397b802417e600888ed0b91ae0d4d983ef4 (diff)
downloadmeta-multitech-atmel-fdd1c360794118ca281fc32e336ef2aed5cbaa20.tar.gz
meta-multitech-atmel-fdd1c360794118ca281fc32e336ef2aed5cbaa20.tar.bz2
meta-multitech-atmel-fdd1c360794118ca281fc32e336ef2aed5cbaa20.zip
Add the IEEE COUNTRY_CODE for cfg80211 to the driver load
-rw-r--r--recipes-kernel/rsi-91x/files/rs9113.default3
-rwxr-xr-xrecipes-kernel/rsi-91x/files/rs9113_load_modules.sh5
2 files changed, 8 insertions, 0 deletions
diff --git a/recipes-kernel/rsi-91x/files/rs9113.default b/recipes-kernel/rsi-91x/files/rs9113.default
index ddafe92..9d21862 100644
--- a/recipes-kernel/rsi-91x/files/rs9113.default
+++ b/recipes-kernel/rsi-91x/files/rs9113.default
@@ -64,3 +64,6 @@ SLEEPTIME=100000
# to go high.
INTSLEEPTIME=100000
+# 00 is world. IEEE Country Codes
+# for cfg80211 driver.
+CONTRY_CODE=00
diff --git a/recipes-kernel/rsi-91x/files/rs9113_load_modules.sh b/recipes-kernel/rsi-91x/files/rs9113_load_modules.sh
index b77a781..d9a5ed0 100755
--- a/recipes-kernel/rsi-91x/files/rs9113_load_modules.sh
+++ b/recipes-kernel/rsi-91x/files/rs9113_load_modules.sh
@@ -16,6 +16,7 @@ usage()
{
echo "Configuration values:"
echo " COEX_MODE"
+ echo " COUNTRY_CODE"
echo " RSI_ANTENNA_DIVERSITY"
echo " ANT_SEL_VAL"
echo " RX_DATA_INACTIVE_INTERVAL"
@@ -74,8 +75,12 @@ done
if((err)) ; then
usage
fi
+
+: ${COUNTRY_CODE:=00}
+logger -s -p daemon.error "Using COUNTRY_CODE $COUNTRY_CODE"
cd /opt/rs9113/modules
+modprobe cfg80211 ieee80211_regdom="$COUNTRY_CODE"
modprobe mac80211
modprobe bluetooth