summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorSudha Bheemanna <b.sudha@samsung.com>2016-09-08 16:40:50 +0530
committerSeung-Woo Kim <sw0312.kim@samsung.com>2016-12-14 13:53:20 +0900
commit4740d1bfd7a7784a57eb96a3b8530ef8ea3afd7f (patch)
treea32dc95d70ff3c9fbce44271c2ca934804cd74e9 /net
parentfbadd0b772950e4b843d7c172a89dc5cdc48a50d (diff)
Bluetooth: Enable sniff mode for incoming connection
Add provision to set the link poilicy to enable sniff mode for incoming connection. Change-Id: Ifff9e9f0838f26a6c96d81f4cbaae43429aa231f Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/hci_conn.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index 420ebf1aebcd..440ae7d6c653 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -479,6 +479,11 @@ struct hci_conn *hci_conn_add(struct hci_dev *hdev, int type, bdaddr_t *dst,
conn->tx_power = HCI_TX_POWER_INVALID;
conn->max_tx_power = HCI_TX_POWER_INVALID;
+#ifdef TIZEN_BT
+ /* enable sniff mode for incoming connection */
+ conn->link_policy = hdev->link_policy;
+#endif
+
set_bit(HCI_CONN_POWER_SAVE, &conn->flags);
conn->disc_timeout = HCI_DISCONN_TIMEOUT;