@@ -3606,7 +3606,8 @@ int bt_bap_unicast_client_release(struct bt_bap_stream *stream)
36063606
36073607static uint8_t unicast_client_cp_discover_func (struct bt_conn * conn ,
36083608 const struct bt_gatt_attr * attr ,
3609- struct bt_gatt_discover_params * discover )
3609+ struct bt_gatt_discover_params * discover ,
3610+ int err )
36103611{
36113612 struct bt_gatt_chrc * chrc ;
36123613 uint16_t value_handle ;
@@ -3751,12 +3752,12 @@ static bool any_ases_found(const struct unicast_client *client)
37513752
37523753static uint8_t unicast_client_ase_discover_cb (struct bt_conn * conn ,
37533754 const struct bt_gatt_attr * attr ,
3754- struct bt_gatt_discover_params * discover )
3755+ struct bt_gatt_discover_params * discover ,
3756+ int err )
37553757{
37563758 struct unicast_client * client ;
37573759 struct bt_gatt_chrc * chrc ;
37583760 uint16_t value_handle ;
3759- int err ;
37603761
37613762 client = & uni_cli_insts [bt_conn_index (conn )];
37623763
@@ -3911,13 +3912,13 @@ static int unicast_client_pacs_avail_ctx_read(struct bt_conn *conn, uint16_t han
39113912
39123913static uint8_t unicast_client_pacs_avail_ctx_discover_cb (struct bt_conn * conn ,
39133914 const struct bt_gatt_attr * attr ,
3914- struct bt_gatt_discover_params * discover )
3915+ struct bt_gatt_discover_params * discover ,
3916+ int err )
39153917{
39163918 uint8_t index = bt_conn_index (conn );
39173919 const struct bt_gatt_chrc * chrc ;
39183920 uint8_t chrc_properties ;
39193921 uint16_t value_handle ;
3920- int err ;
39213922
39223923 if (!attr ) {
39233924 /* If available_ctx is not found, we terminate the discovery as
@@ -4096,12 +4097,12 @@ static int unicast_client_pacs_location_read(struct bt_conn *conn, uint16_t hand
40964097
40974098static uint8_t unicast_client_pacs_location_discover_cb (struct bt_conn * conn ,
40984099 const struct bt_gatt_attr * attr ,
4099- struct bt_gatt_discover_params * discover )
4100+ struct bt_gatt_discover_params * discover ,
4101+ int err )
41004102{
41014103 uint8_t index = bt_conn_index (conn );
41024104 const struct bt_gatt_chrc * chrc ;
41034105 uint16_t value_handle ;
4104- int err ;
41054106
41064107 if (!attr ) {
41074108 /* If location is not found, we just continue reading the
@@ -4212,12 +4213,12 @@ static uint8_t unicast_client_pacs_context_read_func(struct bt_conn *conn, uint8
42124213
42134214static uint8_t unicast_client_pacs_context_discover_cb (struct bt_conn * conn ,
42144215 const struct bt_gatt_attr * attr ,
4215- struct bt_gatt_discover_params * discover )
4216+ struct bt_gatt_discover_params * discover ,
4217+ int err )
42164218{
42174219 struct unicast_client * client = & uni_cli_insts [bt_conn_index (conn )];
42184220 struct bt_gatt_chrc * chrc ;
42194221 uint16_t value_handle ;
4220- int err ;
42214222
42224223 if (attr == NULL ) {
42234224 LOG_ERR ("Unable to find %s PAC context" , bt_audio_dir_str (client -> dir ));
@@ -4404,12 +4405,12 @@ static uint8_t unicast_client_read_func(struct bt_conn *conn, uint8_t err,
44044405
44054406static uint8_t unicast_client_pac_discover_cb (struct bt_conn * conn ,
44064407 const struct bt_gatt_attr * attr ,
4407- struct bt_gatt_discover_params * discover )
4408+ struct bt_gatt_discover_params * discover ,
4409+ int err )
44084410{
44094411 struct unicast_client * client = & uni_cli_insts [bt_conn_index (conn )];
44104412 struct bt_gatt_chrc * chrc ;
44114413 uint16_t value_handle ;
4412- int err ;
44134414
44144415 if (attr == NULL ) {
44154416 LOG_DBG ("Unable to find %s PAC" , bt_audio_dir_str (client -> dir ));
0 commit comments