mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-23 06:02:37 +01:00
station: Integrate netconfig into station creation and removal
This commit is contained in:
parent
56e4dc549a
commit
0706a357a4
@ -50,6 +50,7 @@
|
||||
#include "src/blacklist.h"
|
||||
#include "src/mpdu.h"
|
||||
#include "src/erp.h"
|
||||
#include "src/netconfig.h"
|
||||
|
||||
static struct l_queue *station_list;
|
||||
static uint32_t netdev_watch;
|
||||
@ -2691,6 +2692,8 @@ static struct station *station_create(struct netdev *netdev)
|
||||
l_dbus_object_add_interface(dbus, netdev_get_path(netdev),
|
||||
IWD_STATION_INTERFACE, station);
|
||||
|
||||
netconfig_ifindex_add(netdev_get_ifindex(netdev));
|
||||
|
||||
return station;
|
||||
}
|
||||
|
||||
@ -2704,6 +2707,8 @@ static void station_free(struct station *station)
|
||||
if (station->connected_bss)
|
||||
netdev_disconnect(station->netdev, NULL, NULL);
|
||||
|
||||
netconfig_ifindex_remove(netdev_get_ifindex(station->netdev));
|
||||
|
||||
periodic_scan_stop(station);
|
||||
|
||||
if (station->signal_agent) {
|
||||
|
Loading…
Reference in New Issue
Block a user