1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-28 17:32:36 +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)"
#+anymore?
if allow_lower:
cmd = 'iwconfig %s rate %sM auto' % (self.iface, bitrate)
if bitrate == 'auto':
cmd = 'iwconfig %s rate auto'
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)
@neediface(False)