hsp_hs.c (ab2445a0204a8deaee8d62e6d3fba1e51a226576) | hsp_hs.c (26bb3782a72d3cb858ff50b60f5eb21391d41aaa) |
---|---|
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 --- 447 unchanged lines hidden (view full) --- 456 bool eSCO = hsp_hs_accept_sco_connection == 2; 457 hsp_hs_accept_sco_connection = 0; 458 459 log_info("HSP: sending hci_accept_connection_request."); 460 461 // pick packet types based on SCO link type (SCO vs. eSCO) 462 uint16_t packet_types; 463 if (eSCO && hci_extended_sco_link_supported() && hci_remote_esco_supported(hsp_hs_rfcomm_handle)){ | 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 --- 447 unchanged lines hidden (view full) --- 456 bool eSCO = hsp_hs_accept_sco_connection == 2; 457 hsp_hs_accept_sco_connection = 0; 458 459 log_info("HSP: sending hci_accept_connection_request."); 460 461 // pick packet types based on SCO link type (SCO vs. eSCO) 462 uint16_t packet_types; 463 if (eSCO && hci_extended_sco_link_supported() && hci_remote_esco_supported(hsp_hs_rfcomm_handle)){ |
464 packet_types = 0x3F8; | 464 packet_types = SCO_PACKET_TYPES_EV3 | SCO_PACKET_TYPES_2EV3; |
465 } else { | 465 } else { |
466 packet_types = 0x0007; | 466 packet_types = SCO_PACKET_TYPES_HV3 | SCO_PACKET_TYPES_HV2 | SCO_PACKET_TYPES_HV1; |
467 } 468 469 // packet type override 470 packet_types &= hsp_hs_sco_packet_types; 471 472 // bits 6-9 are 'don't use' 473 packet_types ^= 0x03c0; 474 --- 263 unchanged lines hidden --- | 467 } 468 469 // packet type override 470 packet_types &= hsp_hs_sco_packet_types; 471 472 // bits 6-9 are 'don't use' 473 packet_types ^= 0x03c0; 474 --- 263 unchanged lines hidden --- |