]> granicus.if.org Git - esp-idf/commit
n btm_sec_save_le_key() set BTM_SEC_LE_LINK_KEY_KNOWN (and BTM_SEC_LE_LINK_KEY_AUTHED...
authorTim Cook <trcook0@gmail.com>
Sun, 26 Nov 2017 21:25:46 +0000 (16:25 -0500)
committerAngus Gratton <gus@projectgus.com>
Wed, 3 Jan 2018 03:14:24 +0000 (14:14 +1100)
commit2b24177d2b154104a03737f93cd3fac3dd44c857
tree7b73b94c2b9579aea92194c05b907f777ee353d7
parent5b87177831c4978115b9360b0142da5445fa51dd
n btm_sec_save_le_key() set BTM_SEC_LE_LINK_KEY_KNOWN (and BTM_SEC_LE_LINK_KEY_AUTHED if MITM was used) when process a local Long Term Key (key type BTM_LE_KEY_LENC). This is because these flags share bits with the BTM_SEC_FLAG_LKEY_KNOWN (and BTM_SEC_FLAG_LKEY_AUTHED) flag in btm_api.h. Without this code a link that is encrypted via SM pairing where only the local device exchanges the LTK (peer does not send its LTK) will not allow GATT operations that require encryption (request will be incorrectly rejected with insufficient authentication reason, regardless of if MITM is required).

Merges https://github.com/espressif/esp-idf/pull/1320
components/bt/bluedroid/stack/btm/btm_ble.c