hfp.c (e55c05e30db4fcc97623b3f6bc5f580d1487d0ea) | hfp.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 --- 598 unchanged lines hidden (view full) --- 607 btstack_assert(false); 608 return; 609 } 610 611 rfcomm_create_channel(packet_handler, hfp_connection->remote_addr, hfp_connection->rfcomm_channel_nr, NULL); 612 613 } else { 614 hfp_connection->state = HFP_IDLE; | 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 --- 598 unchanged lines hidden (view full) --- 607 btstack_assert(false); 608 return; 609 } 610 611 rfcomm_create_channel(packet_handler, hfp_connection->remote_addr, hfp_connection->rfcomm_channel_nr, NULL); 612 613 } else { 614 hfp_connection->state = HFP_IDLE; |
615 hfp_emit_slc_connection_event(hfp_connection, sdp_event_query_complete_get_status(packet), HCI_CON_HANDLE_INVALID, hfp_connection->remote_addr); 616 log_info("rfcomm service not found, status 0x%02x", sdp_event_query_complete_get_status(packet)); | 615 uint8_t status = sdp_event_query_complete_get_status(packet); 616 if (status == ERROR_CODE_SUCCESS){ 617 // report service not found 618 status = SDP_SERVICE_NOT_FOUND; 619 } 620 hfp_emit_slc_connection_event(hfp_connection, status, HCI_CON_HANDLE_INVALID, hfp_connection->remote_addr); 621 log_info("rfcomm service not found, status 0x%02x", status); |
617 } 618 619 // register the SDP Query request to check if there is another connection waiting for the query 620 // ignore ERROR_CODE_COMMAND_DISALLOWED because in that case, we already have requested an SDP callback 621 (void) sdp_client_register_query_callback(&hfp_handle_sdp_client_query_request); 622 break; 623 default: 624 break; --- 1113 unchanged lines hidden --- | 622 } 623 624 // register the SDP Query request to check if there is another connection waiting for the query 625 // ignore ERROR_CODE_COMMAND_DISALLOWED because in that case, we already have requested an SDP callback 626 (void) sdp_client_register_query_callback(&hfp_handle_sdp_client_query_request); 627 break; 628 default: 629 break; --- 1113 unchanged lines hidden --- |