summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2019-02-19 14:53:48 +0100
committerBenjamin Berg <bberg@redhat.com>2019-02-19 15:00:48 +0100
commit3a2aa5632db84da8bac990fa842c2cb1f6df645a (patch)
treeb00a5d17f5bd426c3e2dd860bb72a011108a6477
parent3e079e87a5a67384aa05c894aa536507838f985a (diff)
downloadNetworkManager-3a2aa5632db84da8bac990fa842c2cb1f6df645a.tar.gz
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.
-rw-r--r--src/devices/wifi/nm-device-wifi-p2p.c4
1 files changed, 4 insertions, 0 deletions
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