diff options
author | Arman Uguray <armansito@chromium.org> | 2015-03-28 15:39:00 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-03-28 16:31:57 -0400 |
commit | 880897d4c9eedd69b33b9905a6919e3e4f58eae8 (patch) | |
tree | 1da327df642e26ed8ed823a83bf7ca13f69f15d0 /net/bluetooth/mgmt.c | |
parent | c7d4883b0684a732af779f88768c57ab006ce3a1 (diff) |
Bluetooth: Update adv. parameters when conn. setting changes
This patch fixes a bug where the advertising parameters weren't updated
after a call to "Set Connectable" if the HCI_ADVERTISING_INSTANCE
setting was set.
Signed-off-by: Arman Uguray <armansito@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r-- | net/bluetooth/mgmt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 2d84fc16e108..29cbd98f4649 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -2113,7 +2113,8 @@ static int set_connectable(struct sock *sk, struct hci_dev *hdev, void *data, | |||
2113 | 2113 | ||
2114 | no_scan_update: | 2114 | no_scan_update: |
2115 | /* Update the advertising parameters if necessary */ | 2115 | /* Update the advertising parameters if necessary */ |
2116 | if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) | 2116 | if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || |
2117 | hci_dev_test_flag(hdev, HCI_ADVERTISING_INSTANCE)) | ||
2117 | enable_advertising(&req); | 2118 | enable_advertising(&req); |
2118 | 2119 | ||
2119 | err = hci_req_run(&req, set_connectable_complete); | 2120 | err = hci_req_run(&req, set_connectable_complete); |