Skip to content

Commit 28b2d7d

Browse files
committed
boards: nrf7002: Add second wlan
This commit adds the second wlan in dts file for nrf70. Also adjusts the sockets count required for wpa supplicant sockets Signed-off-by: Hanan Arshad <hananarshad619@gmail.com>
1 parent e8bd4b4 commit 28b2d7d

File tree

7 files changed

+17
-1
lines changed

7 files changed

+17
-1
lines changed

boards/nordic/nrf7002dk/nrf70_common.dtsi

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ wifi-max-tx-pwr-2g-dsss = <21>;
1313
wifi-max-tx-pwr-2g-mcs0 = <16>;
1414
wifi-max-tx-pwr-2g-mcs7 = <16>;
1515

16-
wlan0: wlan {
16+
wlan0: wlan0 {
17+
compatible = "nordic,wlan";
18+
};
19+
20+
wlan1: wlan1 {
1721
compatible = "nordic,wlan";
1822
};

boards/shields/nrf7002eb/nrf7002eb.overlay

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
compatible = "nordic,wlan";
3131
};
3232

33+
wlan1: wlan1 {
34+
compatible = "nordic,wlan";
35+
};
36+
3337
wifi-max-tx-pwr-2g-dsss = <21>;
3438
wifi-max-tx-pwr-2g-mcs0 = <16>;
3539
wifi-max-tx-pwr-2g-mcs7 = <16>;

boards/shields/nrf7002ek/nrf7002ek_common.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ wifi-max-tx-pwr-2g-mcs7 = <16>;
2626
wlan0: wlan0 {
2727
compatible = "nordic,wlan";
2828
};
29+
30+
wlan1: wlan1 {
31+
compatible = "nordic,wlan";
32+
};

lib/os/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ config FDTABLE
1212

1313
config ZVFS_OPEN_MAX
1414
int "Maximum number of open file descriptors"
15+
default 24 if NRF70_ENABLE_DUAL_VIF
1516
default 16 if WIFI_NM_WPA_SUPPLICANT
1617
default 16 if POSIX_API
1718
default 4

lib/os/zvfs/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ if ZVFS_POLL
4444
config ZVFS_POLL_MAX
4545
int "Max number of supported zvfs_poll() entries"
4646
default NET_SOCKETS_POLL_MAX if NET_SOCKETS_POLL_MAX > 0
47+
default 8 if NRF70_ENABLE_DUAL_VIF
4748
default 6 if WIFI_NM_WPA_SUPPLICANT
4849
default 4 if SHELL_BACKEND_TELNET
4950
default 3

subsys/net/ip/Kconfig.ipv4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ if NET_IPV4
1414
config NET_IF_MAX_IPV4_COUNT
1515
int "Max number of IPv4 network interfaces in the system"
1616
default NET_VLAN_COUNT if NET_VLAN && NET_VLAN_COUNT > 0
17+
default 2 if NRF70_ENABLE_DUAL_VIF
1718
default 2 if NET_LOOPBACK
1819
default 1
1920
help

subsys/net/ip/Kconfig.ipv6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ if NET_IPV6
1616
config NET_IF_MAX_IPV6_COUNT
1717
int "Max number of IPv6 network interfaces in the system"
1818
default NET_VLAN_COUNT if NET_VLAN && NET_VLAN_COUNT > 0
19+
default 2 if NRF70_ENABLE_DUAL_VIF
1920
default 2 if NET_LOOPBACK
2021
default 1
2122
help

0 commit comments

Comments
 (0)