aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Ravi <sunilravi@google.com>2021-11-15 23:00:38 -0800
committerSunil Ravi <sunilravi@google.com>2021-12-06 19:50:44 +0000
commit706f17d019a2c3ebb6b92d2d0fcd03a68371557c (patch)
tree5d2054e0a7b25f633c3f0ff0bca7be2f49f48c88
parent3ce898c8242b5a4d7b915c1cf3a479b9b6b1058b (diff)
downloadwpa_supplicant_8-android12-qpr3-release.tar.gz
After adding the newly created interface, 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 the newly created interface. Bug: 202249262 Test: Ran Nearby hotspot test and confirmed that STA is able to connect with in 500ms. Test command is ./testing/mobile/devicewhisperer/tests/nearby/connections/run.sh E2E_P2P_POINT_TO_POINT_WIFI_HOTSPOT_UPGRADE Change-Id: I5a74975fcfed7bbbff7a16acbecafd0a6570609d Merged-In: I5a74975fcfed7bbbff7a16acbecafd0a6570609d (cherry picked from commit d3bdd9ed62546437d1e717a6e7f718780ae1b537)
-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 {