aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-12-08 00:06:56 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-12-08 00:06:56 +0000
commitaf30ffe087c3a7f5d72e5259711d5520d4c7c871 (patch)
tree5d2054e0a7b25f633c3f0ff0bca7be2f49f48c88
parent430ef14229f5652f7740ac59a5aacf7e653767a5 (diff)
parent706f17d019a2c3ebb6b92d2d0fcd03a68371557c (diff)
downloadwpa_supplicant_8-af30ffe087c3a7f5d72e5259711d5520d4c7c871.tar.gz
Change-Id: I3ac3c0c60e3b07fe1572c5b47f22beece741c8f6
-rw-r--r--wpa_supplicant/hidl/1.4/supplicant.cpp4
-rw-r--r--wpa_supplicant/hidl/1.4/supplicant.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/hidl/1.4/supplicant.cpp b/wpa_supplicant/hidl/1.4/supplicant.cpp
index 6f4cde69..741a5375 100644
--- a/wpa_supplicant/hidl/1.4/supplicant.cpp
+++ b/wpa_supplicant/hidl/1.4/supplicant.cpp
@@ -352,6 +352,10 @@ Supplicant::addInterfaceInternal(const IfaceInfo& iface_info)
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 2944c50b..c2b172c5 100644
--- a/wpa_supplicant/hidl/1.4/supplicant.h
+++ b/wpa_supplicant/hidl/1.4/supplicant.h
@@ -23,6 +23,7 @@ extern "C"
#include "utils/includes.h"
#include "utils/wpa_debug.h"
#include "wpa_supplicant_i.h"
+#include "scan.h"
}
namespace android {