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.h b/hostapd/hidl/1.2/hostapd.h
index eea00cb..9a7e8b1 100644
--- a/hostapd/hidl/1.2/hostapd.h
+++ b/hostapd/hidl/1.2/hostapd.h
@@ -66,6 +66,8 @@
const hidl_string& iface_name,
const hidl_array<uint8_t, 6>& client_address,
V1_2::Ieee80211ReasonCode reason_code, forceClientDisconnect_cb _hidl_cb) override;
+ Return<void> setDebugParams(
+ DebugLevel level, setDebugParams_cb _hidl_cb) override;
private:
// Corresponding worker functions for the HIDL methods.
V1_0::HostapdStatus addAccessPointInternal(
@@ -84,6 +86,7 @@
const std::string& iface_name,
const std::array<uint8_t, 6>& client_address,
V1_2::Ieee80211ReasonCode reason_code);
+ V1_2::HostapdStatus setDebugParamsInternal(DebugLevel level);
// Raw pointer to the global structure maintained by the core.
struct hapd_interfaces* interfaces_;
// Callbacks registered.