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,