From 3a2aa5632db84da8bac990fa842c2cb1f6df645a Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Tue, 19 Feb 2019 14:53:48 +0100 Subject: [PATCH] device: Recheck P2P availability after setting a supplicant interface The newly set interface may already be in a READY state. In that case, the device should progress into the DISCONNECTED state rather than remaining in the UNAVAILABLE state. --- src/devices/wifi/nm-device-wifi-p2p.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/devices/wifi/nm-device-wifi-p2p.c b/src/devices/wifi/nm-device-wifi-p2p.c index 97a5beac02..56e82fe540 100644 --- a/src/devices/wifi/nm-device-wifi-p2p.c +++ b/src/devices/wifi/nm-device-wifi-p2p.c @@ -1137,6 +1137,10 @@ nm_device_wifi_p2p_set_mgmt_iface (NMDeviceWifiP2P *self, G_CALLBACK (supplicant_iface_group_started_cb), self); + nm_device_queue_recheck_available (NM_DEVICE (self), + NM_DEVICE_STATE_REASON_SUPPLICANT_AVAILABLE, + NM_DEVICE_STATE_REASON_SUPPLICANT_FAILED); + done: _set_is_waiting_for_supplicant (self, !priv->mgmt_iface