summaryrefslogtreecommitdiff
path: root/system/stack/smp/smp_keys.cc
diff options
context:
space:
mode:
Diffstat (limited to 'system/stack/smp/smp_keys.cc')
-rw-r--r--system/stack/smp/smp_keys.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/stack/smp/smp_keys.cc b/system/stack/smp/smp_keys.cc
index 8add0a9546..ac9f67423f 100644
--- a/system/stack/smp/smp_keys.cc
+++ b/system/stack/smp/smp_keys.cc
@@ -533,7 +533,7 @@ static void smp_generate_ltk_cont(uint16_t div, tSMP_CB* p_cb) {
void smp_generate_ltk(tSMP_CB* p_cb, UNUSED_ATTR tSMP_INT_DATA* p_data) {
SMP_TRACE_DEBUG("%s", __func__);
- if (p_cb->smp_over_br) {
+ if (smp_get_br_state() == SMP_BR_STATE_BOND_PENDING) {
smp_br_process_link_key(p_cb, NULL);
return;
} else if (p_cb->le_secure_connections_mode_is_used) {