le_audio: use gatt_event_notification_get_handle instead of channel callback argument to get con handle

# Conflicts:
#	src/le-audio/gatt-service/audio_stream_control_service_client.c
#	src/le-audio/gatt-service/published_audio_capabilities_service_client.c
This commit is contained in:
Milanka Ringwald 2022-12-14 12:03:33 +01:00 committed by Matthias Ringwald
parent c2a9c030f5
commit 5483d01a07

View File

@ -257,8 +257,7 @@ static void bass_client_handle_gatt_server_notification(uint8_t packet_type, uin
if (hci_event_packet_get_type(packet) != GATT_EVENT_NOTIFICATION){
return;
}
bass_client_connection_t * connection = bass_client_get_connection_for_con_handle(channel);
bass_client_connection_t * connection = bass_client_get_connection_for_con_handle(gatt_event_notification_get_handle(packet));
if (connection == NULL){
return;
}