-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bluetooth encryption request overrides ongoing phy update #28887
Comments
BT Spec Version 5.2, Vol 6, Part B, Section 5.1.10 PHY Update Procedure
And Section 5 Link Layer Control:
And Section 5.1.3.1 Encryption Start procedure
case 1: If there was a race between slave initiated PHY update and master initiated encryption procedure, then master shall delay the response (PHY_UPDATE_IND PDU) to until encryption procedure is complete. case 2: If the slave initiated PHY update was responded with PHY_UPDATE_IND PDU, and there after master initiated an encryption procedure, then there is a bug that the Can delaying the peer initiated encryption setup be a workaround? #28911 |
Workaround connection disconnection due to simultaneous PHY Update Procedure (local initiated) and Encryption Setup Procedure (peer initiated) not being implemented correctly causing corrupted LLCP state. Relates to zephyrproject-rtos#28887 and zephyrproject-rtos#28889. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time. |
Fix implementation to run local peripheral initiated control procedure with instant in parallel with remote initiated encryption procedure. Relates to zephyrproject-rtos#28887. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Fix implementation to run local peripheral initiated control procedure with instant in parallel with remote initiated encryption procedure. Relates to #28887. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Describe the bug
It has been seen that a phone can initiate an LLCP encryption request while a PHY update procedure is waiting for it's instant to pass, triggering a design bug in the LLCP implementation where the assumption is that the encryption procedure and procedures with instant are mutually exclusive, which is not the case when the instant-based procedure is complete and waiting for it's instant to pass. The result is that the encryption procedure is never performed and the ACL connection is disconnected.
Expected behavior
Encryption requests works while PHY update is waiting for it's instant to pass.
Impact
When the phone does not receive a response on the LL_ENC_REQ it will trigger an LLCP timeout and disconnects the ACL connection (as it is supposed to do).
Environment (please complete the following information):
Additional context
Also looks like a problem in master.
The text was updated successfully, but these errors were encountered: