diff options
author | Martin Xu <martin.xu@intel.com> | 2009-12-16 11:01:30 +0800 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-12-16 13:20:26 -0600 |
commit | c44fee239968fabcb5eb4a5750b3422becb745d6 (patch) | |
tree | df424213763811558297892d064fe36a8fd7fe46 /drivers/mbmmodem/gprs-context.c | |
parent | 50d855d91f8f01c9fb2e40d2982c51b7bf2c4423 (diff) | |
download | ofono-c44fee239968fabcb5eb4a5750b3422becb745d6.tar.bz2 |
Fix: Set netmask for static ip on mbm
Diffstat (limited to 'drivers/mbmmodem/gprs-context.c')
-rw-r--r-- | drivers/mbmmodem/gprs-context.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/mbmmodem/gprs-context.c b/drivers/mbmmodem/gprs-context.c index 5dae7b53..407a2d3c 100644 --- a/drivers/mbmmodem/gprs-context.c +++ b/drivers/mbmmodem/gprs-context.c @@ -48,6 +48,8 @@ #define MAX_DNS 5 +#define STATIC_IP_NETMASK "255.255.255.248" + static const char *none_prefix[] = { NULL }; static const char *e2ipcfg_prefix[] = { "*E2IPCFG:", NULL }; static const char *enap_prefix[] = { "*ENAP:", NULL }; @@ -133,8 +135,9 @@ out: modem = ofono_gprs_context_get_modem(gc); interface = ofono_modem_get_string(modem, "NetworkInterface"); - CALLBACK_WITH_SUCCESS(gcd->up_cb, interface, success, ip, NULL, - gateway, success ? dns : NULL, gcd->cb_data); + CALLBACK_WITH_SUCCESS(gcd->up_cb, interface, success, ip, + STATIC_IP_NETMASK, gateway, + success ? dns : NULL, gcd->cb_data); gcd->mbm_state = MBM_NONE; gcd->up_cb = NULL; gcd->cb_data = NULL; |