]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5cd52aa6f1d22beb5e8494a73c8eb50f76107846
tree62b46afba2b9348bbc6e0495d9a3ccb5d186bfce
parent81fe8f2e5767975923bc6c71d874b4ade3620015
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