hfp.c (5575558ed0100028c9c5c9efb98a642e49638920) | hfp.c (c169df2f885b47a4b0894cfd04e316df94bbf2f2) |
---|---|
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 --- 619 unchanged lines hidden (view full) --- 628 629 case HCI_EVENT_CONNECTION_REQUEST: 630 switch(hci_event_connection_request_get_link_type(packet)){ 631 case 0: // SCO 632 case 2: // eSCO 633 hci_event_connection_request_get_bd_addr(packet, event_addr); 634 hfp_connection = get_hfp_connection_context_for_bd_addr(event_addr, local_role); 635 if (!hfp_connection) break; | 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 --- 619 unchanged lines hidden (view full) --- 628 629 case HCI_EVENT_CONNECTION_REQUEST: 630 switch(hci_event_connection_request_get_link_type(packet)){ 631 case 0: // SCO 632 case 2: // eSCO 633 hci_event_connection_request_get_bd_addr(packet, event_addr); 634 hfp_connection = get_hfp_connection_context_for_bd_addr(event_addr, local_role); 635 if (!hfp_connection) break; |
636 log_info("hf accept sco\n"); 637 hfp_connection->hf_accept_sco = 1; | 636 if (hci_event_connection_request_get_link_type(packet) == 2){ 637 hfp_connection->hf_accept_sco = 2; 638 } else { 639 hfp_connection->hf_accept_sco = 1; 640 } 641 log_info("hf accept sco %u\n", hfp_connection->hf_accept_sco); |
638 if (!hfp_hf_run_for_context) break; 639 (*hfp_hf_run_for_context)(hfp_connection); 640 break; 641 default: 642 break; 643 } 644 break; 645 --- 989 unchanged lines hidden --- | 642 if (!hfp_hf_run_for_context) break; 643 (*hfp_hf_run_for_context)(hfp_connection); 644 break; 645 default: 646 break; 647 } 648 break; 649 --- 989 unchanged lines hidden --- |