mirror of
https://github.com/gryf/wicd.git
synced 2026-03-24 12:43:33 +01:00
Adding the possibility of a custom iwconfig
This commit is contained in:
@@ -625,7 +625,7 @@ class Wireless(Controller):
|
|||||||
"""
|
"""
|
||||||
return self.wiface.GetBSSID()
|
return self.wiface.GetBSSID()
|
||||||
|
|
||||||
def GetCurrentBitrate(self):
|
def GetCurrentBitrate(self, iwconfig):
|
||||||
""" Get the current bitrate of the interface.
|
""" Get the current bitrate of the interface.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
@@ -633,7 +633,7 @@ class Wireless(Controller):
|
|||||||
None the bitrate can't be found.
|
None the bitrate can't be found.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
return self.wiface.GetCurrentBitrate()
|
return self.wiface.GetCurrentBitrate(iwconfig)
|
||||||
|
|
||||||
def GetIwconfig(self):
|
def GetIwconfig(self):
|
||||||
""" Get the out of iwconfig. """
|
""" Get the out of iwconfig. """
|
||||||
|
|||||||
@@ -997,8 +997,8 @@ class WirelessDaemon(dbus.service.Object):
|
|||||||
return self.wifi.GetBSSID()
|
return self.wifi.GetBSSID()
|
||||||
|
|
||||||
@dbus.service.method('org.wicd.daemon.wireless')
|
@dbus.service.method('org.wicd.daemon.wireless')
|
||||||
def GetCurrentBitrate(self):
|
def GetCurrentBitrate(self, iwconfig):
|
||||||
return self.wifi.GetCurrentBitrate()
|
return self.wifi.GetCurrentBitrate(iwconfig)
|
||||||
|
|
||||||
@dbus.service.method('org.wicd.daemon.wireless')
|
@dbus.service.method('org.wicd.daemon.wireless')
|
||||||
def CreateAdHocNetwork(self, essid, channel, ip, enctype, key, encused,
|
def CreateAdHocNetwork(self, essid, channel, ip, enctype, key, encused,
|
||||||
@@ -1130,6 +1130,12 @@ class WirelessDaemon(dbus.service.Object):
|
|||||||
ip = self.wifi.GetIP(ifconfig)
|
ip = self.wifi.GetIP(ifconfig)
|
||||||
return ip
|
return ip
|
||||||
|
|
||||||
|
@dbus.service.method('org.wicd.daemon.wireless')
|
||||||
|
def GetOperationalMode(self, ifconfig=""):
|
||||||
|
""" Returns the IP associated with the wireless interface. """
|
||||||
|
ip = self.wifi.GetOperationalMode(ifconfig)
|
||||||
|
return ip
|
||||||
|
|
||||||
@dbus.service.method('org.wicd.daemon.wireless')
|
@dbus.service.method('org.wicd.daemon.wireless')
|
||||||
def CheckWirelessConnectingMessage(self):
|
def CheckWirelessConnectingMessage(self):
|
||||||
""" Returns the wireless interface's status message. """
|
""" Returns the wireless interface's status message. """
|
||||||
|
|||||||
Reference in New Issue
Block a user