Skip to content
Commit b53657a0 authored by Piotr Pryga's avatar Piotr Pryga Committed by Marti Bolivar
Browse files

Bluetooth: Controller: hci: Wrong opcode when handling CTE req failed



HCI_LE_CTE_Request_Failed may be generated in case received LL_CTE_RSP
PDU didn't contain CTE or if peer rejected the request. HCI function
encode_data_ctrl responsible for dispatching received control PDUs
should not expect a PDU with PDU_DATA_LLCTRL_TYPE_CTE_REQ opcode.
It should never happen. The correct opcode here is PDU_DATA_LLCTRL_TYPE-
_CTE_RSP.

Result of this issue is an assert when LL_CTE_RSP PDU is received
but it does not include CTE.

The commit fixes the problem.

Signed-off-by: default avatarPiotr Pryga <piotr.pryga@nordicsemi.no>
parent 51e3cecb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment