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

Don't try to set wireless bitrate to "autoM"

This commit is contained in:
David Paleino
2013-02-15 22:30:48 +01:00
parent 074c9414a8
commit 6c7124c80a

View File

@@ -1224,10 +1224,13 @@ class BaseWirelessInterface(BaseInterface):
''' '''
# FIXME: what if, in future, bitrates won't be "M(egabit per second)" # FIXME: what if, in future, bitrates won't be "M(egabit per second)"
#+anymore? #+anymore?
if allow_lower: if bitrate == 'auto':
cmd = 'iwconfig %s rate %sM auto' % (self.iface, bitrate) cmd = 'iwconfig %s rate auto'
else: else:
cmd = 'iwconfig %s rate %sM fixed' % (self.iface, bitrate) if allow_lower:
cmd = 'iwconfig %s rate %sM auto' % (self.iface, bitrate)
else:
cmd = 'iwconfig %s rate %sM fixed' % (self.iface, bitrate)
misc.Run(cmd) misc.Run(cmd)
@neediface(False) @neediface(False)