mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 19:02:34 +01:00
network: Make sure to update seen_count
This commit is contained in:
parent
68c819053b
commit
c91bbe42a0
@ -1329,6 +1329,7 @@ static void emit_known_network_changed(struct station *station, void *user_data)
|
|||||||
if (!network)
|
if (!network)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
info->seen_count--;
|
||||||
network->info = NULL;
|
network->info = NULL;
|
||||||
l_dbus_property_changed(dbus_get_bus(), network_get_path(network),
|
l_dbus_property_changed(dbus_get_bus(), network_get_path(network),
|
||||||
IWD_NETWORK_INTERFACE, "KnownNetwork");
|
IWD_NETWORK_INTERFACE, "KnownNetwork");
|
||||||
@ -1344,6 +1345,7 @@ static void match_known_network(struct station *station, void *user_data)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
network->info = info;
|
network->info = info;
|
||||||
|
network->info->seen_count++;
|
||||||
l_dbus_property_changed(dbus_get_bus(), network_get_path(network),
|
l_dbus_property_changed(dbus_get_bus(), network_get_path(network),
|
||||||
IWD_NETWORK_INTERFACE, "KnownNetwork");
|
IWD_NETWORK_INTERFACE, "KnownNetwork");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user