From fdd1c360794118ca281fc32e336ef2aed5cbaa20 Mon Sep 17 00:00:00 2001 From: John Klug Date: Wed, 14 Dec 2022 15:06:00 -0600 Subject: Add the IEEE COUNTRY_CODE for cfg80211 to the driver load --- recipes-kernel/rsi-91x/files/rs9113.default | 3 +++ recipes-kernel/rsi-91x/files/rs9113_load_modules.sh | 5 +++++ 2 files changed, 8 insertions(+) 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 -- cgit v1.2.3