mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
knownnetworks: Check result of setting getter
Set the value of 'is_hidden' if necessary.
This commit is contained in:
parent
77e9df23c1
commit
597920d06c
@ -338,7 +338,7 @@ void known_network_update(struct network_info *network,
|
||||
struct l_settings *settings,
|
||||
uint64_t connected_time)
|
||||
{
|
||||
bool is_hidden = false;
|
||||
bool is_hidden;
|
||||
bool is_autoconnectable;
|
||||
|
||||
if (network->connected_time != connected_time) {
|
||||
@ -354,7 +354,8 @@ void known_network_update(struct network_info *network,
|
||||
|
||||
network->connected_time = connected_time;
|
||||
|
||||
l_settings_get_bool(settings, "Settings", "Hidden", &is_hidden);
|
||||
if (!l_settings_get_bool(settings, "Settings", "Hidden", &is_hidden))
|
||||
is_hidden = false;
|
||||
|
||||
if (network->is_hidden != is_hidden) {
|
||||
if (network->is_hidden && !is_hidden)
|
||||
|
Loading…
Reference in New Issue
Block a user