Skip to content

Commit 834fa7e

Browse files
jthm-otcvinayak
authored andcommitted
[nrf fromtree] 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]> (cherry picked from commit b478ffe) Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 8c443bc commit 834fa7e

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
@@ -817,6 +817,8 @@ static void conn_handle_disconnected(uint16_t handle)
817817
* handle 0 can be used as a valid non-zero handle.
818818
*/
819819
disconnected_handles[i] = ~BT_ACL_HANDLE_MASK | handle;
820+
821+
return;
820822
}
821823
}
822824
}

0 commit comments

Comments
 (0)