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 <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2021-08-26 19:53:22 +05:30 committed by Christopher Friedt
commit fa02dc4d02

View file

@ -1929,6 +1929,7 @@ static inline void disable(uint16_t handle)
conn, &conn->lll);
LL_ASSERT(err == 0 || err == -EALREADY);
conn->lll.handle = LLL_HANDLE_INVALID;
conn->lll.link_tx_free = NULL;
}