Fix an error in pivot_toggle.sh and use less forks.
There's a distinct difference between wpa and non wpa networks, therefore don't bother to feed wpakey for open APs.