From f3fa40d05b0ea29131f25fbecda6fd755f69cfe7 Mon Sep 17 00:00:00 2001 From: John Klug Date: Wed, 3 Nov 2021 12:40:46 -0500 Subject: Remove rs9113 reset from /etc/init.d/mts-io, as it is redundant --- recipes-bsp/multitech/mts-io/mts-io.init | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/recipes-bsp/multitech/mts-io/mts-io.init b/recipes-bsp/multitech/mts-io/mts-io.init index f84cc3e..626a254 100755 --- a/recipes-bsp/multitech/mts-io/mts-io.init +++ b/recipes-bsp/multitech/mts-io/mts-io.init @@ -80,7 +80,10 @@ HWNAME="" HWLVL="" -RST[0]="${sysdir}/wifi-bt-reset" +# WIFIBTRESET is used later, so it must match +# the index of the RST variable for wifi-bt-reset. +WIFIBTRESET=0 +RST[${WIFIBTRESET}]="${sysdir}/wifi-bt-reset" RST[1]="${sysdir}/mtq-reset" RST[2]="${sysdir}/ap1/reset" RST[3]="${sysdir}/ap1/creset" @@ -362,6 +365,13 @@ case $1 in /usr/bin/logger -t "mts-io" -p daemon.info -s "Resetting system modules" read_card_info /bin/busybox usleep $USLPTIME + + # MTCDT-0.2 has issues with resetting RS9113 twice. + # RS9113 is reset in /etc/init.d/rs9113. + # Remove for MTRV1 reset as well, as it is redundant. + if [[ $hw_name == MTCDT ]] || [[ $hw_name == MTRV1 ]] ; then + RST[${WIFIBTRESET}]="/dev/null" + fi reset_array # use radio-reset init script for radio-reset mfser_init -- cgit v1.2.3