Checklist
How often does this bug occurs?
always
Expected behavior
I wanted to run iperf using IPv6, but the ESP32 only receives IPv4 address from the DHCP server.
Actual behavior (suspected bug)
The bug is in esp-qa/wifi-cmd.
It is because wifi_init.c line no 76 used NULL argument.
Instead it should use g_netif_sta like this.
ESP_ERROR_CHECK(esp_event_handler_register(WIFI_EVENT, WIFI_EVENT_STA_CONNECTED, &wifi_cmd_handler_sta_connected, g_netif_sta));
I managed to run iperf using IPv6 as shown in the terminal output.
Note: I commented out the #if surrounding line 78 in wifi_handler.c
I haven't check other handlers.
Kindly fix this and related bugs.
Error logs or terminal output
I (21550) WIFI: IP_EVENT_GOT_IP6: Interface "sta" address: fe80:0000:0000:0000:7e2c:67ff:fe55:VVVV, type: 2
I (21561) WIFI: - IPv6 address: fe80:0000:0000:0000:7e2c:67ff:fe55:VVVV, type: 2
I (22549) WIFI: IP_EVENT_GOT_IP6: Interface "sta" address: 2XXX:XXXX:XXX:3d00:7e2c:67ff:fe55:d950, type: 1
I (22560) WIFI: - IPv6 address: 2XXX:XXXX:XXX:3d00:7e2c:67ff:fe55:VVVV, type: 1
iperf> iperf -V -c 2YYY:YYYY:YYYY:47bd:5400:1ff:fe7e:38a5 -u -b 40
I (362645) IPERF: mode=udp-client sip=localhost:5001, dip=2YYY:YYYY:YYYY:47bd:5400:1ff:fe7e:38a5:5001, interval=3, time=30
I (362646) iperf: Socket created, sending to 2YYY:YYYY:YYYY:47bd:5400:1ff:fe7e:38a5:5001
Interval Bandwidth
0.0- 3.0 sec 35.67 Mbits/sec
3.0- 6.0 sec 37.03 Mbits/sec
6.0- 9.0 sec 37.24 Mbits/sec
9.0-12.0 sec 34.42 Mbits/sec
12.0-15.0 sec 36.60 Mbits/sec
15.0-18.0 sec 36.20 Mbits/sec
18.0-21.0 sec 36.01 Mbits/sec
21.0-24.0 sec 37.08 Mbits/sec
24.0-27.0 sec 36.19 Mbits/sec
27.0-30.0 sec 35.72 Mbits/sec
0.0-30.0 sec 36.22 Mbits/sec
I (392658) iperf: UDP Socket client is closed
I (392658) iperf: iperf exit
Steps to reproduce the behavior
- update the qa-esp/wifi-cmd to 0.2.5 esp-qa/wifi-cmd
- enable IPV6 SLAAC on the menuconfig
- build, flash, monitor
Project release version
latest
System architecture
ARM 64-bit (Apple M1/M2, Raspberry Pi 4/5)
Operating system
MacOS
Operating system version
15.7.1
Shell
ZSH
Additional context
No response
Checklist
How often does this bug occurs?
always
Expected behavior
I wanted to run iperf using IPv6, but the ESP32 only receives IPv4 address from the DHCP server.
Actual behavior (suspected bug)
The bug is in
esp-qa/wifi-cmd.It is because
wifi_init.cline no 76 usedNULLargument.Instead it should use
g_netif_stalike this.ESP_ERROR_CHECK(esp_event_handler_register(WIFI_EVENT, WIFI_EVENT_STA_CONNECTED, &wifi_cmd_handler_sta_connected, g_netif_sta));I managed to run iperf using IPv6 as shown in the terminal output.
Note: I commented out the
#ifsurrounding line 78 inwifi_handler.cI haven't check other handlers.
Kindly fix this and related bugs.
Error logs or terminal output
Steps to reproduce the behavior
Project release version
latest
System architecture
ARM 64-bit (Apple M1/M2, Raspberry Pi 4/5)
Operating system
MacOS
Operating system version
15.7.1
Shell
ZSH
Additional context
No response