zephyr/tests/bluetooth/controller
Thomas Ebert Hansen 20cb60ecd2 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: Thomas Ebert Hansen <thoh@oticon.com>
2022-04-28 12:55:48 +02:00
..
common tests: Bluetooth: Add test for invalid LLCP PDU sized 2022-04-28 12:52:57 +02:00
ctrl_api Bluetooth: controller: Rework procedure pause logic 2022-04-04 15:34:09 +02:00
ctrl_chmu Bluetooth: controller: implement connection termination on invalid pdus 2022-04-26 14:06:16 +02:00
ctrl_conn_update Bluetooth: controller: using REJECT_IND when EXT_IND was not negotiated 2022-04-27 10:09:03 +02:00
ctrl_cte_req Bluetooth: controller: implement connection termination on invalid pdus 2022-04-26 14:06:16 +02:00
ctrl_data_length_update Bluetooth: controller: implement connection termination on invalid pdus 2022-04-26 14:06:16 +02:00
ctrl_encrypt Bluetooth: controller: Fix central enc termination 2022-04-28 12:55:48 +02:00
ctrl_feature_exchange Bluetooth: controller: implement connection termination on invalid pdus 2022-04-26 14:06:16 +02:00
ctrl_hci bluetooth: controller: test: removing TODO and un-skip ctrl-hci unittest 2022-04-02 15:40:02 +02:00
ctrl_invalid tests: Bluetooth: Add test for invalid LLCP PDU sized 2022-04-28 12:52:57 +02:00
ctrl_le_ping Bluetooth: controller: implement connection termination on invalid pdus 2022-04-26 14:06:16 +02:00
ctrl_min_used_chans bluetooth: controller: removing 'no-brainer' TODOs from refactored LLCP 2022-04-02 15:40:02 +02:00
ctrl_phy_update Bluetooth: controller: using REJECT_IND when EXT_IND was not negotiated 2022-04-27 10:09:03 +02:00
ctrl_terminate Bluetooth: controller: Add remote proc ctx pool 2022-03-14 11:38:09 +01:00
ctrl_tx_buffer_alloc everywhere: fix typos 2022-03-18 13:24:08 -04:00
ctrl_tx_queue Bluetooth: controller: Rework TX data pause 2022-04-04 15:34:09 +02:00
ctrl_unsupported Bluetooth: controller: Add remote proc ctx pool 2022-03-14 11:38:09 +01:00
ctrl_version Bluetooth: controller: implement connection termination on invalid pdus 2022-04-26 14:06:16 +02:00
mock_ctrl Bluetooth: controller: using REJECT_IND when EXT_IND was not negotiated 2022-04-27 10:09:03 +02:00