Wifi credentials manager shell uses ethernet ifaces #88441
Labels
area: Wi-Fi
Wi-Fi
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
Describe the bug
If you use the wifi shell to auto_connect under credentials it will attempt to do so using the first L2 ethernet interface which does not consider if the interface is actualy Wi-Fi. This typically causes faults when the unhandled net management events are sent to that interface.
The code uses this snippet:
when it should be
To Reproduce
Build the wifi shell sample for the FRDM_RW612 board with theses extra configs:
This enables ethernet and credential manager
then add a network using
wifi cred add ...
the try to connect usingwifi cred auto_connect
Expected behavior
Shell command should send management events to the wifi driver not the ethernet interface
Impact
Minor, shell only. Should be updated more so to serve as a good example of how to use
net_mgmt
, many users use the shell command as a basis for their actual code.Environment (please complete the following information):
Additional context
Similar errors exist in some samples, for example the tagoio sample uses the network management with default iface, but it sends wifi specific management commands e.g.
NET_REQUEST_WIFI_CONNECT
which would fault on a multi interface platform like the RW612.The text was updated successfully, but these errors were encountered: