Bluetooth: Reject pairing requests when in non-pairable mode
authorJohan Hedberg <johan.hedberg@nokia.com>
Tue, 4 Jan 2011 13:40:05 +0000 (15:40 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Tue, 8 Feb 2011 03:40:06 +0000 (01:40 -0200)
commit03b555e119de8288a16e086e1fbd223d9b429d3d
tree5f0dd5efc8439ba4300761bc9ebba22c3d718c06
parent930e13363fb0e94db6e8b59c54dfb5c59355113e
Bluetooth: Reject pairing requests when in non-pairable mode

This patch adds the necessary logic to act accordingly when the
HCI_PAIRABLE flag is not set. In that case PIN code replies as well as
Secure Simple Pairing requests without a NoBonding requirement need to
be rejected.

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/hci_core.h
net/bluetooth/hci_event.c