From 841e9a8c73739449e22db3a0894940eefc1d499b Mon Sep 17 00:00:00 2001 From: Sunil Dutt Date: Tue, 31 Jan 2017 11:28:54 +0530 Subject: [PATCH] QCA vendor command to set the trace levels for the specific QCA module This commit introduces the vendor command to set the trace level for the respective QCA host driver module. Signed-off-by: Jouni Malinen --- src/common/qca-vendor.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index e7493c99f..804ed52c3 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -280,6 +280,10 @@ enum qca_radiotap_vendor_ids { * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. + * + * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a + * specific QCA module. The trace levels are represented by + * enum qca_attr_trace_level attributes. */ enum qca_nl80211_vendor_subcmds { QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0, @@ -406,6 +410,7 @@ enum qca_nl80211_vendor_subcmds { QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149, QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150, QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151, + QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152, }; @@ -3364,4 +3369,26 @@ enum qca_wlan_vendor_attr_btm_candidate_info { QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1, }; +enum qca_attr_trace_level { + QCA_ATTR_TRACE_LEVEL_INVALID = 0, + /* + * Nested array of the following attributes: + * QCA_ATTR_TRACE_LEVEL_MODULE, + * QCA_ATTR_TRACE_LEVEL_MASK. + */ + QCA_ATTR_TRACE_LEVEL_PARAM = 1, + /* + * Specific QCA host driver module. Please refer to the QCA host + * driver implementation to get the specific module ID. + */ + QCA_ATTR_TRACE_LEVEL_MODULE = 2, + /* Different trace level masks represented in the QCA host driver. */ + QCA_ATTR_TRACE_LEVEL_MASK = 3, + + /* keep last */ + QCA_ATTR_TRACE_LEVEL_AFTER_LAST, + QCA_ATTR_TRACE_LEVEL_MAX = + QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1, +}; + #endif /* QCA_VENDOR_H */