sm: notify client about pairing request even if there's no input capabilites

This commit is contained in:
Matthias Ringwald 2015-08-20 12:18:59 +02:00
parent d654805b3d
commit 39e3b4c0e6

View File

@ -785,16 +785,8 @@ static void sm_trigger_user_response(sm_connection_t * sm_conn){
} }
break; break;
case JUST_WORKS: case JUST_WORKS:
switch (setup->sm_s_pres.io_capability){ setup->sm_user_response = SM_USER_RESPONSE_PENDING;
case IO_CAPABILITY_KEYBOARD_DISPLAY: sm_notify_client(SM_JUST_WORKS_REQUEST, sm_conn->sm_peer_addr_type, sm_conn->sm_peer_address, READ_NET_32(setup->sm_tk, 12), 0);
case IO_CAPABILITY_DISPLAY_YES_NO:
setup->sm_user_response = SM_USER_RESPONSE_PENDING;
sm_notify_client(SM_JUST_WORKS_REQUEST, sm_conn->sm_peer_addr_type, sm_conn->sm_peer_address, READ_NET_32(setup->sm_tk, 12), 0);
break;
default:
// cannot ask user
break;
}
break; break;
default: default:
break; break;