commit | 0cce94cf2c00dc90d17b2c36da45770fe9caea92 | [log] [tgz] |
---|---|---|
author | Sunil Ravi <sunilravi@google.com> | Mon Dec 06 22:30:37 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Dec 06 22:30:37 2021 +0000 |
tree | 21e7246c7abda87a1aa8b04584084928f59f296d | |
parent | f1fdc7e52b88629e7366ca2a64c44ad9eddd31ca [diff] | |
parent | 706f17d019a2c3ebb6b92d2d0fcd03a68371557c [diff] |
Update the scan results immediately after adding the interface am: 706f17d019 Original change: https://googleplex-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/16385819 Change-Id: Ief4b46e8649619e14424c3b710cb63c6637fbd89
diff --git a/wpa_supplicant/hidl/1.4/supplicant.cpp b/wpa_supplicant/hidl/1.4/supplicant.cpp index a65b70e..d8b18bb 100644 --- a/wpa_supplicant/hidl/1.4/supplicant.cpp +++ b/wpa_supplicant/hidl/1.4/supplicant.cpp
@@ -365,6 +365,10 @@ if (!wpa_s) { return {{SupplicantStatusCode::FAILURE_UNKNOWN, ""}, {}}; } + //Request the current scan results from the driver and updates + //the local BSS list wpa_s->bss. This is to avoid a full scan + //while processing the connect request on newly created interface. + wpa_supplicant_update_scan_results(wpa_s); } // The supplicant core creates a corresponding hidl object via // HidlManager when |wpa_supplicant_add_iface| is called.
diff --git a/wpa_supplicant/hidl/1.4/supplicant.h b/wpa_supplicant/hidl/1.4/supplicant.h index 2944c50..c2b172c 100644 --- a/wpa_supplicant/hidl/1.4/supplicant.h +++ b/wpa_supplicant/hidl/1.4/supplicant.h
@@ -23,6 +23,7 @@ #include "utils/includes.h" #include "utils/wpa_debug.h" #include "wpa_supplicant_i.h" +#include "scan.h" } namespace android {