add + to initiate ssp on existing connection

This commit is contained in:
matthias.ringwald@gmail.com 2014-01-29 09:30:21 +00:00
parent 57aa5a341d
commit b115e2b53b

View File

@ -410,6 +410,7 @@ void show_usage(){
printf("r - send L2CAP ECHO request\n");
printf("s - close L2CAP channel\n");
printf("x - require SSP for outgoing SDP L2CAP channel\n");
printf("+ - initate SSP on current connection\n");
printf("---\n");
printf("Ctrl-c - exit\n");
printf("---\n");
@ -590,6 +591,11 @@ int stdin_process(struct data_source *ds){
rfcomm_channel_id = 0;
break;
case '+':
printf("Initiate SSP on current connection\n");
gap_request_security_level(handle);
break;
default:
show_usage();
break;