From 86a44623953d8148fdc4f1dde0d3e041c8f2f54e Mon Sep 17 00:00:00 2001 From: Mhd Sulhan Date: Mon, 22 Dec 2014 16:50:57 +0700 Subject: mobile_ppp: do not call CGDCONT if AccessPointName is not set. Some mobile does not use APN to connect, this commit allow connection established with empty APN. --- src/lib/connections/mobile_ppp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/connections/mobile_ppp b/src/lib/connections/mobile_ppp index 785457d..40750d8 100644 --- a/src/lib/connections/mobile_ppp +++ b/src/lib/connections/mobile_ppp @@ -64,7 +64,7 @@ TIMEOUT 3 GPRSonly) printf "\^SYSCFG=13,1,3fffffff,0,0";; GPRSpref) printf "\^SYSCFG=2,1,3fffffff,0,0";; esac)' -'OK-AT-OK' 'AT+CGDCONT=1,"IP",$(quote_word "$AccessPointName")' +${AccessPointName:+'OK-AT-OK' 'AT+CGDCONT=1,"IP",$(quote_word "$AccessPointName")'} 'OK' 'ATDT${PhoneNumber:-*99#}' TIMEOUT 30 CONNECT '' -- cgit v1.2.3-24-g4f1b