mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 02:19:26 +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,
|
struct l_settings *settings,
|
||||||
uint64_t connected_time)
|
uint64_t connected_time)
|
||||||
{
|
{
|
||||||
bool is_hidden = false;
|
bool is_hidden;
|
||||||
bool is_autoconnectable;
|
bool is_autoconnectable;
|
||||||
|
|
||||||
if (network->connected_time != connected_time) {
|
if (network->connected_time != connected_time) {
|
||||||
@ -354,7 +354,8 @@ void known_network_update(struct network_info *network,
|
|||||||
|
|
||||||
network->connected_time = connected_time;
|
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) {
|
||||||
if (network->is_hidden && !is_hidden)
|
if (network->is_hidden && !is_hidden)
|
||||||
|
Loading…
Reference in New Issue
Block a user