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:
parent
19099fc980
commit
fa02dc4d02
1 changed files with 1 additions and 0 deletions
|
@ -1929,6 +1929,7 @@ static inline void disable(uint16_t handle)
|
||||||
conn, &conn->lll);
|
conn, &conn->lll);
|
||||||
LL_ASSERT(err == 0 || err == -EALREADY);
|
LL_ASSERT(err == 0 || err == -EALREADY);
|
||||||
|
|
||||||
|
conn->lll.handle = LLL_HANDLE_INVALID;
|
||||||
conn->lll.link_tx_free = NULL;
|
conn->lll.link_tx_free = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue