Skip to content

Commit fa02dc4

Browse files
cvinayakcfriedt
authored andcommitted
Bluetooth: Controller: Fix missing reset of connection handle
Fix missing reset of connection handle in the LLL context. During a central connection, if LL reset is called, then disabled connection context's handle has to be reset otherwise new connection creation will fail by detecting that there exists a connection to same peer. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 19099fc commit fa02dc4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subsys/bluetooth/controller/ll_sw/ull_conn.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,6 +1929,7 @@ static inline void disable(uint16_t handle)
19291929
conn, &conn->lll);
19301930
LL_ASSERT(err == 0 || err == -EALREADY);
19311931

1932+
conn->lll.handle = LLL_HANDLE_INVALID;
19321933
conn->lll.link_tx_free = NULL;
19331934
}
19341935

0 commit comments

Comments
 (0)