trate no OOB data callback as no oob data available

This commit is contained in:
matthias.ringwald@gmail.com 2014-04-11 13:07:27 +00:00
parent 2bc3c85e70
commit 1eccbf8411

View File

@ -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.