Skip to content

Commit 1ddb58d

Browse files
jthm-otcvinayak
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]> (cherry picked from commit b478ffe) Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent bba5d23 commit 1ddb58d

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
@@ -836,6 +836,8 @@ static void conn_handle_disconnected(uint16_t handle)
836836
* handle 0 can be used as a valid non-zero handle.
837837
*/
838838
disconnected_handles[i] = ~BT_ACL_HANDLE_MASK | handle;
839+
840+
return;
839841
}
840842
}
841843
}

0 commit comments

Comments
 (0)