I want to assign a static IP-address to the Wireless LAN interface on my raspberry pi, but after setting the address in /etc/network/interfaces
as follows:
auto wlan0
iface wlan0 inet static
address 192.168.1.4
netmask 255.255.0.0
gateway 192.168.1.1
and then after rebooting my raspberry pi, the WiFi is disabled with the message "country code not set".
But the country code is set in /etc/wpa_supplicant/wpa_supplicant.conf
The third line is country=BE
When removing the wlan0 setting in /etc/network/interfaces
and rebooting the raspberry pi, the Wi-Fi is enabled again. (but with a useless 169.254.0.0/16
ip-address)