aboutsummaryrefslogtreecommitdiff
path: root/wpa_supplicant/hidl/1.0/supplicant.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wpa_supplicant/hidl/1.0/supplicant.cpp')
-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;