Skip to content

Commit 651ffb1

Browse files
Jordan Yatesnashif
authored andcommitted
tests: build_all: modem: test compilation with connectivity
Ensure WiFi modems still build with the `CONNECTIVITY_WIFI_MGMT` connectivity backend enabled. Signed-off-by: Jordan Yates <[email protected]>
1 parent ef21569 commit 651ffb1

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

tests/drivers/build_all/modem/modem_esp_at.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ CONFIG_NETWORKING=y
55
CONFIG_NET_SOCKETS=y
66
CONFIG_NET_IPV4=y
77
CONFIG_WIFI=y
8+
CONFIG_NET_CONNECTION_MANAGER=y
9+
CONFIG_NET_CONNECTION_MANAGER_CONNECTIVITY_WIFI_MGMT=y

tests/drivers/build_all/modem/src/main.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,15 @@ int main(void)
88
{
99
return 0;
1010
}
11+
12+
#ifdef CONFIG_CONNECTIVITY_WIFI_MGMT_APPLICATION
13+
14+
#include <zephyr/net/conn_mgr_connectivity_impl.h>
15+
#include <zephyr/net/conn_mgr/connectivity_wifi_mgmt.h>
16+
17+
/* Bind L2 connectity APIs. */
18+
static struct conn_mgr_conn_api conn_api = { 0 };
19+
20+
CONN_MGR_CONN_DEFINE(CONNECTIVITY_WIFI_MGMT, &conn_api);
21+
22+
#endif /* CONFIG_CONNECTIVITY_WIFI_MGMT_APPLICATION */

0 commit comments

Comments
 (0)