goep_client.c (97d2cfbc6fcf2d7b97d50845edc9a3056528f809) | goep_client.c (cc92f22bee26a7cb6d2d16e105e8269f520f9968) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 312 unchanged lines hidden (view full) --- 321 log_info("GOEP client, SDP query failed 0x%02x", status); 322 context->state = GOEP_INIT; 323 goep_client_emit_connected_event(goep_client, status); 324 break; 325 } 326 if ((context->rfcomm_port == 0) && (context->l2cap_psm == 0)){ 327 log_info("No GOEP RFCOMM or L2CAP server found"); 328 context->state = GOEP_INIT; | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 312 unchanged lines hidden (view full) --- 321 log_info("GOEP client, SDP query failed 0x%02x", status); 322 context->state = GOEP_INIT; 323 goep_client_emit_connected_event(goep_client, status); 324 break; 325 } 326 if ((context->rfcomm_port == 0) && (context->l2cap_psm == 0)){ 327 log_info("No GOEP RFCOMM or L2CAP server found"); 328 context->state = GOEP_INIT; |
329 goep_client_emit_connected_event(goep_client, ERROR_CODE_UNSUPPORTED_FEATURE_OR_PARAMETER_VALUE); | 329 goep_client_emit_connected_event(goep_client, SDP_SERVICE_NOT_FOUND); |
330 break; 331 } 332#ifdef ENABLE_GOEP_L2CAP 333 if (context->l2cap_psm){ 334 log_info("Remote GOEP L2CAP PSM: %u", context->l2cap_psm); 335 l2cap_create_ertm_channel(&goep_client_packet_handler, context->bd_addr, context->l2cap_psm, 336 &ertm_config, ertm_buffer, sizeof(ertm_buffer), &context->bearer_cid); 337 return; --- 259 unchanged lines hidden --- | 330 break; 331 } 332#ifdef ENABLE_GOEP_L2CAP 333 if (context->l2cap_psm){ 334 log_info("Remote GOEP L2CAP PSM: %u", context->l2cap_psm); 335 l2cap_create_ertm_channel(&goep_client_packet_handler, context->bd_addr, context->l2cap_psm, 336 &ertm_config, ertm_buffer, sizeof(ertm_buffer), &context->bearer_cid); 337 return; --- 259 unchanged lines hidden --- |