mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
fix(bt/bluedroid): Fix key size check in BLE smp
This commit is contained in:
@ -356,7 +356,7 @@ void bta_dm_co_ble_io_req(BD_ADDR bd_addr, tBTA_IO_CAP *p_io_cap,
|
|||||||
*p_resp_key = bte_appl_cfg.ble_resp_key;
|
*p_resp_key = bte_appl_cfg.ble_resp_key;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bte_appl_cfg.ble_max_key_size > 7 && bte_appl_cfg.ble_max_key_size <= 16) {
|
if (bte_appl_cfg.ble_max_key_size >= 7 && bte_appl_cfg.ble_max_key_size <= 16) {
|
||||||
*p_max_key_size = bte_appl_cfg.ble_max_key_size;
|
*p_max_key_size = bte_appl_cfg.ble_max_key_size;
|
||||||
}
|
}
|
||||||
#endif ///SMP_INCLUDED == TRUE
|
#endif ///SMP_INCLUDED == TRUE
|
||||||
|
Reference in New Issue
Block a user