I'm sure, like most neophytes, I started with the code examples in the libraries and modified them to my requirements.
Looking at all of the sample sketches in the ESP8266WebServer and the ESP8266WiFi libraries, the only sketch that contains the line "WiFi.mode(m") is the WiFiScan sketch.
Is there some resource that I should have seen that explains the requirement for expressing the mode in my sketches?