commit 0706a357a4f55767a5b969684abaeccfe29e7486
parent 56e4dc549a6a100554a1a6ae1a97608737ccc425
Author: Tim Kourt <tim.a.kourt@linux.intel.com>
Date: Tue, 25 Jun 2019 15:21:01 -0700
station: Integrate netconfig into station creation and removal
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/station.c b/src/station.c
@@ -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) {