diff options
author | Thomas Haller <thaller@redhat.com> | 2020-04-24 16:42:13 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-04-24 16:57:28 +0200 |
commit | 16c1869476106859b684151eb1b101c24cff3451 (patch) | |
tree | 8067197fbb8246324f884e38f24472ef2aed6f10 /src/devices/wifi/nm-device-wifi.c | |
parent | 8ecc325f29f5cba83daf6fca0003c7e13bafba31 (diff) | |
download | NetworkManager-th/cli-trigger-scan-retry.tar.gz |
wifi: add callback to nm_supplicant_interface_request_scan()th/cli-trigger-scan-retry
While we request a scan, we are not yet actually scanning. That means, the supplicant's
"scanning" property will only change to TRUE a while after we initiate the scan. It may
even never happen.
We thus need to handle that the request is currently pending and react when the
request completes.
Diffstat (limited to 'src/devices/wifi/nm-device-wifi.c')
-rw-r--r-- | src/devices/wifi/nm-device-wifi.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/devices/wifi/nm-device-wifi.c b/src/devices/wifi/nm-device-wifi.c index 40faa13470..bf3e6ad27a 100644 --- a/src/devices/wifi/nm-device-wifi.c +++ b/src/devices/wifi/nm-device-wifi.c @@ -1509,7 +1509,11 @@ request_wireless_scan (NMDeviceWifi *self, nm_supplicant_interface_request_scan (priv->sup_iface, ssids ? (GBytes *const*) ssids->pdata : NULL, - ssids ? ssids->len : 0u); + ssids ? ssids->len : 0u, + NULL, + NULL, + NULL); + request_started = TRUE; } else _LOGD (LOGD_WIFI, "wifi-scan: scanning requested but not allowed at this time"); |