diff options
author | Benjamin Berg <bberg@redhat.com> | 2019-02-19 12:57:59 +0100 |
---|---|---|
committer | Benjamin Berg <bberg@redhat.com> | 2019-02-19 14:01:39 +0100 |
commit | 27bc2cb22a6bdd3dc0c1ad2a67464939dcf53049 (patch) | |
tree | d2fe20c89ef607e3d699009e06d079aa07177b39 | |
parent | 10600bdb699a9edfa5824e307af33628b728d15d (diff) | |
download | NetworkManager-27bc2cb22a6bdd3dc0c1ad2a67464939dcf53049.tar.gz |
device: Ensure P2P device is unavailable without wpa_supplicant
Put the device into UNAVAILABLE state when the corresponding WPA
supplicant management interface is unset. This is important to
explicitly clear any pending state changes that are not permissible when
there is no management interface.
-rw-r--r-- | src/devices/wifi/nm-device-wifi-p2p.c | 4 |
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 a6259273ea..97a5beac02 100644 --- a/src/devices/wifi/nm-device-wifi-p2p.c +++ b/src/devices/wifi/nm-device-wifi-p2p.c @@ -945,6 +945,10 @@ supplicant_interfaces_release (NMDeviceWifiP2P *self, gboolean set_is_waiting) supplicant_group_interface_release (self); + nm_device_state_changed (NM_DEVICE (self), + NM_DEVICE_STATE_UNAVAILABLE, + NM_DEVICE_STATE_REASON_SUPPLICANT_FAILED); + if (set_is_waiting) _set_is_waiting_for_supplicant (self, TRUE); } |