Bluetooth: Modify fast connectable type. 69/294169/2
authorSudha Bheemanna <b.sudha@samsung.com>
Thu, 8 Sep 2016 10:31:23 +0000 (16:01 +0530)
committerWootak Jung <wootak.jung@samsung.com>
Wed, 14 Jun 2023 05:01:51 +0000 (14:01 +0900)
This patch modifies the fast connectable function
to just set the type.

Change-Id: I0cce96f85d823f9798ae7f147c4e33ce7b18e0e3
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
net/bluetooth/hci_sync.c

index 39af0cf..e916708 100644 (file)
@@ -2966,6 +2966,12 @@ int hci_write_fast_connectable_sync(struct hci_dev *hdev, bool enable)
 
        memset(&cp, 0, sizeof(cp));
 
+#ifdef TIZEN_BT
+       if (enable)
+               type = PAGE_SCAN_TYPE_INTERLACED;
+       else
+               type = PAGE_SCAN_TYPE_STANDARD; /* default */
+#else
        if (enable) {
                type = PAGE_SCAN_TYPE_INTERLACED;
 
@@ -2986,6 +2992,7 @@ int hci_write_fast_connectable_sync(struct hci_dev *hdev, bool enable)
                if (err)
                        return err;
        }
+#endif
 
        if (hdev->page_scan_type != type)
                err = __hci_cmd_sync_status(hdev,