Hi Vasyl,
On 08/29/2018 10:52 PM, Vasyl Vavrychuk wrote:
From: Vasyl Vavrychuk <vasyl.vavrychuk(a)globallogic.com>
When we start p2p scan we reset Wi-Fi autoscan, i.e. autoscan timer is
stopped but Wi-Fi scanning status is not touched.
This is probably due to we get Wi-Fi scanning during P2P find implicitly.
This fact was veryfied using wpa_cli.
But when p2p scan stops in p2p_find_stop function we did not reverted our
action but did reset Wi-Fi autoscan again for some reason.
Thanks a lot for taking the time to write commit message. Much better :)
---
plugins/wifi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/wifi.c b/plugins/wifi.c
index fa8d0bf..6be23a4 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -1782,7 +1782,7 @@ static void p2p_find_stop(struct wifi_data *wifi)
connman_device_set_scanning(wifi->device, CONNMAN_SERVICE_TYPE_P2P, false);
connman_device_unref(wifi->device);
- reset_autoscan(wifi->device);
+ start_autoscan(wifi->device);
This looks like a diff against a different version. Upstream just used
'device' and not 'wifi->device'. I adapter this patch to match
upstream.
Please check if I wrecked it.
Patch applied.
Thanks,
Daniel