Wpa-supplicant is not clearing its settings when I disconnect, and is overriding
iwconfig on my next connection. These settings are persisting even through reboot - the only way to get back online is to take wpa-supplicant out of the pipeline.
I disconnect using a script which includes everything I could think of:
sudo dhcpcd --release "$INTERFACE" sudo iwconfig "$INTERFACE" essid off sudo iwconfig "$INTERFACE" ap off sudo ifconfig "$INTERFACE" down
This worked well until I tried to integrate
wpa-supplicant in it.
My "connect" script includes these lines, which I thought would clear out any remaining settings:
sudo killall wpa_supplicant 2>/dev/null sudo rm "/var/run/wpa_supplicant/$INTERFACE" 2>/dev/null sudo killall dhcpcd 2>/dev/null sudo rm "/var/lib/dhcpcd/$INTERFACE" 2>/dev/null
How do I "reset"
wpa_cli -i "$INTERFACE" reconfigure
but that gave me
Failed to connect to non-global ctrl_ifname: wlp2s3 error: No such file or directory