diff --git a/src/network.c b/src/network.c index 4768b872..f7172c78 100644 --- a/src/network.c +++ b/src/network.c @@ -392,6 +392,11 @@ struct l_settings *network_get_settings(const struct network *network) return network->settings; } +struct station *network_get_station(const struct network *network) +{ + return network->station; +} + static bool network_set_8021x_secrets(struct network *network) { const struct l_queue_entry *entry; diff --git a/src/network.h b/src/network.h index 5451815b..d69d63b0 100644 --- a/src/network.h +++ b/src/network.h @@ -44,6 +44,7 @@ enum security network_get_security(const struct network *network); bool network_set_passphrase(struct network *network, const char *passphrase); int network_get_signal_strength(const struct network *network); struct l_settings *network_get_settings(const struct network *network); +struct station *network_get_station(const struct network *network); bool network_set_psk(struct network *network, const uint8_t *psk);