apache / apache/nuttx

[BUG] RaspberryPi-Pico-W is not getting WiFi with Pi Pico SDK 2.0

Open
#13,828 6 comments 0 reactions 0 assignees View on GitHub
Arch: arm Area: Networking
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

### Description / Steps to reproduce the issue

Except getting the latest Pi Pico SDK 2.0, the rest is the same as https://github.com/apache/nuttx/issues/7475, which is closed now.

Similar to the errors in https://github.com/apache/nuttx/issues/7475, the following errors occurred:

I set SSID and passphrase in menuconfig, and also tried to set them in nsh.

nsh> renew wlan0
ERROR: netlib_obtain_ipv4addr() failed
nsh> ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 at DOWN mtu 5nsh>
nsh>
nsh> ifup wlan0
ifup wlan0...Failed

ChatGPT suggested to set mac address:
ifconfig wlan0 hw ether XX:XX:XX:XX:XX:XX (e.g., 28:CD:C1:0A:38:9A)
but got error:
nsh: ifconfig: argument invalid

nsh> wapi show wlan0
wlan0 Configuration:
IP: 0.0.0.0
NetMask: 255.255.255.0
nsh> wapi scan wlan0
nsh> wapi scan_results wlan0
nsh> ifup wlan0
ifup wlan0...Failed

Besides this firmware issue during setup, along the way I encounter other issues as shown in comments below:
1) When not set during menuconfig, SSID and passphrase entered manually in wapi commands disappeared after reboot
2) ifconfig did not output ip address, etc.
3) ifup wlan0 returned message OK which was misleading when wlan0 was not connected and not up running correctly

### On which OS does this issue occur?

[OS: Linux]

### What is the version of your OS?

Windows 11 WSL2 Ubuntu 22.04.2

### NuttX Version

NuttX 12.7.0-RC0 0976258299-dirty Oct 4 2024 22:58:36 arm rasp

### Issue Architecture

[Arch: arm]

### Issue Area

[Area: Networking]

### Verification

- [X] I have verified before submitting the report.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.