Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45555
3c298f89-4303-0410-b956-
a3cf2f4a3e73
proto_config_add_string password
}
-proto_mbim_setup() {
+_proto_mbim_setup() {
local interface="$1"
local tid=2
local ret
ubus call network add_dynamic "$(json_dump)"
}
+proto_mbim_setup() {
+ local ret
+
+ _proto_mbim_setup $@
+ ret=$?
+
+ [ "$ret" = 0 ] || {
+ logger "mbim bringup failed, retry in 15s"
+ sleep 15
+ }
+
+ return $rt
+}
+
proto_mbim_teardown() {
local interface="$1"