hfp: report correct bd_addr for SLC setup error

This commit is contained in:
Matthias Ringwald 2022-04-02 17:00:08 +02:00
parent ba1721ef99
commit 481c0cbc48

View File

@ -706,7 +706,7 @@ static void hfp_handle_slc_setup_error(hfp_connection_t * hfp_connection, uint8_
// cache fields for event
hfp_role_t local_role = hfp_connection->local_role;
bd_addr_t remote_addr;
(void)memcpy(remote_addr, hfp_connection, 6);
(void)memcpy(remote_addr, hfp_connection->remote_addr, 6);
// finalize connection struct
hfp_finalize_connection_context(hfp_connection);
// emit event