diff options
Diffstat (limited to 'recipes-bsp')
-rwxr-xr-x | recipes-bsp/multitech/mts-io/mts-io.init | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/recipes-bsp/multitech/mts-io/mts-io.init b/recipes-bsp/multitech/mts-io/mts-io.init index c520597..cd93fbb 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" @@ -355,6 +358,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 |