How To: disable both wifi and bluetooth in raspbian

  1. To completely disable the onboard WiFi from the firmware on the Pi3, Edit config.txt

    nano /boot/config.txt
    
    1. and add

      dtoverlay=pi3-disable-wifi
      dtoverlay=pi3-disable-bt
      
    2. save

  2. If you dont’t have WiFi cards and want to prevent wpa_supplicant from starting after boot, disable service:

    sudo systemctl stop wpa_supplicant.service;
    sudo systemctl mask wpa_supplicant.service