mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-23 06:02:37 +01:00
device: Remove Disconnect method
This commit is contained in:
parent
81dd689611
commit
c47db2635f
15
src/device.c
15
src/device.c
@ -89,19 +89,6 @@ static struct l_dbus_message *device_scan(struct l_dbus *dbus,
|
||||
return station_dbus_scan(dbus, message, station);
|
||||
}
|
||||
|
||||
static struct l_dbus_message *device_dbus_disconnect(struct l_dbus *dbus,
|
||||
struct l_dbus_message *message,
|
||||
void *user_data)
|
||||
{
|
||||
struct device *device = user_data;
|
||||
struct station *station = device->station;
|
||||
|
||||
if (!device->powered || !device->station)
|
||||
return dbus_error_not_available(message);
|
||||
|
||||
return station_dbus_disconnect(dbus, message, station);
|
||||
}
|
||||
|
||||
static struct l_dbus_message *device_get_networks(struct l_dbus *dbus,
|
||||
struct l_dbus_message *message,
|
||||
void *user_data)
|
||||
@ -451,8 +438,6 @@ static void setup_device_interface(struct l_dbus_interface *interface)
|
||||
{
|
||||
l_dbus_interface_method(interface, "Scan", 0,
|
||||
device_scan, "", "");
|
||||
l_dbus_interface_method(interface, "Disconnect", 0,
|
||||
device_dbus_disconnect, "", "");
|
||||
l_dbus_interface_method(interface, "GetOrderedNetworks", 0,
|
||||
device_get_networks, "a(osns)", "",
|
||||
"networks");
|
||||
|
@ -1815,7 +1815,7 @@ int station_disconnect(struct station *station)
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct l_dbus_message *station_dbus_disconnect(struct l_dbus *dbus,
|
||||
static struct l_dbus_message *station_dbus_disconnect(struct l_dbus *dbus,
|
||||
struct l_dbus_message *message,
|
||||
void *user_data)
|
||||
{
|
||||
|
@ -99,9 +99,6 @@ void station_ap_directed_roam(struct station *station,
|
||||
const struct mmpdu_header *hdr,
|
||||
const void *body, size_t body_len);
|
||||
|
||||
struct l_dbus_message *station_dbus_disconnect(struct l_dbus *dbus,
|
||||
struct l_dbus_message *message,
|
||||
void *user_data);
|
||||
struct l_dbus_message *station_build_get_networks_reply(
|
||||
struct station *station,
|
||||
struct l_dbus_message *message,
|
||||
|
Loading…
Reference in New Issue
Block a user