summaryrefslogtreecommitdiff
path: root/src/dhcp-manager/nm-dhcp-dhcpcd.c
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2011-01-05 15:30:59 -0600
committerDan Williams <dcbw@redhat.com>2011-01-05 15:30:59 -0600
commit9c99066d6caab46deba26d39df9a01b4dd7476d2 (patch)
tree4f0c77bf1dcc0dec73924fc88d49f2479497d696 /src/dhcp-manager/nm-dhcp-dhcpcd.c
parenta9918eefac5fbff34e91367b8f1927eba58e0e9d (diff)
downloadNetworkManager-9c99066d6caab46deba26d39df9a01b4dd7476d2.tar.gz
wimax: if the device is connected at startup, force it to disconnect
Otherwise it doesn't auto-scan and we get no network list. As a later optimization, we could detect this, call iwmx_sdk_get_connected_network() to get the current NSP, match that up with a connection, and "assume" the connection like we do for Ethernet devices.
Diffstat (limited to 'src/dhcp-manager/nm-dhcp-dhcpcd.c')
-rw-r--r--src/dhcp-manager/nm-dhcp-dhcpcd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dhcp-manager/nm-dhcp-dhcpcd.c b/src/dhcp-manager/nm-dhcp-dhcpcd.c
index 4fb703c480..237661fe47 100644
--- a/src/dhcp-manager/nm-dhcp-dhcpcd.c
+++ b/src/dhcp-manager/nm-dhcp-dhcpcd.c
@@ -170,15 +170,17 @@ real_ip6_start (NMDHCPClient *client,
}
static void
-real_stop (NMDHCPClient *client)
+real_stop (NMDHCPClient *client, gboolean release)
{
NMDHCPDhcpcdPrivate *priv = NM_DHCP_DHCPCD_GET_PRIVATE (client);
/* Chain up to parent */
- NM_DHCP_CLIENT_CLASS (nm_dhcp_dhcpcd_parent_class)->stop (client);
+ NM_DHCP_CLIENT_CLASS (nm_dhcp_dhcpcd_parent_class)->stop (client, release);
if (priv->pid_file)
remove (priv->pid_file);
+
+ /* FIXME: implement release... */
}
/***************************************************/