modem: disable modem instead of just disconnecting

Until later when we'll actually do stuff like probing signal
strength and such while disconnected.
This commit is contained in:
Dan Williams 2009-09-04 17:42:09 -05:00
parent eeec1021b2
commit bee58e359d

View file

@ -460,7 +460,9 @@ device_state_changed (NMDeviceInterface *device,
case NM_DEVICE_STATE_FAILED:
case NM_DEVICE_STATE_DISCONNECTED:
dbus_g_proxy_call_no_reply (nm_modem_get_proxy (self, NULL),
"Disconnect", G_TYPE_INVALID);
"Enable",
G_TYPE_BOOLEAN, FALSE,
G_TYPE_INVALID);
break;
default:
break;