Commit e2f85b11 authored by Carles Cufi's avatar Carles Cufi
Browse files

Bluetooth: tests: Align with terms in v5.3 spec



Align with the new inclusive naming terms in the v5.3 spec in the
Bluetooth tests.

Signed-off-by: default avatarCarles Cufi <carles.cufi@nordicsemi.no>
parent b8770acc
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -74,14 +74,14 @@ enum commands_t {
	CMD_LE_CREATE_CONNECTION_RSP,
	CMD_LE_CREATE_CONNECTION_CANCEL_REQ,
	CMD_LE_CREATE_CONNECTION_CANCEL_RSP,
	CMD_LE_READ_WHITE_LIST_SIZE_REQ,
	CMD_LE_READ_WHITE_LIST_SIZE_RSP,
	CMD_LE_CLEAR_WHITE_LIST_REQ,
	CMD_LE_CLEAR_WHITE_LIST_RSP,
	CMD_LE_ADD_DEVICE_TO_WHITE_LIST_REQ,
	CMD_LE_ADD_DEVICE_TO_WHITE_LIST_RSP,
	CMD_LE_REMOVE_DEVICE_FROM_WHITE_LIST_REQ,
	CMD_LE_REMOVE_DEVICE_FROM_WHITE_LIST_RSP,
	CMD_LE_READ_FILTER_ACCEPT_LIST_SIZE_REQ,
	CMD_LE_READ_FILTER_ACCEPT_LIST_SIZE_RSP,
	CMD_LE_CLEAR_FILTER_ACCEPT_LIST_REQ,
	CMD_LE_CLEAR_FILTER_ACCEPT_LIST_RSP,
	CMD_LE_ADD_DEVICE_TO_FILTER_ACCEPT_LIST_REQ,
	CMD_LE_ADD_DEVICE_TO_FILTER_ACCEPT_LIST_RSP,
	CMD_LE_REMOVE_DEVICE_FROM_FILTER_ACCEPT_LIST_REQ,
	CMD_LE_REMOVE_DEVICE_FROM_FILTER_ACCEPT_LIST_RSP,
	CMD_LE_CONNECTION_UPDATE_REQ,
	CMD_LE_CONNECTION_UPDATE_RSP,
	CMD_LE_SET_HOST_CHANNEL_CLASSIFICATION_REQ,
+2 −2
Original line number Diff line number Diff line
@@ -57,12 +57,12 @@ void common_set_peer_features(uint16_t conn_handle, uint64_t features)
	conn->llcp_feature.features_peer = features;
}

void common_set_slave_latency(uint16_t conn_handle, uint16_t slave_latency)
void common_set_periph_latency(uint16_t conn_handle, uint16_t periph_latency)
{
	struct ll_conn *conn;

	conn = ll_conn_get(conn_handle);
	zassert_not_equal(conn, NULL, "Failed ll_conn instance for given handle");

	conn->lll.latency = slave_latency;
	conn->lll.latency = periph_latency;
}
+1 −1
Original line number Diff line number Diff line
@@ -7,4 +7,4 @@
uint16_t common_create_connection(void);
void common_destroy_connection(uint16_t handle);
void common_set_peer_features(uint16_t conn_handle, uint64_t features);
void common_set_slave_latency(uint16_t conn_handle, uint16_t slave_latency);
void common_set_periph_latency(uint16_t conn_handle, uint16_t periph_latency);
+4 −4
Original line number Diff line number Diff line
@@ -29,9 +29,9 @@ static struct ut_bt_df_conn_cte_request_data g_data;

/* Macros delivering common values for unit tests */
#define CONN_HANDLE_INVALID (CONFIG_BT_MAX_CONN + 1)
#define CONN_SLAVE_LATENCY 7 /* arbitrary latency value */
#define REQUEST_INTERVAL_OK (CONN_SLAVE_LATENCY)
#define REQUEST_INTERVAL_TOO_LOW (CONN_SLAVE_LATENCY - 1)
#define CONN_PERIPH_LATENCY 7 /* arbitrary latency value */
#define REQUEST_INTERVAL_OK (CONN_PERIPH_LATENCY)
#define REQUEST_INTERVAL_TOO_LOW (CONN_PERIPH_LATENCY - 1)

/* CTE length is stored in 1 octet. If BT Core spec. extends the max value to UINT8_MAX
 * expected failures may not be checked. If storage size is increased, tests shall be updated.
@@ -173,7 +173,7 @@ static void cte_rx_param_setup(void)
	};

	connection_setup();
	common_set_slave_latency(g_conn_handle, REQUEST_INTERVAL_TOO_LOW);
	common_set_periph_latency(g_conn_handle, REQUEST_INTERVAL_TOO_LOW);

	send_set_conn_cte_rx_params(g_conn_handle, &cte_rx_params, true);
}