Skip to content
Snippets Groups Projects
Commit 3eea31fc authored by Felix Fietkau's avatar Felix Fietkau
Browse files

comgt: delay 3g bringup for sierra wireless cards until the card has locked on...

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)

SVN-Revision: 28636
parent c932bcee
No related branches found
No related tags found
No related merge requests found
...@@ -73,6 +73,7 @@ define Package/comgt/install ...@@ -73,6 +73,7 @@ define Package/comgt/install
$(INSTALL_DATA) ./files/setmode.gcom $(1)/etc/gcom/setmode.gcom $(INSTALL_DATA) ./files/setmode.gcom $(1)/etc/gcom/setmode.gcom
$(INSTALL_DATA) ./files/getcardinfo.gcom $(1)/etc/gcom/getcardinfo.gcom $(INSTALL_DATA) ./files/getcardinfo.gcom $(1)/etc/gcom/getcardinfo.gcom
$(INSTALL_DATA) ./files/getstrength.gcom $(1)/etc/gcom/getstrength.gcom $(INSTALL_DATA) ./files/getstrength.gcom $(1)/etc/gcom/getstrength.gcom
$(INSTALL_DATA) ./files/getcarrier.gcom $(1)/etc/gcom/getcarrier.gcom
$(INSTALL_DIR) $(1)/etc/hotplug.d/tty $(INSTALL_DIR) $(1)/etc/hotplug.d/tty
$(INSTALL_DATA) $(FILES_DIR)/3g.usb $(1)/etc/hotplug.d/tty/30-3g $(INSTALL_DATA) $(FILES_DIR)/3g.usb $(1)/etc/hotplug.d/tty/30-3g
$(Package/comgt/install/$(COMGT_VARIANT)) $(Package/comgt/install/$(COMGT_VARIANT))
......
...@@ -50,6 +50,8 @@ proto_3g_setup() { ...@@ -50,6 +50,8 @@ proto_3g_setup() {
*) CODE=3;; *) CODE=3;;
esac esac
export MODE="AT_OPSYS=${CODE}" export MODE="AT_OPSYS=${CODE}"
elif echo "$cardinfo" | grep -q "Sierra Wireless"; then
SIERRA=1
fi fi
if [ -n "$pincode" ]; then if [ -n "$pincode" ]; then
...@@ -60,6 +62,11 @@ proto_3g_setup() { ...@@ -60,6 +62,11 @@ proto_3g_setup() {
} }
fi fi
[ -n "$MODE" ] && gcom -d "$device" -s /etc/gcom/setmode.gcom [ -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 esac
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment