Skip to content

[BUG] esp32-devkitc:wifi seems not working correctly #17736

@acassis

Description

@acassis

Description / Steps to reproduce the issue

Steps to reproduce:

$ ./configure.sh esp32-devkitc:wifi
$ make menuconfig
Application Configuration
    Network Utilities  --->
        -*- Network initialization  --->
            WAPI Configuration  --->
            (MyRouter) SSID
            (MyPasswd) Passprhase

$ make -j flash ESPTOOL_PORT=/dev/ttyUSB0

Open the serial console and note that it connected:

nsh> ifconfig
wlan0   Link encap:Ethernet HWaddr 08:3a:8d:95:af:3c at RUNNING mtu 1500     
        inet addr:192.168.1.10 DRaddr:192.168.1.1 Mask:255.255.255.0         

However it cannot ping external host:

nsh> ping 8.8.8.8
PING 8.8.8.8 56 bytes of data                                                
ERROR: sendto failed at seqno 0: 101                                         
ERROR: sendto failed at seqno 1: 101                                         
ERROR: sendto failed at seqno 2: 101                                         
ERROR: sendto failed at seqno 3: 101                                         
ERROR: sendto failed at seqno 4: 101                                         
ERROR: sendto failed at seqno 5: 101                                         
ERROR: sendto failed at seqno 6: 101                                              
ERROR: sendto failed at seqno 7: 101                                              
ERROR: sendto failed at seqno 8: 101                                              
ERROR: sendto failed at seqno 9: 101                                              
10 packets transmitted, 0 received, 100% packet loss, time 10100 ms               

Also if you try renew command it will fail:

nsh> renew wlan0                                                                  
ERROR: netlib_obtain_ipv4addr() failed                                            
nsh>

Workaround:

Clear the SSID and Passphrase on menuconfig, when the nsh start you can connect manually and setup the network this way:

$ wapi psk wlan0 MyPasswd 3
$ wapi essid wlan0 MyRouter 1
$ ifconfig wlan0 192.168.1.51 dns 8.8.8.8

Now ping 8.8.8.8 or ping google.com will work.

On which OS does this issue occur?

[OS: Linux]

What is the version of your OS?

Ubuntu 24.04

NuttX Version

mainline

Issue Architecture

[Arch: all], [Arch: xtensa]

Issue Area

[Area: Networking]

Host information

No response

Verification

  • I have verified before submitting the report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Arch: allIssues that apply to all architecturesArch: xtensaIssues related to the Xtensa architectureArea: NetworkingEffects networking subsystemOS: LinuxIssues related to Linux (building system, etc)Type: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions