mirror of git://git.sysmocom.de/ofono
xmm7modem: Fix to set gateway in pdp context
gateway was not being listed in context settings. Fixed teh bug to show correct gateway address.
This commit is contained in:
parent
31cad076a4
commit
f3a5016a67
|
@ -354,6 +354,9 @@ static void cgcontrdp_cb(gboolean ok, GAtResult *result, gpointer user_data)
|
|||
|
||||
DBG("DNS: %s, %s\n", gcd->dns1, gcd->dns2);
|
||||
|
||||
if (gw)
|
||||
l_strlcpy(gcd->gateway, gw, sizeof(gcd->gateway));
|
||||
|
||||
if (gcd->proto == OFONO_GPRS_PROTO_IP) {
|
||||
if (!laddrnetmask ||
|
||||
at_util_get_ipv4_address_and_netmask(laddrnetmask,
|
||||
|
@ -391,9 +394,6 @@ static void cgcontrdp_cb(gboolean ok, GAtResult *result, gpointer user_data)
|
|||
IPV6_DEFAULT_PREFIX_LEN);
|
||||
}
|
||||
|
||||
if (gw)
|
||||
l_strlcpy(gcd->gateway, gw, sizeof(gcd->gateway));
|
||||
|
||||
gcd->state = STATE_ACTIVE;
|
||||
|
||||
DBG("address: %s\n", gcd->address);
|
||||
|
|
Loading…
Reference in New Issue