Fix crash on accessing preferences.
This commit is contained in:
1 parent
b8b8ba2d5d
commit
44e27b509f
1 file changed
+1
-1
+1
-1
@@ -167,7 +167,7 @@ def GetWpaSupplicantDrivers():
|
||||
patt = re.compile("(\S+)\s+=.*")
|
||||
drivers = patt.findall(output) or [""]
|
||||
# We cannot use the "wired" driver for wireless interfaces.
|
||||
if 'wired' in rval:
|
||||
if 'wired' in drivers:
|
||||
drivers.remove('wired')
|
||||
return drivers
|
||||
def IsValidWpaSuppDriver(driver):
|
||||
|
||||
Reference in new issue
Block a user