From: Danny Jeongseok Seo <[email protected]>
---
After Wi-Fi scan, detect_dellink() cannot process device_destruct() because
device is still made a reference.
So this patch can check __connman_device_reset_scanning() and deal with
connman_device_unref() correctly.
src/detect.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/detect.c b/src/detect.c
index f4b5d29..bcdc325 100644
--- a/src/detect.c
+++ b/src/detect.c
@@ -98,6 +98,11 @@ static void detect_dellink(unsigned short type, int
index,
connman_device_unregister(device);
connman_device_unref(device);
+
+ if (__connman_device_scanning(device) == TRUE) {
+ connman_device_reset_scanning(device);
+ connman_device_unref(device);
+ }
}
static struct connman_rtnl detect_rtnl = {
--
1.7.9.5
-----------------------------------------------
Danny Jeongseok Seo
Senior Engineer
Platform R&D Team
Mobile & Communication Division
Telecommunication Network
SAMSUNG Electronics Co., Ltd.
Phone: +82-31-301-4561
E-mail: [email protected]
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman