Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NXP HAL should support IPv6 only configuration in networking middleware #87647

Open
jukkar opened this issue Mar 25, 2025 · 0 comments
Open

NXP HAL should support IPv6 only configuration in networking middleware #87647

jukkar opened this issue Mar 25, 2025 · 0 comments
Assignees
Labels
Enhancement Changes/Updates/Additions to existing features platform: NXP NXP

Comments

@jukkar
Copy link
Member

jukkar commented Mar 25, 2025

Is your enhancement proposal related to a problem? Please describe.
I tried to compile a IPv6 only Wi-Fi application for frdm-rw612 board. The IPv6 only snippet can be found in #87644

west build -p \
-d ~/zephyrproject/build/zperf-nxp \
~/zephyrproject/zephyr/samples/net/zperf/ \
-b frdm_rw612 \
-S wifi-ipv6

Compiling this I also needed #87573 and #87410

The building fails with this message

zephyrproject/modules/hal/nxp/mcux/middleware/wifi_nxp/port/net/zephyr/net.c: In function 'stop_cb':
zephyrproject/modules/hal/nxp/mcux/middleware/wifi_nxp/port/net/zephyr/net.c:990:5: warning: implicit declaration of function 'net_dhcpv4_stop'; did you mean 'net_dhcpv6_stop'? [-Wimplicit-function-declaration]
  990 |     net_dhcpv4_stop(if_handle->netif);
      |     ^~~~~~~~~~~~~~~
      |     net_dhcpv6_stop
zephyrproject/modules/hal/nxp/mcux/middleware/wifi_nxp/port/net/zephyr/net.c: In function 'net_configure_address':
zephyrproject/modules/hal/nxp/mcux/middleware/wifi_nxp/port/net/zephyr/net.c:1150:13: warning: implicit declaration of function 'net_dhcpv4_restart'; did you mean 'net_dhcpv6_restart'? [-Wimplicit-function-declaration]
 1150 |             net_dhcpv4_restart(if_handle->netif);
      |             ^~~~~~~~~~~~~~~~~~
      |             net_dhcpv6_restart
zephyrproject/modules/hal/nxp/mcux/middleware/wifi_nxp/port/net/zephyr/net.c: In function 'net_get_if_addr':
zephyrproject/modules/hal/nxp/mcux/middleware/wifi_nxp/port/net/zephyr/net.c:1201:60: error: 'struct net_if_ip' has no member named 'ipv4'; did you mean 'ipv6'?
 1201 |     struct net_if_ipv4 *ipv4 = if_handle->netif->config.ip.ipv4;
      |                                                            ^~~~
      |                                                            ipv6
zephyrproject/modules/hal/nxp/mcux/middleware/wifi_nxp/port/net/zephyr/net.c: In function 'net_get_if_ip_addr':
zephyrproject/modules/hal/nxp/mcux/middleware/wifi_nxp/port/net/zephyr/net.c:1399:60: error: 'struct net_if_ip' has no member named 'ipv4'; did you mean 'ipv6'?
 1399 |     struct net_if_ipv4 *ipv4 = if_handle->netif->config.ip.ipv4;
      |                                                            ^~~~
      |                                                            ipv6
zephyrproject/modules/hal/nxp/mcux/middleware/wifi_nxp/port/net/zephyr/net.c: In function 'net_get_if_ip_mask':
zephyrproject/modules/hal/nxp/mcux/middleware/wifi_nxp/port/net/zephyr/net.c:1408:60: error: 'struct net_if_ip' has no member named 'ipv4'; did you mean 'ipv6'?
 1408 |     struct net_if_ipv4 *ipv4 = if_handle->netif->config.ip.ipv4;
      |                                                            ^~~~
      |                                                            ipv6
[392/565] Building C object modules/hal_nxp/hal_nxp/CMakeFiles/..__modules__hal__nxp.dir/mcux/middleware/wifi_nxp/wlcmgr/wlan.c.obj

Describe the solution you'd like
As Zephyr supports IPv6 only configuration, it should be able to build also with this HAL.

@jukkar jukkar added Enhancement Changes/Updates/Additions to existing features platform: NXP NXP labels Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Changes/Updates/Additions to existing features platform: NXP NXP
Projects
None yet
Development

No branches or pull requests

3 participants