network: Make sure to update seen_count

This commit is contained in:
Denis Kenzior 2019-08-16 11:08:05 -05:00
parent 68c819053b
commit c91bbe42a0
1 changed files with 2 additions and 0 deletions

View File

@ -1329,6 +1329,7 @@ static void emit_known_network_changed(struct station *station, void *user_data)
if (!network)
return;
info->seen_count--;
network->info = NULL;
l_dbus_property_changed(dbus_get_bus(), network_get_path(network),
IWD_NETWORK_INTERFACE, "KnownNetwork");
@ -1344,6 +1345,7 @@ static void match_known_network(struct station *station, void *user_data)
return;
network->info = info;
network->info->seen_count++;
l_dbus_property_changed(dbus_get_bus(), network_get_path(network),
IWD_NETWORK_INTERFACE, "KnownNetwork");
}