mirror of
https://github.com/gryf/wicd.git
synced 2025-12-29 01:42:33 +01:00
Merge in Dario Freddi's additions, with some modifications.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
""" networking - Provides wrappers for common network operations
|
||||
|
||||
@@ -629,6 +630,36 @@ class Wireless(Controller):
|
||||
"""
|
||||
return self.wiface.GetBSSID()
|
||||
|
||||
def GetCurrentBitrate(self, iwconfig):
|
||||
""" Get the current bitrate of the interface.
|
||||
|
||||
Returns:
|
||||
The bitrate of the active access point as a string, or
|
||||
None the bitrate can't be found.
|
||||
|
||||
"""
|
||||
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 GetAvailableAuthMethods(self, iwlistauth):
|
||||
""" Get the available authentication methods for the interface.
|
||||
|
||||
Returns:
|
||||
The available authentication methods of the interface as a string, or
|
||||
None if the auth methods can't be found.
|
||||
|
||||
"""
|
||||
return self.wiface.GetAvailableAuthMethods(iwlistauth)
|
||||
|
||||
def GetIwconfig(self):
|
||||
""" Get the out of iwconfig. """
|
||||
return self.wiface.GetIwconfig()
|
||||
|
||||
Reference in New Issue
Block a user