1
0
mirror of https://github.com/gryf/wicd.git synced 2026-03-10 19:45:50 +01:00

Adding GetOperationalMode() to determine op mode of an interface

This commit is contained in:
Dario Freddi
2009-03-01 19:31:34 +01:00
parent 2898adec48
commit 9213c7c333
3 changed files with 28 additions and 0 deletions

View File

@@ -635,6 +635,16 @@ class Wireless(Controller):
"""
return self.wiface.GetCurrentBitrate(iwconfig)
def GetOperationalMode(self, iwconfig):
""" Get the current operational mode of the interface.
Returns:
The operational mode of the interface as a string, or
None if the operational mode can't be found.
"""
return self.wiface.GetOperationalMode(iwconfig)
def GetIwconfig(self):
""" Get the out of iwconfig. """
return self.wiface.GetIwconfig()