mirror of
https://github.com/gryf/wicd.git
synced 2026-03-01 06:05:47 +01:00
Starting implementation of current bitrate retrieval
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
""" networking - Provides wrappers for common network operations
|
||||
|
||||
@@ -624,6 +625,16 @@ class Wireless(Controller):
|
||||
"""
|
||||
return self.wiface.GetBSSID()
|
||||
|
||||
def GetCurrentBitrate(self):
|
||||
""" 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()
|
||||
|
||||
def GetIwconfig(self):
|
||||
""" Get the out of iwconfig. """
|
||||
return self.wiface.GetIwconfig()
|
||||
|
||||
Reference in New Issue
Block a user