Bluetooth: Fix logic in hci_pin_code_request_evt
authorJohan Hedberg <johan.hedberg@nokia.com>
Thu, 28 Apr 2011 18:28:58 +0000 (11:28 -0700)
committerGustavo F. Padovan <padovan@profusion.mobi>
Thu, 28 Apr 2011 19:14:39 +0000 (16:14 -0300)
commit582fbe9ef9d6fc089ff20956595f046d4899e74e
tree97a9975227a9b4f1520c3e87912257a28bdf2803
parentbe77159c3f37e73a18ecc5c1eab3c67e07c6ce22
Bluetooth: Fix logic in hci_pin_code_request_evt

The mgmt_ev_pin_code_request event should not be sent to user space if
the request gets rejected by the kernel due to the pairable flag not
being set.

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