461911662 opened a new issue, #16357: URL: https://github.com/apache/nuttx/issues/16357
### Description / Steps to reproduce the issue wifi set softap, can't work. **my config:** ./tools/configure.sh -a vendor/boss/app/nuttx-apps esp32-devkitc:wifi && make -j4 flash nuttx **follow the log:** Hard resetting via RTS pin... --- Using autodetected port /dev/ttyUSB0 --- serial_com 1.5.0 on /dev/ttyUSB0 115200 1150 mmu set 00020000, pos 00020000 entry 0x400859ec *** Booting NuttX *** I (78) boot: chip revision: v3.0 I (79) boot.esp32: SPI Speed : 40MHz I (79) boot.esp32: SPI Mode : DIO I (80) boot.esp32: SPI Flash Size : 16MB I (84) boot: Enabling RNG early entropy source... dram: lma 0x00001020 vma 0x3ffbe7d0 len 0x36e4 (14052) iram: lma 0x0000470c vma 0x40080000 len 0x1fe70 (130672) padd: lma 0x00024588 vma 0x00000000 len 0xba70 (47728) imap: lma 0x00030000 vma 0x400f0000 len 0x6a9e8 (436712) padd: lma 0x0009a9f0 vma 0x00000000 len 0x5628 (22056) dmap: lma 0x000a0020 vma 0x3f400020 len 0x16048 (90184) total segments stored 6 A__esp32_start: ESP32 chip revision is v3.0 BI (77) wifi:wifi firmware version: 34922fa I (77) wifi:wifi certification version: v7.0 I (77) wifi:config NVS flash: disabled I (78) wifi:config nano formating: disabled I (78) wifi:Init data frame dynamic rx buffer num: 32 I (78) wifi:Init static rx mgmt buffer num: 5 I (78) wifi:Init management short buffer numesp_wifi_adapter_init: OK to initialize Wi-Fi adapter esp32_wlan_softap_initialize: Wi-Fi softAP MAC: 24:0A:C4:E8:03:9D netdev_register: Registered MAC: 24:0a:c4:e8:03:9d as dev: wlan0 esp32_net_initialize: INFO: Initialize Wi-Fi adapter No.0 success esp32_wlan_softap_initialize: INFO: Initialize Wi-Fi softAP net success netdev_ifr_ioctl: cmd: 1794 netdev_ifr_ioctl: cmd: 1796 netdev_ifr_ioctl: cmd: 1800 netdev_ifr_ioctl: cmd: 1818 wlan_ifup: Bringing up: 10.0.0.2 esp_phy_get_init_data: Loading PHY init data from application binary : 32 I (83) wifi:Init dynamic tx buffer num: 32 I (83) wifi:Init static rx buffer size: 1600 I (83) wifi:Init static rx buffer num: 10 I (94) wifi:Init dynamic rx buffer num: 32 I (136) phy_init: phy_version 4830,54550f7,Jun 20 2024,14:22:08 wifi_set_intr: cpu_no=0, intr_source=0, intr_num=0, intr_prio=1 esp_set_isr: n=0 f=0x40085770 arg=0 irq=5 esp32_ints_on: INFO mask=00000001 irq=0 I (193) wifi:modeesp_event_post: Event: base=WIFI_EVENT id=12 data=0 data_size=0 ticks=4294967295 esp_wifi_softap_start: OK to start Wi-Fi SoftAP nsh_telnetstart: Starting the Telnet daemon esp_evt_work_cb: INFO: Wi-Fi softap start telnetd_daemon: Accepting connections on port 23 : softAP (24:0a:c4:e8:03:9d) I (193) wifi:Total power save buffer number: 16 esp_evt_work_cb: INFO: Set ps type=0netd [5:100] NuttShell (NSH) nsh> eacon: 752/752 I (195) wifi:Init max length of beacon: 752/752 I (218) wifi:Set ps type: 0, coexist: 0 I (17136) wifi:new:<1,1>, old:<1,1>, ap:<1,1>, sta:<255,255>, pesp_event_post: Event: base=WIFI_EVENT id=14 data=0x3ffc7450 data_size=8 ticks=4294967295 esp_evt_work_cb: INFO: Wi-Fi station join rof:1 I (17137) wifi:station: 62:62:c6:ee:90:60 join, AID=1, bgn, 40U I (17238) wifi:<ba-add>idx:2 (ifx:1, 62:62:c6:ee:90:60), twlan_rxpoll: IPv4 frame esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: IPv4 frame esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: IPv4 frame esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: IPv4 frame esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: IPv4 frame esp_wifi_tx_done_cb: ifidx=255 is error id:0, ssn:0, winSize:64 I (17425) wifi:station: 62:62:c6:ee:90:6esp_event_post: Event: base=WIFI_EVENT id=15 data=0x3ffc7470 data_size=9 ticks=4294967295 esp_evt_work_cb: INFO: Wi-Fi station leave 0 leave, AID = 1, bss_flags is 33786979, bss:0x3ffcfc08 I (17428) wifi:new:<1,0>, old:<1,1>, ap:<1,1>, sta:<255,255>, prof:1 I (17429) wifi:<ba-del>idx:2, tid:0 I (774) wifi:new:<1,0>, old:<1,esp_event_post: Event: base=WIFI_EVENT id=14 data=0x3ffc7450 data_size=8 ticks=4294967295 esp_evt_work_cb: INFO: Wi-Fi station join 0>, ap:<1,1>, sta:<255,255>, prof:1 I (775) wifi:station: 62:62:wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: IPv4 frame esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: IPv4 frame esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: IPv4 frame esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: IPv4 frame esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: IPv4 frame esp_wifi_tx_done_cb: ifidx=255 is error c6:ee:90:60 join, AID=1, bg, 20 I (1052) wifi:station: 62:62:c6:esp_event_post: Event: base=WIFI_EVENT id=15 data=0x3ffc7470 data_size=9 ticks=4294967295 esp_evt_work_cb: INFO: Wi-Fi station leave ee:90:60 leave, AID = 1, bss_flags is 33685539, bss:0x3ffcfc98 I (1055) wifi:new:<1,0>, old:<1,0>, ap:<1,1>, sta:<255,255>, prof nsh> nsh> nsh> ifconfig netdev_ifr_ioctl: cmd: 1819 netdev_ifr_ioctl: cmd: 1819 netdev_ifr_ioctl: cmd: 1819 netdev_ifr_ioctl: cmd: 1819 wlan0 Link encap:Ethernet HWaddr 24:0a:c4:e8:03:9d at UP mtu 1504 inet addr:10.0.0.2 DRaddr:10.0.0.1 Mask:255.255.255.0 IPv4 TCP UDP ICMP Received 000a 0000 000a 0000 Dropped 0000 0000 0000 0000 IPv4 VHL: 0000 Frg: 0000 Checksum 0000 0000 0000 ---- TCP ACK: 0000 SYN: 0000 RST: 0000 0000 Type 0000 ---- ---- 0000 Sent 0000 0000 0000 0000 Rexmit ---- 0000 ---- ---- nsh> wapi mode wlan0 1 netdev_ifr_ioctl: cmd: 35590 nsh> wapi essid wlan0 "MyAccessPoint" 1 netdev_ifr_ioctl: cmd: 35610 esp_event_post: Event: base=WIFI_EVENT id=13 data=0 data_size=0 ticks=4294967295 esp_event_post: Event: base=WIFI_EVENT id=12 data=0 data_size=0 ticks=4294967295 esp_wifi_softap_essid: Wi-Fi SoftAP ssid=MyAccessPoint len=13 esp_event_post: Event: base=WIFI_EVENT id=13 data=0 data_size=0 ticks=4294967295 :1 I (1esp_event_post: Event: base=WIFI_EVENT id=12 data=0 data_size=0 ticks=4294967295 esp_evt_work_cb: INFO: Wi-Fi softap stop esp_evt_work_cb: INFO: Wi-Fi softap start esp_evt_work_cb: INFO: Set ps type=0 esp_evt_work_cb: INFO: Wi-Fi softap stop esp_evt_work_cb: INFO: Wi-Fi softap start esp_evt_work_cb: INFO: Set ps type=0 4813) wifi:Total power save buffer number: 16 I (14830) wifi:Total power save buffer number: 16 I (14845) wifi:Set ps type: 0, coexist: 0 I (14856) wifi:Set ps type: 0, coexist: 0 nsh> wapi psk wlan0 "password123" 1 3 netdev_ifr_ioctl: cmd: 35634 netdev_ifr_ioctl: cmd: 35634 netdev_ifr_ioctl: cmd: 35636 E (10674) wifi:Invalid authmode 1 configured foresp_wifi_softap_password: Failed to set Wi-Fi config data ret=258 wpa_driver_wext_set_key_ext: ERROR: ioctl[SIOCSIWENCODEEXT]: 22 wapi_main: ERROR: Process command (psk) failed. softAP nsh> nsh> wapi ip wlan0 192.168.4.1 netdev_ifr_ioctl: cmd: 1794 nsh> wapi mask wlan0 255.255.255.0 netdev_ifr_ioctl: cmd: 1800 nsh> wapi ap wlan0 24:0a:c4:e8:03:9d netdev_ifr_ioctl: cmd: 35604 wlan_ioctl: ERROR: Failed to set BSSID wapi_set_ap: ioctl(SIOCSIWAP): 38 wapi_main: ERROR: Process command (ap) failed. nsh> I (6770) wifi:new:<1,1>, old:<1,1>, ap:<1,1>, sta:<255,255>, presp_event_post: Event: base=WIFI_EVENT id=14 data=0x3ffc7450 data_size=8 ticks=4294967295 esp_evt_work_cb: INFO: Wi-Fi station join of:1 I (6771) wifi:station: ce:5b:64:ec:b3:5e join, AID=1, bgn, 40U I (6874) wifi:<ba-add>idx:2 (ifx:1, ce:5b:64:ec:b3:5e), tid:wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error 0, ssn:0, winSize:64 I (6876) wifi:<ba-add>idx:3 (ifx:1, ce:5b:6wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: IPv4 frame esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: IPv4 frame esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: IPv4 frame esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: IPv4 frame esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: IPv4 frame esp_wifi_tx_done_cb: ifidx=255 is error 4:ec:b3:5e), tid:7, ssn:0, winSize:64 I (6995) wifi:station: ce:esp_event_post: Event: base=WIFI_EVENT id=15 data=0x3ffc7470 data_size=9 ticks=4294967295 esp_evt_work_cb: INFO: Wi-Fi station leave 5b:64:ec:b3:5e leave, AID = 1, bss_flags is 33786979, bss:0x3ffcfb48 I (6999) wifi:new:<1,0>, old:<1,1>, ap:<1,1>, sta:<255,255>, prof:1 I (6999) wifi:<ba-del>idx:2, tid:0 I (6999) wifi:<ba-del>idx:3, tid:7 I (8704) wifi:new:<1,1>, old:<1,0>, ap:<1,1>, staesp_event_post: Event: base=WIFI_EVENT id=14 data=0x3ffc7450 data_size=8 ticks=4294967295 esp_evt_work_cb: INFO: Wi-Fi station join :<255,255>, prof:1 I (8706) wifi:station: ce:5b:64:ec:b3:5e join, AID=1, bgn, 40U I (8826) wifi:<ba-add>idx:2 (ifx:1, ce:5b:64:ewlan_rxpoll: INFO: Dropped, Unknown type: dd86 wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 c:b3:5e), tid:0, ssn:0, winSize:64 I (8832) wifi:<ba-add>idx:3 (esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: IPv4 frame esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: IPv4 frame esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: IPv4 frame esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: IPv4 frame esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: INFO: Dropped, Unknown type: dd86 esp_wifi_tx_done_cb: ifidx=255 is error wlan_rxpoll: IPv4 frame esp_wifi_tx_done_cb: ifidx=255 is error ifx:1, ce:5b:64:ec:b3:5e), tid:7, ssn:0, winSize:64 I (8952) wifesp_event_post: Event: base=WIFI_EVENT id=15 data=0x3ffc7470 data_size=9 ticks=4294967295 esp_evt_work_cb: INFO: Wi-Fi station leave i:station: ce:5b:64:ec:b3:5e leave, AID = 1, bss_flags is 33786979, bss:0x3ffcfb48 I (8956) wifi:new:<1,0>, old:<1,1>, ap:<1,1>, sta:<255,255>, prof:1 I (8956) wifi:<ba-del>idx:2, tid:0 I (895 ### On which OS does this issue occur? [OS: Linux] ### What is the version of your OS? Linux DESKTOP-BNU9SN9 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux ### NuttX Version master ### Issue Architecture [Arch: xtensa] ### Issue Area [Area: Drivers] ### Host information _No response_ ### Verification - [x] I have verified before submitting the report. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org