1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-08 14:54:15 +01:00

Fallback to Mode:Master if None is parsed

This commit is contained in:
David Paleino
2012-02-05 20:08:31 +01:00
parent 28f070ceb1
commit 7b8d5f803b

View File

@@ -1076,6 +1076,8 @@ class BaseWirelessInterface(BaseInterface):
"""
mode = _sanitize_string_strict(mode)
if not mode:
mode = 'master'
if mode.lower() == 'master':
mode = 'managed'
cmd = 'iwconfig %s mode %s' % (self.iface, mode)