Send connman mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.01.org/mailman/listinfo/connman
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."


Today's Topics:

   1. [PATCH] p2p: 'scan p2p' causes stop autoscan even after scan
      p2p finishes (Vasyl Vavrychuk)


----------------------------------------------------------------------

Message: 1
Date: Wed, 29 Aug 2018 23:52:34 +0300
From: Vasyl Vavrychuk <[email protected]>
To: [email protected],       Daniel Wagner <[email protected]>
Cc: Vasyl Vavrychuk <[email protected]>
Subject: [PATCH] p2p: 'scan p2p' causes stop autoscan even after scan
        p2p finishes
Message-ID: <[email protected]>

From: Vasyl Vavrychuk <[email protected]>

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.
---
 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);
 }
 
 static gboolean p2p_find_timeout_trigger(gpointer data)
-- 
2.7.4



------------------------------

Subject: Digest Footer

_______________________________________________
connman mailing list
[email protected]
https://lists.01.org/mailman/listinfo/connman


------------------------------

End of connman Digest, Vol 34, Issue 21
***************************************

Reply via email to