From 80e851f0f63250008c28c7466d3e83f4827eec6c Mon Sep 17 00:00:00 2001 From: Sudha Bheemanna Date: Thu, 8 Sep 2016 16:01:23 +0530 Subject: [PATCH] Bluetooth: Modify fast connectable type. This patch modifies the fast connectable function to just set the type. Change-Id: I01526daed967c88382739b497bd25a9134e48987 Signed-off-by: Sudha Bheemanna Signed-off-by: Amit Purwar Signed-off-by: Wootak Jung Signed-off-by: Jaehoon Chung --- net/bluetooth/hci_sync.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c index d25f525dbbd8..c29efbbf3d67 100644 --- a/net/bluetooth/hci_sync.c +++ b/net/bluetooth/hci_sync.c @@ -3371,6 +3371,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; @@ -3391,6 +3397,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, -- 2.34.1