OSDN Git Service

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)
commita9e45698b37d4235ec98b5c0327de59759cb2ef2
treee5be18d58c4d41643bab50cbdc4dc432dfe25fab
parent0c2ac7d4f08d330dc5b092b4beba9ef88602d369
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