Bluetooth: Do not update background scan when updating connectable 29/217529/1
authorDeokhyun Kim <dukan.kim@samsung.com>
Tue, 12 Nov 2019 07:44:09 +0000 (16:44 +0900)
committerDeokhyun Kim <dukan.kim@samsung.com>
Tue, 12 Nov 2019 07:44:09 +0000 (16:44 +0900)
Scan should be kept even though connectable is changed, because it may not be
a scan for connection.

Change-Id: I87b5d76c86c786de712dad4c801e8642d8cd885a
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
net/bluetooth/hci_request.c

index c8bcec9885b81630f9de37bfba85163fab81a777..f504f021b7a98dcf7e25a69cb4a83b90d6e2d8eb 100644 (file)
@@ -1663,7 +1663,13 @@ static int connectable_update(struct hci_request *req, unsigned long opt)
            !list_empty(&hdev->adv_instances))
                __hci_req_enable_advertising(req);
 
+#ifndef CONFIG_TIZEN_WIP
+/* Scan is stopped unexpectedly even if connectable mode is enabled while
+ * scanning. Scan should be kept even though connectable is changed, because
+ * it may not be a scan for connection.
+ */
        __hci_update_background_scan(req);
+#endif
 
        hci_dev_unlock(hdev);