mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
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
This commit is contained in:
@ -492,7 +492,7 @@ void bta_dm_co_ble_set_rsp_key_req(UINT8 rsp_key)
|
|||||||
{
|
{
|
||||||
#if (SMP_INCLUDED == TRUE)
|
#if (SMP_INCLUDED == TRUE)
|
||||||
rsp_key &= 0x0f; // 4~7bit reservd, only used the 0~3bit
|
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
|
#endif ///SMP_INCLUDED == TRUE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user