HFP HF: send Apple Accessory information after service level connection

This commit is contained in:
Matthias Ringwald 2025-02-27 15:12:43 +01:00
parent 8d20d33119
commit cef0622537
2 changed files with 5 additions and 1 deletions

View File

@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- GAP: store link key for standard/non-SSP pairing
- BENP: emit channel opened with ERROR_CODE_REMOTE_USER_TERMINATED_CONNECTION if connection cannot be set up
- HFP AG: avoid recursion with synchronous HCI transport
- HFP HF: send Apple Accessory information after service level connection
### Changed
- HCI: hci_request_cis_can_send_now_events for CIG in Central role will emit can send now events for all streams in group

View File

@ -1168,8 +1168,11 @@ static void hfp_hf_slc_established(hfp_connection_t * hfp_connection){
hfp_connection->ag_indicators[i].status_changed = 0;
hfp_emit_ag_indicator_status_event(hfp_connection, &hfp_connection->ag_indicators[i]);
}
// reset apple information, set current dock & battery level
hfp_connection->apple_accessory_commands_supported = false;
hfp_connection->apple_accessory_battery_level = hfp_hf_apple_battery_level;
hfp_connection->apple_accessory_docked = hfp_hf_apple_docked;
hfp_connection->send_apple_information = hfp_hf_apple_vendor_id != 0;
// restore volume settings