Don't send AT+CGDCONT if APN field is empty
commited6cb6cd134424c5a97c8f7c29377cb2c7489a9d
authorJeremy Chadwick <jdc@koitsu.org>
Tue, 3 Jan 2017 08:42:51 +0000 (3 15:42 +0700)
committerToastman <toastman@galactic_core>
Thu, 12 Jan 2017 12:54:38 +0000 (12 19:54 +0700)
tree2082e4f19b824b627b9afcb89155e242d6f71310
parent4263d4d1ab5fd63feb078c74c597981131e47c3f
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-rt-6.x.4708/router/rc/wan.c
release/src-rt-6.x.4708/router/www/basic-network.asp