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