mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-22 03:14:05 +01:00
device: Remove Scan method
This commit is contained in:
parent
189a96e91a
commit
b2e0a82225
19
src/device.c
19
src/device.c
@ -72,23 +72,6 @@ static void device_ap_roam_frame_event(struct netdev *netdev,
|
||||
station_ap_directed_roam(station, hdr, body, body_len);
|
||||
}
|
||||
|
||||
static struct l_dbus_message *device_scan(struct l_dbus *dbus,
|
||||
struct l_dbus_message *message,
|
||||
void *user_data)
|
||||
{
|
||||
struct device *device = user_data;
|
||||
struct station *station = device->station;
|
||||
|
||||
/* TODO: Remove when Device/Station split is done */
|
||||
if (netdev_get_iftype(device->netdev) != NETDEV_IFTYPE_STATION)
|
||||
return dbus_error_not_available(message);
|
||||
|
||||
if (!device->powered)
|
||||
return dbus_error_failed(message);
|
||||
|
||||
return station_dbus_scan(dbus, message, station);
|
||||
}
|
||||
|
||||
static struct l_dbus_message *device_get_networks(struct l_dbus *dbus,
|
||||
struct l_dbus_message *message,
|
||||
void *user_data)
|
||||
@ -436,8 +419,6 @@ static struct l_dbus_message *device_property_set_mode(struct l_dbus *dbus,
|
||||
|
||||
static void setup_device_interface(struct l_dbus_interface *interface)
|
||||
{
|
||||
l_dbus_interface_method(interface, "Scan", 0,
|
||||
device_scan, "", "");
|
||||
l_dbus_interface_method(interface, "GetOrderedNetworks", 0,
|
||||
device_get_networks, "a(osns)", "",
|
||||
"networks");
|
||||
|
@ -1931,7 +1931,7 @@ static void station_dbus_scan_triggered(int err, void *user_data)
|
||||
IWD_DEVICE_INTERFACE, "Scanning");
|
||||
}
|
||||
|
||||
struct l_dbus_message *station_dbus_scan(struct l_dbus *dbus,
|
||||
static struct l_dbus_message *station_dbus_scan(struct l_dbus *dbus,
|
||||
struct l_dbus_message *message,
|
||||
void *user_data)
|
||||
{
|
||||
|
@ -103,9 +103,6 @@ struct l_dbus_message *station_build_get_networks_reply(
|
||||
struct station *station,
|
||||
struct l_dbus_message *message,
|
||||
bool legacy);
|
||||
struct l_dbus_message *station_dbus_scan(struct l_dbus *dbus,
|
||||
struct l_dbus_message *message,
|
||||
void *user_data);
|
||||
|
||||
int __station_connect_network(struct station *station, struct network *network,
|
||||
struct scan_bss *bss);
|
||||
|
Loading…
Reference in New Issue
Block a user