network: add network_get_station

This commit is contained in:
James Prestwood 2021-09-17 15:58:37 -07:00 committed by Denis Kenzior
parent a6c4972290
commit 71384da38f
2 changed files with 6 additions and 0 deletions

View File

@ -392,6 +392,11 @@ struct l_settings *network_get_settings(const struct network *network)
return network->settings; return network->settings;
} }
struct station *network_get_station(const struct network *network)
{
return network->station;
}
static bool network_set_8021x_secrets(struct network *network) static bool network_set_8021x_secrets(struct network *network)
{ {
const struct l_queue_entry *entry; const struct l_queue_entry *entry;

View File

@ -44,6 +44,7 @@ enum security network_get_security(const struct network *network);
bool network_set_passphrase(struct network *network, const char *passphrase); bool network_set_passphrase(struct network *network, const char *passphrase);
int network_get_signal_strength(const struct network *network); int network_get_signal_strength(const struct network *network);
struct l_settings *network_get_settings(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); bool network_set_psk(struct network *network, const uint8_t *psk);