aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-12-08 00:06:54 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-12-08 00:06:54 +0000
commit8da45f5ce579c1a395b4afe3ea645cc59b243f1d (patch)
tree5d2054e0a7b25f633c3f0ff0bca7be2f49f48c88
parentdce319ac665c584ff55cf9802763b86b875c7c0c (diff)
parent706f17d019a2c3ebb6b92d2d0fcd03a68371557c (diff)
downloadwpa_supplicant_8-android12L-d2-s6-release.tar.gz
Change-Id: I72f9a7d2b7065361491d9034b42624d64a1654db
-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 {