wwan: add a generic 3g/4g proto

this proto handler will detect which of 3g, qmi, mbim, ncm or directip you need
for a stick and setup uci automagically

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42837
This commit is contained in:
John Crispin 2014-10-08 08:01:20 +00:00
parent 1df98fcd5a
commit 90120bb771
356 changed files with 1980 additions and 19 deletions

View file

@ -73,6 +73,9 @@ define Package/comgt/install
$(INSTALL_DATA) ./files/3g.usb $(1)/etc/hotplug.d/tty/30-3g
$(INSTALL_DIR) $(1)/lib/netifd/proto
$(INSTALL_BIN) ./files/3g.sh $(1)/lib/netifd/proto/3g.sh
$(INSTALL_BIN) ./files/directip.sh $(1)/lib/netifd/proto/directip.sh
$(INSTALL_DIR) $(1)/lib/network/wwan/
$(INSTALL_DATA) ./files/data/* $(1)/lib/network/wwan/
endef
define Package/comgt-directip/install

View file

@ -1,9 +1,13 @@
#!/bin/sh
[ -n "$INCLUDE_ONLY" ] || {
NOT_INCLUDED=1
INCLUDE_ONLY=1
. ../netifd-proto.sh
. ./ppp.sh
init_proto "$@"
}
proto_3g_init_config() {
no_device=1
@ -26,6 +30,7 @@ proto_3g_setup() {
json_get_var pincode pincode
json_get_var dialnumber dialnumber
[ -n "$dat_device" ] && device=$dat_device
[ -e "$device" ] || {
proto_set_available "$interface" 0
return 1
@ -101,4 +106,4 @@ proto_3g_teardown() {
proto_kill_command "$interface"
}
add_protocol 3g
[ -z "NOT_INCLUDED" ] || add_protocol 3g

View file

@ -0,0 +1,6 @@
{
"desc": "Nokia C5-00 Mobile phone",
"control": 0,
"data": 0
} "acm": 1
}

View file

@ -0,0 +1,6 @@
{
"desc": "Nokia CS-10",
"control": 0,
"data": 0
} "acm": 1
}

View file

@ -0,0 +1,6 @@
{
"desc": "Nokia CS-10",
"control": 0,
"data": 0
} "acm": 1
}

View file

@ -0,0 +1,6 @@
{
"desc": "Nokia CS-15/CS-18",
"control": 0,
"data": 0
} "acm": 1
}

View file

@ -0,0 +1,6 @@
{
"desc": "Nokia CS-12",
"control": 0,
"data": 0
} "acm": 1
}

View file

@ -0,0 +1,6 @@
{
"desc": "Nokia CS-11",
"control": 0,
"data": 0
} "acm": 1
}

View file

@ -0,0 +1,6 @@
{
"desc": "Nokia CS-17",
"control": 0,
"data": 0
} "acm": 1
}

View file

@ -0,0 +1,6 @@
{
"desc": "Nokia CS-18",
"control": 0,
"data": 0
} "acm": 1
}

View file

@ -0,0 +1,6 @@
{
"desc": "Nokia CS-19",
"control": 0,
"data": 0
} "acm": 1
}

View file

@ -0,0 +1,6 @@
{
"desc": "Nokia CS-19",
"control": 0,
"data": 0
} "acm": 1
}

View file

@ -0,0 +1,6 @@
{
"desc": "Nokia 21M-02",
"control": 0,
"data": 0
} "acm": 1
}

View file

@ -0,0 +1,6 @@
{
"desc": "iBall 3.5G Connect",
"control": 2,
"data": 2
} "generic": 1
}

View file

@ -0,0 +1,5 @@
{
"desc": "Leoxsys LN-72V",
"control": 2,
"data": 0
}}

View file

@ -0,0 +1,6 @@
{
"desc": "Axesstel MV241",
"control": 2,
"data": 0
} "generic": 1
}

View file

@ -0,0 +1,5 @@
{
"desc": "Siemens SG75",
"control": 2,
"data": 0
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Generic Qualcomm",
"control": 1,
"data": 2
}}

View file

@ -0,0 +1,5 @@
{
"desc": "D-Link DWM-152",
"control": 1,
"data": 0
}}

View file

@ -0,0 +1,5 @@
{
"desc": "D-Link DWM-156",
"control": 1,
"data": 0
}}

View file

@ -0,0 +1,6 @@
{
"desc": "D-Link DWM-156",
"control": 1,
"data": 2
} "generic": 1
}

View file

@ -0,0 +1,4 @@
{
"desc": "Option GIO711",
"type": "qmi"
}

View file

@ -0,0 +1,5 @@
{
"desc": "Option GI0201",
"control": 1,
"data": 0
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Option GTM380",
"control": 1,
"data": 0
}}

View file

@ -0,0 +1,4 @@
{
"desc": "Option GTM681W",
"type": "qmi"
}

View file

@ -0,0 +1,5 @@
{
"desc": "Option GTM671WFS",
"control": 2,
"data": 2
}}

View file

@ -0,0 +1,4 @@
{
"desc": "Olivetti Olicard 100",
"type": "qmi"
}

View file

@ -0,0 +1,4 @@
{
"desc": "Olivetti Olicard 120",
"type": "qmi"
}

View file

@ -0,0 +1,4 @@
{
"desc": "Olivetti Olicard 140",
"type": "qmi"
}

View file

@ -0,0 +1,5 @@
{
"desc": "Olivetti Olicard 145",
"control": 0,
"data": 4
}}

View file

@ -0,0 +1,4 @@
{
"desc": "Olivetti Olicard 155",
"type": "qmi"
}

View file

@ -0,0 +1,4 @@
{
"desc": "Olivetti Olicard 200",
"type": "qmi"
}

View file

@ -0,0 +1,4 @@
{
"desc": "Olivetti Olicard 160",
"type": "qmi"
}

View file

@ -0,0 +1,4 @@
{
"desc": "Olivetti Olicard 500",
"type": "qmi"
}

View file

@ -0,0 +1,6 @@
{
"desc": "Ericsson F3507g",
"control": 4,
"data": 1
} "acm": 1
}

View file

@ -0,0 +1,6 @@
{
"desc": "Ericsson F3507g",
"control": 4,
"data": 1
} "acm": 1
}

View file

@ -0,0 +1,6 @@
{
"desc": "Ericsson F3307",
"control": 4,
"data": 1
} "acm": 1
}

View file

@ -0,0 +1,6 @@
{
"desc": "Ericsson F5521gw",
"control": 4,
"data": 1
} "acm": 1
}

View file

@ -0,0 +1,6 @@
{
"desc": "Ericsson F5521gw",
"control": 4,
"data": 1
} "acm": 1
}

View file

@ -0,0 +1,5 @@
{
"desc": "Kyocera KPC650",
"control": 0,
"data": 0
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Kyocera KPC680",
"control": 0,
"data": 0
}}

View file

@ -0,0 +1,4 @@
{
"desc": "Sierra MC7700",
"type": "qmi"
}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra Wireless AC313U/320U/330U Direct IP",
"control": 3,
"data": 3
}}

View file

@ -0,0 +1,6 @@
{
"desc": "LG L-05A",
"control": 0,
"data": 2
} "acm": 1
}

View file

@ -0,0 +1,6 @@
{
"desc": "LG LUU-2100TI",
"control": 0,
"data": 2
} "acm": 1
}

View file

@ -0,0 +1,6 @@
{
"desc": "LG LUU-2110TI",
"control": 0,
"data": 2
} "acm": 1
}

View file

@ -0,0 +1,5 @@
{
"desc": "LG L-02C",
"control": 0,
"data": 2
}}

View file

@ -0,0 +1,6 @@
{
"desc": "PANTECH UM-150",
"control": 0,
"data": 0
} "acm": 1
}

View file

@ -0,0 +1,6 @@
{
"desc": "PANTECH UM-175",
"control": 0,
"data": 0
} "acm": 1
}

View file

@ -0,0 +1,6 @@
{
"desc": "PANTECH UM-175AL",
"control": 0,
"data": 0
} "acm": 1
}

View file

@ -0,0 +1,6 @@
{
"desc": "PANTECH UM-190",
"control": 0,
"data": 0
} "acm": 1
}

View file

@ -0,0 +1,6 @@
{
"desc": "PANTECH UM-185C/UM185E",
"control": 0,
"data": 0
} "acm": 1
}

View file

@ -0,0 +1,4 @@
{
"desc": "PANTECH UML-290 4G Modem",
"type": "qmi"
}

View file

@ -0,0 +1,4 @@
{
"desc": "PANTECH P4200 4G Modem",
"type": "qmi"
}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra EM5625",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra MC5720",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra AC595U",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra MC5725",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra AC597E",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra EM5725",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra AC597",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra MC5727 CDMA",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra AC598",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra T11",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra AC402",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra MC5728",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra CDMA 1xEVDO PC Card, AC580",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra AC595U",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra MC5720",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra MC5725",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra MC5727",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra AC250U",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra MC8755",
"control": 0,
"data": 2
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra MC8765",
"control": 0,
"data": 2
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra MC8755",
"control": 0,
"data": 2
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra MC8765",
"control": 0,
"data": 2
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra MC8755",
"control": 0,
"data": 2
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra MC8755",
"control": 0,
"data": 2
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra MC8775",
"control": 0,
"data": 2
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra MC8775",
"control": 0,
"data": 2
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra MC8775",
"control": 0,
"data": 2
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra AC875",
"control": 0,
"data": 2
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra AC875U",
"control": 2,
"data": 0
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra AC875E",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra MC8781",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra MC8780",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra MC8781",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra MC8780",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra MC8781",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra MC8785",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra MC8785 Composite",
"control": 3,
"data": 4
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra AC880",
"control": 2,
"data": 0
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra AC 881",
"control": 2,
"data": 0
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra AC880E",
"control": 2,
"data": 0
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra AC881E",
"control": 2,
"data": 0
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra AC880U",
"control": 2,
"data": 0
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra ATT USB Connect 881",
"control": 2,
"data": 0
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra AC885E",
"control": 2,
"data": 0
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra AC885E",
"control": 2,
"data": 0
}}

View file

@ -0,0 +1,5 @@
{
"desc": "Sierra C885",
"control": 3,
"data": 3
}}

Some files were not shown because too many files have changed in this diff Show more