P2P: set persistent reconnect true on getInterface

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
diff --git a/wpa_supplicant/hidl/1.0/supplicant.cpp b/wpa_supplicant/hidl/1.0/supplicant.cpp
index 409547f..a381511 100644
--- a/wpa_supplicant/hidl/1.0/supplicant.cpp
+++ b/wpa_supplicant/hidl/1.0/supplicant.cpp
@@ -111,6 +111,9 @@
 			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;