summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSudha Bheemanna <b.sudha@samsung.com>2016-09-08 16:21:01 +0530
committerAmit Purwar <amit.purwar@samsung.com>2019-06-28 10:04:09 +0530
commit0962d6826ebdfbc4df2bb837cdcbe051a99af96e (patch)
treeef786f9f1845c22daea0178ab19bec92d37e5978
parent2cb61a3fefde33cbe6fb9b447da51e737eeb1204 (diff)
downloadlinux-rpi3-0962d6826ebdfbc4df2bb837cdcbe051a99af96e.tar.gz
linux-rpi3-0962d6826ebdfbc4df2bb837cdcbe051a99af96e.tar.bz2
linux-rpi3-0962d6826ebdfbc4df2bb837cdcbe051a99af96e.zip
Bluetooth: Fix issue in the Set LE privacy function.
This patch fixes not to check the hdev power before setting LE Privacy. Change-Id: I344ea13b1d90527e3e7554ec616cdc640b85159c Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
-rw-r--r--net/bluetooth/mgmt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index dd3e7dfafb9a..0dfe752f2088 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -4955,9 +4955,14 @@ static int set_privacy(struct sock *sk, struct hci_dev *hdev, void *cp_data,
return mgmt_cmd_status(sk, hdev->id, MGMT_OP_SET_PRIVACY,
MGMT_STATUS_INVALID_PARAMS);
+#ifndef TIZEN_BT
+ /* commenting out since set privacy command is always rejected
+ * if this condition is enabled.
+ */
if (hdev_is_powered(hdev))
return mgmt_cmd_status(sk, hdev->id, MGMT_OP_SET_PRIVACY,
MGMT_STATUS_REJECTED);
+#endif
hci_dev_lock(hdev);