Any manually-edited wpa_supplicant.conf kills everything but AutoAP
Posted: Sun Dec 02, 2018 8:41 pm
This past week a couple of friends wanted help getting their Pi-Zero-W+MMDVM-HAT style hotspots up and running. This is something I've done many times so I was horrified when I couldn't get their hostpots to join my office network at any point. No matter what I tried, it seemed they were deaf to any WiFi network. It seemed like I might have corrupted SD cards every time.
Worse, when I began trying to make network tests on existing working hotspots, they went down, too. At the end of a two hour session, I had four completely inoperable hotspots.
I took them home to a different network. I bit the bullet and reformatted all the SD cards, and started rebuilding each from scratch. On the fourth or fifth build, and noting various behaviors, I discovered: when a manually edited wpa_supplicant.conf was introduced into the /etc/wpa_supplicant/ directory on any of these spots, the spots failed to read them. So we stopped using any manual editing or preconfigured wpa_supplicant.conf files in the boot directory.
(Bafflingly, this was true of wpa_supplicant.conf files generated by the "WiFi Builder" utility on the "Pi-Star Tools" section of the PiStar.UK website. They would break the hotspot, too.)
Once we started doing all Wireless configuration through the Pi-Star Configuration menu, waiting for scans to complete, entering passwords, etc., everything worked perfectly and as expected. As soon as a new network entry was added to the machine-built wpa_supplicant.conf file, it would stop connecting and jump into AutoAP mode with whatever name the node had been given. If you'd done it carefully, then going into the Configuration screen and using the WiFi configuration tools there to delete the manually-added entries would bring the things back to life.
So now all four hotspots are up and running. Two are MMDVM_HS_DUAL_HAT spots, one is an MMDVM_HS_DUAL_HAT spot with a OLED display, and one is a MMDVM_HS_HAT with an OLED display.
All of the hotspots in these experiments and builds were made using the Pi-Star_RPi_V3.4.16_10-Aug-2018.zip image burned to the SD cards with Etcher or its rebranded successor.
I can say with reasonable confidence what the problem is, how to work around it, and when it's occurring. What I'm at a loss for is to tell you why these differences are happening.
I'm reasonably sure we can rule out the file editors, as this is a problem whether one uses vim on external machines or the vi editor on the raspberry Pi that is brought up on a ssh connection.
Just passing along what we've learned here at KI5SR and friends.
Worse, when I began trying to make network tests on existing working hotspots, they went down, too. At the end of a two hour session, I had four completely inoperable hotspots.
I took them home to a different network. I bit the bullet and reformatted all the SD cards, and started rebuilding each from scratch. On the fourth or fifth build, and noting various behaviors, I discovered: when a manually edited wpa_supplicant.conf was introduced into the /etc/wpa_supplicant/ directory on any of these spots, the spots failed to read them. So we stopped using any manual editing or preconfigured wpa_supplicant.conf files in the boot directory.
(Bafflingly, this was true of wpa_supplicant.conf files generated by the "WiFi Builder" utility on the "Pi-Star Tools" section of the PiStar.UK website. They would break the hotspot, too.)
Once we started doing all Wireless configuration through the Pi-Star Configuration menu, waiting for scans to complete, entering passwords, etc., everything worked perfectly and as expected. As soon as a new network entry was added to the machine-built wpa_supplicant.conf file, it would stop connecting and jump into AutoAP mode with whatever name the node had been given. If you'd done it carefully, then going into the Configuration screen and using the WiFi configuration tools there to delete the manually-added entries would bring the things back to life.
So now all four hotspots are up and running. Two are MMDVM_HS_DUAL_HAT spots, one is an MMDVM_HS_DUAL_HAT spot with a OLED display, and one is a MMDVM_HS_HAT with an OLED display.
All of the hotspots in these experiments and builds were made using the Pi-Star_RPi_V3.4.16_10-Aug-2018.zip image burned to the SD cards with Etcher or its rebranded successor.
I can say with reasonable confidence what the problem is, how to work around it, and when it's occurring. What I'm at a loss for is to tell you why these differences are happening.
I'm reasonably sure we can rule out the file editors, as this is a problem whether one uses vim on external machines or the vi editor on the raspberry Pi that is brought up on a ssh connection.
Just passing along what we've learned here at KI5SR and friends.