include $(TOPDIR)/rules.mk
PKG_NAME:=umbim
-PKG_VERSION:=2014-08-26
+PKG_VERSION:=2014-09-09
PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://git.openwrt.org/project/umbim.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
-PKG_SOURCE_VERSION:=7741d88cdfd36f0c4380f660a9ad7109df76b432
+PKG_SOURCE_VERSION:=4ae19ab4fcdd70dbfc8c303d752502f2da5a7e75
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
proto_config_add_string apn
proto_config_add_string pincode
proto_config_add_string delay
+ proto_config_add_string auth
+ proto_config_add_string username
+ proto_config_add_string password
}
proto_mbim_setup() {
local ret
local device apn pincode delay
- json_get_vars device apn pincode delay
+ json_get_vars device apn pincode delay auth username password
[ -n "$device" ] || {
logger -p daemon.err -t "mbim[$$]" "No control device specified"
return 1
}
-
[ -n "$delay" ] && sleep "$delay"
logger -p daemon.info -t "mbim[$$]" "Reading capabilities"
tid=$((tid + 1))
logger -p daemon.info -t "mbim[$$]" "Connect to network"
- while ! umbim $DBG -n -t $tid -d $device connect "$apn"; do
+ while ! umbim $DBG -n -t $tid -d $device connect "$apn" "$auth" "$username" "$password"; do
tid=$((tid + 1))
sleep 1;
done