sm: use just works if master or slave have unknown IO capabilities

This commit is contained in:
Matthias Ringwald 2016-04-20 16:52:49 +02:00
parent 1ad129be78
commit 8b62adc3de

View File

@ -551,7 +551,7 @@ static void sm_setup_tk(void){
}
// Also use just works if unknown io capabilites
if ((sm_pairing_packet_get_io_capability(setup->sm_m_preq) > IO_CAPABILITY_KEYBOARD_DISPLAY) || (sm_pairing_packet_get_io_capability(setup->sm_m_preq) > IO_CAPABILITY_KEYBOARD_DISPLAY)){
if ((sm_pairing_packet_get_io_capability(setup->sm_m_preq) > IO_CAPABILITY_KEYBOARD_DISPLAY) || (sm_pairing_packet_get_io_capability(setup->sm_s_preq) > IO_CAPABILITY_KEYBOARD_DISPLAY)){
return;
}