hostapd: Add debug level control
Add new API: setDebugParams
Bug: 129111866
Test: manual test
Test: atest VtsHalWifiHostapdV1_2TargetTest
Change-Id: I0e61db3d029c89380b687ecddd38a00aafcff0cc
diff --git a/wifi/hostapd/1.2/IHostapd.hal b/wifi/hostapd/1.2/IHostapd.hal
index 1bac1e7..c296cd5 100644
--- a/wifi/hostapd/1.2/IHostapd.hal
+++ b/wifi/hostapd/1.2/IHostapd.hal
@@ -21,6 +21,7 @@
import HostapdStatus;
import MacAddress;
import Ieee80211ReasonCode;
+import DebugLevel;
/**
* Top-level object for managing SoftAPs.
@@ -120,4 +121,17 @@
*/
forceClientDisconnect(string ifaceName, MacAddress clientAddress,
Ieee80211ReasonCode reasonCode) generates (HostapdStatus status);
+
+ /**
+ * Set debug parameters for the hostapd.
+ *
+ * @param level Debug logging level for the hostapd.
+ * (one of |DebugLevel| values).
+ * @return status Status of the operation.
+ * Possible status codes:
+ * |HostapdStatusCode.SUCCESS|,
+ * |HostapdStatusCode.FAILURE_UNKNOWN|
+ */
+ setDebugParams(DebugLevel level)
+ generates (HostapdStatus status);
};