summaryrefslogtreecommitdiff
path: root/mesh/manager.c
diff options
context:
space:
mode:
authorInga Stotland <inga.stotland@intel.com>2019-11-11 22:22:05 -0800
committerBrian Gix <brian.gix@intel.com>2019-11-14 14:10:18 -0800
commitd64f6c885580ef23eb28e53edf1a007bb3628804 (patch)
tree666e5839f472bd35758083bc1530f00c70645e39 /mesh/manager.c
parent6dcea66fc2fed74d945c415a5aa1747ff247f4da (diff)
downloadbluez-d64f6c885580ef23eb28e53edf1a007bb3628804.tar.gz
mesh: Cancel unprovisioned scan on exit or app disconnect
If a provisioner app quits or the daemon is stopped while there's an active scan for unprovisioned devices in progress, the scan needs to be explicitly canceled.
Diffstat (limited to 'mesh/manager.c')
-rw-r--r--mesh/manager.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mesh/manager.c b/mesh/manager.c
index 0b11b4541..adbb01280 100644
--- a/mesh/manager.c
+++ b/mesh/manager.c
@@ -794,3 +794,11 @@ bool manager_dbus_init(struct l_dbus *bus)
return true;
}
+
+void manager_scan_cancel(struct mesh_node *node)
+{
+ if (scan_node != node)
+ return;
+
+ scan_cancel(NULL, node);
+}