Skip to content

Commit 9ad5d51

Browse files
ebmmyrugeGerritsen
authored andcommitted
bluetooth: controller: Reset ECDH command on deinitialization
If the ECDH thread is aborted without processing the currently requested command, any further command after a new initialization will be answered as command disallowed. Signed-off-by: Martin Meyer <[email protected]>
1 parent ac1e1f1 commit 9ad5d51

File tree

1 file changed

+1
-0
lines changed
  • subsys/bluetooth/controller

1 file changed

+1
-0
lines changed

subsys/bluetooth/controller/ecdh.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ void hci_ecdh_uninit(void)
313313
{
314314
#if !defined(CONFIG_BT_CTLR_ECDH_IN_MPSL_WORK)
315315
k_thread_abort(&ecdh_thread_data);
316+
atomic_set(&cmd, 0);
316317
#endif /* !defined(CONFIG_BT_CTLR_ECDH_IN_MPSL_WORK) */
317318
}
318319

0 commit comments

Comments
 (0)