This repository has been archived by the owner on May 18, 2022. It is now read-only.
LLCP updates are not applied when the event is missed #74
Labels
area: link layer
Code Area: BLE Link Layer (establishing and maintaining connections, encryption, etc)
good first issue
Call for participation: Good for newcomers
status: needs code
An implementation or a bugfix need to be written
type: bug
Something isn't behaving as intended
Milestone
When we've stored an LLCP update, we need to apply it to the connection state after the correct connection event number (or "instant"). Currently, this is done here:
rubble/rubble/src/link/connection.rs
Lines 276 to 281 in 71be7a1
However, this code is inside the RX handler, so if we happen to miss the event we're supposed to apply the update, we never do so, resulting in the connection being lost completely. This can be seen in the following log:
Event 29 is missed presumably due to interference, we never apply the update, all future events are missed because the connection state is now desynced.
The text was updated successfully, but these errors were encountered: