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:
parent
dae897854b
commit
11f23d500c
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user