This is an old revision of the document!
Run raspi-config
which will create/update /etc/wpa_supplicant/wpa_supplicant.conf
.
Then create /etc/network/interfaces.d/wlan0
<code> auto wlan0 iface wlan0 inet dhcp
up iwconfig wlan0 power off # Disable power saving, so it stays on. Confusing, right?
<code>