diff options
author | Martin Xu <martin.xu@intel.com> | 2009-12-30 16:41:08 +0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-12-30 00:47:17 -0800 |
commit | 3947638941b8d2ac4026e350cb626a9103d214a2 (patch) | |
tree | 3300e5e7b0c8f0e84c9f0719df605aea1c103cfa /drivers | |
parent | 71ac4f60d90035cc784ddbd7e567998148343bc9 (diff) | |
download | ofono-3947638941b8d2ac4026e350cb626a9103d214a2.tar.bz2 |
Add netmask to HSO GPRS context driver
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hsomodem/gprs-context.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/hsomodem/gprs-context.c b/drivers/hsomodem/gprs-context.c index 0526fcc3..721a0175 100644 --- a/drivers/hsomodem/gprs-context.c +++ b/drivers/hsomodem/gprs-context.c @@ -47,6 +47,8 @@ #define AUTH_BUF_LENGTH OFONO_GPRS_MAX_USERNAME_LENGTH + \ OFONO_GPRS_MAX_PASSWORD_LENGTH + 128 +#define STATIC_IP_NETMASK "255.255.255.255" + static const char *none_prefix[] = { NULL }; static const char *owandata_prefix[] = { "_OWANDATA:", NULL }; @@ -274,7 +276,7 @@ static void owandata_cb(gboolean ok, GAtResult *result, gpointer user_data) ofono_info("IP: %s, Gateway: %s", ip, gateway); ofono_info("DNS: %s, %s", dns1, dns2); - CALLBACK_WITH_SUCCESS(gcd->up_cb, interface, TRUE, ip, NULL, + CALLBACK_WITH_SUCCESS(gcd->up_cb, interface, TRUE, ip, STATIC_IP_NETMASK, gateway, dns, gcd->cb_data); gcd->hso_state = HSO_NONE; |