blob: 7bd1fecdd9c9e9abb86b9da9818cffa173f9bf82 [file] [log] [blame]
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001/*
2 * Copyright (c) 2013-2015 The Linux Foundation. All rights reserved.
3 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
20 */
21
22/*
23 * This file was originally distributed by Qualcomm Atheros, Inc.
24 * under proprietary terms before Copyright ownership was assigned
25 * to the Linux Foundation.
26 */
27
28/**
29 * \sme_trace.h
30 *
31 * \brief definition for trace related APIs
32 */
33
34#ifndef __SME_TRACE_H__
35#define __SME_TRACE_H__
36
37#include "mac_trace.h"
38
39#define NO_SESSION 0xFF
40#define TRACE_CODE_SME_COMMAND 0xFF
41enum {
42 TRACE_CODE_SME_RX_HDD_MSG_SCAN_REQ,
43 TRACE_CODE_SME_RX_HDD_MSG_SCAN_GET_RESULTS,
44 TRACE_CODE_SME_RX_HDD_MSG_CONNECT,
45 TRACE_CODE_SME_RX_HDD_MSG_SET_11DINFO,
46 TRACE_CODE_SME_RX_HDD_MSG_GET_SOFTAP_DOMAIN,
47 TRACE_CODE_SME_RX_HDD_MSG_SET_REGINFO,
48 TRACE_CODE_SME_RX_HDD_MSG_UPDATE_CHANNEL_CONFIG,
49 TRACE_CODE_SME_RX_HDD_MSG_UPDATE_CONFIG,
50 TRACE_CODE_SME_RX_HDD_MSG_HDDREADYIND,
51 TRACE_CODE_SME_RX_HDD_MSG_SCAN_FLUSH_RESULTS,
52 TRACE_CODE_SME_RX_HDD_MSG_SCAN_FLUSH_P2PRESULTS,
53 TRACE_CODE_SME_RX_HDD_MSG_SCAN_RESULT_GETFIRST,
54 TRACE_CODE_SME_RX_HDD_MSG_SCAN_RESULT_GETNEXT,
55 TRACE_CODE_SME_RX_HDD_MSG_SCAN_RESULT_PURGE,
56 TRACE_CODE_SME_RX_HDD_ROAM_REASSOC,
57 TRACE_CODE_SME_RX_HDD_ROAM_DISCONNECT,
58 TRACE_CODE_SME_RX_HDD_ROAM_GET_CONNECTPROFILE,
59 TRACE_CODE_SME_RX_HDD_ROAM_FREE_CONNECTPROFILE,
60 TRACE_CODE_SME_RX_HDD_ROAM_SET_PMKIDCACHE,
61 TRACE_CODE_SME_RX_HDD_ROAM_GET_PMKIDCACHE,
62 TRACE_CODE_SME_RX_HDD_GET_CONFIGPARAM,
63 TRACE_CODE_SME_RX_HDD_GET_MODPROFFIELDS,
64 TRACE_CODE_SME_RX_HDD_SET_CONFIG_PWRSAVE,
65 TRACE_CODE_SME_RX_HDD_GET_CONFIG_PWRSAVE,
66 TRACE_CODE_SME_RX_HDD_ENABLE_PWRSAVE,
67 TRACE_CODE_SME_RX_HDD_DISABLE_PWRSAVE,
68 TRACE_CODE_SME_RX_HDD_SIGNAL_POWER_EVENT,
69 TRACE_CODE_SME_RX_HDD_START_AUTO_BMPSTIMER,
70 TRACE_CODE_SME_RX_HDD_STOP_AUTO_BMPSTIMER,
71 TRACE_CODE_SME_RX_HDD_IS_PWRSAVE_ENABLED,
72 TRACE_CODE_SME_RX_HDD_REQUEST_FULLPOWER,
73 TRACE_CODE_SME_RX_HDD_REQUEST_BMPS,
74 TRACE_CODE_SME_RX_HDD_SET_DHCP_FLAG,
75 TRACE_CODE_SME_RX_HDD_REQUEST_STANDBY,
76 TRACE_CODE_SME_RX_HDD_WOWL_ADDBCAST_PATTERN,
77 TRACE_CODE_SME_RX_HDD_WOWL_DELBCAST_PATTERN,
78 TRACE_CODE_SME_RX_HDD_ENTER_WOWL,
79 TRACE_CODE_SME_RX_HDD_EXIT_WOWL,
80 TRACE_CODE_SME_RX_HDD_SET_KEY,
81 TRACE_CODE_SME_RX_HDD_REMOVE_KEY,
82 TRACE_CODE_SME_RX_HDD_GET_STATS,
83 TRACE_CODE_SME_RX_HDD_GET_RSSI,
84 TRACE_CODE_SME_RX_HDD_GET_CNTRYCODE,
85 TRACE_CODE_SME_RX_HDD_SET_CNTRYCODE,
86 TRACE_CODE_SME_RX_HDD_CHANGE_CNTRYCODE,
87 TRACE_CODE_SME_RX_HDD_SET_CFGPRIVACY,
88 TRACE_CODE_SME_RX_HDD_NEIGHBOR_REPORTREQ,
89 TRACE_CODE_SME_RX_HDD_DBG_READREG,
90 TRACE_CODE_SME_RX_HDD_DBG_WRITEREG,
91 TRACE_CODE_SME_RX_HDD_DBG_READMEM,
92 TRACE_CODE_SME_RX_HDD_DBG_WRITEMEM,
93 TRACE_CODE_SME_RX_HDD_OPEN_SESSION,
94 TRACE_CODE_SME_RX_HDD_CLOSE_SESSION,
95 TRACE_CODE_SME_RX_HDD_SET_HOSTOFFLOAD,
96 TRACE_CODE_SME_RX_HDD_SET_GTKOFFLOAD,
97 TRACE_CODE_SME_RX_HDD_GET_GTKOFFLOAD,
98 TRACE_CODE_SME_RX_HDD_ABORT_MACSCAN,
99 TRACE_CODE_SME_RX_HDD_REGISTER_MGMTFR,
100 TRACE_CODE_SME_RX_HDD_DEREGISTER_MGMTFR,
101 TRACE_CODE_SME_RX_HDD_REMAIN_ONCHAN,
102 TRACE_CODE_SME_RX_HDD_SEND_ACTION,
103 TRACE_CODE_SME_RX_HDD_CANCEL_REMAIN_ONCHAN,
104 TRACE_CODE_SME_RX_HDD_CONFIG_RXPFIL,
105 TRACE_CODE_SME_RX_HDD_CONFIG_SUSPENDIND,
106 TRACE_CODE_SME_RX_HDD_CONFIG_RESUMEREQ,
107#ifdef WLAN_FEATURE_EXTWOW_SUPPORT
108 TRACE_CODE_SME_RX_HDD_CONFIG_EXTWOW,
109 TRACE_CODE_SME_RX_HDD_CONFIG_APP_TYPE1,
110 TRACE_CODE_SME_RX_HDD_CONFIG_APP_TYPE2,
111#endif
112 TRACE_CODE_SME_RX_HDD_SET_MAXTXPOW,
113 TRACE_CODE_SME_RX_HDD_SET_TXPOW,
114 TRACE_CODE_SME_RX_HDD_SET_TMLEVEL,
115 TRACE_CODE_SME_RX_HDD_CAPS_EXCH,
116 TRACE_CODE_SME_RX_HDD_DISABLE_CAP,
117 TRACE_CODE_SME_RX_HDD_GET_DEFCCNV,
118 TRACE_CODE_SME_RX_HDD_GET_CURCC,
119 TRACE_CODE_SME_RX_HDD_RESET_PW5G,
120 TRACE_CODE_SME_RX_HDD_UPDATE_RP5G,
121 TRACE_CODE_SME_RX_HDD_SET_ROAMIBAND,
122 TRACE_CODE_SME_RX_HDD_GET_ROAMIBAND,
123 TRACE_CODE_SME_RX_HDD_UPDATE_RSSIDIFF,
124 TRACE_CODE_SME_RX_HDD_UPDATE_IMMRSSIDIFF,
125 TRACE_CODE_SME_RX_HDD_UPDATE_FTENABLED,
126 TRACE_CODE_SME_RX_HDD_UPDATE_WESMODE,
127 TRACE_CODE_SME_RX_HDD_SET_SCANCTRL,
128 TRACE_CODE_SME_RX_HDD_UPDATE_P2P_IE,
129 TRACE_CODE_SME_RX_HDD_UPDATE_ROAM_SCAN_N_PROBES,
130 TRACE_CODE_SME_RX_HDD_UPDATE_ROAM_SCAN_HOME_AWAY_TIME,
131 TRACE_CODE_SME_RX_HDD_STORE_JOIN_REQ,
132 TRACE_CODE_SME_RX_HDD_CLEAR_JOIN_REQ,
133 TRACE_CODE_SME_RX_HDD_ISSUE_JOIN_REQ,
134};
135
136void sme_trace_init(tpAniSirGlobal pMac);
137#endif /* __SME_TRACE_H__ */