diff options
author | Sunil Ravi <sunilravi@google.com> | 2021-11-15 23:00:38 -0800 |
---|---|---|
committer | Sunil Ravi <sunilravi@google.com> | 2021-12-06 19:50:44 +0000 |
commit | 706f17d019a2c3ebb6b92d2d0fcd03a68371557c (patch) | |
tree | 5d2054e0a7b25f633c3f0ff0bca7be2f49f48c88 | |
parent | 3ce898c8242b5a4d7b915c1cf3a479b9b6b1058b (diff) | |
download | wpa_supplicant_8-android12-qpr3-release.tar.gz |
Update the scan results immediately after adding the interfaceandroid-12.1.0_r9android-12.1.0_r8android-12.1.0_r7android-12.1.0_r22android-12.1.0_r21android-12.1.0_r20android-12.1.0_r19android-12.1.0_r11android-12.1.0_r10android12L-devandroid12-qpr3-s7-releaseandroid12-qpr3-s6-releaseandroid12-qpr3-s5-releaseandroid12-qpr3-s4-releaseandroid12-qpr3-s3-releaseandroid12-qpr3-s2-releaseandroid12-qpr3-s1-releaseandroid12-qpr3-release
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.cpp | 4 | ||||
-rw-r--r-- | wpa_supplicant/hidl/1.4/supplicant.h | 1 |
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 { |