mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 19:20:54 +00:00
hfp_ag: activate all AG indicators upon service level connection establishment
This commit is contained in:
parent
69640b0415
commit
80702f974d
@ -12,7 +12,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
- GAP: support periodic advertising with ENABLE_LE_PERIODIC_ADVERTISING
|
||||
|
||||
### Fixed
|
||||
|
||||
- HFP AG: activate all AG indicators upon service level connection establishment
|
||||
|
||||
### Changed
|
||||
|
||||
|
||||
|
@ -648,7 +648,13 @@ static int codecs_exchange_state_machine(hfp_connection_t * hfp_connection){
|
||||
static void hfp_ag_slc_established(hfp_connection_t * hfp_connection){
|
||||
hfp_connection->state = HFP_SERVICE_LEVEL_CONNECTION_ESTABLISHED;
|
||||
hfp_emit_slc_connection_event(hfp_connection->local_role, 0, hfp_connection->acl_handle, hfp_connection->remote_addr);
|
||||
|
||||
|
||||
// HFP 4.35: "When [...] a new Service Level Connection is established all indicators are activated by default."
|
||||
uint16_t i;
|
||||
for (i=0;i<hfp_connection->ag_indicators_nr;i++){
|
||||
hfp_connection->ag_indicators[i].enabled = 1;
|
||||
}
|
||||
|
||||
// if active call exist, set per-hfp_connection state active, too (when audio is on)
|
||||
if (hfp_gsm_call_status() == HFP_CALL_STATUS_ACTIVE_OR_HELD_CALL_IS_PRESENT){
|
||||
hfp_connection->call_state = HFP_CALL_W4_AUDIO_CONNECTION_FOR_ACTIVE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user