From 8540d1e311ad4fe490b128e509ccdb749438f1a2 Mon Sep 17 00:00:00 2001 From: nbd Date: Thu, 27 Oct 2011 20:29:10 +0000 Subject: comgt: delay 3g bringup for sierra wireless cards until the card has locked on to the carrier, this helps with avoiding firmware hangs (thx, chris) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28636 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/comgt/files-netifd/3g.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'package/comgt/files-netifd') diff --git a/package/comgt/files-netifd/3g.sh b/package/comgt/files-netifd/3g.sh index cbf8bd1e6..cf96435a8 100644 --- a/package/comgt/files-netifd/3g.sh +++ b/package/comgt/files-netifd/3g.sh @@ -50,6 +50,8 @@ proto_3g_setup() { *) CODE=3;; esac export MODE="AT_OPSYS=${CODE}" + elif echo "$cardinfo" | grep -q "Sierra Wireless"; then + SIERRA=1 fi if [ -n "$pincode" ]; then @@ -60,6 +62,11 @@ proto_3g_setup() { } fi [ -n "$MODE" ] && gcom -d "$device" -s /etc/gcom/setmode.gcom + + # wait for carrier to avoid firmware stability bugs + [ -n "$SIERRA" ] && { + gcom -d "$device" -s /etc/gcom/getcarrier.gcom || return 1 + } ;; esac -- cgit v1.2.3