Bluetooth: Modify fast connectable type. 33/317433/1
authorSudha Bheemanna <b.sudha@samsung.com>
Thu, 8 Sep 2016 10:31:23 +0000 (16:01 +0530)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 2 Jan 2025 06:09:03 +0000 (15:09 +0900)
This patch modifies the fast connectable function
to just set the type.

Change-Id: I01526daed967c88382739b497bd25a9134e48987
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>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
net/bluetooth/hci_sync.c

index a168ea6b9d6387d55f723066948fb972772cd261..6c08be70441156f3c3f342e3e7a6d832b957fa6d 100644 (file)
@@ -3164,6 +3164,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;
 
@@ -3184,6 +3190,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,