setup auth-req on start

This commit is contained in:
Matthias Ringwald 2015-10-29 15:27:01 +01:00
parent 24e8dc9286
commit 5188822b2c

View File

@ -543,13 +543,11 @@ int stdin_process(struct data_source *ds){
break; break;
case 'b': case 'b':
gap_bondable = 0; gap_bondable = 0;
// gap_set_bondable_mode(0);
update_auth_req(); update_auth_req();
show_usage(); show_usage();
break; break;
case 'B': case 'B':
gap_bondable = 1; gap_bondable = 1;
// gap_set_bondable_mode(1);
update_auth_req(); update_auth_req();
show_usage(); show_usage();
break; break;
@ -787,7 +785,7 @@ int btstack_main(int argc, const char * argv[]){
gap_io_capabilities = "IO_CAPABILITY_NO_INPUT_NO_OUTPUT"; gap_io_capabilities = "IO_CAPABILITY_NO_INPUT_NO_OUTPUT";
hci_ssp_set_authentication_requirement(0); hci_ssp_set_authentication_requirement(0);
hci_ssp_set_auto_accept(0); hci_ssp_set_auto_accept(0);
// gap_set_bondable_mode(0); update_auth_req();
l2cap_init(); l2cap_init();
l2cap_register_packet_handler(&packet_handler2); l2cap_register_packet_handler(&packet_handler2);