Skip to content

Commit a3e38ca

Browse files
alexsvenkoffes
authored andcommitted
[nrf fromtree] Bluetooth: Audio: CSIS: Check all pending notifications
- When a bonded device is reconnected, check flags for pending notifications for: - Lock - SIRK - Size Previously only lock was checked Signed-off-by: Alexander Svensen <alexander.svensen@nordicsemi.no> (cherry picked from commit fa8c244)
1 parent 74680d5 commit a3e38ca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

subsys/bluetooth/audio/csip_set_member.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,8 +520,10 @@ static void csip_security_changed(struct bt_conn *conn, bt_security_t level,
520520
return;
521521
}
522522

523-
/* Check if client is set with FLAG_NOTIFY_LOCK */
524-
if (atomic_test_bit(client->flags, FLAG_NOTIFY_LOCK)) {
523+
/* Check if client has pending notifications */
524+
if (atomic_test_bit(client->flags, FLAG_NOTIFY_LOCK) ||
525+
atomic_test_bit(client->flags, FLAG_NOTIFY_SIRK) ||
526+
atomic_test_bit(client->flags, FLAG_NOTIFY_SIZE)) {
525527
notify_work_reschedule(K_NO_WAIT);
526528
break;
527529
}

0 commit comments

Comments
 (0)