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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user