A NULL interface means the device is removed so there is no need for
setting the network index as it will eventually be removed.
Setting the network index to -1 prevents wpad or wispr to unreference
the service.
Fixes BMC#23979
netmask, gateway);
}
- /* deactive, oFono send NULL inteface before deactive signal */
- if (interface == NULL)
- connman_network_set_index(info->network, -1);
-
g_free(address);
g_free(netmask);
g_free(gateway);
connman_ipaddress_set_ipv6(&info->ipv6_address, address,
prefix_length, gateway);
- /* deactive, oFono send NULL inteface before deactive signal */
- if (interface == NULL)
- connman_network_set_index(info->network, -1);
-
g_free(address);
g_free(gateway);
}