summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiří Klimeš <jklimes@redhat.com>2015-11-11 17:51:14 +0100
committerJiří Klimeš <jklimes@redhat.com>2015-11-12 10:11:53 +0100
commite7b450b53c5f2ec96d109406d166f9316faa1382 (patch)
tree6d29068fed3769340940ce2dde0c37b036234fab
parentd19cbabc141f485549a1eb7dbf94d167e3cbfa2e (diff)
downloadNetworkManager-jk/bssid-cache-update-fix-rh1094298.tar.gz
wifi: do update BSSID cache in activation_success_handler() (rh #1094298)jk/bssid-cache-update-fix-rh1094298
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
-rw-r--r--src/devices/wifi/nm-device-wifi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/wifi/nm-device-wifi.c b/src/devices/wifi/nm-device-wifi.c
index 7691a16e92..0acab15099 100644
--- a/src/devices/wifi/nm-device-wifi.c
+++ b/src/devices/wifi/nm-device-wifi.c
@@ -3007,7 +3007,8 @@ done:
set_current_ap (self, NULL, TRUE, FALSE);
}
- /* No need to update seen BSSIDs cache, that is done by set_current_ap() already */
+ /* Update seen BSSIDs cache with the connected AP */
+ update_seen_bssids_cache (self, priv->current_ap);
/* Reset scan interval to something reasonable */
priv->scan_interval = SCAN_INTERVAL_MIN + (SCAN_INTERVAL_STEP * 2);