Skip to content

Commit 3339e02

Browse files
committed
tests: Bluetooth: df: Add missing peer supported feature information
There was missing information about supported CTE response feature by peer device. That caused a test_set_conn_cte_req_enable to fail. The test expected that peer device supprots CTE response. The missing information is added in a common code responsible for connection object preparation. Signed-off-by: Piotr Pryga <[email protected]>
1 parent 40f2d73 commit 3339e02

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/bluetooth/df/common/src/bt_conn_common.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
#include <hal/ccm.h>
1616

17+
#include <bluetooth/hci.h>
1718
#include <pdu.h>
1819
#include <lll.h>
1920
#include <lll/lll_df_types.h>
@@ -43,6 +44,8 @@ uint16_t ut_bt_create_connection(void)
4344
conn->llcp.cte_req.is_enabled = 0U;
4445
#endif /* CONFIG_BT_CTLR_DF_CONN_CTE_REQ */
4546

47+
conn->llcp.fex.features_used |= BIT(BT_LE_FEAT_BIT_CONN_CTE_RESP);
48+
4649
return conn->lll.handle;
4750
}
4851

0 commit comments

Comments
 (0)