Skip to content

Instantly share code, notes, and snippets.

@0x48piraj
Created July 23, 2025 03:56
Show Gist options
  • Select an option

  • Save 0x48piraj/139f193005f007a2efd8f152e4f6bbde to your computer and use it in GitHub Desktop.

Select an option

Save 0x48piraj/139f193005f007a2efd8f152e4f6bbde to your computer and use it in GitHub Desktop.

Restore WiFi on Pi 3 Model B

Problem: After flashing the latest Raspberry Pi OS or doing a dist-upgrade, the WiFi interface (wlan0) disappears and no WiFi hardware is detected.

Solution

  1. Edit the boot configuration file:

    Open /boot/config.txt in a text editor:

    sudo nano /boot/config.txt
  2. Add the following line at the end:

    dtoverlay=pi3-enable-wifi
  3. 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.

Notes

  • 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment