aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlen Kuhne <kuh@google.com>2017-07-12 14:26:17 -0700
committerRoshan Pius <rpius@google.com>2017-07-14 18:41:48 +0000
commit75dacc2c18a7d41bb83c69b860388e8fc3003068 (patch)
tree39e8b538d86e69859d81feb6ef2affa9db12c1b6
parent27888bc5e4371e57082015349abc07eb8aad3f50 (diff)
downloadwpa_supplicant_8-75dacc2c18a7d41bb83c69b860388e8fc3003068.tar.gz
P2P: set persistent reconnect true on getInterfaceoreo-dr1-dev
Sets persistent_reconnect true on the p2p interface, allowing p2p persistent groups to reconnect on invitation without reexecuting WPS config method. This restores p2p group reinvocation behaviour to what it was pre-HIDL. Bug: 37715629 Bug: 63608709 Test: Manually verified Change-Id: I5d9d8fbc781528a134aab6e4bb2787d9e76311c6
-rw-r--r--wpa_supplicant/hidl/1.0/supplicant.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/hidl/1.0/supplicant.cpp b/wpa_supplicant/hidl/1.0/supplicant.cpp
index 409547f0..a3815116 100644
--- a/wpa_supplicant/hidl/1.0/supplicant.cpp
+++ b/wpa_supplicant/hidl/1.0/supplicant.cpp
@@ -111,6 +111,9 @@ Supplicant::getInterfaceInternal(const IfaceInfo& iface_info)
return {{SupplicantStatusCode::FAILURE_UNKNOWN, ""},
iface};
}
+ // Set this flag true here, since there is no HIDL initialize method for the p2p
+ // config, and the supplicant interface is not ready when the p2p iface is created.
+ wpa_s->conf->persistent_reconnect = true;
return {{SupplicantStatusCode::SUCCESS, ""}, iface};
} else {
android::sp<ISupplicantStaIface> iface;