mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-29 05:39:24 +01:00
auto-t: Use Station interface for methods
This commit is contained in:
parent
2f2ec71a6c
commit
9ac46e900e
@ -307,7 +307,7 @@ class Device(IWDDBusAbstract):
|
|||||||
Possible exception: BusyEx
|
Possible exception: BusyEx
|
||||||
FailedEx
|
FailedEx
|
||||||
'''
|
'''
|
||||||
self._iface.Scan(dbus_interface=self._iface_name,
|
self._iface.Scan(dbus_interface=IWD_STATION_INTERFACE,
|
||||||
reply_handler=self._success,
|
reply_handler=self._success,
|
||||||
error_handler=self._failure)
|
error_handler=self._failure)
|
||||||
|
|
||||||
@ -320,7 +320,7 @@ class Device(IWDDBusAbstract):
|
|||||||
FailedEx
|
FailedEx
|
||||||
NotConnectedEx
|
NotConnectedEx
|
||||||
'''
|
'''
|
||||||
self._iface.Disconnect(dbus_interface=self._iface_name,
|
self._iface.Disconnect(dbus_interface=IWD_STATION_INTERFACE,
|
||||||
reply_handler=self._success,
|
reply_handler=self._success,
|
||||||
error_handler=self._failure)
|
error_handler=self._failure)
|
||||||
|
|
||||||
@ -339,7 +339,7 @@ class Device(IWDDBusAbstract):
|
|||||||
main sorting factor.
|
main sorting factor.
|
||||||
'''
|
'''
|
||||||
ordered_networks = []
|
ordered_networks = []
|
||||||
for bus_obj in self._iface.GetOrderedNetworks():
|
for bus_obj in self._station.GetOrderedNetworks():
|
||||||
ordered_network = OrderedNetwork(bus_obj)
|
ordered_network = OrderedNetwork(bus_obj)
|
||||||
ordered_networks.append(ordered_network)
|
ordered_networks.append(ordered_network)
|
||||||
return ordered_networks
|
return ordered_networks
|
||||||
@ -393,7 +393,8 @@ class Device(IWDDBusAbstract):
|
|||||||
NotFoundEx
|
NotFoundEx
|
||||||
ServiceSetOverlapEx
|
ServiceSetOverlapEx
|
||||||
'''
|
'''
|
||||||
self._iface.ConnectHiddenNetwork(name, dbus_interface=self._iface_name,
|
self._iface.ConnectHiddenNetwork(name,
|
||||||
|
dbus_interface=IWD_STATION_INTERFACE,
|
||||||
reply_handler=self._success,
|
reply_handler=self._success,
|
||||||
error_handler=self._failure)
|
error_handler=self._failure)
|
||||||
self._wait_for_async_op()
|
self._wait_for_async_op()
|
||||||
|
Loading…
Reference in New Issue
Block a user