Bluetooth: Fix updating conn->auth_type in hci_io_capa_request_evt
authorJohan Hedberg <johan.hedberg@nokia.com>
Thu, 28 Apr 2011 18:29:04 +0000 (11:29 -0700)
committerGustavo F. Padovan <padovan@profusion.mobi>
Thu, 28 Apr 2011 19:14:44 +0000 (16:14 -0300)
commit7cbc9bd99542752ff570abca79d0027669a01fb8
tree4d7a4f1ff6081bafcb6be5f2d2a7552c99f8fe3e
parent4df378a10e31698df1679f3329301d773a654b61
Bluetooth: Fix updating conn->auth_type in hci_io_capa_request_evt

In some circumstances hci_get_auth_req will return a value different
from the current conn->auth_type. In these cases update conn->auth_type
so that when a user confirm request comes it doesn't falsely trigger
auto-accept.

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