Skip to content

Commit

Permalink
net: nrf_provisioning: change addrinfo to zsock_addrinfo
Browse files Browse the repository at this point in the history
Use zsock_addrinfo to avoid dependency on the POSIX subsystem.

Remove CONFIG_POSIX_API from provisioning tests.

Signed-off-by: Juha Ylinen <[email protected]>
  • Loading branch information
juhaylinen authored and anangl committed Feb 6, 2025
1 parent 892d233 commit 03917b2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ LOG_MODULE_REGISTER(nrf_provisioning_coap, CONFIG_NRF_PROVISIONING_LOG_LEVEL);
static const char *resp_path = "p/rsp";
static const char *dtls_suspend = "/.dtls/suspend";

static struct addrinfo *address;
static struct zsock_addrinfo *address;
static struct coap_client client;
static bool socket_keep_open;

Expand Down
1 change: 0 additions & 1 deletion tests/subsys/net/lib/nrf_provisioning/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ elseif(CONFIG_NRF_PROVISIONING_COAP)
-DCONFIG_COAP_CLIENT_MESSAGE_HEADER_SIZE=48
-DCONFIG_COAP_CLIENT_MESSAGE_SIZE=512
-DCONFIG_COAP_CLIENT_STACK_SIZE=1024
-DCONFIG_POSIX_API=y
-DCONFIG_MODEM_INFO_BUFFER_SIZE=128
-DCONFIG_COAP_CLIENT_MAX_REQUESTS=2
-DCONFIG_COAP_CLIENT_BLOCK_SIZE=256
Expand Down

0 comments on commit 03917b2

Please sign in to comment.