Skip to content
Commit 20cb60ec authored by Thomas Ebert Hansen's avatar Thomas Ebert Hansen Committed by Carles Cufí
Browse files

Bluetooth: controller: Fix central enc termination



Terminate connection with a MIC failure if an unexpected control PDU
is received during the Encryption Start procedure.

Add a greedy option to pdu_is_expected() to make sure the procedure
processes all unexpected control PDU in all cases.

Add unit test inspired by Bluetooth Qualification test
LL/SEC/CEN/BV-14-C,
Central Receiving unexpected PDU during encryption start

Signed-off-by: default avatarThomas Ebert Hansen <thoh@oticon.com>
parent 70e38b1c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment