hostapd: Add debug level control
Control hostapd dbg log with wifi verbose log
Bug: 129111866
Test: verified hostapd log when enable/disable wiFi verbose log.
Change-Id: Ie356b3b4a334cddd72658f2d324d87dbbfcc6906
diff --git a/hostapd/hidl/1.2/hostapd.cpp b/hostapd/hidl/1.2/hostapd.cpp
index 2b7fd15..7149b72 100644
--- a/hostapd/hidl/1.2/hostapd.cpp
+++ b/hostapd/hidl/1.2/hostapd.cpp
@@ -299,6 +299,12 @@
client_address, reason_code);
}
+Return<void> Hostapd::setDebugParams(
+ DebugLevel level, setDebugParams_cb _hidl_cb)
+{
+ return call(
+ this, &Hostapd::setDebugParamsInternal, _hidl_cb, level);
+}
V1_0::HostapdStatus Hostapd::addAccessPointInternal(
const V1_0::IHostapd::IfaceParams& iface_params,
@@ -417,6 +423,12 @@
return {V1_2::HostapdStatusCode::FAILURE_CLIENT_UNKNOWN, ""};
}
+V1_2::HostapdStatus Hostapd::setDebugParamsInternal(DebugLevel level)
+{
+ wpa_debug_level = static_cast<uint32_t>(level);
+ return {V1_2::HostapdStatusCode::SUCCESS, ""};
+}
+
} // namespace implementation
} // namespace V1_2
} // namespace hostapd