From 2794f959a7c69a14a3056ee4ce4b172c292cd44d Mon Sep 17 00:00:00 2001 From: "matthias.ringwald@gmail.com" Date: Tue, 28 Jan 2014 21:53:45 +0000 Subject: [PATCH] added l2cap_require_security_level_2_for_outgoing_sdp --- example/libusb/classic_test.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/example/libusb/classic_test.c b/example/libusb/classic_test.c index 750d5e4d7..161ef296c 100644 --- a/example/libusb/classic_test.c +++ b/example/libusb/classic_test.c @@ -404,6 +404,7 @@ void show_usage(){ printf("q - send L2CAP data\n"); printf("r - send L2CAP ECHO request\n"); printf("s - close L2CAP channel\n"); + printf("x - require SSP for outgoing SDP L2CAP channel\n"); printf("---\n"); printf("Ctrl-c - exit\n"); printf("---\n"); @@ -540,6 +541,10 @@ int stdin_process(struct data_source *ds){ printf("L2CAP Channel Closed\n"); l2cap_disconnect_internal(local_cid, 0); break; + case 'x': + printf("Outgoing L2CAP Channels to SDP will also require SSP\n"); + l2cap_require_security_level_2_for_outgoing_sdp(); + break; case 'l': printf("Creating RFCOMM Channel to %s #%u\n", bd_addr_to_str(remote), rfcomm_channel_nr);