nrf7002 - wifi_supplicant: Failed to add iface wlan0

I am trying to run the WiFi Station sample, unchanged on a nrf7002DK, but receive the following error: "wifi_supplicant: Failed to add iface wlan0" Complete output as follows:

*** Booting nRF Connect SDK v3.1.1-e2a97fe2578a ***
*** Using Zephyr OS v4.1.99-ff8f0c579eeb ***
[00:00:00.615,020] <inf> net_config: Initializing network
[00:00:00.615,020] <inf> net_config: Waiting interface 1 (0x20001448) to be up...
[00:00:00.615,203] <inf> net_config: IPv4 address: 192.168.1.99
[00:00:00.615,234] <inf> net_config: Running dhcpv4 client...
[00:00:03.197,265] <inf> sta: Starting nrf7002dk with CPU frequency: 64 MHz
[00:00:03.198,028] <inf> wifi_supplicant: wpa_supplicant initialized
[00:00:04.197,418] <inf> sta: QSPI Encryption disabled
[00:00:04.197,479] <inf> sta: Static IP address (overridable): 192.168.1.99/255.255.255.0 -> 192.168.1.1
[00:00:04.197,479] <inf> sta: Waiting for Wi-Fi to be ready
[00:00:05.187,713] <err> wifi_supplicant: Failed to add iface wlan0

So you can see I'm using the latest nRF Connect SDK: 3.1.1, using VSCode, nRF Connect for VS Code Extension Pack: 2025.4.4

All the latest tools, etc... and am not sure why an unchanged sample will not run?

  • OK, so I tried the sample unchanged, and it works. However I prefer my debug output via RTT, so I add the following which breaks this sample:

    CONFIG_RTT_CONSOLE=y
    CONFIG_UART_CONSOLE=n
    CONFIG_LOG=y
    CONFIG_DEBUG_INFO=y
    CONFIG_LOG_BACKEND_UART=n
    CONFIG_LOG_BACKEND_RTT=y
    CONFIG_USE_SEGGER_RTT=y
    CONFIG_LOG_BUFFER_SIZE=4096

    CONFIG_PRINTK=y
    CONFIG_MAIN_STACK_SIZE=4096
    CONFIG_HEAP_MEM_POOL_SIZE=2048
    These are settings I copied from other projects, now I realize the last two settings do not provide enough space and overwrite other settings within the .conf file. so ultimately my mistake... Disappointed
Related