Bluetooth: BASS: add scan cb to scan delegator module.
Add scan cb to scan delegator so that Application can be notified when assistant starts or stops scanning. Also state information of Broadcast Assistant is removed as info is not used. Signed-off-by: Nithin Ramesh Myliattil <niym@demant.com>
This commit is contained in:
parent
acbda31707
commit
de14efef98
3 changed files with 27 additions and 59 deletions
|
@ -410,7 +410,14 @@ static void broadcast_code_cb(struct bt_conn *conn,
|
|||
memcpy(recv_state_broadcast_code, broadcast_code, BT_AUDIO_BROADCAST_CODE_SIZE);
|
||||
}
|
||||
|
||||
static void scanning_state_cb(struct bt_conn *conn, bool is_scanning)
|
||||
{
|
||||
printk("Assistant scanning %s\n", is_scanning ? "started" : "stopped");
|
||||
|
||||
}
|
||||
|
||||
static struct bt_bap_scan_delegator_cb scan_delegator_cbs = {
|
||||
.scanning_state = scanning_state_cb,
|
||||
.pa_sync_req = pa_sync_req_cb,
|
||||
.pa_sync_term_req = pa_sync_term_req_cb,
|
||||
.bis_sync_req = bis_sync_req_cb,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue