Skip to content

Commit fe1de12

Browse files
Thalleygalak
authored andcommitted
Bluetooth: Host: Add status check BIG sync/create events
Add a status check for the BIG sync established and BIG sync created events such that we don't log a warning of invalid BIS count when it is an error event. Signed-off-by: Emil Gydesen <[email protected]>
1 parent 6ca9249 commit fe1de12

File tree

1 file changed

+5
-5
lines changed
  • subsys/bluetooth/host

1 file changed

+5
-5
lines changed

subsys/bluetooth/host/iso.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,8 +1572,8 @@ void hci_le_big_complete(struct net_buf *buf)
15721572
BT_DBG("BIG[%u] %p completed, status %u", big->handle, big, evt->status);
15731573

15741574
if (evt->status || evt->num_bis != big->num_bis) {
1575-
if (evt->num_bis != big->num_bis) {
1576-
BT_ERR("Invalid number of BIS, was %u expected %u",
1575+
if (evt->status == BT_HCI_ERR_SUCCESS && evt->num_bis != big->num_bis) {
1576+
BT_ERR("Invalid number of BIS created, was %u expected %u",
15771577
evt->num_bis, big->num_bis);
15781578
}
15791579
big_disconnect(big, evt->status ? evt->status : BT_HCI_ERR_UNSPECIFIED);
@@ -1626,11 +1626,11 @@ void hci_le_big_sync_established(struct net_buf *buf)
16261626
big = &bigs[evt->big_handle];
16271627
atomic_clear_bit(big->flags, BT_BIG_SYNCING);
16281628

1629-
BT_DBG("BIG[%u] %p sync established", big->handle, big);
1629+
BT_DBG("BIG[%u] %p sync established, status %u", big->handle, big, evt->status);
16301630

16311631
if (evt->status || evt->num_bis != big->num_bis) {
1632-
if (evt->num_bis != big->num_bis) {
1633-
BT_ERR("Invalid number of BIS, was %u expected %u",
1632+
if (evt->status == BT_HCI_ERR_SUCCESS && evt->num_bis != big->num_bis) {
1633+
BT_ERR("Invalid number of BIS synced, was %u expected %u",
16341634
evt->num_bis, big->num_bis);
16351635
}
16361636
big_disconnect(big, evt->status ? evt->status : BT_HCI_ERR_UNSPECIFIED);

0 commit comments

Comments
 (0)