diff options
author | Waldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com> | 2011-05-31 09:49:25 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-06-08 15:58:18 -0400 |
commit | 19f8def031bfa50c579149b200bfeeb919727b27 (patch) | |
tree | 8f1fded6804d6e5d1537938f29b5e2c6f71e19fe /include | |
parent | 3581508571b513ed2e66d71f9708d6be907460fd (diff) |
Bluetooth: Fix auth_complete_evt for legacy units
Legacy devices don't re-authenticate the link properly if a link key
already exists. Thus, don't update sec_level for this case even if
hci_auth_complete_evt indicates success. Otherwise the sec_level will
not reflect a real security on the link.
Signed-off-by: Waldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/bluetooth/hci_core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index af4b0ed173a8..0ac820dc35f7 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -322,6 +322,7 @@ void hci_inquiry_cache_update(struct hci_dev *hdev, struct inquiry_data *data); | |||
322 | /* ----- HCI Connections ----- */ | 322 | /* ----- HCI Connections ----- */ |
323 | enum { | 323 | enum { |
324 | HCI_CONN_AUTH_PEND, | 324 | HCI_CONN_AUTH_PEND, |
325 | HCI_CONN_REAUTH_PEND, | ||
325 | HCI_CONN_ENCRYPT_PEND, | 326 | HCI_CONN_ENCRYPT_PEND, |
326 | HCI_CONN_RSWITCH_PEND, | 327 | HCI_CONN_RSWITCH_PEND, |
327 | HCI_CONN_MODE_CHANGE_PEND, | 328 | HCI_CONN_MODE_CHANGE_PEND, |