I had a little problem to connect in my network because i have blank space between my ssid, Example:
ssid: 'my wifi', ifconfig only gets 'my' and dont connect correctly!
So, i solved that making that little change in:
call('doas ifconfig wlan0 ssid %s' % name, shell=True)
to
call('doas ifconfig wlan0 ssid \'%s\'' % name, shell=True)
Just put a new single quotes in '%s', to ifconfig accept correctly!
I had a little problem to connect in my network because i have blank space between my ssid, Example: ssid: 'my wifi', ifconfig only gets 'my' and dont connect correctly!
So, i solved that making that little change in:
call('doas ifconfig wlan0 ssid %s' % name, shell=True)
tocall('doas ifconfig wlan0 ssid \'%s\'' % name, shell=True)
Just put a new single quotes in '%s', to ifconfig accept correctly!