Bluetooth: use configured params for ext adv
authorAlain Michaud <alainm@chromium.org>
Mon, 22 Jun 2020 13:30:28 +0000 (13:30 +0000)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 22 Jun 2020 14:03:46 +0000 (16:03 +0200)
commit5cbd3ebde859bd43bd0584c146060638b1a3abb4
treeb0ac0f736136a36d58c4e7980852cc265fdce7dd
parent3ca33e3fb4f919b66a72145a87bfeada079e750d
Bluetooth: use configured params for ext adv

When the extended advertisement feature is enabled, a hardcoded min and
max interval of 0x8000 is used.  This patch fixes this issue by using
the configured min/max value.

This was validated by setting min/max in main.conf and making sure the
right setting is applied:

< HCI Command: LE Set Extended Advertising Parameters (0x08|0x0036) plen
25                                          #93 [hci0] 10.953011

Min advertising interval: 181.250 msec (0x0122)
Max advertising interval: 181.250 msec (0x0122)


Signed-off-by: Alain Michaud <alainm@chromium.org>
Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Reviewed-by: Daniel Winkler <danielwinkler@google.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci.h
net/bluetooth/hci_request.c