3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-23 06:02:37 +01:00

network: Add network_get_signal_strength

This commit is contained in:
Andrew Zaborowski 2016-06-09 19:55:22 +02:00 committed by Denis Kenzior
parent dae897854b
commit 11f23d500c
2 changed files with 8 additions and 0 deletions

View File

@ -276,6 +276,13 @@ const unsigned char *network_get_psk(const struct network *network)
return network->psk;
}
int network_get_signal_strength(const struct network *network)
{
struct scan_bss *best_bss = l_queue_peek_head(network->bss_list);
return best_bss->signal_strength;
}
struct l_settings *network_get_settings(const struct network *network)
{
return network->settings;

View File

@ -39,6 +39,7 @@ struct device *network_get_device(const struct network *network);
const char *network_get_path(const struct network *network);
enum security network_get_security(const struct network *network);
const unsigned char *network_get_psk(const struct network *network);
int network_get_signal_strength(const struct network *network);
struct l_settings *network_get_settings(const struct network *network);
bool network_settings_load(struct network *network);