Since p2p technology does not own any devices, but wifi does, when wifi
devices delcare a "scan done", it will check relevantly if it's not a
p2p scan which ended.
---
src/technology.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/technology.c b/src/technology.c
index e1609c4..993cae3 100644
--- a/src/technology.c
+++ b/src/technology.c
@@ -930,6 +930,13 @@ static void reply_scan_pending(struct connman_technology
*technology, int err)
{
DBusMessage *reply;
+ if (technology->type == CONNMAN_SERVICE_TYPE_WIFI &&
+ !technology->scan_pending) {
+ technology = technology_find(CONNMAN_SERVICE_TYPE_P2P);
+ if (!technology)
+ return;
+ }
+
DBG("technology %p err %d", technology, err);
while (technology->scan_pending) {
--
1.8.3.2
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman