From 5b87177831c4978115b9360b0142da5445fa51dd Mon Sep 17 00:00:00 2001 From: Tim Cook Date: Sun, 26 Nov 2017 16:24:21 -0500 Subject: [PATCH] set ble_rsp_key member of structure bte_appl_cfg in function bta_dm_co_ble_set_rsp_key_req (function incorrectly uses ble_init_key member). Merges https://github.com/espressif/esp-idf/pull/1320 --- components/bt/bluedroid/btif/bta_dm_co.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/bluedroid/btif/bta_dm_co.c b/components/bt/bluedroid/btif/bta_dm_co.c index 2c4ec22aeb..83e6db1fed 100644 --- a/components/bt/bluedroid/btif/bta_dm_co.c +++ b/components/bt/bluedroid/btif/bta_dm_co.c @@ -492,7 +492,7 @@ void bta_dm_co_ble_set_rsp_key_req(UINT8 rsp_key) { #if (SMP_INCLUDED == TRUE) rsp_key &= 0x0f; // 4~7bit reservd, only used the 0~3bit - bte_appl_cfg.ble_init_key &= rsp_key; + bte_appl_cfg.ble_resp_key &= rsp_key; #endif ///SMP_INCLUDED == TRUE } -- 2.40.0