aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/comgt/files/ncm.json
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-01-28 19:19:33 +0000
committerJohn Crispin <blogic@openwrt.org>2015-01-28 19:19:33 +0000
commit187afa2a1dbf45d02a709b36f3aa5f709ce503e3 (patch)
treea8052f024ef0cce7288cf6f4a137c3854286955d /package/network/utils/comgt/files/ncm.json
parent7558535a9e02a19359425a029fb538f4ef64d651 (diff)
downloadmaster-187ad058-187afa2a1dbf45d02a709b36f3aa5f709ce503e3.tar.gz
master-187ad058-187afa2a1dbf45d02a709b36f3aa5f709ce503e3.tar.bz2
master-187ad058-187afa2a1dbf45d02a709b36f3aa5f709ce503e3.zip
comgt-ncm: Fix NCM protocol
This patch fixes the NCM protocol by adding the missing ifname to the netifd script and changing one unintended "send" statement to "print" in runcommand.gcom. It also cleans up logging and makes the manufacturer names case-insensitive. Furthermore, comgt-ncm should not depend on the USB-serial-related kernel modules, as the cdc-wdm control device works without them. There is also no need to depend on kmod-huawei-cdc-ncm, since other manufacturers (like Sony-Ericsson and Samsung) which use other kernel modules should also be supported. I'd appreciate if someone with Samsung or Sony-Ericsson modems could test this, I was only able to test it with Huawei E3276, E3372 and E353. Signed-off-by: Matti Laakso <malaakso@elisanet.fi> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44182 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/utils/comgt/files/ncm.json')
-rw-r--r--package/network/utils/comgt/files/ncm.json4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/network/utils/comgt/files/ncm.json b/package/network/utils/comgt/files/ncm.json
index b9b15cdba0..ea4f98485f 100644
--- a/package/network/utils/comgt/files/ncm.json
+++ b/package/network/utils/comgt/files/ncm.json
@@ -19,7 +19,7 @@
"connect": "AT^NDISDUP=1,1,\\\"${apn}\\\"${username:+,\\\"$username\\\"}${password:+,\\\"$password\\\"}${auth:+,$auth}",
"disconnect": "AT^NDISDUP=1,0"
},
- "SAMSUNG": {
+ "samsung": {
"initialize": [
"AT",
"AT+CGREG=2",
@@ -33,7 +33,7 @@
"connect": "AT+CGATT=1",
"disconnect": "AT+CGATT=0"
},
- "Sony": {
+ "sony": {
"initialize": [
"AT+CFUN=1",
"AT+CGDCONT=1,\\\"IP\\\",\\\"${apn}\\\"",