Bluetooth: Add directed advertising support through connect()
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 25 Mar 2014 08:30:49 +0000 (10:30 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 26 Mar 2014 16:31:38 +0000 (09:31 -0700)
commit3c857757ef6e5a4e472bd3e5c934709c2eb482af
tree62b46afba2b9348bbc6e0495d9a3ccb5d186bfce
parent5d2e9fadf43e87e690bfbe607313bf9be47867e4
Bluetooth: Add directed advertising support through connect()

When we're in peripheral mode (HCI_ADVERTISING flag is set) the most
natural mapping of connect() is to perform directed advertising to the
peer device.

This patch does the necessary changes to enable directed advertising and
keeps the hci_conn state as BT_CONNECT in a similar way as is done for
central or BR/EDR connection initiation.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci.h
net/bluetooth/hci_conn.c
net/bluetooth/hci_event.c