Skip to content

Commit 132ad4a

Browse files
MariuszSkamracarlescufi
authored andcommitted
csis: Remove check causing assertion
This removes the check that was causing missalignment in csis->srv.conn_cnt conunting. The csis->srv.conn_cnt was increased for each connected device while decreased for bonded only. This caused assertion in csis_connected when reconnected. Signed-off-by: Mariusz Skamra <[email protected]>
1 parent 2dff20f commit 132ad4a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

subsys/bluetooth/audio/csis.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -603,14 +603,6 @@ static void csis_disconnected(struct bt_conn *conn, uint8_t reason)
603603
BT_DBG("Disconnected: %s (reason %u)",
604604
bt_addr_le_str(bt_conn_get_dst(conn)), reason);
605605

606-
/*
607-
* If lock was taken by non-bonded device, set lock to released value,
608-
* and notify other connections.
609-
*/
610-
if (!bt_addr_le_is_bonded(conn->id, &conn->le.dst)) {
611-
return;
612-
}
613-
614606
for (int i = 0; i < ARRAY_SIZE(csis_insts); i++) {
615607
handle_csis_disconnect(&csis_insts[i], conn);
616608
}

0 commit comments

Comments
 (0)