]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Implement set_pairable managment command
authorJohan Hedberg <johan.hedberg@nokia.com>
Wed, 26 Jan 2011 11:11:03 +0000 (13:11 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Tue, 8 Feb 2011 03:40:05 +0000 (01:40 -0200)
commita20cb58da31861dc19f1f6aacbc4bc3683131f9f
tree0e680582a90e9384364a9c6f4dc2c475339a472e
parentbbbed2de8517078a9dd2cd6e57fda084408e8a76
Bluetooth: Implement set_pairable managment command

This patch implements a new set_pairable management command to control
the pairable state of local adapters. The state is represented using a
new HCI_PAIRABLE flag in the hci_dev struct.

For backwards compatibility with older user space versions the
HCI_PAIRABLE flag gets automatically set when the existence of an
adapter is reported to user space through legacy methods and the
HCI_MGMT flag is not set.

Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
include/net/bluetooth/hci.h
include/net/bluetooth/mgmt.h
net/bluetooth/hci_core.c
net/bluetooth/mgmt.c