diff options
author | Sudha Bheemanna <b.sudha@samsung.com> | 2016-09-08 16:40:50 +0530 |
---|---|---|
committer | Amit Purwar <amit.purwar@samsung.com> | 2019-06-28 09:56:23 +0530 |
commit | 6b813c7afe73d902c84ea83a48fdcccaef414150 (patch) | |
tree | 12270498202d3922197dad31668b9871cdca6f7e | |
parent | e38e5111cd6f36d874cd470872b835b12f7ae784 (diff) | |
download | linux-rpi3-6b813c7afe73d902c84ea83a48fdcccaef414150.tar.gz linux-rpi3-6b813c7afe73d902c84ea83a48fdcccaef414150.tar.bz2 linux-rpi3-6b813c7afe73d902c84ea83a48fdcccaef414150.zip |
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>
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
-rw-r--r-- | net/bluetooth/hci_conn.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index 3fd360c9fa7e..70878a82e9e8 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c @@ -536,6 +536,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; |