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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user