1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-31 11:02:33 +01:00

Handle essids that are made up of numbers. Thanks to anish for the patch.

This commit is contained in:
Dan O'Reilly
2009-10-24 01:03:29 -04:00
parent 740204ee50
commit 0872e1b329

View File

@@ -844,7 +844,7 @@ class BaseWirelessInterface(BaseInterface):
essid -- essid to set the interface to
"""
cmd = ['iwconfig', self.iface, 'essid', essid]
cmd = ['iwconfig', self.iface, 'essid', str(essid)]
if self.verbose: print str(cmd)
misc.Run(cmd)
@@ -1055,7 +1055,7 @@ class BaseWirelessInterface(BaseInterface):
if not wpa_pass_path: return None
key_pattern = re.compile('network={.*?\spsk=(.*?)\n}.*',
re.I | re.M | re.S)
cmd = [wpa_pass_path, network['essid'], str(network['key'])]
cmd = [wpa_pass_path, str(network['essid']), str(network['key'])]
if self.verbose: print cmd
return misc.RunRegex(key_pattern, misc.Run(cmd))