Skip to content

Commit c443343

Browse files
jthm-otfabiobaltieri
authored andcommitted
Bluetooth: host: Fix bug in scan start
When scanning is started on bt_bap_broadcast_assistant_scan_start then BAP_BA_FLAG_SCANNING flag for the broadcast assistant instance should not be cleared. Fixes #85937 Signed-off-by: Jens Rehhoff Thomsen <[email protected]>
1 parent 8d368ff commit c443343

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

subsys/bluetooth/audio/bap_broadcast_assistant.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,6 @@ int bt_bap_broadcast_assistant_scan_start(struct bt_conn *conn, bool start_scan)
11721172

11731173
cp->opcode = BT_BAP_BASS_OP_SCAN_START;
11741174

1175-
atomic_clear_bit(inst->flags, BAP_BA_FLAG_SCANNING);
11761175
err = bt_bap_broadcast_assistant_common_cp(conn, &att_buf);
11771176
if (err != 0 && start_scan) {
11781177
/* bt_bap_broadcast_assistant_common_cp clears the busy flag on error */

0 commit comments

Comments
 (0)