Don't send AT+CGDCONT if APN field is empty
commit43d772d05ce2941b4b221344969a7d0bb55023da
authorJeremy Chadwick <jdc@koitsu.org>
Tue, 20 Dec 2016 05:07:55 +0000 (19 21:07 -0800)
committerToastman <toastman@galactic_core>
Mon, 2 Jan 2017 08:45:30 +0000 (2 15:45 +0700)
tree7c962ede4224cbc689ef98baaa354c676ed68a4a
parent07d4630038735b3ee264426321164043713efa62
Don't send AT+CGDCONT if APN field is empty

Some 3G modems/ISPs) don't require an APN, and the PDP context
set AT command returns ERROR in this scenario.  Allow users to
empty the APN field in the GUI to disable sending the AT+CGDCONT
command.  This is needed for BSNL EVDO (India) customers.

Reference: http://www.linksysinfo.org/index.php?threads/how-to-edit-file-on-tomato-firmware.73090/
Reference: http://m2msupport.net/m2msupport/atcgdcont-define-pdp-context/
release/src/router/rc/wan.c
release/src/router/www/basic-network.asp