From 0650707eeaac5db864000c8280638bd312569913 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 4 Sep 2018 15:38:56 -0500 Subject: [PATCH] station: Add station_get_connected_network --- src/station.c | 5 +++++ src/station.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/station.c b/src/station.c index 67510c52..57bc7f50 100644 --- a/src/station.c +++ b/src/station.c @@ -56,6 +56,11 @@ struct netdev *station_get_netdev(struct station *station) return station->netdev; } +struct network *station_get_connected_network(struct station *station) +{ + return station->connected_network; +} + struct autoconnect_entry { uint16_t rank; struct network *network; diff --git a/src/station.h b/src/station.h index 99b9ac09..fad18d69 100644 --- a/src/station.h +++ b/src/station.h @@ -67,6 +67,7 @@ struct station { struct wiphy *station_get_wiphy(struct station *station); struct netdev *station_get_netdev(struct station *station); +struct network *station_get_connected_network(struct station *station); void station_autoconnect_next(struct station *station); void station_add_autoconnect_bss(struct station *station,