test/pts: improve le data channel tester

This commit is contained in:
Matthias Ringwald 2018-04-24 22:48:32 +02:00
parent 600cf12d83
commit af45e36ab8

View File

@ -90,7 +90,8 @@ const char * data_classic = "ABCDEF";
static int todo_send_short;
static int todo_send_long;
static uint8_t buffer_x[1000];
// note: must be smaller than TSPX_tester_mtu for l2cap/le/cfc/bv-02-c to succeed
static uint8_t buffer_x[500];
static uint16_t cid_le;
static uint16_t cid_classic;
@ -321,7 +322,7 @@ static void stdin_process(char buffer){
sizeof(buffer_x), L2CAP_LE_AUTOMATIC_CREDITS, LEVEL_0, &cid_le);
break;
case 'A':
case 'B':
printf("Creating connection to %s 0x%02x - LE\n", bd_addr_to_str(pts_address), TSPX_psm_unsupported);
l2cap_le_create_channel(&app_packet_handler, handle_le, TSPX_psm_unsupported, buffer_x,
sizeof(buffer_x), L2CAP_LE_AUTOMATIC_CREDITS, LEVEL_0, &cid_le);
@ -418,4 +419,4 @@ int btstack_main(int argc, const char * argv[]){
return 0;
}
/* EXAMPLE_END */
/* EXAMPLE_END */