The wifi worked before the initial setup, but after reboot it stopped working.
raspi-config says no wireless interface found when trying to set up the wifi.
wpa_supplicant.conf states:
country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="myssid"
scan_ssid=1
psk="mypwd"
key_mgmt=WPA-PSK
}
Checked the file /etc/network/interfaces and it states:
source-directory /etc/network/interfaces.d (this directory is empty when checking)
mapping wlan0
script /root/bin/map_iface (this directory is empty when checking)
source /boot/realtimepi-network.txt (this file does not exist)
It seems the wifi (wlan0) is not properly initialized at boot.
How can I solve this?
scan_ssid=1
infers you have a hidden SSID - more trouble than they are worth esp with Pi boxes - change WLAN config to show SSID - no security benefit - sniffer can find them as devices transmit ssid in plain text on connection! The lines 'ssid' to 'key_mgmt' should be indented. If you used Notepad or File Editor etc then the file has CRLF at the end of each line. Delete the file and recreate withsudo nano /etc/wpa_supplicant.conf
. Key_mgmt line I find redundant.