Commit b478ffe2 authored by Jens Rehhoff Thomsen's avatar Jens Rehhoff Thomsen Committed by Anas Nashif
Browse files

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: default avatarJens Rehhoff Thomsen <jthm@demant.com>
parent 5b28751b
Loading
Loading
Loading
Loading
+2 −0
Changes for subsys/bluetooth/host/hci_core.c: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -933,6 +933,8 @@ static void conn_handle_disconnected(uint16_t handle, uint8_t disconnect_reason)
			 */
			disconnected_handles[i] = ~BT_ACL_HANDLE_MASK | handle;
			disconnected_handles_reason[i] = disconnect_reason;

			return;
		}
	}
}