1
0
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:
drf
2009-03-01 16:01:21 +01:00
parent fab8d84dee
commit c23708b444
4 changed files with 47 additions and 0 deletions

View File

@@ -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()