1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-24 23:22:27 +01:00

Remove the 'wired' wpa_supplicant driver from the list of drivers returned from

GetWpaSupplicantDrivers().
This commit is contained in:
Andrew Psaltis
2009-12-01 23:35:45 -05:00
parent 3ca3da00a0
commit b8b8ba2d5d

View File

@@ -165,8 +165,11 @@ def GetWpaSupplicantDrivers():
print "Warning: Couldn't get list of valid wpa_supplicant drivers"
return [""]
patt = re.compile("(\S+)\s+=.*")
return patt.findall(output) or [""]
drivers = patt.findall(output) or [""]
# We cannot use the "wired" driver for wireless interfaces.
if 'wired' in rval:
drivers.remove('wired')
return drivers
def IsValidWpaSuppDriver(driver):
""" Returns True if given string is a valid wpa_supplicant driver. """
output = misc.Run(["wpa_supplicant", "-D%s" % driver, "-iolan19",