Skip to content

Commit b478ffe

Browse files
jthm-otnashif
authored andcommitted
Bluetooth: host: Fix bug in disconnected handling
When disconnected only the first empty slot in the disconnected_handles array should be updated. Signed-off-by: Jens Rehhoff Thomsen <[email protected]>
1 parent 5b28751 commit b478ffe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

subsys/bluetooth/host/hci_core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,8 @@ static void conn_handle_disconnected(uint16_t handle, uint8_t disconnect_reason)
933933
*/
934934
disconnected_handles[i] = ~BT_ACL_HANDLE_MASK | handle;
935935
disconnected_handles_reason[i] = disconnect_reason;
936+
937+
return;
936938
}
937939
}
938940
}

0 commit comments

Comments
 (0)