commit 0650707eeaac5db864000c8280638bd312569913
parent d0ec5fcf770c91e727a579d227c28d8f3c0aa269
Author: Denis Kenzior <denkenz@gmail.com>
Date: Tue, 4 Sep 2018 15:38:56 -0500
station: Add station_get_connected_network
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git 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
@@ -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,