I just put a freshly flashed card (with 2017-09-07-raspbian-stretch-lite) into a Raspberry Pi Zero W.
Then I added these lines:
network={
ssid="myWifiSsid"
psk="myWifiPassword"
}
to /etc/wpa_supplicant/wpa_supplicant.conf
.
The data entered was 100% correct. I waited 10 minutes and checked: It did not connect automatically.
Then I went back to the official instructions and ran sudo wpa_cli reconfigure
as suggested. Same result: It did not connect.
Then I tried to manually restart wlan0:
sudo ifconfig wlan0 down
sudo ifconfig wlan0 up
Still the same: Is does not connect.
Then I did a reboot and it instantly automatically connected.
It's soo frustrating. It feels like the official instructions aren't tested at all.
So what is missing here, how can this be done without a reboot?