mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 21:35:16 +00:00
sm: notify client about pairing request even if there's no input capabilites
This commit is contained in:
parent
d654805b3d
commit
39e3b4c0e6
12
ble/sm.c
12
ble/sm.c
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user