diff options
author | CNSS_WLAN Service <cnssbldsw@qualcomm.com> | 2023-05-05 14:19:32 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2023-05-05 14:19:32 -0700 |
commit | 2d2a08710f8f2c1d6a786c019fbe667475206651 (patch) | |
tree | 50fe46d13602ae907ee815780178fbe182b27e2c | |
parent | abccc25fd6c24207129d39cbfeb40014548e0c31 (diff) | |
parent | 506c018151691d978d318e11a65ee216eca1615e (diff) |
Merge "Send pending EATT connect requests after LE encryption is enabled" into bt-sys.lnx.13.0
-rw-r--r-- | stack/btm/btm_ble.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/stack/btm/btm_ble.cc b/stack/btm/btm_ble.cc index f2dc1adef..1c5b38dc8 100644 --- a/stack/btm/btm_ble.cc +++ b/stack/btm/btm_ble.cc @@ -1855,8 +1855,13 @@ void btm_ble_link_encrypted(const RawAddress& bd_addr, uint8_t encr_enable) { gatt_notify_enc_cmpl(p_dev_rec->ble.pseudo_addr); /* Update EATT support */ - if (encr_enable) + if (encr_enable) { gatt_update_eatt_support(p_dev_rec->ble.pseudo_addr); + tGATT_TCB* p_tcb = gatt_find_tcb_by_addr(p_dev_rec->ble.pseudo_addr, BT_TRANSPORT_LE); + if (p_tcb && p_tcb->is_eatt_supported && !p_tcb->apps_needing_eatt.empty()) { + gatt_establish_eatt_connect(p_tcb, 1); + } + } } /******************************************************************************* |