]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Remove adv set for directed advertising
authorSathish Narsimman <nsathish41@gmail.com>
Mon, 24 Feb 2020 05:32:24 +0000 (11:02 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 28 Feb 2020 07:38:05 +0000 (08:38 +0100)
commitb1ebdc6a2e1f9242d623591e51219ef9f8c2e638
treee5be18d58c4d41643bab50cbdc4dc432dfe25fab
parentda47ebfb9ff134d17884a6782b28cde2fb1e05da
Bluetooth: Remove adv set for directed advertising

Extended advertising Data is set during bluetooth initialization
by default which causes InvalidHCICommandParameters when setting
Extended advertising parameters.

As per Core Spec 5.2 Vol 2, PART E, Sec 7.8.53, for
advertising_event_property LE_LEGACY_ADV_DIRECT_IND does not
supports advertising data when the advertising set already
contains some, the controller shall return erroc code
'InvalidHCICommandParameters(0x12).

So it is required to remove adv set for handle 0x00. since we use
instance 0 for directed adv.

Signed-off-by: Sathish Narsimman <sathish.narasimman@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci.h
net/bluetooth/hci_conn.c