mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
Bluetooth: hci_sync: Fix not setting adv set duration
commitf16a491c65
upstream.10bbffa3e8
attempted to fix the use of rotation duration as advertising duration but it didn't change the if condition which still uses the duration instead of the timeout. Fixes:10bbffa3e8
("Bluetooth: Fix using advertising instance duration as timeout") Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
eea521c3be
commit
c72886117c
1 changed files with 1 additions and 1 deletions
|
@ -2318,7 +2318,7 @@ int __hci_req_enable_ext_advertising(struct hci_request *req, u8 instance)
|
||||||
/* Set duration per instance since controller is responsible for
|
/* Set duration per instance since controller is responsible for
|
||||||
* scheduling it.
|
* scheduling it.
|
||||||
*/
|
*/
|
||||||
if (adv_instance && adv_instance->duration) {
|
if (adv_instance && adv_instance->timeout) {
|
||||||
u16 duration = adv_instance->timeout * MSEC_PER_SEC;
|
u16 duration = adv_instance->timeout * MSEC_PER_SEC;
|
||||||
|
|
||||||
/* Time = N * 10 ms */
|
/* Time = N * 10 ms */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue