diff options
author | Sudha Bheemanna <b.sudha@samsung.com> | 2016-09-08 16:21:01 +0530 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2016-09-29 15:08:01 +0900 |
commit | 97b733348dde2922d77899cb780550af8ac22510 (patch) | |
tree | aae4130f3f4207d96c414dd75c4c73b47faabf71 | |
parent | 63cec8bcb85175c82bb2569389817a43ba98d8b0 (diff) | |
download | linux-exynos-97b733348dde2922d77899cb780550af8ac22510.tar.gz linux-exynos-97b733348dde2922d77899cb780550af8ac22510.tar.bz2 linux-exynos-97b733348dde2922d77899cb780550af8ac22510.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>
-rw-r--r-- | net/bluetooth/mgmt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index c6baa80c5efe..8d2fa2ad839a 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -5385,9 +5385,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); |