From 1d4a5b9c8b3e71b241c867683ce2f20718939561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Wed, 11 Nov 2015 17:51:14 +0100 Subject: [PATCH] wifi: do update BSSID cache in activation_success_handler() (rh #1094298) Even if update_seen_bssids_cache() is called by set_current_ap() it did not really update the cache because it was called in NM_DEVICE_STATE_PREPARE state. So the cache was only updated by periodic_update() when the connection roamed to another AP. Fixes: 1283816b41695dbc46ddd63b3d1e7c3a535fe1c3 https://bugzilla.redhat.com/show_bug.cgi?id=1094298 (cherry picked from commit d4ebffcfb91a8d597908c15da3ae019774c4a651) --- src/devices/wifi/nm-device-wifi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/wifi/nm-device-wifi.c b/src/devices/wifi/nm-device-wifi.c index 5275b39e17..15d41206a1 100644 --- a/src/devices/wifi/nm-device-wifi.c +++ b/src/devices/wifi/nm-device-wifi.c @@ -3017,7 +3017,7 @@ done: set_current_ap (self, NULL, TRUE); } - /* No need to update seen BSSIDs cache, that is done by set_current_ap() already */ + update_seen_bssids_cache (self, priv->current_ap); /* Reset scan interval to something reasonable */ priv->scan_interval = SCAN_INTERVAL_MIN + (SCAN_INTERVAL_STEP * 2);