mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-17 02:42:33 +00:00
trate no OOB data callback as no oob data available
This commit is contained in:
parent
2bc3c85e70
commit
1eccbf8411
7
ble/sm.c
7
ble/sm.c
@ -524,8 +524,11 @@ static void sm_tk_setup(){
|
||||
sm_reset_tk();
|
||||
|
||||
// query client for OOB data
|
||||
sm_s_have_oob_data = (*sm_get_oob_data)(sm_m_addr_type, &sm_m_address, sm_tk);
|
||||
|
||||
sm_s_have_oob_data = 0;
|
||||
if (sm_get_oob_data) {
|
||||
(*sm_get_oob_data)(sm_m_addr_type, &sm_m_address, sm_tk);
|
||||
}
|
||||
|
||||
// If both devices have out of band authentication data, then the Authentication
|
||||
// Requirements Flags shall be ignored when selecting the pairing method and the
|
||||
// Out of Band pairing method shall be used.
|
||||
|
Loading…
x
Reference in New Issue
Block a user