From 0706a357a4f55767a5b969684abaeccfe29e7486 Mon Sep 17 00:00:00 2001 From: Tim Kourt Date: Tue, 25 Jun 2019 15:21:01 -0700 Subject: [PATCH] station: Integrate netconfig into station creation and removal --- src/station.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/station.c b/src/station.c index 0a1cfa47..0f4874a4 100644 --- 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) {