diff options
Diffstat (limited to 'recipes-kernel')
-rw-r--r-- | recipes-kernel/rsi-91x/files/rs9113.default | 3 | ||||
-rwxr-xr-x | recipes-kernel/rsi-91x/files/rs9113_load_modules.sh | 5 |
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 |