From: Sudha Bheemanna Date: Thu, 8 Sep 2016 10:31:23 +0000 (+0530) Subject: Bluetooth: Modify fast connectable type. X-Git-Tag: accepted/tizen/unified/riscv/20230725.071352~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fdfd208954a1f58a53d0e7da9a2dda9db0998738;p=platform%2Fkernel%2Flinux-starfive.git Bluetooth: Modify fast connectable type. This patch modifies the fast connectable function to just set the type. Change-Id: I0cce96f85d823f9798ae7f147c4e33ce7b18e0e3 Signed-off-by: Sudha Bheemanna Signed-off-by: Amit Purwar Signed-off-by: Wootak Jung --- diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c index 2d51bbfd4d16..ccba9c42c46a 100644 --- a/net/bluetooth/hci_sync.c +++ b/net/bluetooth/hci_sync.c @@ -3016,6 +3016,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; @@ -3036,6 +3042,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,