summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--recipes-kernel/rs9113/files/rs9113/rs9113.default6
-rwxr-xr-xrecipes-kernel/rs9113/files/rs9113/rs9113.init7
2 files changed, 13 insertions, 0 deletions
diff --git a/recipes-kernel/rs9113/files/rs9113/rs9113.default b/recipes-kernel/rs9113/files/rs9113/rs9113.default
index aeba4f8..87b619a 100644
--- a/recipes-kernel/rs9113/files/rs9113/rs9113.default
+++ b/recipes-kernel/rs9113/files/rs9113/rs9113.default
@@ -1,3 +1,9 @@
+#
+# Skip loading the RS9113 related drivers if
+# set to zero.
+#
+RS9113_LOAD=1
+
# Parameters for rs9113 driver
#
# Enable Antenna Diversity (1)
diff --git a/recipes-kernel/rs9113/files/rs9113/rs9113.init b/recipes-kernel/rs9113/files/rs9113/rs9113.init
index c723846..d594e28 100755
--- a/recipes-kernel/rs9113/files/rs9113/rs9113.init
+++ b/recipes-kernel/rs9113/files/rs9113/rs9113.init
@@ -23,6 +23,10 @@ RS9113_WKUP=${MTS_IODIR}/wifi-bt-lpwkup
case "$1" in
start)
+ if ((RS9113_LOAD == 0)) ; then
+ # We don't want the driver loaded.
+ exit 0
+ fi
# Reset the RS9113 chip is ready, and
# wait for it to settle.
if [ -f "$RS9113_RESET" ] ; then
@@ -47,6 +51,9 @@ case "$1" in
if [ $WKUP -ne 1 ] ; then
logger -t rs9113 -p error -s "$RS9113_WKUP is $WKUP"
fi
+ else
+ # No WiFi BT, so exit quietly
+ exit 0
fi
/usr/bin/logger -t "rs9113" -p info -s "Loading rs9113 modules with COEX=$COEX_MODE and Country=$SET_COUNTRY_CODE"
/usr/sbin/rs9113_load_modules.sh $CONFIG