Hostapd: Add hostapd_cli like string commands
Add hostapdCmd() API to provide hostapd_cli like string commands
to hostapd for value added feature.
Change-Id: Iec559538d1bfc76036a584c27bc1a0de94afb149
CRs-Fixed: 2667560
diff --git a/wifi/hostapd/1.2/IHostapdVendor.hal b/wifi/hostapd/1.2/IHostapdVendor.hal
index 1568f66..72dc1bf 100644
--- a/wifi/hostapd/1.2/IHostapdVendor.hal
+++ b/wifi/hostapd/1.2/IHostapdVendor.hal
@@ -214,4 +214,25 @@
*/
addVendorAccessPoint_1_2(VendorIfaceParams ifaceParams, VendorNetworkParams nwParams)
generates (HostapdStatus status);
+
+ /**
+ * List active interfaces in hostapd.
+ *
+ * @return status Status of the operation.
+ * Possible status codes:
+ * |SupplicantStatusCode.SUCCESS|,
+ * |SupplicantStatusCode.FAILURE_UNKNOWN|
+ * @return ifnames Active interface names.
+ */
+ listInterfaces() generates (HostapdStatus status, vec<string> ifnames);
+
+ /**
+ * Send hostapd_cli like commands to hostapd.
+ * @return status Status of the operation.
+ * Possible status codes:
+ * |SupplicantStatusCode.SUCCESS|,
+ * |SupplicantStatusCode.FAILURE_UNKNOWN|
+ * @return reply Hostapd_cli like reply string
+ */
+ hostapdCmd(string ifname, string cmd) generates (HostapdStatus status, string reply);
};