]> granicus.if.org Git - esp-idf/commitdiff
set ble_rsp_key member of structure bte_appl_cfg in function bta_dm_co_ble_set_rsp_ke...
authorTim Cook <trcook0@gmail.com>
Sun, 26 Nov 2017 21:24:21 +0000 (16:24 -0500)
committerAngus Gratton <gus@projectgus.com>
Wed, 3 Jan 2018 03:14:24 +0000 (14:14 +1100)
Merges https://github.com/espressif/esp-idf/pull/1320

components/bt/bluedroid/btif/bta_dm_co.c

index 2c4ec22aeb8cafff4ae8880a046ab2ea69ef327d..83e6db1fedbe8764a8c9a17e31935019f523c1dc 100644 (file)
@@ -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
 }