mirror of
https://github.com/gryf/wicd.git
synced 2026-01-09 07:14:13 +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"
|
print "Warning: Couldn't get list of valid wpa_supplicant drivers"
|
||||||
return [""]
|
return [""]
|
||||||
patt = re.compile("(\S+)\s+=.*")
|
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):
|
def IsValidWpaSuppDriver(driver):
|
||||||
""" Returns True if given string is a valid wpa_supplicant driver. """
|
""" Returns True if given string is a valid wpa_supplicant driver. """
|
||||||
output = misc.Run(["wpa_supplicant", "-D%s" % driver, "-iolan19",
|
output = misc.Run(["wpa_supplicant", "-D%s" % driver, "-iolan19",
|
||||||
|
|||||||
Reference in New Issue
Block a user