# Unable to scan and connect to wifi with dietpi-config

**URL:** https://dietpi.com/forum/t/unable-to-scan-and-connect-to-wifi-with-dietpi-config/13644
**Category:** Troubleshooting
**Tags:** wifi
**Created:** [10 July 2022 02:22 UTC](https://dietpi.com/forum/t/unable-to-scan-and-connect-to-wifi-with-dietpi-config/13644 "2022-07-10T02:22:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)
#### Post date: [10 July 2022 02:22 UTC](https://dietpi.com/forum/t/unable-to-scan-and-connect-to-wifi-with-dietpi-config/13644/1 "2022-07-10T02:22:36Z")

</div>

**Raspberry Pi 4, DietPi 8.6.1. aarch64 5.15.32-v8+ #1538**  
same thing on RPi 3B+, 8.6.1, also aarch64.

When I try to scan for wifi networks with `dietpi-config`, I get this error message:

> [FAILED] DietPi-WifiDB | An interface of type “wlan” does not exist.  
> Error: argument “” is wrong: “dev” not a valid ifname.  
> [OK] DietPi-WifiDB | Scanning SSID, please wait…  
> Interface doesn’t support scanning.

it also does not connect when set SSID and password manually. The country code is set, but in the overview of the `Network Options: Adapters`, it says:

> │ WiFi : Not Found | [On] | Disconnected │  
> │ Onboard WiFi : [On] │

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [10 July 2022 08:35 UTC](https://dietpi.com/forum/t/unable-to-scan-and-connect-to-wifi-with-dietpi-config/13644/2 "2022-07-10T08:35:39Z")

</div>

Did you reboot the system after onboard WiFi has been activated?

* * *

**EDIT**

Just tested on my RPi4B without issues

```auto
              ●─ Adapter Options ──────────● 
 Ethernet : Available | [On] | Connected 
 WiFi : Available | [On] | Connected 
 Onboard WiFi : [On]                         

```

---

<div class="post-metadata">

### Author: ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)
#### Post date: [10 July 2022 13:12 UTC](https://dietpi.com/forum/t/unable-to-scan-and-connect-to-wifi-with-dietpi-config/13644/3 "2022-07-10T13:12:05Z")

</div>

> [@Joulinar](#):
>
> Did you reboot the system after onboard WiFi has been activated?

No. Works after reboot.
