Skip to content

Commit 55fe3cd

Browse files
sean-madigananangl
authored andcommitted
subsys: bluetooth: rpc: Remove deprecated bt_le_set_auto_conn
Function has been deprecated in upstream zephyr, so remove from here. Signed-off-by: Sean Madigan <[email protected]>
1 parent e3975d6 commit 55fe3cd

File tree

3 files changed

+0
-62
lines changed

3 files changed

+0
-62
lines changed

subsys/bluetooth/rpc/client/bt_rpc_conn_client.c

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -610,32 +610,6 @@ int bt_conn_create_auto_stop(void)
610610
}
611611
#endif /* defined(CONFIG_BT_FILTER_ACCEPT_LIST) */
612612

613-
#if !defined(CONFIG_BT_FILTER_ACCEPT_LIST)
614-
int bt_le_set_auto_conn(const bt_addr_le_t *addr,
615-
const struct bt_le_conn_param *param)
616-
{
617-
struct nrf_rpc_cbor_ctx ctx;
618-
int result;
619-
size_t buffer_size_max = 3;
620-
621-
buffer_size_max += addr ? sizeof(bt_addr_le_t) : 0;
622-
buffer_size_max += (param == NULL) ? 1 : 12;
623-
624-
NRF_RPC_CBOR_ALLOC(&bt_rpc_grp, ctx, buffer_size_max);
625-
626-
nrf_rpc_encode_buffer(&ctx, addr, sizeof(bt_addr_le_t));
627-
if (param == NULL) {
628-
nrf_rpc_encode_null(&ctx);
629-
} else {
630-
bt_le_conn_param_enc(&ctx, param);
631-
}
632-
633-
nrf_rpc_cbor_cmd_no_err(&bt_rpc_grp, BT_LE_SET_AUTO_CONN_RPC_CMD,
634-
&ctx, nrf_rpc_rsp_decode_i32, &result);
635-
636-
return result;
637-
}
638-
#endif /* !defined(CONFIG_BT_FILTER_ACCEPT_LIST) */
639613
#endif /* defined(CONFIG_BT_CENTRAL) */
640614

641615
#if defined(CONFIG_BT_SMP)

subsys/bluetooth/rpc/common/bt_rpc_common.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ enum bt_rpc_cmd_from_cli_to_host {
9292
BT_CONN_LE_CREATE_RPC_CMD,
9393
BT_CONN_LE_CREATE_AUTO_RPC_CMD,
9494
BT_CONN_CREATE_AUTO_STOP_RPC_CMD,
95-
BT_LE_SET_AUTO_CONN_RPC_CMD,
9695
BT_CONN_SET_SECURITY_RPC_CMD,
9796
BT_CONN_GET_SECURITY_RPC_CMD,
9897
BT_CONN_ENC_KEY_SIZE_RPC_CMD,

subsys/bluetooth/rpc/host/bt_rpc_conn_host.c

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -630,41 +630,6 @@ static void bt_conn_create_auto_stop_rpc_handler(const struct nrf_rpc_group *gro
630630
NRF_RPC_CBOR_CMD_DECODER(bt_rpc_grp, bt_conn_create_auto_stop, BT_CONN_CREATE_AUTO_STOP_RPC_CMD,
631631
bt_conn_create_auto_stop_rpc_handler, NULL);
632632
#endif /* defined(CONFIG_BT_FILTER_ACCEPT_LIST) */
633-
634-
#if !defined(CONFIG_BT_FILTER_ACCEPT_LIST)
635-
static void bt_le_set_auto_conn_rpc_handler(const struct nrf_rpc_group *group,
636-
struct nrf_rpc_cbor_ctx *ctx, void *handler_data)
637-
{
638-
bt_addr_le_t addr_data;
639-
const bt_addr_le_t *addr;
640-
struct bt_le_conn_param param_data;
641-
struct bt_le_conn_param *param;
642-
int result;
643-
644-
addr = nrf_rpc_decode_buffer(ctx, &addr_data, sizeof(bt_addr_le_t));
645-
if (nrf_rpc_decode_is_null(ctx)) {
646-
param = NULL;
647-
} else {
648-
param = &param_data;
649-
bt_le_conn_param_dec(ctx, param);
650-
}
651-
652-
if (!nrf_rpc_decoding_done_and_check(group, ctx)) {
653-
goto decoding_error;
654-
}
655-
656-
result = bt_le_set_auto_conn(addr, param);
657-
658-
nrf_rpc_rsp_send_int(group, result);
659-
660-
return;
661-
decoding_error:
662-
report_decoding_error(BT_LE_SET_AUTO_CONN_RPC_CMD, handler_data);
663-
}
664-
665-
NRF_RPC_CBOR_CMD_DECODER(bt_rpc_grp, bt_le_set_auto_conn, BT_LE_SET_AUTO_CONN_RPC_CMD,
666-
bt_le_set_auto_conn_rpc_handler, NULL);
667-
#endif /* !defined(CONFIG_BT_FILTER_ACCEPT_LIST) */
668633
#endif /* defined(CONFIG_BT_CENTRAL) */
669634

670635
#if defined(CONFIG_BT_SMP)

0 commit comments

Comments
 (0)