Problem:
After flashing the latest Raspberry Pi OS or doing a dist-upgrade, the WiFi interface (wlan0) disappears and no WiFi hardware is detected.
-
Edit the boot configuration file:
Open
/boot/config.txtin a text editor:sudo nano /boot/config.txt
-
Add the following line at the end:
dtoverlay=pi3-enable-wifi -
Save and reboot:
sudo reboot
On Raspberry Pi 3 Model B, the onboard WiFi is tied to a shared UART line. Some recent kernel/firmware changes may disable the onboard WiFi unintentionally unless explicitly enabled using this overlay.
- This fix is specifically for Raspberry Pi 3 Model B (not B+ or later).
- Other models might not require this overlay or may have different overlays.
- If you’re using a custom device tree or overlays, be cautious editing
/boot/config.txt.