Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1 | /* |
Kiran Kumar Lokere | bd60ad3 | 2018-12-10 19:02:50 -0800 | [diff] [blame] | 2 | * Copyright (c) 2012-2019 The Linux Foundation. All rights reserved. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3 | * |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [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 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 19 | /** |
| 20 | * DOC: declares vendor commands interfacing with linux kernel |
| 21 | */ |
| 22 | |
| 23 | |
| 24 | #ifndef _WLAN_QCA_VENDOR_H_ |
| 25 | #define _WLAN_QCA_VENDOR_H_ |
| 26 | |
| 27 | /* Vendor id to be used in vendor specific command and events |
| 28 | * to user space. |
| 29 | * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID, |
| 30 | * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and |
| 31 | * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in |
| 32 | * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that |
| 33 | */ |
| 34 | |
| 35 | #define QCA_NL80211_VENDOR_ID 0x001374 |
| 36 | |
| 37 | /** |
| 38 | * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command |
| 39 | * |
| 40 | * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified |
| 41 | * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test |
| 42 | * Sub commands 2 to 8 are not used |
| 43 | * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming |
| 44 | * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency. |
| 45 | * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability |
Nachiket Kukade | 30ed5c4 | 2018-12-03 18:30:46 +0530 | [diff] [blame] | 46 | * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass |
| 47 | * NAN Request/Response and NAN Indication messages. These messages are |
| 48 | * interpreted between the framework and the firmware component. While |
| 49 | * sending the command from userspace to the driver, payload is not |
| 50 | * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN |
| 51 | * is used when receiving vendor events in userspace from the driver. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 52 | * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats |
| 53 | * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set |
| 54 | * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get |
| 55 | * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear |
| 56 | * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio |
| 57 | * results |
| 58 | * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface |
| 59 | * results |
| 60 | * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer |
| 61 | * results |
| 62 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start |
| 63 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop |
| 64 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid |
| 65 | * channels |
| 66 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability |
| 67 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached |
| 68 | * results |
| 69 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results |
| 70 | * available. Used when report_threshold is reached in scan cache. |
| 71 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan |
| 72 | * result. Used to report scan results when each probe rsp. is received, |
| 73 | * if report_events enabled in wifi_scan_cmd_params. |
| 74 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target. |
| 75 | * Indicates progress of scanning state-machine. |
| 76 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist |
| 77 | * ap found |
| 78 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist |
| 79 | * bssid |
| 80 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset |
| 81 | * hotlist bssid |
| 82 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant |
| 83 | * change |
| 84 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set |
| 85 | * significant change |
| 86 | * ap found |
| 87 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset |
| 88 | * significant change |
| 89 | * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: Ext tdls enable |
| 90 | * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: Ext tdls disable |
| 91 | * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: Ext tdls get status |
| 92 | * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: Ext tdls state |
| 93 | * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features |
| 94 | * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui |
| 95 | * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag |
| 96 | * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix |
| 97 | * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys |
| 98 | * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the |
| 99 | * roaming and auth information. |
| 100 | * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 101 | * |
| 102 | * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to |
| 103 | * invoke the ACS function in device and pass selected channels to |
| 104 | * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes. |
| 105 | * |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 106 | * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the |
| 107 | * driver. |
| 108 | * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver |
| 109 | * started CAC on DFS channel |
| 110 | * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver |
| 111 | * completed the CAC check on DFS channel |
| 112 | * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC |
| 113 | * check was aborted by the driver |
| 114 | * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the |
| 115 | * driver completed NOP |
| 116 | * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the |
| 117 | * driver detected radar signal on the current operating channel |
| 118 | * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information |
| 119 | * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger |
| 120 | * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request |
| 121 | * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set |
| 122 | * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam |
| 123 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist |
| 124 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST: |
| 125 | * extscan reset ssid hotlist |
| 126 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found |
| 127 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost |
| 128 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list |
| 129 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list |
| 130 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST: |
| 131 | * reset passpoint list |
| 132 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found |
| 133 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND: |
| 134 | * passpoint network found |
| 135 | * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config |
| 136 | * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config |
| 137 | * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features |
| 138 | * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties |
| 139 | * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters |
| 140 | * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel |
| 141 | list |
| 142 | * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint |
| 143 | * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: vendor setband command |
| 144 | * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command |
| 145 | * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete |
| 146 | * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan |
| 147 | * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test |
| 148 | * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage |
| 149 | * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB |
| 150 | * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration |
| 151 | * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command |
| 152 | * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration |
| 153 | * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to |
| 154 | * start the P2P Listen Offload function in device and pass the listen |
| 155 | * channel, period, interval, count, number of device types, device |
| 156 | * types and vendor information elements to device driver and firmware. |
| 157 | * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to |
| 158 | * indicate stop request/response of the P2P Listen Offload function in |
| 159 | * device. As an event, it indicates either the feature stopped after it |
| 160 | * was already running or feature has actually failed to start. |
| 161 | * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information |
| 162 | * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts |
| 163 | * beaconing, this sub command provides the driver, the frequencies on the |
| 164 | * 5 GHz to check for any radar activity. Driver selects one channel from |
| 165 | * this priority list provided through |
| 166 | * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts |
| 167 | * to check for radar activity on it. If no radar activity is detected |
| 168 | * during the channel availability check period, driver internally switches |
| 169 | * to the selected frequency of operation. If the frequency is zero, driver |
| 170 | * internally selects a channel. The status of this conditional switch is |
| 171 | * indicated through an event using the same sub command through |
| 172 | * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are |
| 173 | * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch |
Zhang Qian | 7fc2e86 | 2017-03-23 17:49:43 +0800 | [diff] [blame] | 174 | * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config |
| 175 | * indication period and threshold for MAC layer counters. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 176 | * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior |
| 177 | * in the host driver. The different TDLS configurations are defined |
| 178 | * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration. |
Krishna Kumaar Natarajan | 526307e | 2017-02-24 11:08:41 -0800 | [diff] [blame] | 179 | * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 180 | * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate |
| 181 | * (SAR) power limits. A critical regulation for FCC compliance, OEMs |
| 182 | * require methods to set SAR limits on TX power of WLAN/WWAN. |
| 183 | * enum qca_vendor_attr_sar_limits attributes are used with this command. |
| 184 | * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set |
| 185 | * configuration of vendor ACS. |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 186 | * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the |
| 187 | * requisite information leading to a power save failure. The information |
| 188 | * carried as part of this event is represented by the |
| 189 | * enum qca_attr_chip_power_save_failure attributes. |
| 190 | * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics |
| 191 | * collection. Uses attributes defined in enum qca_attr_nud_stats_set. |
| 192 | * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These |
| 193 | * statistics are represented by the enum qca_attr_nud_stats_get |
| 194 | * attributes. |
| 195 | * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch |
| 196 | * the BSS transition status, whether accept or reject, for a list of |
| 197 | * candidate BSSIDs provided by the userspace. This uses the vendor |
| 198 | * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and |
| 199 | * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify |
| 200 | * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an |
| 201 | * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in |
| 202 | * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response |
| 203 | * the driver shall specify array of |
| 204 | * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and |
| 205 | * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in |
| 206 | * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. |
| 207 | * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a |
| 208 | * specific QCA module. The trace levels are represented by |
| 209 | * enum qca_attr_trace_level attributes. |
| 210 | * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement |
| 211 | * Protocol antenna limit in different modes. See enum |
| 212 | * qca_wlan_vendor_attr_brp_ant_limit_mode. |
| 213 | * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan |
| 214 | * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan. |
| 215 | * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) |
Edayilliam Jayadev | db96269 | 2019-04-24 16:41:58 +0530 | [diff] [blame] | 216 | * identifying the operation in success case. In failure cases an |
| 217 | * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE) |
| 218 | * describing the reason for the failure is returned. |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 219 | * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses |
| 220 | * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from |
| 221 | * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to |
| 222 | * be stopped. |
Ganesh Kondabattini | 727c4b3 | 2017-08-29 13:23:00 +0530 | [diff] [blame] | 223 | * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the |
| 224 | * specific interface. This can be used to modify some of the low level |
| 225 | * scan parameters (off channel dwell time, home channel time) in the |
| 226 | * driver/firmware. These parameters are maintained within the host |
| 227 | * driver. |
| 228 | * This command is valid only when the interface is in the connected |
| 229 | * state. |
| 230 | * These scan parameters shall be reset by the driver/firmware once |
| 231 | * disconnected. The attributes used with this command are defined in |
| 232 | * enum qca_wlan_vendor_attr_active_tos. |
Anurag Chouhan | 6e56986 | 2017-10-04 12:42:27 +0530 | [diff] [blame] | 233 | * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the |
| 234 | * driver has detected an internal failure. This event carries the |
| 235 | * information indicating the reason that triggered this detection. The |
| 236 | * attributes for this command are defined in |
| 237 | * enum qca_wlan_vendor_attr_hang. |
Edayilliam Jayadev | 20edcbb | 2017-11-06 15:22:04 +0530 | [diff] [blame] | 238 | * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values |
| 239 | * of spectral parameters used. The spectral scan parameters are specified |
| 240 | * by enum qca_wlan_vendor_attr_spectral_scan. |
| 241 | * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats |
| 242 | * for spectral scan functionality. The debug stats are specified by |
| 243 | * enum qca_wlan_vendor_attr_spectral_diag_stats. |
| 244 | * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral |
| 245 | * scan system capabilities. The capabilities are specified |
| 246 | * by enum qca_wlan_vendor_attr_spectral_cap. |
| 247 | * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current |
| 248 | * status of spectral scan. The status values are specified |
| 249 | * by enum qca_wlan_vendor_attr_spectral_scan_status. |
Chaithanya Garrepalli | 30927c5 | 2017-11-22 14:31:47 +0530 | [diff] [blame] | 250 | * @QCA_NL80211_VENDOR_SUBCMD_HTT_STATS: Request the firmware |
| 251 | * DP stats for a particualr stats type for response evnet |
| 252 | * it carries the stats data sent from the FW |
Krishna Rao | fcb834f | 2017-11-11 20:38:29 +0530 | [diff] [blame] | 253 | * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative |
| 254 | * RF Operating Parameter (RROP) information. The attributes for this |
| 255 | * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is |
| 256 | * intended for use by external Auto Channel Selection applications. |
Jeff Johnson | f2f8dea | 2017-12-18 15:49:20 -0800 | [diff] [blame] | 257 | * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate |
| 258 | * (SAR) power limits. This is a companion to the command |
| 259 | * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the |
| 260 | * settings currently in use. The attributes returned by this command are |
| 261 | * defined by enum qca_vendor_attr_sar_limits. |
Yeshwanth Sriram Guntuka | 64de344 | 2018-02-23 12:17:41 +0530 | [diff] [blame] | 262 | * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of |
| 263 | * the WLAN hardware MAC's associated with each WLAN netdev interface. |
| 264 | * This works both as a query (user space asks the current mode) or event |
| 265 | * interface (driver advertizing the current mode to the user space). |
| 266 | * Driver does not trigger this event for temporary hardware mode changes. |
| 267 | * Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion, |
| 268 | * channel change etc ) are updated with this event. Attributes for this |
| 269 | * interface are defined in enum qca_wlan_vendor_attr_mac. |
Venkateswara Swamy Bandaru | ce6b944 | 2018-02-20 14:24:49 +0530 | [diff] [blame] | 270 | * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold |
| 271 | * per peer per TID. Attributes for this command are define in |
| 272 | * enum qca_wlan_set_qdepth_thresh_attr |
Kiran Kumar Lokere | ddf7f88 | 2018-02-02 18:06:45 -0800 | [diff] [blame] | 273 | * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi |
| 274 | * test configuration. Attributes for this command are defined in |
| 275 | * enum qca_wlan_vendor_attr_wifi_test_config. |
Nachiket Kukade | 30ed5c4 | 2018-12-03 18:30:46 +0530 | [diff] [blame] | 276 | * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor |
| 277 | * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN, |
| 278 | * carried a payload which was a binary blob of data. The command was not |
| 279 | * extendable to send more information. The newer version carries the |
| 280 | * legacy blob encapsulated within an attribute and can be extended with |
| 281 | * additional vendor attributes that can enhance the NAN command |
| 282 | * interface. |
Qun Zhang | af8a081 | 2019-02-01 11:30:34 +0800 | [diff] [blame] | 283 | * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state. |
| 284 | * The returned firmware state is specified in the attribute |
| 285 | * QCA_WLAN_VENDOR_ATTR_FW_STATE. |
Amir Patel | 62f72ed | 2019-03-11 20:13:53 +0530 | [diff] [blame] | 286 | * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand |
| 287 | * is used by host driver to flush per-peer cached statistics to user space |
| 288 | * application. This interface is used as an event from host driver to |
| 289 | * user space application. Attributes for this event are specified in |
| 290 | * enum qca_wlan_vendor_attr_peer_stats_cache_params. |
| 291 | * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be |
| 292 | * sent as event from host driver. |
stonez | a558be1 | 2019-03-11 13:59:57 +0800 | [diff] [blame] | 293 | * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to |
| 294 | * improve the success rate of Zigbee joining network. |
| 295 | * Due to PTA master limitation, zigbee joining network success rate is |
| 296 | * low while wlan is working. Wlan host driver need to configure some |
| 297 | * parameters including Zigbee state and specific WLAN periods to enhance |
| 298 | * PTA master. All this parameters are delivered by the NetLink attributes |
| 299 | * defined in "enum qca_mpta_helper_vendor_attr". |
Abhinav Kumar | 88e3fc5 | 2019-05-03 00:21:11 +0530 | [diff] [blame] | 300 | * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to |
| 301 | * implement Beacon frame reporting feature. |
| 302 | * |
| 303 | * Userspace can request the driver/firmware to periodically report |
| 304 | * received Beacon frames whose BSSID is same as the current connected |
| 305 | * BSS's MAC address. |
| 306 | * |
| 307 | * In case the STA seamlessly (without sending disconnect indication to |
| 308 | * userspace) roams to a different BSS, Beacon frame reporting will be |
| 309 | * automatically enabled for the Beacon frames whose BSSID is same as the |
| 310 | * MAC address of the new BSS. Beacon reporting will be stopped when the |
| 311 | * STA is disconnected (when the disconnect indication is sent to |
| 312 | * userspace) and need to be explicitly enabled by userspace for next |
| 313 | * connection. |
| 314 | * |
| 315 | * When a Beacon frame matching configured conditions is received, and if |
| 316 | * userspace has requested to send asynchronous beacon reports, the |
| 317 | * driver/firmware will encapsulate the details of the Beacon frame in an |
| 318 | * event and send it to userspace along with updating the BSS information |
| 319 | * in cfg80211 scan cache, otherwise driver will only update the cfg80211 |
| 320 | * scan cache with the information from the received Beacon frame but |
| 321 | * will not send any active report to userspace. |
| 322 | * |
| 323 | * The userspace can request the driver/firmware to stop reporting Beacon |
| 324 | * frames. If the driver/firmware is not able to receive Beacon frames |
| 325 | * due to other Wi-Fi operations such as off-channel activities, etc., |
| 326 | * the driver/firmware will send a pause event to userspace and stop |
| 327 | * reporting Beacon frames. Whether the beacon reporting will be |
| 328 | * automatically resumed or not by the driver/firmware later will be |
| 329 | * reported to userspace using the |
| 330 | * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon |
Bala Venkatesh | 3b0dee8 | 2019-06-12 11:41:17 +0530 | [diff] [blame] | 331 | * reporting shall be resumed for all the cases except either when |
| 332 | * userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag |
| 333 | * in the command which triggered the current beacon reporting or during |
| 334 | * any disconnection case as indicated by setting |
Abhinav Kumar | 88e3fc5 | 2019-05-03 00:21:11 +0530 | [diff] [blame] | 335 | * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to |
| 336 | * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the |
| 337 | * driver. |
| 338 | * |
| 339 | * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received |
| 340 | * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES |
| 341 | * flag not set, the next first |
| 342 | * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver |
| 343 | * shall be considered as un-pause event. |
| 344 | * |
| 345 | * All the attributes used with this command are defined in |
| 346 | * enum qca_wlan_vendor_attr_beacon_reporting_params. |
Paul Zhang | f9afcce | 2019-05-13 16:08:01 +0800 | [diff] [blame] | 347 | * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have |
| 348 | * interop issues with the DUT. This sub command is used to transfer the |
| 349 | * ap info between driver and user space. This works both as a command |
| 350 | * or event. As a command, it configs the stored list of aps from user |
| 351 | * space to firmware; as an event, it indicates the ap info detected by |
| 352 | * firmware to user space for persistent storage. The attributes defined |
| 353 | * in enum qca_vendor_attr_interop_issues_ap are used to deliver the |
| 354 | * parameters. |
Paul Zhang | 71b1d14 | 2019-06-23 21:15:21 +0800 | [diff] [blame] | 355 | * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data |
| 356 | * binary blobs from application/service to firmware. The attributes |
| 357 | * defined in enum qca_wlan_vendor_attr_oem_data_params are used to |
| 358 | * deliver the parameters. |
Rajeev Kumar Sirasanagandla | 90f0c5e | 2019-09-23 19:31:48 +0530 | [diff] [blame] | 359 | * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used |
| 360 | * to send/receive avoid frequency data using |
| 361 | * enum qca_wlan_vendor_attr_avoid_frequency_ext. |
| 362 | * This new command is alternative to existing command |
| 363 | * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event |
| 364 | * is using stream of bytes instead of structured data using vendor |
| 365 | * attributes. |
Shiva Sankar Gajula | 0f1216e | 2019-10-18 10:35:31 +0530 | [diff] [blame] | 366 | * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to |
| 367 | * add the STA node details in driver/firmware. Attributes for this event |
| 368 | * are specified in enum qca_wlan_vendor_attr_add_sta_node_params. |
Yu Wang | 2b95204 | 2019-10-16 09:06:55 +0800 | [diff] [blame] | 369 | * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT |
| 370 | * coex chain mode from application/service. |
| 371 | * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used |
| 372 | * to deliver the parameters. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 373 | */ |
| 374 | |
| 375 | enum qca_nl80211_vendor_subcmds { |
| 376 | QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0, |
| 377 | QCA_NL80211_VENDOR_SUBCMD_TEST = 1, |
| 378 | QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9, |
| 379 | QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10, |
| 380 | QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11, |
| 381 | QCA_NL80211_VENDOR_SUBCMD_NAN = 12, |
| 382 | QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13, |
| 383 | |
| 384 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14, |
| 385 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15, |
| 386 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16, |
| 387 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17, |
| 388 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18, |
| 389 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19, |
| 390 | |
| 391 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20, |
| 392 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21, |
| 393 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22, |
| 394 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23, |
| 395 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24, |
| 396 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25, |
| 397 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26, |
| 398 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27, |
| 399 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28, |
| 400 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29, |
| 401 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30, |
| 402 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31, |
| 403 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32, |
| 404 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33, |
| 405 | |
| 406 | QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34, |
| 407 | QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35, |
| 408 | QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36, |
| 409 | QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37, |
| 410 | |
| 411 | QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38, |
| 412 | |
| 413 | QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39, |
| 414 | QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40, |
| 415 | |
| 416 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41, |
| 417 | |
| 418 | /* Get Concurrency Matrix */ |
| 419 | QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42, |
| 420 | |
| 421 | QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50, |
| 422 | QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 423 | QCA_NL80211_VENDOR_SUBCMD_APFIND = 52, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 424 | |
| 425 | /* Deprecated */ |
| 426 | QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53, |
| 427 | |
| 428 | QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54, |
| 429 | |
| 430 | QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55, |
| 431 | |
| 432 | /* Off loaded DFS events */ |
| 433 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56, |
| 434 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57, |
| 435 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58, |
| 436 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59, |
| 437 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60, |
| 438 | |
| 439 | QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61, |
| 440 | QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62, |
| 441 | QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63, |
| 442 | QCA_NL80211_VENDOR_SUBCMD_ROAM = 64, |
| 443 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65, |
| 444 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66, |
| 445 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67, |
| 446 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68, |
| 447 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69, |
| 448 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70, |
| 449 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71, |
| 450 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72, |
| 451 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73, |
| 452 | |
| 453 | /* Wi-Fi Configuration subcommands */ |
| 454 | QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74, |
| 455 | QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75, |
| 456 | QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76, |
| 457 | QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77, |
| 458 | |
| 459 | QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78, |
| 460 | QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79, |
| 461 | QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80, |
| 462 | QCA_NL80211_VENDOR_SUBCMD_NDP = 81, |
| 463 | |
| 464 | /* NS Offload enable/disable cmd */ |
| 465 | QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82, |
| 466 | |
| 467 | QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83, |
| 468 | QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84, |
| 469 | |
| 470 | QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85, |
| 471 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 472 | QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 473 | /* OCB commands */ |
| 474 | QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92, |
| 475 | QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93, |
| 476 | QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94, |
| 477 | QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95, |
| 478 | QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96, |
| 479 | QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97, |
| 480 | QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98, |
| 481 | QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99, |
| 482 | QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100, |
| 483 | |
| 484 | /* subcommand to get link properties */ |
| 485 | QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101, |
| 486 | /* LFR Subnet Detection */ |
| 487 | QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102, |
| 488 | |
| 489 | /* DBS subcommands */ |
| 490 | QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103, |
| 491 | QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104, |
| 492 | |
| 493 | /* Vendor setband command */ |
| 494 | QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105, |
| 495 | |
| 496 | /* Vendor scan commands */ |
| 497 | QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106, |
| 498 | QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107, |
| 499 | |
| 500 | /* OTA test subcommand */ |
| 501 | QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108, |
| 502 | /* Tx power scaling subcommands */ |
| 503 | QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109, |
| 504 | /* Tx power scaling in db subcommands */ |
| 505 | QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115, |
| 506 | QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116, |
| 507 | QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117, |
| 508 | QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118, |
| 509 | QCA_NL80211_VENDOR_SUBCMD_TSF = 119, |
| 510 | QCA_NL80211_VENDOR_SUBCMD_WISA = 120, |
| 511 | QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121, |
| 512 | QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122, |
| 513 | QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123, |
| 514 | QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124, |
Om Prakash Tripathi | 7d867d6 | 2017-04-26 16:52:09 +0530 | [diff] [blame] | 515 | QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 516 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 517 | QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126, |
Zhang Qian | 7fc2e86 | 2017-03-23 17:49:43 +0800 | [diff] [blame] | 518 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 519 | /* FTM/indoor location subcommands */ |
| 520 | QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128, |
| 521 | QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129, |
| 522 | QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130, |
| 523 | QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131, |
| 524 | QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132, |
| 525 | QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133, |
| 526 | QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134, |
| 527 | QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135, |
| 528 | QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136, |
Zhang Qian | 7fc2e86 | 2017-03-23 17:49:43 +0800 | [diff] [blame] | 529 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 530 | /* Encrypt/Decrypt command */ |
| 531 | QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137, |
| 532 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 533 | QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138, |
| 534 | /* DMG low level RF sector operations */ |
| 535 | QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139, |
| 536 | QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140, |
| 537 | QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141, |
| 538 | QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142, |
| 539 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 540 | /* Configure the TDLS mode from user space */ |
| 541 | QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143, |
| 542 | |
Krishna Kumaar Natarajan | 526307e | 2017-02-24 11:08:41 -0800 | [diff] [blame] | 543 | QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144, |
| 544 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 545 | /* Vendor abort scan command */ |
| 546 | QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145, |
| 547 | |
| 548 | /* Set Specific Absorption Rate(SAR) Power Limits */ |
| 549 | QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146, |
| 550 | |
| 551 | /* External Auto channel configuration setting */ |
| 552 | QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147, |
| 553 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 554 | QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148, |
| 555 | QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149, |
| 556 | QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150, |
| 557 | QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151, |
| 558 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 559 | /* Set the trace level for QDF */ |
| 560 | QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 561 | |
| 562 | QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153, |
| 563 | |
| 564 | QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154, |
| 565 | QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155, |
Ganesh Kondabattini | 727c4b3 | 2017-08-29 13:23:00 +0530 | [diff] [blame] | 566 | QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156, |
Anurag Chouhan | 6e56986 | 2017-10-04 12:42:27 +0530 | [diff] [blame] | 567 | QCA_NL80211_VENDOR_SUBCMD_HANG = 157, |
Edayilliam Jayadev | 20edcbb | 2017-11-06 15:22:04 +0530 | [diff] [blame] | 568 | QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158, |
| 569 | QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159, |
| 570 | QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160, |
| 571 | QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161, |
Chaithanya Garrepalli | 30927c5 | 2017-11-22 14:31:47 +0530 | [diff] [blame] | 572 | QCA_NL80211_VENDOR_SUBCMD_HTT_STATS = 162, |
Krishna Rao | fcb834f | 2017-11-11 20:38:29 +0530 | [diff] [blame] | 573 | QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163, |
Jeff Johnson | f2f8dea | 2017-12-18 15:49:20 -0800 | [diff] [blame] | 574 | QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164, |
Yeshwanth Sriram Guntuka | 64de344 | 2018-02-23 12:17:41 +0530 | [diff] [blame] | 575 | QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165, |
Venkateswara Swamy Bandaru | ce6b944 | 2018-02-20 14:24:49 +0530 | [diff] [blame] | 576 | QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166, |
Kiran Kumar Lokere | ddf7f88 | 2018-02-02 18:06:45 -0800 | [diff] [blame] | 577 | /* Wi-Fi test configuration subcommand */ |
| 578 | QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169, |
Nachiket Kukade | 30ed5c4 | 2018-12-03 18:30:46 +0530 | [diff] [blame] | 579 | QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171, |
Alok Kumar | db0d423 | 2018-11-08 19:08:13 +0530 | [diff] [blame] | 580 | QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174, |
Jiani Liu | 19f4cb0 | 2019-03-04 16:47:21 +0800 | [diff] [blame] | 581 | QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175, |
Qun Zhang | af8a081 | 2019-02-01 11:30:34 +0800 | [diff] [blame] | 582 | QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177, |
Amir Patel | 62f72ed | 2019-03-11 20:13:53 +0530 | [diff] [blame] | 583 | QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178, |
stonez | a558be1 | 2019-03-11 13:59:57 +0800 | [diff] [blame] | 584 | QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179, |
Abhinav Kumar | 88e3fc5 | 2019-05-03 00:21:11 +0530 | [diff] [blame] | 585 | QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180, |
Paul Zhang | f9afcce | 2019-05-13 16:08:01 +0800 | [diff] [blame] | 586 | QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181, |
Paul Zhang | 71b1d14 | 2019-06-23 21:15:21 +0800 | [diff] [blame] | 587 | QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182, |
Rajeev Kumar Sirasanagandla | 90f0c5e | 2019-09-23 19:31:48 +0530 | [diff] [blame] | 588 | QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183, |
Shiva Sankar Gajula | 0f1216e | 2019-10-18 10:35:31 +0530 | [diff] [blame] | 589 | QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184, |
Yu Wang | 2b95204 | 2019-10-16 09:06:55 +0800 | [diff] [blame] | 590 | QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185, |
Ganesh Kondabattini | 727c4b3 | 2017-08-29 13:23:00 +0530 | [diff] [blame] | 591 | }; |
| 592 | |
| 593 | enum qca_wlan_vendor_tos { |
| 594 | QCA_WLAN_VENDOR_TOS_BK = 0, |
| 595 | QCA_WLAN_VENDOR_TOS_BE = 1, |
| 596 | QCA_WLAN_VENDOR_TOS_VI = 2, |
| 597 | QCA_WLAN_VENDOR_TOS_VO = 3, |
| 598 | }; |
| 599 | |
| 600 | /** |
| 601 | * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command |
| 602 | * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS. |
| 603 | */ |
| 604 | enum qca_wlan_vendor_attr_active_tos { |
| 605 | QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0, |
| 606 | /* Type Of Service - Represented by qca_wlan_vendor_tos */ |
| 607 | QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1, |
| 608 | /* Flag attribute representing the start (attribute included) or stop |
| 609 | * (attribute not included) of the respective TOS. |
| 610 | */ |
| 611 | QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2, |
| 612 | QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 613 | }; |
| 614 | |
Anurag Chouhan | 6e56986 | 2017-10-04 12:42:27 +0530 | [diff] [blame] | 615 | enum qca_wlan_vendor_hang_reason { |
| 616 | /* Unspecified reason */ |
| 617 | QCA_WLAN_HANG_REASON_UNSPECIFIED = 0, |
| 618 | /* No Map for the MAC entry for the received frame */ |
| 619 | QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1, |
| 620 | /* peer deletion timeout happened */ |
| 621 | QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2, |
| 622 | /* peer unmap timeout */ |
| 623 | QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3, |
| 624 | /* Scan request timed out */ |
| 625 | QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4, |
| 626 | /* Consecutive Scan attempt failures */ |
| 627 | QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5, |
| 628 | /* Unable to get the message buffer */ |
| 629 | QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6, |
| 630 | /* Current command processing is timedout */ |
| 631 | QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7, |
| 632 | /* Timeout for an ACK from FW for suspend request */ |
| 633 | QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8, |
| 634 | /* Timeout for an ACK from FW for resume request */ |
| 635 | QCA_WLAN_HANG_RESUME_TIMEOUT = 9, |
| 636 | /* Transmission timeout for consecutive data frames */ |
| 637 | QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10, |
| 638 | /* Timeout for the TX completion status of data frame */ |
| 639 | QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11, |
| 640 | /* DXE failure for tx/Rx, DXE resource unavailability */ |
| 641 | QCA_WLAN_HANG_DXE_FAILURE = 12, |
| 642 | /* WMI pending commands exceed the maximum count */ |
| 643 | QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13, |
| 644 | }; |
| 645 | |
| 646 | /** |
| 647 | * enum qca_wlan_vendor_attr_hang - Used by the vendor command |
| 648 | * QCA_NL80211_VENDOR_SUBCMD_HANG. |
| 649 | */ |
| 650 | enum qca_wlan_vendor_attr_hang { |
| 651 | QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0, |
| 652 | /* |
| 653 | * Reason for the Hang - Represented by enum |
| 654 | * qca_wlan_vendor_hang_reason. |
| 655 | */ |
| 656 | QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1, |
| 657 | |
| 658 | QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST, |
| 659 | QCA_WLAN_VENDOR_ATTR_HANG_MAX = |
| 660 | QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1, |
| 661 | }; |
| 662 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 663 | /** |
| 664 | * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level |
| 665 | * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level |
| 666 | * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters |
| 667 | * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace |
| 668 | level needs to be updated. |
| 669 | * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need |
| 670 | * to be set. |
| 671 | * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last. |
| 672 | * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute. |
| 673 | */ |
| 674 | enum qca_vendor_attr_set_trace_level { |
| 675 | QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0, |
| 676 | /* |
| 677 | * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM |
| 678 | * attributes. |
| 679 | */ |
| 680 | QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1, |
| 681 | QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2, |
| 682 | QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3, |
| 683 | QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST, |
| 684 | QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX = |
| 685 | QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1, |
| 686 | }; |
| 687 | |
| 688 | /** |
| 689 | * enum qca_wlan_vendor_attr_get_station - Sub commands used by |
| 690 | * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding |
| 691 | * station information. The information obtained through these |
| 692 | * commands signify the current info in connected state and |
| 693 | * latest cached information during the connected state , if queried |
| 694 | * when in disconnected state. |
| 695 | * |
| 696 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute |
| 697 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info |
| 698 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason |
Will Huang | 7c17db6 | 2017-07-13 18:05:34 +0800 | [diff] [blame] | 699 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 700 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last |
| 701 | */ |
| 702 | enum qca_wlan_vendor_attr_get_station { |
| 703 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0, |
| 704 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO, |
| 705 | QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON, |
Will Huang | 7c17db6 | 2017-07-13 18:05:34 +0800 | [diff] [blame] | 706 | QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 707 | |
| 708 | /* keep last */ |
| 709 | QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST, |
| 710 | QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX = |
| 711 | QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1, |
| 712 | }; |
| 713 | |
| 714 | /** |
| 715 | * enum qca_wlan_802_11_mode - dot11 mode |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 716 | * @QCA_WLAN_802_11_MODE_11B: mode B |
| 717 | * @QCA_WLAN_802_11_MODE_11G: mode G |
| 718 | * @QCA_WLAN_802_11_MODE_11N: mode N |
Ashish Kumar Dhanotiya | 1872489 | 2017-11-13 11:25:58 +0530 | [diff] [blame] | 719 | * @QCA_WLAN_802_11_MODE_11A: mode A |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 720 | * @QCA_WLAN_802_11_MODE_11AC: mode AC |
Ashish Kumar Dhanotiya | 1872489 | 2017-11-13 11:25:58 +0530 | [diff] [blame] | 721 | * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 722 | */ |
| 723 | enum qca_wlan_802_11_mode { |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 724 | QCA_WLAN_802_11_MODE_11B, |
| 725 | QCA_WLAN_802_11_MODE_11G, |
| 726 | QCA_WLAN_802_11_MODE_11N, |
Ashish Kumar Dhanotiya | 1872489 | 2017-11-13 11:25:58 +0530 | [diff] [blame] | 727 | QCA_WLAN_802_11_MODE_11A, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 728 | QCA_WLAN_802_11_MODE_11AC, |
Ashish Kumar Dhanotiya | 1872489 | 2017-11-13 11:25:58 +0530 | [diff] [blame] | 729 | QCA_WLAN_802_11_MODE_INVALID, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 730 | }; |
| 731 | |
| 732 | /** |
| 733 | * enum qca_wlan_auth_type - Authentication key management type |
| 734 | * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type |
| 735 | * @QCA_WLAN_AUTH_TYPE_OPEN: Open key |
| 736 | * @QCA_WLAN_AUTH_TYPE_SHARED: shared key |
| 737 | * @QCA_WLAN_AUTH_TYPE_WPA: wpa key |
| 738 | * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key |
| 739 | * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key |
| 740 | * @QCA_WLAN_AUTH_TYPE_RSN: rsn key |
| 741 | * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key |
| 742 | * @QCA_WLAN_AUTH_TYPE_FT: ft key |
| 743 | * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key |
| 744 | * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key |
| 745 | * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk |
| 746 | * @QCA_WLAN_AUTH_TYPE_WAI: wai key |
| 747 | * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key |
| 748 | * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key |
| 749 | * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key |
Pragaspathi Thilagaraj | 17810df | 2019-02-18 17:42:21 +0530 | [diff] [blame] | 750 | * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm |
| 751 | * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384 |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 752 | */ |
| 753 | enum qca_wlan_auth_type { |
| 754 | QCA_WLAN_AUTH_TYPE_INVALID, |
| 755 | QCA_WLAN_AUTH_TYPE_OPEN, |
| 756 | QCA_WLAN_AUTH_TYPE_SHARED, |
| 757 | QCA_WLAN_AUTH_TYPE_WPA, |
| 758 | QCA_WLAN_AUTH_TYPE_WPA_PSK, |
| 759 | QCA_WLAN_AUTH_TYPE_WPA_NONE, |
| 760 | QCA_WLAN_AUTH_TYPE_RSN, |
| 761 | QCA_WLAN_AUTH_TYPE_RSN_PSK, |
| 762 | QCA_WLAN_AUTH_TYPE_FT, |
| 763 | QCA_WLAN_AUTH_TYPE_FT_PSK, |
| 764 | QCA_WLAN_AUTH_TYPE_SHA256, |
| 765 | QCA_WLAN_AUTH_TYPE_SHA256_PSK, |
| 766 | QCA_WLAN_AUTH_TYPE_WAI, |
| 767 | QCA_WLAN_AUTH_TYPE_WAI_PSK, |
| 768 | QCA_WLAN_AUTH_TYPE_CCKM_WPA, |
| 769 | QCA_WLAN_AUTH_TYPE_CCKM_RSN, |
| 770 | QCA_WLAN_AUTH_TYPE_AUTOSWITCH, |
Pragaspathi Thilagaraj | 17810df | 2019-02-18 17:42:21 +0530 | [diff] [blame] | 771 | QCA_WLAN_AUTH_TYPE_FT_SAE, |
| 772 | QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 773 | }; |
| 774 | |
| 775 | /** |
| 776 | * enum qca_wlan_vendor_attr_get_station_info - Station Info queried |
| 777 | * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION. |
| 778 | * |
| 779 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute |
| 780 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR: |
| 781 | * Get the standard NL attributes Nested with this attribute. |
| 782 | * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link - |
| 783 | * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) / |
| 784 | * NL80211_ATTR_STA_INFO |
| 785 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR: |
| 786 | * Get the standard NL attributes Nested with this attribute. |
| 787 | * Ex : Query HT/VHT Capability advertized by the AP. |
| 788 | * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY |
| 789 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT: |
| 790 | * Number of successful Roam attempts before a |
| 791 | * disconnect, Unsigned 32 bit value |
| 792 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM: |
| 793 | * Authentication Key Management Type used for the connected session. |
| 794 | * Signified by enum qca_wlan_auth_type |
| 795 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the |
| 796 | * connected Session, signified by enum qca_wlan_802_11_mode |
| 797 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION: |
| 798 | * HS20 Indication Element |
| 799 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON: |
| 800 | * Status Code Corresponding to the Association Failure. |
| 801 | * Unsigned 32 bit value. |
Will Huang | 7c17db6 | 2017-07-13 18:05:34 +0800 | [diff] [blame] | 802 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE: |
| 803 | * Max phy rate of remote station |
| 804 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS: |
| 805 | * TX packets to remote station |
| 806 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES: |
| 807 | * TX bytes to remote station |
| 808 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS: |
| 809 | * RX packets from remote station |
| 810 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES: |
| 811 | * RX bytes from remote station |
| 812 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE: |
| 813 | * Last TX rate with remote station |
| 814 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE: |
| 815 | * Last RX rate with remote station |
| 816 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM: |
| 817 | * Remote station enable/disable WMM |
| 818 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE: |
Jeff Johnson | 24d440b | 2018-05-12 11:41:14 -0700 | [diff] [blame] | 819 | * Remote station connection mode |
Will Huang | 7c17db6 | 2017-07-13 18:05:34 +0800 | [diff] [blame] | 820 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU: |
| 821 | * Remote station AMPDU enable/disable |
| 822 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC: |
| 823 | * Remote station TX Space-time block coding enable/disable |
| 824 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC: |
| 825 | * Remote station RX Space-time block coding enable/disable |
| 826 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH: |
| 827 | * Remote station channel width |
| 828 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE: |
| 829 | * Remote station short GI enable/disable |
| 830 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 831 | * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last |
| 832 | */ |
| 833 | enum qca_wlan_vendor_attr_get_station_info { |
| 834 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0, |
| 835 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR, |
| 836 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR, |
| 837 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT, |
| 838 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM, |
| 839 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE, |
| 840 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION, |
| 841 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION, |
| 842 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION, |
| 843 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON, |
Will Huang | 7c17db6 | 2017-07-13 18:05:34 +0800 | [diff] [blame] | 844 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE, |
| 845 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS, |
| 846 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES, |
| 847 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS, |
| 848 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES, |
| 849 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE, |
| 850 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE, |
| 851 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM, |
| 852 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE, |
| 853 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU, |
| 854 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC, |
| 855 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC, |
| 856 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH, |
| 857 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE, |
Will Huang | 7c17db6 | 2017-07-13 18:05:34 +0800 | [diff] [blame] | 858 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD, |
Ashish Kumar Dhanotiya | 5e3af68 | 2018-07-10 18:54:41 +0530 | [diff] [blame] | 859 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT, |
| 860 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT, |
| 861 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 862 | /* keep last */ |
| 863 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST, |
| 864 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX = |
| 865 | QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1, |
| 866 | }; |
| 867 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 868 | /** |
| 869 | * enum qca_nl80211_vendor_subcmds_index - vendor sub commands index |
| 870 | * |
| 871 | * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_INDEX: Avoid frequency |
| 872 | * @QCA_NL80211_VENDOR_SUBCMD_NAN_INDEX: Nan |
| 873 | * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT_INDEX: Ext stats |
| 874 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START_INDEX: Ext scan start |
| 875 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP_INDEX: Ext scan stop |
| 876 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES_INDEX: Ext scan get |
| 877 | * capability |
| 878 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS_INDEX: Ext scan get |
| 879 | * cached results |
| 880 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE_INDEX: Ext scan |
| 881 | * results available |
| 882 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT_INDEX: Ext scan full |
| 883 | * scan result |
| 884 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT_INDEX: Ext scan event |
| 885 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND_INDEX: Ext scan hot list |
| 886 | * AP found |
| 887 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST_INDEX: Ext scan set |
| 888 | * bssid hotlist |
| 889 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST_INDEX: Ext scan reset |
| 890 | * bssid hotlist |
| 891 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE_INDEX: Ext scan |
| 892 | * significant change |
| 893 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE_INDEX: Ext scan |
| 894 | * set significant change |
| 895 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE_INDEX: Ext scan |
| 896 | * reset significant change |
| 897 | * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET_INDEX: Set stats |
| 898 | * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET_INDEX: Get stats |
| 899 | * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR_INDEX: Clear stats |
| 900 | * @QCA_NL80211_VENDOR_SUBCMD_LL_RADIO_STATS_INDEX: Radio stats |
| 901 | * @QCA_NL80211_VENDOR_SUBCMD_LL_IFACE_STATS_INDEX: Iface stats |
| 902 | * @QCA_NL80211_VENDOR_SUBCMD_LL_PEER_INFO_STATS_INDEX: Peer info stats |
Zhang Qian | 7fc2e86 | 2017-03-23 17:49:43 +0800 | [diff] [blame] | 903 | * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT_INDEX: MAC layer counters |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 904 | * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE_CHANGE_INDEX: Ext tdls state change |
| 905 | * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS_INDEX: ACS command |
| 906 | * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH_INDEX: Pass Roam and Auth info |
| 907 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST_INDEX: hotlist ap lost |
| 908 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND_INDEX: |
| 909 | * pno network found index |
| 910 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND_INDEX: |
| 911 | * passpoint match found index |
| 912 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST_INDEX: |
| 913 | * set ssid hotlist index |
| 914 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST_INDEX: |
| 915 | * reset ssid hotlist index |
| 916 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND_INDEX: |
| 917 | * hotlist ssid found index |
| 918 | * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST_INDEX: |
| 919 | * hotlist ssid lost index |
| 920 | * @QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT_INDEX |
| 921 | * dcc stats event index |
| 922 | * @QCA_NL80211_VENDOR_SUBCMD_SCAN_INDEX: vendor scan index |
| 923 | * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE_INDEX: |
| 924 | * vendor scan complete event index |
| 925 | * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG_INDEX: |
| 926 | * update gateway parameters index |
Paul Zhang | f9afcce | 2019-05-13 16:08:01 +0800 | [diff] [blame] | 927 | * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP_INDEX: |
| 928 | * update aps info which has interop issues events index |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 929 | * @QCA_NL80211_VENDOR_SUBCMD_TSF_INDEX: TSF response events index |
| 930 | * @QCA_NL80211_VENDOR_SUBCMD_P2P_LO_EVENT_INDEX: |
| 931 | * P2P listen offload index |
| 932 | * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH_INDEX: SAP |
| 933 | * conditional channel switch index |
Anurag Chouhan | d40d1d1 | 2017-09-11 14:56:30 +0530 | [diff] [blame] | 934 | * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET_INDEX: NUD DEBUG Stats index |
Anurag Chouhan | 6e56986 | 2017-10-04 12:42:27 +0530 | [diff] [blame] | 935 | * @QCA_NL80211_VENDOR_SUBCMD_HANG_REASON_INDEX: hang event reason index |
Yeshwanth Sriram Guntuka | 64de344 | 2018-02-23 12:17:41 +0530 | [diff] [blame] | 936 | * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO_INDEX: MAC mode info index |
Nachiket Kukade | 30ed5c4 | 2018-12-03 18:30:46 +0530 | [diff] [blame] | 937 | * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT_INDEX: NAN Extended index |
Abhinav Kumar | 88e3fc5 | 2019-05-03 00:21:11 +0530 | [diff] [blame] | 938 | * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING_INDEX: Beacon reporting index |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 939 | */ |
| 940 | |
| 941 | enum qca_nl80211_vendor_subcmds_index { |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 942 | QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_INDEX = 0, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 943 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 944 | QCA_NL80211_VENDOR_SUBCMD_NAN_INDEX, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 945 | |
| 946 | #ifdef WLAN_FEATURE_STATS_EXT |
| 947 | QCA_NL80211_VENDOR_SUBCMD_STATS_EXT_INDEX, |
| 948 | #endif /* WLAN_FEATURE_STATS_EXT */ |
| 949 | |
| 950 | #ifdef FEATURE_WLAN_EXTSCAN |
| 951 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START_INDEX, |
| 952 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP_INDEX, |
| 953 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES_INDEX, |
| 954 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS_INDEX, |
| 955 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE_INDEX, |
| 956 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT_INDEX, |
| 957 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT_INDEX, |
| 958 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND_INDEX, |
| 959 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST_INDEX, |
| 960 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST_INDEX, |
| 961 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE_INDEX, |
| 962 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE_INDEX, |
| 963 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE_INDEX, |
| 964 | #endif /* FEATURE_WLAN_EXTSCAN */ |
| 965 | |
| 966 | #ifdef WLAN_FEATURE_LINK_LAYER_STATS |
| 967 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET_INDEX, |
| 968 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET_INDEX, |
| 969 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR_INDEX, |
| 970 | QCA_NL80211_VENDOR_SUBCMD_LL_RADIO_STATS_INDEX, |
| 971 | QCA_NL80211_VENDOR_SUBCMD_LL_IFACE_STATS_INDEX, |
| 972 | QCA_NL80211_VENDOR_SUBCMD_LL_PEER_INFO_STATS_INDEX, |
Zhang Qian | 7fc2e86 | 2017-03-23 17:49:43 +0800 | [diff] [blame] | 973 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT_INDEX, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 974 | #endif /* WLAN_FEATURE_LINK_LAYER_STATS */ |
| 975 | |
| 976 | QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE_CHANGE_INDEX, |
| 977 | QCA_NL80211_VENDOR_SUBCMD_DO_ACS_INDEX, |
| 978 | #ifdef WLAN_FEATURE_ROAM_OFFLOAD |
| 979 | QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH_INDEX, |
| 980 | #endif |
| 981 | /* DFS */ |
| 982 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED_INDEX, |
| 983 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED_INDEX, |
| 984 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED_INDEX, |
| 985 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED_INDEX, |
| 986 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED_INDEX, |
| 987 | #ifdef FEATURE_WLAN_EXTSCAN |
| 988 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST_INDEX, |
| 989 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND_INDEX, |
| 990 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND_INDEX, |
| 991 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST_INDEX, |
| 992 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST_INDEX, |
| 993 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND_INDEX, |
| 994 | QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST_INDEX, |
| 995 | #endif /* FEATURE_WLAN_EXTSCAN */ |
Adil Saeed Musthafa | 65dabe4 | 2017-08-23 17:32:11 -0700 | [diff] [blame] | 996 | QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION_INDEX, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 997 | QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI_INDEX, |
| 998 | #ifdef WLAN_FEATURE_MEMDUMP |
| 999 | QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP_INDEX, |
| 1000 | #endif /* WLAN_FEATURE_MEMDUMP */ |
| 1001 | /* OCB events */ |
| 1002 | QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT_INDEX, |
| 1003 | QCA_NL80211_VENDOR_SUBCMD_SCAN_INDEX, |
| 1004 | QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE_INDEX, |
| 1005 | QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG_INDEX, |
Paul Zhang | f9afcce | 2019-05-13 16:08:01 +0800 | [diff] [blame] | 1006 | QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP_INDEX, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1007 | #ifdef WLAN_FEATURE_TSF |
| 1008 | QCA_NL80211_VENDOR_SUBCMD_TSF_INDEX, |
| 1009 | #endif |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1010 | QCA_NL80211_VENDOR_SUBCMD_NDP_INDEX, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1011 | QCA_NL80211_VENDOR_SUBCMD_P2P_LO_EVENT_INDEX, |
| 1012 | QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH_INDEX, |
| 1013 | QCA_NL80211_VENDOR_SUBCMD_UPDATE_EXTERNAL_ACS_CONFIG, |
Ravi Kumar Bokka | 4a517a2 | 2017-03-23 17:20:31 +0530 | [diff] [blame] | 1014 | QCA_NL80211_VENDOR_SUBCMD_PWR_SAVE_FAIL_DETECTED_INDEX, |
Anurag Chouhan | d40d1d1 | 2017-09-11 14:56:30 +0530 | [diff] [blame] | 1015 | QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET_INDEX, |
Anurag Chouhan | 6e56986 | 2017-10-04 12:42:27 +0530 | [diff] [blame] | 1016 | QCA_NL80211_VENDOR_SUBCMD_HANG_REASON_INDEX, |
Chaithanya Garrepalli | 30927c5 | 2017-11-22 14:31:47 +0530 | [diff] [blame] | 1017 | QCA_NL80211_VENDOR_SUBCMD_HTT_STATS_INDEX, |
Yeshwanth Sriram Guntuka | 64de344 | 2018-02-23 12:17:41 +0530 | [diff] [blame] | 1018 | QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO_INDEX, |
Nachiket Kukade | 30ed5c4 | 2018-12-03 18:30:46 +0530 | [diff] [blame] | 1019 | QCA_NL80211_VENDOR_SUBCMD_NAN_EXT_INDEX, |
Alok Kumar | db0d423 | 2018-11-08 19:08:13 +0530 | [diff] [blame] | 1020 | QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT_INDEX, |
Ashish Kumar Dhanotiya | 38a0c9f | 2018-01-19 20:17:02 +0530 | [diff] [blame] | 1021 | QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES_INDEX, |
Amir Patel | 62f72ed | 2019-03-11 20:13:53 +0530 | [diff] [blame] | 1022 | QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH_INDEX, |
Abhinav Kumar | 88e3fc5 | 2019-05-03 00:21:11 +0530 | [diff] [blame] | 1023 | QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING_INDEX, |
Srinivas Dasari | a75e44c | 2019-08-13 15:27:04 +0530 | [diff] [blame] | 1024 | QCA_NL80211_VENDOR_SUBCMD_ROAM_INDEX, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1025 | }; |
| 1026 | |
| 1027 | /** |
| 1028 | * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute |
| 1029 | * |
| 1030 | * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value |
| 1031 | * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit |
| 1032 | * value |
| 1033 | * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets |
| 1034 | * keep as unsigned for now |
| 1035 | * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class |
| 1036 | * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms |
| 1037 | * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth |
| 1038 | * in KBPS |
| 1039 | * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last |
| 1040 | * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value |
| 1041 | */ |
| 1042 | enum qca_wlan_vendor_attr_tdls_enable { |
| 1043 | QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0, |
| 1044 | QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR, |
| 1045 | QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL, |
| 1046 | QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS, |
| 1047 | QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS, |
| 1048 | QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS, |
| 1049 | QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST, |
| 1050 | QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX = |
| 1051 | QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1, |
| 1052 | }; |
| 1053 | |
| 1054 | /** |
| 1055 | * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute |
| 1056 | * |
| 1057 | * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value |
| 1058 | * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned |
| 1059 | * 8-bit value |
| 1060 | * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last |
| 1061 | * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value |
| 1062 | */ |
| 1063 | enum qca_wlan_vendor_attr_tdls_disable { |
| 1064 | QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0, |
| 1065 | QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR, |
| 1066 | QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST, |
| 1067 | QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX = |
| 1068 | QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1, |
| 1069 | }; |
| 1070 | |
| 1071 | /** |
Ravi Kumar Bokka | 4a517a2 | 2017-03-23 17:20:31 +0530 | [diff] [blame] | 1072 | * qca_chip_power_save_failure_reason: Power save failure reason |
| 1073 | * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure |
| 1074 | * due to protocol/module. |
| 1075 | * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure |
| 1076 | * due to hardware |
| 1077 | */ |
| 1078 | enum qca_chip_power_save_failure_reason { |
| 1079 | QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0, |
| 1080 | QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1, |
| 1081 | }; |
| 1082 | |
| 1083 | /** |
| 1084 | * qca_attr_chip_power_save_failure: attributes to vendor subcmd |
| 1085 | * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite |
| 1086 | * information leading to the power save failure. |
| 1087 | * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid |
| 1088 | * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason |
| 1089 | * represented by enum qca_chip_power_save_failure_reason |
| 1090 | * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last |
| 1091 | * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value |
| 1092 | */ |
| 1093 | enum qca_attr_chip_power_save_failure { |
| 1094 | QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0, |
| 1095 | |
| 1096 | QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1, |
| 1097 | |
| 1098 | /* keep last */ |
| 1099 | QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST, |
| 1100 | QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX = |
| 1101 | QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1, |
| 1102 | }; |
| 1103 | |
| 1104 | |
| 1105 | /** |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1106 | * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute |
| 1107 | * |
| 1108 | * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value |
| 1109 | * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned |
| 1110 | * 8-bit value |
| 1111 | * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state, |
| 1112 | * unsigned 32-bit value |
| 1113 | * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason |
| 1114 | * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel, |
| 1115 | * unsigned 32-bit value |
| 1116 | * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating |
| 1117 | * class, unsigned 32-bit value |
| 1118 | * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last |
| 1119 | * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value |
| 1120 | */ |
| 1121 | enum qca_wlan_vendor_attr_tdls_get_status { |
| 1122 | QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0, |
| 1123 | QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR, |
| 1124 | QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE, |
| 1125 | QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON, |
| 1126 | QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL, |
| 1127 | QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS, |
| 1128 | QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST, |
| 1129 | QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX = |
| 1130 | QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1, |
| 1131 | }; |
| 1132 | |
| 1133 | /** |
| 1134 | * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute |
| 1135 | * |
| 1136 | * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value |
| 1137 | * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned |
| 1138 | * 8-bit value |
| 1139 | * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state, |
| 1140 | * unsigned 32-bit value |
| 1141 | * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason |
| 1142 | * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel, |
| 1143 | * unsigned 32-bit value |
| 1144 | * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state |
| 1145 | * operating class, unsigned 32-bit value |
| 1146 | * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last |
| 1147 | * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value |
| 1148 | */ |
| 1149 | enum qca_wlan_vendor_attr_tdls_state { |
| 1150 | QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0, |
| 1151 | QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR, |
| 1152 | QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE, |
| 1153 | QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON, |
| 1154 | QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL, |
| 1155 | QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS, |
| 1156 | QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST, |
| 1157 | QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX = |
| 1158 | QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1, |
| 1159 | }; |
| 1160 | |
Jeff Johnson | 3a1832e | 2018-05-06 00:15:04 -0700 | [diff] [blame] | 1161 | /* enum's to provide TDLS capabilities */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1162 | enum qca_wlan_vendor_attr_get_tdls_capabilities { |
| 1163 | QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0, |
| 1164 | QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1, |
| 1165 | QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2, |
| 1166 | |
| 1167 | /* keep last */ |
| 1168 | QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST, |
| 1169 | QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX = |
| 1170 | QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1, |
| 1171 | }; |
| 1172 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1173 | enum qca_wlan_vendor_attr { |
| 1174 | QCA_WLAN_VENDOR_ATTR_INVALID = 0, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1175 | /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */ |
| 1176 | QCA_WLAN_VENDOR_ATTR_DFS = 1, |
| 1177 | /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */ |
| 1178 | QCA_WLAN_VENDOR_ATTR_NAN = 2, |
| 1179 | /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ |
| 1180 | QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3, |
| 1181 | /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ |
| 1182 | QCA_WLAN_VENDOR_ATTR_IFINDEX = 4, |
| 1183 | /* |
| 1184 | * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined |
| 1185 | * by enum qca_roaming_policy. |
| 1186 | */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1187 | QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5, |
| 1188 | QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1189 | /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1190 | QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1191 | QCA_WLAN_VENDOR_ATTR_TEST = 8, |
| 1192 | /* |
| 1193 | * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES |
| 1194 | * Unsigned 32-bit value. |
| 1195 | */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1196 | QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1197 | /* Unsigned 32-bit value */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1198 | QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1199 | /* Unsigned 32-bit value */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1200 | QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1201 | /* Unsigned 32-bit value from enum qca_set_band. */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1202 | QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1203 | /* Dummy (NOP) attribute for 64 bit padding */ |
| 1204 | QCA_WLAN_VENDOR_ATTR_PAD = 13, |
| 1205 | /* |
| 1206 | * Unique FTM session cookie (Unsigned 64 bit). Specified in |
| 1207 | * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in |
| 1208 | * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and |
| 1209 | * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE. |
| 1210 | */ |
| 1211 | QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14, |
| 1212 | /* |
| 1213 | * Indoor location capabilities, returned by |
| 1214 | * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA. |
| 1215 | * see enum qca_wlan_vendor_attr_loc_capa. |
| 1216 | */ |
| 1217 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15, |
| 1218 | /* |
| 1219 | * Array of nested attributes containing information about each peer |
| 1220 | * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info |
| 1221 | * for supported attributes for each peer. |
| 1222 | */ |
| 1223 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16, |
| 1224 | /* |
| 1225 | * Array of nested attributes containing measurement results for |
| 1226 | * one or more peers, reported by the |
| 1227 | * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event. |
| 1228 | * See enum qca_wlan_vendor_attr_peer_result for list of supported |
| 1229 | * attributes. |
| 1230 | */ |
| 1231 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17, |
| 1232 | /* Flag attribute for enabling or disabling responder functionality. */ |
| 1233 | QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18, |
| 1234 | /* |
| 1235 | * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER |
| 1236 | * command to specify the LCI report that will be sent by |
| 1237 | * the responder during a measurement exchange. The format is |
| 1238 | * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10. |
| 1239 | */ |
| 1240 | QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19, |
| 1241 | /* |
| 1242 | * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER |
| 1243 | * command to specify the location civic report that will |
| 1244 | * be sent by the responder during a measurement exchange. |
| 1245 | * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13. |
| 1246 | */ |
| 1247 | QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20, |
| 1248 | /* |
| 1249 | * Session/measurement completion status code, |
| 1250 | * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and |
| 1251 | * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT |
| 1252 | * see enum qca_vendor_attr_loc_session_status. |
| 1253 | */ |
| 1254 | QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21, |
| 1255 | /* |
| 1256 | * Initial dialog token used by responder (0 if not specified), |
| 1257 | * unsigned 8 bit value. |
| 1258 | */ |
| 1259 | QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22, |
| 1260 | /* |
| 1261 | * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS |
| 1262 | * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if |
| 1263 | * AOA measurements are needed as part of an FTM session. |
| 1264 | * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See |
| 1265 | * enum qca_wlan_vendor_attr_aoa_type. |
| 1266 | */ |
| 1267 | QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23, |
| 1268 | /* |
| 1269 | * A bit mask (unsigned 32 bit value) of antenna arrays used |
| 1270 | * by indoor location measurements. Refers to the antenna |
| 1271 | * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS. |
| 1272 | */ |
| 1273 | QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24, |
| 1274 | /* |
| 1275 | * AOA measurement data. Its contents depends on the AOA measurement |
| 1276 | * type and antenna array mask: |
| 1277 | * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values, |
| 1278 | * phase of the strongest CIR path for each antenna in the measured |
| 1279 | * array(s). |
| 1280 | * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16 |
| 1281 | * values, phase and amplitude of the strongest CIR path for each |
| 1282 | * antenna in the measured array(s). |
| 1283 | */ |
| 1284 | QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25, |
| 1285 | /* |
| 1286 | * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command |
| 1287 | * to specify the chain number (unsigned 32 bit value) to inquire |
| 1288 | * the corresponding antenna RSSI value */ |
| 1289 | QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26, |
| 1290 | /* |
| 1291 | * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command |
| 1292 | * to report the specific antenna RSSI value (unsigned 32 bit value) */ |
| 1293 | QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27, |
| 1294 | /* Frequency in MHz, various uses. Unsigned 32 bit value */ |
| 1295 | QCA_WLAN_VENDOR_ATTR_FREQ = 28, |
| 1296 | /* |
| 1297 | * TSF timer value, unsigned 64 bit value. |
| 1298 | * May be returned by various commands. |
| 1299 | */ |
| 1300 | QCA_WLAN_VENDOR_ATTR_TSF = 29, |
| 1301 | /* |
| 1302 | * DMG RF sector index, unsigned 16 bit number. Valid values are |
| 1303 | * 0..127 for sector indices or 65535 as special value used to |
| 1304 | * unlock sector selection in |
| 1305 | * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR. |
| 1306 | */ |
| 1307 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30, |
| 1308 | /* |
| 1309 | * DMG RF sector type, unsigned 8 bit value. One of the values |
| 1310 | * in enum qca_wlan_vendor_attr_dmg_rf_sector_type. |
| 1311 | */ |
| 1312 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31, |
| 1313 | /* |
| 1314 | * Bitmask of DMG RF modules for which information is requested. Each |
| 1315 | * bit corresponds to an RF module with the same index as the bit |
| 1316 | * number. Unsigned 32 bit number but only low 8 bits can be set since |
| 1317 | * all DMG chips currently have up to 8 RF modules. |
| 1318 | */ |
| 1319 | QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32, |
| 1320 | /* |
| 1321 | * Array of nested attributes where each entry is DMG RF sector |
| 1322 | * configuration for a single RF module. |
| 1323 | * Attributes for each entry are taken from enum |
| 1324 | * qca_wlan_vendor_attr_dmg_rf_sector_cfg. |
| 1325 | * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG |
| 1326 | * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG. |
| 1327 | */ |
| 1328 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33, |
| 1329 | /* |
| 1330 | * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command |
| 1331 | * to report frame aggregation statistics to userspace. |
| 1332 | */ |
| 1333 | QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34, |
| 1334 | QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35, |
| 1335 | /* |
| 1336 | * Unsigned 8-bit value representing MBO transition reason code as |
| 1337 | * provided by the AP used by subcommand |
| 1338 | * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is |
| 1339 | * specified by the userspace in the request to the driver. |
| 1340 | */ |
| 1341 | QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36, |
| 1342 | /* |
| 1343 | * Array of nested attributes, BSSID and status code, used by subcommand |
| 1344 | * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each |
| 1345 | * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info. |
| 1346 | * The userspace space specifies the list/array of candidate BSSIDs in |
| 1347 | * the order of preference in the request. The driver specifies the |
| 1348 | * status code, for each BSSID in the list, in the response. The |
| 1349 | * acceptable candidates are listed in the order preferred by the |
| 1350 | * driver. |
| 1351 | */ |
| 1352 | QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37, |
| 1353 | /* |
| 1354 | * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command |
| 1355 | * See enum qca_wlan_vendor_attr_brp_ant_limit_mode. |
| 1356 | */ |
| 1357 | QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38, |
| 1358 | /* |
| 1359 | * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command |
| 1360 | * to define the number of antennas to use for BRP. |
| 1361 | * different purpose in each ANT_LIMIT_MODE: |
| 1362 | * DISABLE - ignored |
| 1363 | * EFFECTIVE - upper limit to number of antennas to be used |
| 1364 | * FORCE - exact number of antennas to be used |
| 1365 | * unsigned 8 bit value |
| 1366 | */ |
| 1367 | QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39, |
| 1368 | /* |
| 1369 | * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command |
| 1370 | * to report the corresponding antenna index to the chain RSSI value |
| 1371 | */ |
| 1372 | QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40, |
stonez | 2c6f4d1 | 2019-01-15 17:55:58 +0800 | [diff] [blame] | 1373 | /* |
| 1374 | * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command |
| 1375 | * to report the specific antenna EVM value (unsigned 32 bit value). |
| 1376 | * With a determinate group of antennas, the driver specifies the |
| 1377 | * EVM value for each antenna ID, and application extract them |
| 1378 | * in user space. |
| 1379 | */ |
| 1380 | QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41, |
Qun Zhang | af8a081 | 2019-02-01 11:30:34 +0800 | [diff] [blame] | 1381 | /* |
| 1382 | * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report |
| 1383 | * wlan firmware current state. FW state is an unsigned 8 bit value, |
| 1384 | * one of the values in enum qca_wlan_vendor_attr_fw_state. |
| 1385 | */ |
| 1386 | QCA_WLAN_VENDOR_ATTR_FW_STATE = 42, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1387 | |
| 1388 | /* keep last */ |
| 1389 | QCA_WLAN_VENDOR_ATTR_AFTER_LAST, |
| 1390 | QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1 |
| 1391 | }; |
| 1392 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1393 | enum qca_wlan_vendor_attr_extscan_config_params { |
| 1394 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0, |
| 1395 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1396 | /* Unsigned 32-bit value */ |
| 1397 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1398 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1399 | /* |
| 1400 | * Attributes for data used by |
| 1401 | * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command. |
| 1402 | */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1403 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1404 | /* Unsigned 32-bit value */ |
| 1405 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND |
| 1406 | = 2, |
| 1407 | /* Unsigned 32-bit value */ |
| 1408 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS |
| 1409 | = 3, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1410 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1411 | /* |
| 1412 | * Attributes for input params used by |
| 1413 | * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command. |
| 1414 | */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1415 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1416 | /* Unsigned 32-bit value; channel frequency */ |
| 1417 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4, |
| 1418 | /* Unsigned 32-bit value; dwell time in ms. */ |
| 1419 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5, |
| 1420 | /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */ |
| 1421 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6, |
| 1422 | /* Unsigned 8-bit value; channel class */ |
| 1423 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1424 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1425 | /* Unsigned 8-bit value; bucket index, 0 based */ |
| 1426 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8, |
| 1427 | /* Unsigned 8-bit value; band. */ |
| 1428 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9, |
| 1429 | /* Unsigned 32-bit value; desired period, in ms. */ |
| 1430 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10, |
| 1431 | /* Unsigned 8-bit value; report events semantics. */ |
| 1432 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11, |
| 1433 | /* |
| 1434 | * Unsigned 32-bit value. Followed by a nested array of |
| 1435 | * EXTSCAN_CHANNEL_SPEC_* attributes. |
| 1436 | */ |
| 1437 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1438 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1439 | /* |
| 1440 | * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes. |
| 1441 | * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS |
| 1442 | */ |
| 1443 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1444 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1445 | /* Unsigned 32-bit value; base timer period in ms. */ |
| 1446 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14, |
| 1447 | /* |
| 1448 | * Unsigned 32-bit value; number of APs to store in each scan in the |
| 1449 | * BSSID/RSSI history buffer (keep the highest RSSI APs). |
| 1450 | */ |
| 1451 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15, |
| 1452 | /* |
| 1453 | * Unsigned 8-bit value; in %, when scan buffer is this much full, wake |
| 1454 | * up AP. |
| 1455 | */ |
| 1456 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT |
| 1457 | = 16, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1458 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1459 | /* |
| 1460 | * Unsigned 8-bit value; number of scan bucket specs; followed by a |
| 1461 | * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size |
| 1462 | * of the array is determined by NUM_BUCKETS. |
| 1463 | */ |
| 1464 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1465 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1466 | /* |
| 1467 | * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes. |
| 1468 | * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS |
| 1469 | */ |
| 1470 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1471 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1472 | /* Unsigned 8-bit value */ |
| 1473 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH |
| 1474 | = 19, |
| 1475 | /* Unsigned 32-bit value; maximum number of results to be returned. */ |
| 1476 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX |
| 1477 | = 20, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1478 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1479 | /* An array of 6 x unsigned 8-bit value */ |
| 1480 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21, |
| 1481 | /* Signed 32-bit value */ |
| 1482 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22, |
| 1483 | /* Signed 32-bit value */ |
| 1484 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23, |
| 1485 | /* Unsigned 32-bit value */ |
| 1486 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1487 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1488 | /* |
| 1489 | * Number of hotlist APs as unsigned 32-bit value, followed by a nested |
| 1490 | * array of AP_THRESHOLD_PARAM attributes and values. The size of the |
| 1491 | * array is determined by NUM_AP. |
| 1492 | */ |
| 1493 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1494 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1495 | /* |
| 1496 | * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes. |
| 1497 | * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS |
| 1498 | */ |
| 1499 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1500 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1501 | /* Unsigned 32-bit value; number of samples for averaging RSSI. */ |
| 1502 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE |
| 1503 | = 27, |
| 1504 | /* Unsigned 32-bit value; number of samples to confirm AP loss. */ |
| 1505 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE |
| 1506 | = 28, |
| 1507 | /* Unsigned 32-bit value; number of APs breaching threshold. */ |
| 1508 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29, |
| 1509 | /* |
| 1510 | * Unsigned 32-bit value; number of APs. Followed by an array of |
| 1511 | * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP. |
| 1512 | */ |
| 1513 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30, |
| 1514 | /* Unsigned 32-bit value; number of samples to confirm AP loss. */ |
| 1515 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE |
| 1516 | = 31, |
| 1517 | /* |
| 1518 | * Unsigned 32-bit value. If max_period is non zero or different than |
| 1519 | * period, then this bucket is an exponential backoff bucket. |
| 1520 | */ |
| 1521 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32, |
| 1522 | /* Unsigned 32-bit value. */ |
| 1523 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33, |
| 1524 | /* |
| 1525 | * Unsigned 32-bit value. For exponential back off bucket, number of |
| 1526 | * scans to perform for a given period. |
| 1527 | */ |
| 1528 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34, |
| 1529 | /* |
| 1530 | * Unsigned 8-bit value; in number of scans, wake up AP after these |
| 1531 | * many scans. |
| 1532 | */ |
| 1533 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS |
| 1534 | = 35, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1535 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1536 | /* |
| 1537 | * Attributes for data used by |
| 1538 | * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command. |
| 1539 | */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1540 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1541 | /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */ |
| 1542 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE |
| 1543 | = 36, |
| 1544 | /* |
| 1545 | * Number of hotlist SSIDs as unsigned 32-bit value, followed by a |
| 1546 | * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The |
| 1547 | * size of the array is determined by NUM_SSID. |
| 1548 | */ |
| 1549 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37, |
| 1550 | /* |
| 1551 | * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_* |
| 1552 | * attributes. |
| 1553 | * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID |
| 1554 | */ |
| 1555 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38, |
| 1556 | |
| 1557 | /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */ |
| 1558 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39, |
| 1559 | /* Unsigned 8-bit value */ |
| 1560 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40, |
| 1561 | /* Signed 32-bit value */ |
| 1562 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41, |
| 1563 | /* Signed 32-bit value */ |
| 1564 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42, |
| 1565 | /* Unsigned 32-bit value; a bitmask with additional extscan config flag. |
| 1566 | */ |
| 1567 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43, |
| 1568 | |
| 1569 | /* keep last */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1570 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST, |
| 1571 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX = |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1572 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1573 | }; |
| 1574 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1575 | enum qca_wlan_vendor_attr_extscan_results { |
| 1576 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0, |
| 1577 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1578 | /* |
| 1579 | * Unsigned 32-bit value; must match the request Id supplied by |
| 1580 | * Wi-Fi HAL in the corresponding subcmd NL msg. |
| 1581 | */ |
| 1582 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1583 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1584 | /* |
| 1585 | * Unsigned 32-bit value; used to indicate the status response from |
| 1586 | * firmware/driver for the vendor sub-command. |
| 1587 | */ |
| 1588 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1589 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1590 | /* |
| 1591 | * EXTSCAN Valid Channels attributes */ |
| 1592 | /* Unsigned 32bit value; followed by a nested array of CHANNELS. */ |
| 1593 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3, |
| 1594 | /* |
| 1595 | * An array of NUM_CHANNELS x unsigned 32-bit value integers |
| 1596 | * representing channel numbers. |
| 1597 | */ |
| 1598 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1599 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1600 | /* EXTSCAN Capabilities attributes */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1601 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1602 | /* Unsigned 32-bit value */ |
| 1603 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5, |
| 1604 | /* Unsigned 32-bit value */ |
| 1605 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6, |
| 1606 | /* Unsigned 32-bit value */ |
| 1607 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN |
| 1608 | = 7, |
| 1609 | /* Unsigned 32-bit value */ |
| 1610 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE |
| 1611 | = 8, |
| 1612 | /* Signed 32-bit value */ |
| 1613 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD |
| 1614 | = 9, |
| 1615 | /* Unsigned 32-bit value */ |
| 1616 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10, |
| 1617 | /* Unsigned 32-bit value */ |
| 1618 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS |
| 1619 | = 11, |
| 1620 | /* Unsigned 32-bit value */ |
| 1621 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES |
| 1622 | = 12, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1623 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1624 | /* |
| 1625 | * EXTSCAN Attributes used with |
| 1626 | * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1627 | */ |
| 1628 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1629 | /* Unsigned 32-bit value */ |
| 1630 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13, |
| 1631 | |
| 1632 | /* |
| 1633 | * EXTSCAN attributes used with |
| 1634 | * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command. |
| 1635 | */ |
| 1636 | |
| 1637 | /* |
| 1638 | * An array of NUM_RESULTS_AVAILABLE x |
| 1639 | * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_* |
| 1640 | */ |
| 1641 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14, |
| 1642 | |
| 1643 | /* Unsigned 64-bit value; age of sample at the time of retrieval */ |
| 1644 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15, |
| 1645 | /* 33 x unsigned 8-bit value; NULL terminated SSID */ |
| 1646 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16, |
| 1647 | /* An array of 6 x unsigned 8-bit value */ |
| 1648 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17, |
| 1649 | /* Unsigned 32-bit value; channel frequency in MHz */ |
| 1650 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18, |
| 1651 | /* Signed 32-bit value */ |
| 1652 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19, |
| 1653 | /* Unsigned 32-bit value */ |
| 1654 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20, |
| 1655 | /* Unsigned 32-bit value */ |
| 1656 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21, |
| 1657 | /* Unsigned 16-bit value */ |
| 1658 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22, |
| 1659 | /* Unsigned 16-bit value */ |
| 1660 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23, |
| 1661 | /* Unsigned 32-bit value; size of the IE DATA blob */ |
| 1662 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24, |
| 1663 | /* |
| 1664 | * An array of IE_LENGTH x unsigned 8-bit value; blob of all the |
| 1665 | * information elements found in the beacon; this data should be a |
| 1666 | * packed list of wifi_information_element objects, one after the |
| 1667 | * other. |
| 1668 | */ |
| 1669 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25, |
| 1670 | |
| 1671 | /* |
| 1672 | * Unsigned 8-bit value; set by driver to indicate more scan results are |
| 1673 | * available. |
| 1674 | */ |
| 1675 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26, |
| 1676 | |
| 1677 | /* |
| 1678 | * EXTSCAN attributes for |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1679 | * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command. |
| 1680 | */ |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1681 | /* Unsigned 8-bit value */ |
| 1682 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27, |
| 1683 | /* Unsigned 32-bit value */ |
| 1684 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1685 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1686 | /* |
| 1687 | * EXTSCAN attributes for |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1688 | * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command. |
| 1689 | */ |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1690 | /* |
| 1691 | * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1692 | * to indicate number of results. |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1693 | * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the |
| 1694 | * list of results. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1695 | */ |
| 1696 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1697 | /* |
| 1698 | * EXTSCAN attributes for |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1699 | * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command. |
| 1700 | */ |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1701 | /* An array of 6 x unsigned 8-bit value */ |
| 1702 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29, |
| 1703 | /* Unsigned 32-bit value */ |
| 1704 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL |
| 1705 | = 30, |
| 1706 | /* Unsigned 32-bit value. */ |
| 1707 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI |
| 1708 | = 31, |
| 1709 | /* |
| 1710 | * A nested array of signed 32-bit RSSI values. Size of the array is |
| 1711 | * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI. |
| 1712 | */ |
| 1713 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST |
| 1714 | = 32, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1715 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1716 | /* |
| 1717 | * EXTSCAN attributes used with |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1718 | * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command. |
| 1719 | */ |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1720 | /* |
| 1721 | * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE |
| 1722 | * to indicate number of extscan cached results returned. |
| 1723 | * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate |
| 1724 | * the list of extscan cached results. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1725 | */ |
| 1726 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1727 | /* |
| 1728 | * An array of NUM_RESULTS_AVAILABLE x |
| 1729 | * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_* |
| 1730 | */ |
| 1731 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33, |
| 1732 | /* Unsigned 32-bit value; a unique identifier for the scan unit. */ |
| 1733 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34, |
| 1734 | /* |
| 1735 | * Unsigned 32-bit value; a bitmask w/additional information about scan. |
| 1736 | */ |
| 1737 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35, |
| 1738 | /* |
| 1739 | * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1740 | * to indicate number of wifi scan results/bssids retrieved by the scan. |
| 1741 | * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the |
| 1742 | * list of wifi scan results returned for each cached result block. |
| 1743 | */ |
| 1744 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1745 | /* |
| 1746 | * EXTSCAN attributes for |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1747 | * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command. |
| 1748 | */ |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1749 | /* |
| 1750 | * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for |
| 1751 | * number of results. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1752 | * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested |
| 1753 | * list of wifi scan results returned for each |
| 1754 | * wifi_passpoint_match_result block. |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1755 | * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1756 | */ |
| 1757 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1758 | /* |
| 1759 | * EXTSCAN attributes for |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1760 | * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command. |
| 1761 | */ |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1762 | /* Unsigned 32-bit value */ |
| 1763 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES |
| 1764 | = 36, |
| 1765 | /* |
| 1766 | * A nested array of |
| 1767 | * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_* |
| 1768 | * attributes. Array size = |
| 1769 | * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES. |
| 1770 | */ |
| 1771 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37, |
| 1772 | |
| 1773 | /* Unsigned 32-bit value; network block id for the matched network */ |
| 1774 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38, |
| 1775 | /* |
| 1776 | * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1777 | * list of wifi scan results returned for each |
| 1778 | * wifi_passpoint_match_result block. |
| 1779 | */ |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1780 | /* Unsigned 32-bit value */ |
| 1781 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39, |
| 1782 | /* |
| 1783 | * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values; |
| 1784 | * ANQP data in the information_element format. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1785 | */ |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1786 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1787 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1788 | /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */ |
| 1789 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41, |
| 1790 | /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */ |
| 1791 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42, |
| 1792 | /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */ |
| 1793 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID |
| 1794 | = 43, |
| 1795 | /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */ |
| 1796 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID |
| 1797 | = 44, |
| 1798 | |
| 1799 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45, |
| 1800 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1801 | |
| 1802 | /* keep last */ |
| 1803 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST, |
| 1804 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX = |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 1805 | QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1806 | }; |
Paul Zhang | f9afcce | 2019-05-13 16:08:01 +0800 | [diff] [blame] | 1807 | |
| 1808 | /** |
| 1809 | * enum qca_vendor_interop_issues_ap_type - interop issues type |
| 1810 | * This enum defines the valid set of values of interop issues type. These |
| 1811 | * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE. |
| 1812 | * |
| 1813 | * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue |
| 1814 | * when the STA's Qpower feature is enabled. |
| 1815 | */ |
| 1816 | enum qca_vendor_interop_issues_ap_type { |
| 1817 | QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0, |
| 1818 | QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1, |
| 1819 | }; |
| 1820 | |
| 1821 | /** |
| 1822 | * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues |
| 1823 | * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP. |
| 1824 | * |
| 1825 | * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value |
| 1826 | * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type |
| 1827 | * 32-bit unsigned value, The type defined in enum |
| 1828 | * qca_vendor_interop_issues_ap_type are used. |
| 1829 | * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container |
| 1830 | * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes, |
| 1831 | * it is present and mandatory for the command but is not used for |
| 1832 | * the event since only a single BSSID is reported in an event. |
| 1833 | * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid |
| 1834 | * 6-byte MAC address. It is used within the nested |
| 1835 | * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case |
| 1836 | * and without such encapsulation in the event case. |
| 1837 | * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value |
| 1838 | * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value |
| 1839 | */ |
| 1840 | enum qca_vendor_attr_interop_issues_ap { |
| 1841 | QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID, |
| 1842 | QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE, |
| 1843 | QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST, |
| 1844 | QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID, |
| 1845 | /* keep last */ |
| 1846 | QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST, |
| 1847 | QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX = |
| 1848 | QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1 |
| 1849 | }; |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 1850 | |
| 1851 | #ifdef WLAN_FEATURE_LINK_LAYER_STATS |
| 1852 | |
| 1853 | /** |
| 1854 | * enum qca_wlan_vendor_attr_ll_stats_set - vendor attribute set stats |
| 1855 | * |
| 1856 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID: Invalid initial value |
| 1857 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD: Size threshold |
| 1858 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING: |
| 1859 | * Aggresive stats gathering |
| 1860 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST: After last |
| 1861 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX: Max value |
| 1862 | */ |
| 1863 | enum qca_wlan_vendor_attr_ll_stats_set { |
| 1864 | QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0, |
| 1865 | QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1, |
| 1866 | QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING, |
| 1867 | /* keep last */ |
| 1868 | QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST, |
| 1869 | QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX = |
| 1870 | QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1 |
| 1871 | }; |
| 1872 | |
| 1873 | /** |
| 1874 | * enum qca_wlan_vendor_attr_ll_stats_get - vendor attribute get stats |
| 1875 | * |
| 1876 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID: Invalid initial value |
| 1877 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID: Unsigned 32bit value |
| 1878 | * provided by the caller issuing the GET stats command. When reporting |
| 1879 | * the stats results, the driver uses the same value to indicate which |
| 1880 | * GET request the results correspond to. |
| 1881 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK: Get config request mask |
| 1882 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask |
| 1883 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response |
| 1884 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST: After last |
| 1885 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX: Max value |
| 1886 | */ |
| 1887 | enum qca_wlan_vendor_attr_ll_stats_get { |
| 1888 | QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0, |
| 1889 | QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID, |
| 1890 | QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK, |
| 1891 | QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST, |
| 1892 | QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX = |
| 1893 | QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1 |
| 1894 | }; |
| 1895 | |
| 1896 | /** |
| 1897 | * enum qca_wlan_vendor_attr_ll_stats_clr - vendor attribute clear stats |
| 1898 | * |
| 1899 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID: Invalid initial value |
| 1900 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK: Config request mask |
| 1901 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ: Config stop mask |
| 1902 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask |
| 1903 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response |
| 1904 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST: After last |
| 1905 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX: Max value |
| 1906 | */ |
| 1907 | enum qca_wlan_vendor_attr_ll_stats_clr { |
| 1908 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0, |
| 1909 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK, |
| 1910 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ, |
| 1911 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK, |
| 1912 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP, |
| 1913 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST, |
| 1914 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX = |
| 1915 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1 |
| 1916 | }; |
| 1917 | |
| 1918 | /** |
| 1919 | * enum qca_wlan_vendor_attr_ll_stats_results_type - ll stats result type |
| 1920 | * |
| 1921 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID: Initial invalid value |
| 1922 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO: Link layer stats type radio |
| 1923 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE: Link layer stats type interface |
| 1924 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER: Link layer stats type peer |
| 1925 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST: Last value |
| 1926 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX: Max value |
| 1927 | */ |
| 1928 | enum qca_wlan_vendor_attr_ll_stats_results_type { |
| 1929 | QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID = 0, |
| 1930 | |
| 1931 | QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO = 1, |
| 1932 | QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE, |
| 1933 | QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER, |
| 1934 | |
| 1935 | QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST, |
| 1936 | QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX = |
| 1937 | QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST - 1 |
| 1938 | }; |
| 1939 | |
| 1940 | /** |
| 1941 | * enum qca_wlan_vendor_attr_ll_stats_results - vendor attribute stats results |
| 1942 | * |
| 1943 | * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are nested |
| 1944 | * within the interface stats. |
| 1945 | * |
| 1946 | * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could be nested |
| 1947 | * within the interface stats. |
| 1948 | * |
| 1949 | * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are nested |
| 1950 | * within the interface stats. |
| 1951 | * |
| 1952 | * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* could be nested |
| 1953 | * within the peer info stats. |
| 1954 | * |
| 1955 | * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could be |
| 1956 | * nested within the channel stats. |
| 1957 | * |
| 1958 | * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ could be nested |
| 1959 | * within the radio stats. |
| 1960 | * |
| 1961 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID: Invalid initial value |
| 1962 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID: Unsigned 32bit value |
| 1963 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX: Unsigned 32bit value |
| 1964 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX: Unsigned 32bit value |
| 1965 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX: Unsigned 32bit value |
| 1966 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX: Unsigned 32bit value |
| 1967 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT: Unsigned 32bit value |
| 1968 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA: Unsigned 32bit value |
| 1969 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK: Unsigned 32bit value |
| 1970 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE: Interface mode, e.g., STA, |
| 1971 | * SOFTAP, IBSS, etc. Type = enum wifi_interface_mode |
| 1972 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR: Interface MAC address. |
| 1973 | * An array of 6 Unsigned int8_t |
| 1974 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE: |
| 1975 | * Type = enum wifi_connection_state, e.g., DISCONNECTED, AUTHENTICATING, |
| 1976 | * etc. Valid for STA, CLI only |
| 1977 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING: |
| 1978 | * Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE |
| 1979 | * (is that valid for STA only?) |
| 1980 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES: Unsigned 32bit value. |
| 1981 | * WIFI_CAPABILITY_XXX |
| 1982 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID: NULL terminated SSID. An |
| 1983 | * array of 33 Unsigned 8bit values |
| 1984 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID: BSSID. An array of 6 |
| 1985 | * Unsigned 8bit values |
| 1986 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR: Country string |
| 1987 | * advertised by AP. An array of 3 Unsigned 8bit values |
| 1988 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR: Country string for |
| 1989 | * this association. An array of 3 Unsigned 8bit values |
| 1990 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC: Type = enum wifi_traffic_ac e.g. |
| 1991 | * V0, VI, BE and BK |
| 1992 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU: Unsigned int 32 value |
| 1993 | * corresponding to respective AC |
| 1994 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU: Unsigned int 32 value |
| 1995 | * corresponding to respective AC |
| 1996 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST: Unsigned int 32 value |
| 1997 | * corresponding to respective AC |
| 1998 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST: Unsigned int 32 value |
| 1999 | * corresponding to respective AC |
| 2000 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU: Unsigned int 32 value |
| 2001 | * corresponding to respective AC |
| 2002 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU: Unsigned int 32 value |
| 2003 | * corresponding to respective AC |
| 2004 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST: Unsigned int 32 value |
| 2005 | * corresponding to respective AC |
| 2006 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES: Unsigned int 32 value |
| 2007 | * corresponding to respective AC |
| 2008 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT: Unsigned int 32 value |
| 2009 | * corresponding to respective AC |
| 2010 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN: Unsigned int 32 |
| 2011 | * value corresponding to respective AC |
| 2012 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX: Unsigned int 32 |
| 2013 | * value corresponding to respective AC |
| 2014 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG: Unsigned int 32 |
| 2015 | * value corresponding to respective AC |
| 2016 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES: Unsigned int 32 |
| 2017 | * value corresponding to respective AC |
| 2018 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS: Unsigned int 32 |
| 2019 | * value corresponding to respective AC |
| 2020 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE: Type = enum wifi_peer_type |
| 2021 | * Peer type, e.g., STA, AP, P2P GO etc |
| 2022 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS: MAC addr corresponding |
| 2023 | * to respective peer. An array of 6 Unsigned 8bit values |
| 2024 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES: Unsigned int 32bit |
| 2025 | * value representing capabilities corresponding to respective peer. |
| 2026 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES: Unsigned 32bit value. |
| 2027 | * Number of rates |
| 2028 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE: Unsigned int 8bit value: |
| 2029 | * 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved |
| 2030 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS: Unsigned int 8bit value: |
| 2031 | * 0:1x1, 1:2x2, 3:3x3, 4:4x4 |
| 2032 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW: Unsigned int 8bit value: |
| 2033 | * 0:20MHz, 1:40Mhz, 2:80Mhz, 3:160Mhz |
| 2034 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX: Unsigned int 8bit value: |
| 2035 | * OFDM/CCK rate code would be as per IEEE Std in the units of 0.5mbps |
| 2036 | * HT/VHT it would be mcs index |
| 2037 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE: Unsigned 32bit value. |
| 2038 | * Bit rate in units of 100Kbps |
| 2039 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU: Unsigned int 32bit value. |
| 2040 | * Number of successfully transmitted data pkts i.e., with ACK received |
| 2041 | * corresponding to the respective rate |
| 2042 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU: Unsigned int 32bit value. |
| 2043 | * Number of received data pkts corresponding to the respective rate |
| 2044 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST: Unsigned int 32bit value. |
| 2045 | * Number of data pkts losses, i.e., no ACK received corresponding to |
| 2046 | * the respective rate |
| 2047 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES: Unsigned int 32bit value. |
| 2048 | * Total number of data pkt retries for the respective rate |
| 2049 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT: Unsigned int 32bit value. |
| 2050 | * Total number of short data pkt retries for the respective rate |
| 2051 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG: Unsigned int 32bit value. |
| 2052 | * Total number of long data pkt retries for the respective rate |
| 2053 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID: Radio id |
| 2054 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME: Unsigned 32bit value. |
| 2055 | * Total number of msecs the radio is awake accruing over time |
| 2056 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME: Unsigned 32bit value. |
| 2057 | * Total number of msecs the radio is transmitting accruing over time |
| 2058 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME: Unsigned 32bit value. |
| 2059 | * Total number of msecs the radio is in active receive accruing over time |
| 2060 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN: Unsigned 32bit value. |
| 2061 | * Total number of msecs the radio is awake due to all scan accruing |
| 2062 | * over time |
| 2063 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD: Unsigned 32bit value. |
| 2064 | * Total number of msecs the radio is awake due to NAN accruing over time. |
| 2065 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN: Unsigned 32bit value. |
| 2066 | * Total number of msecs the radio is awake due to GSCAN accruing over time |
| 2067 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN: Unsigned 32bit value. |
| 2068 | * Total number of msecs the radio is awake due to roam scan accruing over |
| 2069 | * time. |
| 2070 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN: Unsigned 32bit value. |
| 2071 | * Total number of msecs the radio is awake due to PNO scan accruing over |
| 2072 | * time. |
| 2073 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20: Unsigned 32bit value. |
| 2074 | * Total number of msecs the radio is awake due to HS2.0 scans and GAS |
| 2075 | * exchange accruing over time. |
| 2076 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS: Unsigned 32bit value. |
| 2077 | * Number of channels |
| 2078 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH: |
| 2079 | * Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80, etc. |
| 2080 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ: |
| 2081 | * Unsigned 32bit value. Primary 20MHz channel. |
| 2082 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0: |
| 2083 | * Unsigned 32bit value. Center frequency (MHz) first segment. |
| 2084 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1: |
| 2085 | * Unsigned 32bit value. Center frequency (MHz) second segment. |
| 2086 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME: Unsigned int 32bit value |
| 2087 | * representing total number of msecs the radio is awake on that channel |
| 2088 | * accruing over time, corresponding to the respective channel. |
| 2089 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME: Unsigned int 32bit |
| 2090 | * value representing total number of msecs the CCA register is busy |
| 2091 | * accruing over time corresponding to the respective channel. |
| 2092 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS: Number of radios |
| 2093 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO: Channel info |
| 2094 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO: Peer info |
| 2095 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO: Peer rate info |
| 2096 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO: WMM info |
| 2097 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA: Unsigned 8bit value. |
| 2098 | * Used by the driver; if set to 1, it indicates that more stats, e.g., |
| 2099 | * peers or radio, are to follow in the next |
| 2100 | * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event. Otherwise, it |
| 2101 | * is set to 0. |
| 2102 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET: tsf offset |
| 2103 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED: leaky ap detected |
| 2104 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED: |
| 2105 | * average number of frames leaked |
| 2106 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME: guard time |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 2107 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE: Link Layer stats type |
| 2108 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS: LL Radio Number of |
| 2109 | * Tx Levels |
| 2110 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL:Number of msecs the |
| 2111 | * radio spent in transmitting for each power level |
gaolez | db66e61 | 2017-03-16 18:32:15 +0800 | [diff] [blame] | 2112 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT: RTS successful count |
| 2113 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT: RTS fail count |
| 2114 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT: PPDU successful count |
| 2115 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT: PPDU fail count |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2116 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST: After last |
| 2117 | * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value |
| 2118 | */ |
| 2119 | |
| 2120 | enum qca_wlan_vendor_attr_ll_stats_results { |
| 2121 | QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0, |
| 2122 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1, |
| 2123 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 2124 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2, |
| 2125 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3, |
| 2126 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4, |
| 2127 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5, |
| 2128 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6, |
| 2129 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7, |
| 2130 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8, |
| 2131 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9, |
| 2132 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10, |
| 2133 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11, |
| 2134 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12, |
| 2135 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13, |
| 2136 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14, |
| 2137 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15, |
| 2138 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16, |
| 2139 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2140 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 2141 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18, |
| 2142 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19, |
| 2143 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20, |
| 2144 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21, |
| 2145 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22, |
| 2146 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23, |
| 2147 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24, |
| 2148 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25, |
| 2149 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26, |
| 2150 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27, |
| 2151 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28, |
| 2152 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29, |
| 2153 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30, |
| 2154 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31, |
| 2155 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2156 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 2157 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2158 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 2159 | QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34, |
| 2160 | QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35, |
| 2161 | QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36, |
| 2162 | QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2163 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 2164 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38, |
| 2165 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39, |
| 2166 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40, |
| 2167 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41, |
| 2168 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2169 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 2170 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43, |
| 2171 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44, |
| 2172 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45, |
| 2173 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46, |
| 2174 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47, |
| 2175 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2176 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 2177 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49, |
| 2178 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50, |
| 2179 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51, |
| 2180 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52, |
| 2181 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53, |
| 2182 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54, |
| 2183 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55, |
| 2184 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56, |
| 2185 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57, |
| 2186 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58, |
| 2187 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2188 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 2189 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60, |
| 2190 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61, |
| 2191 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62, |
| 2192 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2193 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 2194 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64, |
| 2195 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2196 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 2197 | QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66, |
| 2198 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67, |
| 2199 | QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68, |
| 2200 | QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69, |
| 2201 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2202 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 2203 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2204 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 2205 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72, |
| 2206 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73, |
| 2207 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74, |
| 2208 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2209 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 2210 | QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2211 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 2212 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2213 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 2214 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78, |
| 2215 | |
| 2216 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79, |
| 2217 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80, |
| 2218 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81, |
| 2219 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2220 | |
| 2221 | /* keep last */ |
| 2222 | QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST, |
| 2223 | QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX = |
| 2224 | QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1 |
| 2225 | }; |
| 2226 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 2227 | enum qca_wlan_vendor_attr_ll_stats_type { |
| 2228 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0, |
| 2229 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1, |
| 2230 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2, |
| 2231 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3, |
| 2232 | |
| 2233 | /* keep last */ |
| 2234 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST, |
| 2235 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX = |
| 2236 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1, |
| 2237 | }; |
| 2238 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2239 | #endif /* WLAN_FEATURE_LINK_LAYER_STATS */ |
| 2240 | |
| 2241 | /** |
| 2242 | * enum qca_wlan_vendor_attr_get_supported_features - get supported feature |
| 2243 | * |
| 2244 | * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value |
| 2245 | * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value |
| 2246 | * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last |
| 2247 | * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value |
| 2248 | */ |
| 2249 | enum qca_wlan_vendor_attr_get_supported_features { |
| 2250 | QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0, |
| 2251 | QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1, |
| 2252 | QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST, |
| 2253 | QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX = |
| 2254 | QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1, |
| 2255 | }; |
| 2256 | |
| 2257 | /** |
| 2258 | * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui |
| 2259 | * |
| 2260 | * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value |
| 2261 | * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit |
| 2262 | * value |
| 2263 | * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last |
| 2264 | * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value |
| 2265 | */ |
| 2266 | enum qca_wlan_vendor_attr_set_scanning_mac_oui { |
| 2267 | QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0, |
| 2268 | QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1, |
| 2269 | QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST, |
| 2270 | QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX = |
| 2271 | QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1, |
| 2272 | }; |
| 2273 | |
| 2274 | /** |
| 2275 | * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes |
| 2276 | * |
| 2277 | * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan |
| 2278 | * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes |
| 2279 | * with frequencies to be scanned (in MHz) |
| 2280 | * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned |
| 2281 | * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported |
| 2282 | * rates to be included |
| 2283 | * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests |
| 2284 | * at non CCK rate in 2GHz band |
| 2285 | * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags |
| 2286 | * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the |
| 2287 | * driver for the specific scan request |
| 2288 | * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan |
| 2289 | * request decoded as in enum scan_status |
| 2290 | * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation |
| 2291 | * scan flag is set |
| 2292 | * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with |
| 2293 | * randomisation |
| 2294 | * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: BSSID provided to do scan for specific BSS |
| 2295 | */ |
| 2296 | enum qca_wlan_vendor_attr_scan { |
| 2297 | QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0, |
| 2298 | QCA_WLAN_VENDOR_ATTR_SCAN_IE, |
| 2299 | QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES, |
| 2300 | QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS, |
| 2301 | QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES, |
| 2302 | QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE, |
| 2303 | QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS, |
| 2304 | QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE, |
| 2305 | QCA_WLAN_VENDOR_ATTR_SCAN_STATUS, |
| 2306 | QCA_WLAN_VENDOR_ATTR_SCAN_MAC, |
| 2307 | QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK, |
| 2308 | QCA_WLAN_VENDOR_ATTR_SCAN_BSSID, |
| 2309 | QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST, |
| 2310 | QCA_WLAN_VENDOR_ATTR_SCAN_MAX = |
| 2311 | QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1 |
| 2312 | }; |
| 2313 | |
| 2314 | /** |
| 2315 | * enum scan_status - Specifies the valid values the vendor scan attribute |
| 2316 | * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take |
| 2317 | * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with |
| 2318 | * new scan results |
| 2319 | * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between |
| 2320 | */ |
| 2321 | enum scan_status { |
| 2322 | VENDOR_SCAN_STATUS_NEW_RESULTS, |
| 2323 | VENDOR_SCAN_STATUS_ABORTED, |
| 2324 | VENDOR_SCAN_STATUS_MAX, |
| 2325 | }; |
| 2326 | |
| 2327 | /** |
| 2328 | * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix |
| 2329 | * |
| 2330 | * NL attributes for data used by |
| 2331 | * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command. |
| 2332 | * |
| 2333 | * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value |
| 2334 | * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX: |
| 2335 | * Unsigned 32-bit value |
| 2336 | * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE: |
| 2337 | * Unsigned 32-bit value |
| 2338 | * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An |
| 2339 | * array of SET_SIZE x Unsigned 32bit values representing concurrency |
| 2340 | * combinations |
| 2341 | * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last |
| 2342 | * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value |
| 2343 | */ |
| 2344 | enum qca_wlan_vendor_attr_get_concurrency_matrix { |
| 2345 | QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0, |
| 2346 | QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX |
| 2347 | = 1, |
| 2348 | QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2, |
| 2349 | QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3, |
| 2350 | QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST, |
| 2351 | QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX = |
| 2352 | QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1, |
| 2353 | }; |
| 2354 | |
| 2355 | /** |
| 2356 | * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag |
| 2357 | * |
| 2358 | * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value |
| 2359 | * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value |
| 2360 | * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last |
| 2361 | * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value |
| 2362 | */ |
| 2363 | enum qca_wlan_vendor_attr_set_no_dfs_flag { |
| 2364 | QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0, |
| 2365 | QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1, |
| 2366 | QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST, |
| 2367 | QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX = |
| 2368 | QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1, |
| 2369 | }; |
| 2370 | |
| 2371 | /** |
| 2372 | * enum qca_vendor_attr_wisa_cmd |
| 2373 | * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr |
| 2374 | * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32) |
| 2375 | * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last |
| 2376 | * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value |
| 2377 | * WISA setup vendor commands |
| 2378 | */ |
| 2379 | enum qca_vendor_attr_wisa_cmd { |
| 2380 | QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0, |
| 2381 | QCA_WLAN_VENDOR_ATTR_WISA_MODE, |
| 2382 | QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST, |
| 2383 | QCA_WLAN_VENDOR_ATTR_WISA_MAX = |
| 2384 | QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1 |
| 2385 | }; |
| 2386 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 2387 | enum qca_roaming_policy { |
| 2388 | QCA_ROAMING_NOT_ALLOWED, |
| 2389 | QCA_ROAMING_ALLOWED_WITHIN_ESS, |
| 2390 | }; |
| 2391 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2392 | /** |
sheenam monga | af7c3c9 | 2019-04-03 17:48:19 +0530 | [diff] [blame] | 2393 | * enum qca_roam_reason - Represents the reason codes for roaming. Used by |
| 2394 | * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON. |
| 2395 | * |
| 2396 | * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below |
| 2397 | * reasons. |
| 2398 | * |
| 2399 | * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached |
| 2400 | * the configured threshold. |
| 2401 | * |
| 2402 | * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured |
| 2403 | * beacon misses from the then connected AP. |
| 2404 | * |
| 2405 | * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported |
| 2406 | * by the connected AP. |
| 2407 | * |
| 2408 | * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a |
| 2409 | * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is |
| 2410 | * not poor. |
| 2411 | * |
| 2412 | * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel |
| 2413 | * or environment being very noisy / congested. |
| 2414 | * |
| 2415 | * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request |
| 2416 | * from the user (user space). |
| 2417 | * |
| 2418 | * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from |
| 2419 | * connected AP. |
| 2420 | * |
| 2421 | * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization |
| 2422 | * breaching out the configured threshold. |
| 2423 | * |
| 2424 | */ |
| 2425 | enum qca_roam_reason { |
| 2426 | QCA_ROAM_REASON_UNKNOWN, |
| 2427 | QCA_ROAM_REASON_PER, |
| 2428 | QCA_ROAM_REASON_BEACON_MISS, |
| 2429 | QCA_ROAM_REASON_POOR_RSSI, |
| 2430 | QCA_ROAM_REASON_BETTER_RSSI, |
| 2431 | QCA_ROAM_REASON_CONGESTION, |
| 2432 | QCA_ROAM_REASON_USER_TRIGGER, |
| 2433 | QCA_ROAM_REASON_BTM, |
| 2434 | QCA_ROAM_REASON_BSS_LOAD, |
| 2435 | }; |
| 2436 | |
| 2437 | /** |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2438 | * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming |
| 2439 | * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID: BSSID of the roamed AP |
| 2440 | * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE |
| 2441 | * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE |
| 2442 | * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status |
| 2443 | * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter |
| 2444 | * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK |
| 2445 | * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK |
| 2446 | * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status |
Mukul Sharma | 9b53a47 | 2017-05-17 18:06:43 +0530 | [diff] [blame] | 2447 | * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS: |
| 2448 | * Indicates the status of re-association requested by user space for |
| 2449 | * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID. |
| 2450 | * Type u16. |
| 2451 | * Represents the status code from AP. Use |
| 2452 | * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the |
| 2453 | * real status code for failures. |
| 2454 | * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION: |
| 2455 | * This attribute indicates that the old association was maintained when |
| 2456 | * a re-association is requested by user space and that re-association |
| 2457 | * attempt fails (i.e., cannot connect to the requested BSS, but can |
| 2458 | * remain associated with the BSS with which the association was in |
| 2459 | * place when being requested to roam). Used along with |
| 2460 | * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current |
| 2461 | * re-association status. Type flag. |
| 2462 | * This attribute is applicable only for re-association failure cases. |
Vignesh Viswanathan | 051ef2e | 2017-09-25 14:36:38 +0530 | [diff] [blame] | 2463 | * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK |
| 2464 | * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID |
| 2465 | * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next |
| 2466 | * seq number |
sheenam monga | af7c3c9 | 2019-04-03 17:48:19 +0530 | [diff] [blame] | 2467 | * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value |
| 2468 | * representing the reasons for the roaming. Defined by enum |
| 2469 | * qca_roam_reason. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2470 | */ |
| 2471 | enum qca_wlan_vendor_attr_roam_auth { |
| 2472 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0, |
| 2473 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID, |
| 2474 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE, |
| 2475 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE, |
| 2476 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED, |
| 2477 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR, |
| 2478 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK, |
| 2479 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK, |
| 2480 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS, |
Mukul Sharma | 9b53a47 | 2017-05-17 18:06:43 +0530 | [diff] [blame] | 2481 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS, |
| 2482 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION, |
Vignesh Viswanathan | 051ef2e | 2017-09-25 14:36:38 +0530 | [diff] [blame] | 2483 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK, |
| 2484 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID, |
| 2485 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM, |
sheenam monga | af7c3c9 | 2019-04-03 17:48:19 +0530 | [diff] [blame] | 2486 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2487 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST, |
| 2488 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX = |
| 2489 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1 |
| 2490 | }; |
| 2491 | |
| 2492 | /** |
| 2493 | * enum qca_wlan_vendor_attr_wifi_config - wifi config |
| 2494 | * |
| 2495 | * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value |
| 2496 | * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM |
| 2497 | * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor |
| 2498 | * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time |
| 2499 | * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last |
| 2500 | * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value |
| 2501 | */ |
| 2502 | enum qca_wlan_vendor_attr_wifi_config { |
| 2503 | QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0, |
| 2504 | QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1, |
| 2505 | QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2, |
| 2506 | QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3, |
| 2507 | |
| 2508 | /* keep last */ |
| 2509 | QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST, |
| 2510 | QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX = |
| 2511 | QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1, |
| 2512 | }; |
| 2513 | |
| 2514 | /** |
| 2515 | * enum qca_wlan_epno_type - the type of request to the EPNO command |
| 2516 | * @QCA_WLAN_EPNO: epno type request |
| 2517 | * @QCA_WLAN_PNO: pno type request |
| 2518 | */ |
| 2519 | enum qca_wlan_epno_type { |
| 2520 | QCA_WLAN_EPNO, |
| 2521 | QCA_WLAN_PNO |
| 2522 | }; |
| 2523 | |
| 2524 | /** |
| 2525 | * enum qca_wlan_vendor_attr_pno_config_params - pno config params |
| 2526 | * |
| 2527 | * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value |
| 2528 | * |
| 2529 | * NL attributes for data used by |
| 2530 | * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command. |
| 2531 | * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM: |
| 2532 | * Unsigned 32-bit value; pno passpoint number of networks |
| 2533 | * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY: |
| 2534 | * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_* |
| 2535 | * attributes. Array size = |
| 2536 | * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM. |
| 2537 | * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID: |
| 2538 | * Unsigned 32-bit value; network id |
| 2539 | * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM: |
| 2540 | * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded |
| 2541 | * realm, 0 if unspecified. |
| 2542 | * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID: |
| 2543 | * An array of 16 x Unsigned 32-bit value; roaming consortium ids |
| 2544 | * to match, 0 if unspecified. |
| 2545 | * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN: |
| 2546 | * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if |
| 2547 | * unspecified. |
| 2548 | * |
| 2549 | * NL attributes for data used by |
| 2550 | * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command. |
| 2551 | * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS: |
| 2552 | * Unsigned 32-bit value; set pno number of networks |
| 2553 | * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST: |
| 2554 | * Array of nested |
| 2555 | * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_* |
| 2556 | * attributes. Array size = |
| 2557 | * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS |
| 2558 | * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID: |
| 2559 | * An array of 33 x Unsigned 8-bit value; NULL terminated SSID |
| 2560 | * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD: |
| 2561 | * Signed 8-bit value; threshold for considering this SSID as found, |
| 2562 | * required granularity for this threshold is 4dBm to 8dBm |
| 2563 | * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS: |
| 2564 | * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX |
| 2565 | * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT: |
| 2566 | * Unsigned 8-bit value; auth bit field for matching WPA IE |
| 2567 | * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE |
| 2568 | * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type |
| 2569 | *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST |
| 2570 | * Nested attribute to send the channel list |
| 2571 | *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL |
| 2572 | * Unsigned 32-bit value; indicates the Interval between PNO scan |
| 2573 | * cycles in msec |
| 2574 | *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI |
| 2575 | * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered |
| 2576 | *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI |
| 2577 | * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered |
| 2578 | * This attribute is obsolete now. |
| 2579 | *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX |
| 2580 | * Signed 32-bit value; the maximum score that a network |
| 2581 | * can have before bonuses |
| 2582 | *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS |
| 2583 | * Signed 32-bit value; only report when there is a network's |
| 2584 | * score this much higher han the current connection |
| 2585 | *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS |
| 2586 | * Signed 32-bit value; score bonus for all networks with |
| 2587 | * the same network flag |
| 2588 | *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS |
| 2589 | * Signed 32-bit value; score bonus for networks that are not open |
| 2590 | *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS |
| 2591 | * Signed 32-bit value; 5GHz RSSI score bonus applied to all |
| 2592 | * 5GHz networks |
Ashish Kumar Dhanotiya | cc0b0da | 2017-08-21 13:59:50 +0530 | [diff] [blame] | 2593 | *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID |
| 2594 | * Unsigned 32-bit value, representing the PNO Request ID |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2595 | * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last |
| 2596 | * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max |
| 2597 | */ |
| 2598 | enum qca_wlan_vendor_attr_pno_config_params { |
| 2599 | QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0, |
| 2600 | |
| 2601 | QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1, |
| 2602 | QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2, |
| 2603 | QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3, |
| 2604 | QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4, |
| 2605 | QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5, |
| 2606 | QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6, |
| 2607 | |
| 2608 | QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7, |
| 2609 | QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8, |
| 2610 | QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9, |
| 2611 | QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10, |
| 2612 | QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11, |
| 2613 | QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12, |
| 2614 | QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13, |
| 2615 | QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14, |
| 2616 | QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15, |
| 2617 | QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16, |
| 2618 | QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17, |
| 2619 | QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18, |
| 2620 | QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19, |
| 2621 | QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20, |
| 2622 | QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21, |
| 2623 | QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22, |
| 2624 | |
Ashish Kumar Dhanotiya | cc0b0da | 2017-08-21 13:59:50 +0530 | [diff] [blame] | 2625 | QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2626 | /* keep last */ |
| 2627 | QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST, |
| 2628 | QCA_WLAN_VENDOR_ATTR_PNO_MAX = |
| 2629 | QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1, |
| 2630 | }; |
| 2631 | |
| 2632 | /** |
Srinivas Dasari | a75e44c | 2019-08-13 15:27:04 +0530 | [diff] [blame] | 2633 | * enum qca_scan_freq_list_type: Frequency list types |
| 2634 | * |
| 2635 | * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list |
| 2636 | * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as |
| 2637 | * a preferred frequency list for roaming. |
| 2638 | * |
| 2639 | * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list |
| 2640 | * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as |
| 2641 | * a specific frequency list for roaming. |
| 2642 | */ |
| 2643 | enum qca_scan_freq_list_type { |
| 2644 | QCA_PREFERRED_SCAN_FREQ_LIST = 1, |
| 2645 | QCA_SPECIFIC_SCAN_FREQ_LIST = 2, |
| 2646 | }; |
| 2647 | |
| 2648 | /** |
| 2649 | * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme |
| 2650 | * |
| 2651 | * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values. |
| 2652 | * List of frequencies in MHz to be considered for a roam scan. |
| 2653 | * |
| 2654 | * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value. |
| 2655 | * Type of frequency list scheme being configured/gotten as defined by the |
| 2656 | * enum qca_scan_freq_list_type. |
| 2657 | */ |
| 2658 | enum qca_vendor_attr_scan_freq_list_scheme { |
| 2659 | QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1, |
| 2660 | QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2, |
| 2661 | |
| 2662 | /* keep last */ |
| 2663 | QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST, |
| 2664 | QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX = |
| 2665 | QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1, |
| 2666 | }; |
| 2667 | |
| 2668 | /* |
| 2669 | * enum qca_vendor_roam_triggers: Bitmap of roaming triggers |
| 2670 | * |
| 2671 | * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on |
| 2672 | * a bad packet error rates (PER). |
| 2673 | * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered |
| 2674 | * based on beacon misses from the connected AP. |
| 2675 | * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered |
| 2676 | * due to poor RSSI of the connected AP. |
| 2677 | * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered |
| 2678 | * upon finding a BSSID with a better RSSI than the connected BSSID. |
| 2679 | * Here the RSSI of the current BSSID need not be poor. |
| 2680 | * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered |
| 2681 | * by triggering a periodic scan to find a better AP to roam. |
| 2682 | * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered |
| 2683 | * when the connected channel environment is too noisy/congested. |
| 2684 | * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered |
| 2685 | * when BTM Request frame is received from the connected AP. |
| 2686 | * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered |
| 2687 | * when the channel utilization is goes above the configured threshold. |
| 2688 | * |
| 2689 | * Set the corresponding roam trigger reason bit to consider it for roam |
| 2690 | * trigger. |
| 2691 | * Userspace can set multiple bits and send to the driver. The driver shall |
| 2692 | * consider all of them to trigger/initiate a roam scan. |
| 2693 | */ |
| 2694 | enum qca_vendor_roam_triggers { |
| 2695 | QCA_ROAM_TRIGGER_REASON_PER = 1 << 0, |
| 2696 | QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1, |
| 2697 | QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2, |
| 2698 | QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3, |
| 2699 | QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4, |
| 2700 | QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5, |
| 2701 | QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6, |
| 2702 | QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7, |
| 2703 | }; |
| 2704 | |
| 2705 | /** |
| 2706 | * enum qca_vendor_attr_roam_candidate_selection_criteria: |
| 2707 | * |
| 2708 | * Each attribute carries a weightage in percentage (%). |
| 2709 | * |
| 2710 | * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value. |
| 2711 | * Represents the weightage to be given for the RSSI selection |
| 2712 | * criteria among other parameters. |
| 2713 | * |
| 2714 | * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value. |
| 2715 | * Represents the weightage to be given for the rate selection |
| 2716 | * criteria among other parameters. |
| 2717 | * |
| 2718 | * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value. |
| 2719 | * Represents the weightage to be given for the band width selection |
| 2720 | * criteria among other parameters. |
| 2721 | * |
| 2722 | * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value. |
| 2723 | * Represents the weightage to be given for the band selection |
| 2724 | * criteria among other parameters. |
| 2725 | * |
| 2726 | * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value. |
| 2727 | * Represents the weightage to be given for the NSS selection |
| 2728 | * criteria among other parameters. |
| 2729 | * |
| 2730 | * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value. |
| 2731 | * Represents the weightage to be given for the channel congestion |
| 2732 | * selection criteria among other parameters. |
| 2733 | * |
| 2734 | * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value. |
| 2735 | * Represents the weightage to be given for the beamforming selection |
| 2736 | * criteria among other parameters. |
| 2737 | * |
| 2738 | * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value. |
| 2739 | * Represents the weightage to be given for the OCE selection |
| 2740 | * criteria among other parameters. |
| 2741 | */ |
| 2742 | enum qca_vendor_attr_roam_candidate_selection_criteria { |
| 2743 | QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1, |
| 2744 | QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2, |
| 2745 | QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3, |
| 2746 | QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4, |
| 2747 | QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5, |
| 2748 | QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6, |
| 2749 | QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7, |
| 2750 | QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8, |
| 2751 | |
| 2752 | /* keep last */ |
| 2753 | QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST, |
| 2754 | QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX = |
| 2755 | QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1, |
| 2756 | }; |
| 2757 | |
| 2758 | /** |
| 2759 | * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration |
| 2760 | * The following attributes are used to set/get/clear the respective |
| 2761 | * configurations to/from the driver. |
| 2762 | * For the get, the attribute for the configuration to be queried shall |
| 2763 | * carry any of its acceptable values to the driver. In return, the driver |
| 2764 | * shall send the configured values within the same attribute to the user |
| 2765 | * space. |
| 2766 | * |
| 2767 | * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value. |
| 2768 | * Signifies to enable/disable roam control in driver. |
| 2769 | * 1-enable, 0-disable |
| 2770 | * Enable: Mandates the driver to do the further roams using the |
| 2771 | * configuration parameters set through |
| 2772 | * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. |
| 2773 | * Disable: Disables the driver/firmware roaming triggered through |
| 2774 | * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is |
| 2775 | * expected to continue with the default configurations. |
| 2776 | * |
| 2777 | * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value. |
| 2778 | * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET. |
| 2779 | * Roam control status is obtained through this attribute. |
| 2780 | * |
| 2781 | * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the |
| 2782 | * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET |
| 2783 | * is to be cleared in the driver. |
| 2784 | * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR |
| 2785 | * and shall be ignored if used with other sub commands. |
| 2786 | * If this attribute is specified along with subcmd |
| 2787 | * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore |
| 2788 | * all other attributes, if there are any. |
| 2789 | * If this attribute is not specified when the subcmd |
| 2790 | * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall |
| 2791 | * clear the data corresponding to the attributes specified. |
| 2792 | * |
| 2793 | * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the |
| 2794 | * list of frequencies and its type, represented by |
| 2795 | * enum qca_vendor_attr_scan_freq_list_scheme. |
| 2796 | * Frequency list and its type are mandatory for this attribute to set |
| 2797 | * the frequencies. |
| 2798 | * Frequency type is mandatory for this attribute to get the frequencies |
| 2799 | * and the frequency list is obtained through |
| 2800 | * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST. |
| 2801 | * Frequency list type is mandatory for this attribute to clear the |
| 2802 | * frequencies. |
| 2803 | * |
| 2804 | * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value. |
| 2805 | * Carries the value of scan period in seconds to set. |
| 2806 | * The value of scan period is obtained with the same attribute for get. |
| 2807 | * Clears the scan period in the driver when specified with clear command. |
| 2808 | * Scan period is the idle time in seconds between each subsequent |
| 2809 | * channel scans. |
| 2810 | * |
| 2811 | * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value. |
| 2812 | * Carries the value of full scan period in seconds to set. |
| 2813 | * The value of full scan period is obtained with the same attribute for |
| 2814 | * get. |
| 2815 | * Clears the full scan period in the driver when specified with clear |
| 2816 | * command. Full scan period is the idle period in seconds between two |
| 2817 | * successive full channel roam scans. |
| 2818 | * |
| 2819 | * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value. |
| 2820 | * Carries a bitmap of the roam triggers specified in |
| 2821 | * enum qca_vendor_roam_triggers. |
| 2822 | * The driver shall enable roaming by enabling corresponding roam triggers |
| 2823 | * based on the trigger bits sent with this attribute. |
| 2824 | * If this attribute is not configured, the driver shall proceed with |
| 2825 | * default behavior. |
| 2826 | * The bitmap configured is obtained with the same attribute for get. |
| 2827 | * Clears the bitmap configured in driver when specified with clear |
| 2828 | * command. |
| 2829 | * |
| 2830 | * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the |
| 2831 | * weightage in percentage (%) to be given for each selection criteria. |
| 2832 | * Different roam candidate selection criteria are represented by |
| 2833 | * enum qca_vendor_attr_roam_candidate_selection_criteria. |
| 2834 | * The driver shall select the roam candidate based on corresponding |
| 2835 | * candidate selection scores sent. |
| 2836 | * |
| 2837 | * An empty nested attribute is used to indicate that no specific |
| 2838 | * preference score/criteria is configured (i.e., to disable this mechanism |
| 2839 | * in the set case and to show that the mechanism is disabled in the get |
| 2840 | * case). |
| 2841 | * |
| 2842 | * Userspace can send multiple attributes out of this enum to the driver. |
| 2843 | * Since this attribute represents the weight/percentage of preference for |
| 2844 | * the respective selection criteria, it is preferred to configure 100% |
| 2845 | * total weightage. The value in each attribute or cumulative weight of the |
| 2846 | * values in all the nested attributes should not exceed 100%. The driver |
| 2847 | * shall reject such configuration. |
| 2848 | * |
| 2849 | * If the weights configured through this attribute are less than 100%, |
| 2850 | * the driver shall honor the weights (x%) passed for the corresponding |
| 2851 | * selection criteria and choose/distribute rest of the weight (100-x)% |
| 2852 | * for the other selection criteria, based on its internal logic. |
| 2853 | * |
| 2854 | * The selection criteria configured is obtained with the same |
| 2855 | * attribute for get. |
| 2856 | * |
| 2857 | * Clears the selection criteria configured in the driver when specified |
| 2858 | * with clear command. |
| 2859 | */ |
| 2860 | enum qca_vendor_attr_roam_control { |
| 2861 | QCA_ATTR_ROAM_CONTROL_ENABLE = 1, |
| 2862 | QCA_ATTR_ROAM_CONTROL_STATUS = 2, |
| 2863 | QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3, |
| 2864 | QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4, |
| 2865 | QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5, |
| 2866 | QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6, |
| 2867 | QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7, |
| 2868 | QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8, |
| 2869 | |
| 2870 | /* keep last */ |
| 2871 | QCA_ATTR_ROAM_CONTROL_AFTER_LAST, |
| 2872 | QCA_ATTR_ROAM_CONTROL_MAX = |
| 2873 | QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1, |
| 2874 | }; |
| 2875 | |
| 2876 | /** |
Srinivas Dasari | b72b2d7 | 2019-08-13 11:41:36 +0530 | [diff] [blame] | 2877 | * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by |
| 2878 | * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2879 | * |
Srinivas Dasari | b72b2d7 | 2019-08-13 11:41:36 +0530 | [diff] [blame] | 2880 | * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value. |
| 2881 | * Represents the different roam sub commands referred by |
Srinivas Dasari | 30c9340 | 2019-08-13 11:45:04 +0530 | [diff] [blame] | 2882 | * enum qca_wlan_vendor_roaming_subcmd. |
Srinivas Dasari | b72b2d7 | 2019-08-13 11:41:36 +0530 | [diff] [blame] | 2883 | * |
| 2884 | * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value. |
| 2885 | * Represents the Request ID for the specific set of commands. |
| 2886 | * This also helps to map specific set of commands to the respective |
| 2887 | * ID / client. e.g., helps to identify the user entity configuring the |
| 2888 | * Blacklist BSSID and accordingly clear the respective ones with the |
| 2889 | * matching ID. |
| 2890 | * |
| 2891 | * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned |
| 2892 | * 32-bit value.Represents the number of whitelist SSIDs configured. |
| 2893 | * |
| 2894 | * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute |
| 2895 | * to carry the list of Whitelist SSIDs. |
| 2896 | * |
| 2897 | * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute, |
| 2898 | * 0..32 octets). Represents the white list SSID. Whitelist SSIDs |
| 2899 | * represent the list of SSIDs to which the firmware/driver can consider |
| 2900 | * to roam to. |
| 2901 | * |
| 2902 | * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when |
| 2903 | * comparing with a 2.4GHz BSSID. They are not applied when comparing two |
| 2904 | * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD - |
Srinivas Dasari | 30c9340 | 2019-08-13 11:45:04 +0530 | [diff] [blame] | 2905 | * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS. |
Srinivas Dasari | b72b2d7 | 2019-08-13 11:41:36 +0530 | [diff] [blame] | 2906 | * |
| 2907 | * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit |
| 2908 | * value, RSSI threshold above which 5GHz RSSI is favored. |
| 2909 | * |
| 2910 | * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit |
| 2911 | * value, RSSI threshold below which 5GHz RSSI is penalized. |
| 2912 | * |
| 2913 | * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit |
| 2914 | * value, factor by which 5GHz RSSI is boosted. |
| 2915 | * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor |
| 2916 | * |
| 2917 | * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit |
| 2918 | * value, factor by which 5GHz RSSI is penalized. |
| 2919 | * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor |
| 2920 | * |
| 2921 | * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit |
| 2922 | * value, maximum boost that can be applied to a 5GHz RSSI. |
| 2923 | * |
| 2924 | * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit |
| 2925 | * value, boost applied to current BSSID to ensure the currently |
| 2926 | * associated BSSID is favored so as to prevent ping-pong situations. |
| 2927 | * |
| 2928 | * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit |
| 2929 | * value, RSSI below which "Alert" roam is enabled. |
| 2930 | * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID |
| 2931 | * because the RSSI is low, or because many successive beacons have been |
| 2932 | * lost or other bad link conditions. |
| 2933 | * |
| 2934 | * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit |
| 2935 | * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where |
| 2936 | * firmware is hunting for a better BSSID or white listed SSID even though |
| 2937 | * the RSSI of the link is good. The parameters enabling the roaming are |
| 2938 | * configured through the PARAM_A_BAND_XX attrbutes. |
| 2939 | * |
| 2940 | * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute, |
| 2941 | * represents the BSSIDs preferred over others while evaluating them |
| 2942 | * for the roaming. |
| 2943 | * |
| 2944 | * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned |
| 2945 | * 32-bit value. Represents the number of preferred BSSIDs set. |
| 2946 | * |
| 2947 | * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC |
| 2948 | * address representing the BSSID to be preferred. |
| 2949 | * |
| 2950 | * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed |
| 2951 | * 32-bit value, representing the modifier to be applied to the RSSI of |
| 2952 | * the BSSID for the purpose of comparing it with other roam candidate. |
| 2953 | * |
| 2954 | * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute, |
| 2955 | * represents the BSSIDs to get blacklisted for roaming. |
| 2956 | * |
| 2957 | * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned |
| 2958 | * 32-bit value, represents the number of blacklisted BSSIDs. |
| 2959 | * |
| 2960 | * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC |
| 2961 | * address representing the Blacklisted BSSID. |
| 2962 | * |
| 2963 | * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute, |
| 2964 | * indicates this BSSID blacklist as a hint to the driver. The driver can |
| 2965 | * select this BSSID in the worst case (when no other BSSIDs are better). |
Srinivas Dasari | a75e44c | 2019-08-13 15:27:04 +0530 | [diff] [blame] | 2966 | * |
| 2967 | * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to |
| 2968 | * set/get/clear the roam control config as |
| 2969 | * defined @enum qca_vendor_attr_roam_control. |
| 2970 | * |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 2971 | * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last |
| 2972 | * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max |
| 2973 | */ |
| 2974 | enum qca_wlan_vendor_attr_roaming_config_params { |
| 2975 | QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0, |
| 2976 | |
| 2977 | QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1, |
| 2978 | QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2, |
| 2979 | |
| 2980 | QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3, |
| 2981 | QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4, |
| 2982 | QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5, |
| 2983 | |
| 2984 | QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6, |
| 2985 | QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7, |
| 2986 | QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8, |
| 2987 | QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9, |
| 2988 | QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10, |
| 2989 | QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11, |
| 2990 | QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12, |
| 2991 | |
| 2992 | QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13, |
| 2993 | |
| 2994 | QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14, |
| 2995 | QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15, |
| 2996 | QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16, |
| 2997 | QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17, |
| 2998 | |
| 2999 | QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18, |
| 3000 | QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19, |
| 3001 | QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20, |
gaurank kathpalia | 9f525cb | 2019-05-28 18:21:18 +0530 | [diff] [blame] | 3002 | QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3003 | |
Srinivas Dasari | a75e44c | 2019-08-13 15:27:04 +0530 | [diff] [blame] | 3004 | QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22, |
| 3005 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3006 | /* keep last */ |
| 3007 | QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST, |
| 3008 | QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX = |
| 3009 | QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1, |
| 3010 | }; |
| 3011 | |
| 3012 | /** |
Srinivas Dasari | 30c9340 | 2019-08-13 11:45:04 +0530 | [diff] [blame] | 3013 | * enum qca_wlan_vendor_roaming_subcmd: Referred by |
Srinivas Dasari | b72b2d7 | 2019-08-13 11:41:36 +0530 | [diff] [blame] | 3014 | * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3015 | * |
Srinivas Dasari | 30c9340 | 2019-08-13 11:45:04 +0530 | [diff] [blame] | 3016 | * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to |
Srinivas Dasari | b72b2d7 | 2019-08-13 11:41:36 +0530 | [diff] [blame] | 3017 | * configure the white list SSIDs. These are configured through |
| 3018 | * the following attributes. |
| 3019 | * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS, |
| 3020 | * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST, |
| 3021 | * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID |
| 3022 | * |
Srinivas Dasari | 30c9340 | 2019-08-13 11:45:04 +0530 | [diff] [blame] | 3023 | * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to |
Srinivas Dasari | b72b2d7 | 2019-08-13 11:41:36 +0530 | [diff] [blame] | 3024 | * configure the Roam params. These parameters are evaluated on the extscan |
| 3025 | * results. Refers the attributes PARAM_A_BAND_XX above to configure the |
| 3026 | * params. |
| 3027 | * |
Srinivas Dasari | 30c9340 | 2019-08-13 11:45:04 +0530 | [diff] [blame] | 3028 | * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses |
Srinivas Dasari | b72b2d7 | 2019-08-13 11:41:36 +0530 | [diff] [blame] | 3029 | * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE |
| 3030 | * to enable/disable Lazy roam. |
| 3031 | * |
Srinivas Dasari | 30c9340 | 2019-08-13 11:45:04 +0530 | [diff] [blame] | 3032 | * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID |
Srinivas Dasari | b72b2d7 | 2019-08-13 11:41:36 +0530 | [diff] [blame] | 3033 | * preference. Contains the attribute |
| 3034 | * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID |
| 3035 | * preference. |
| 3036 | * |
Srinivas Dasari | 30c9340 | 2019-08-13 11:45:04 +0530 | [diff] [blame] | 3037 | * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params |
Srinivas Dasari | b72b2d7 | 2019-08-13 11:41:36 +0530 | [diff] [blame] | 3038 | * |
Srinivas Dasari | 30c9340 | 2019-08-13 11:45:04 +0530 | [diff] [blame] | 3039 | * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist |
Srinivas Dasari | b72b2d7 | 2019-08-13 11:41:36 +0530 | [diff] [blame] | 3040 | * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to |
| 3041 | * set the same. |
Srinivas Dasari | a75e44c | 2019-08-13 15:27:04 +0530 | [diff] [blame] | 3042 | * |
| 3043 | * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the |
| 3044 | * roam control config to the driver with the attribute |
| 3045 | * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. |
| 3046 | * |
| 3047 | * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the |
| 3048 | * roam control config from driver with the attribute |
| 3049 | * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. |
| 3050 | * For the get, the attribute for the configuration to be queried shall |
| 3051 | * carry any of its acceptable value to the driver. In return, the driver |
| 3052 | * shall send the configured values within the same attribute to the user |
| 3053 | * space. |
| 3054 | * |
| 3055 | * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the |
| 3056 | * roam control config in the driver with the attribute |
| 3057 | * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. |
| 3058 | * The driver shall continue with its default roaming behavior when data |
| 3059 | * corresponding to an attribute is cleared. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3060 | */ |
Srinivas Dasari | 30c9340 | 2019-08-13 11:45:04 +0530 | [diff] [blame] | 3061 | enum qca_wlan_vendor_roaming_subcmd { |
| 3062 | QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1, |
| 3063 | QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2, |
| 3064 | QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3, |
| 3065 | QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4, |
| 3066 | QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5, |
| 3067 | QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6, |
Srinivas Dasari | a75e44c | 2019-08-13 15:27:04 +0530 | [diff] [blame] | 3068 | QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7, |
| 3069 | QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8, |
| 3070 | QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3071 | }; |
| 3072 | |
| 3073 | /** |
| 3074 | * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information |
| 3075 | * |
| 3076 | * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value |
| 3077 | * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version |
| 3078 | * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version |
| 3079 | * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index |
| 3080 | * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last |
| 3081 | * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max |
| 3082 | */ |
| 3083 | enum qca_wlan_vendor_attr_get_wifi_info { |
| 3084 | QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0, |
| 3085 | QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1, |
| 3086 | QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2, |
| 3087 | QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3, |
| 3088 | |
| 3089 | /* KEEP LAST */ |
| 3090 | QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST, |
| 3091 | QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX = |
| 3092 | QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1, |
| 3093 | }; |
| 3094 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3095 | enum qca_wlan_vendor_attr_logger_results { |
| 3096 | QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0, |
| 3097 | |
| 3098 | /* |
| 3099 | * Unsigned 32-bit value; must match the request Id supplied by |
| 3100 | * Wi-Fi HAL in the corresponding subcmd NL msg. |
| 3101 | */ |
| 3102 | QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1, |
| 3103 | |
| 3104 | /* |
| 3105 | * Unsigned 32-bit value; used to indicate the size of memory |
| 3106 | * dump to be allocated. |
| 3107 | */ |
| 3108 | QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2, |
| 3109 | |
| 3110 | /* keep last */ |
| 3111 | QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST, |
| 3112 | QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX = |
| 3113 | QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1, |
| 3114 | }; |
| 3115 | |
| 3116 | /** |
| 3117 | * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel. |
| 3118 | * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS. |
| 3119 | */ |
| 3120 | enum qca_wlan_vendor_channel_prop_flags { |
| 3121 | /* Bits 0, 1, 2, and 3 are reserved */ |
| 3122 | |
| 3123 | /* Turbo channel */ |
| 3124 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4, |
| 3125 | /* CCK channel */ |
| 3126 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5, |
| 3127 | /* OFDM channel */ |
| 3128 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6, |
| 3129 | /* 2.4 GHz spectrum channel. */ |
| 3130 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7, |
| 3131 | /* 5 GHz spectrum channel */ |
| 3132 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8, |
| 3133 | /* Only passive scan allowed */ |
| 3134 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9, |
| 3135 | /* Dynamic CCK-OFDM channel */ |
| 3136 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10, |
| 3137 | /* GFSK channel (FHSS PHY) */ |
| 3138 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11, |
| 3139 | /* Radar found on channel */ |
| 3140 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12, |
| 3141 | /* 11a static turbo channel only */ |
| 3142 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13, |
| 3143 | /* Half rate channel */ |
| 3144 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14, |
| 3145 | /* Quarter rate channel */ |
| 3146 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15, |
| 3147 | /* HT 20 channel */ |
| 3148 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16, |
| 3149 | /* HT 40 with extension channel above */ |
| 3150 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17, |
| 3151 | /* HT 40 with extension channel below */ |
| 3152 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18, |
| 3153 | /* HT 40 intolerant */ |
| 3154 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19, |
| 3155 | /* VHT 20 channel */ |
| 3156 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20, |
| 3157 | /* VHT 40 with extension channel above */ |
| 3158 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21, |
| 3159 | /* VHT 40 with extension channel below */ |
| 3160 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22, |
| 3161 | /* VHT 80 channel */ |
| 3162 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23, |
| 3163 | /* HT 40 intolerant mark bit for ACS use */ |
| 3164 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24, |
| 3165 | /* Channel temporarily blocked due to noise */ |
| 3166 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25, |
| 3167 | /* VHT 160 channel */ |
| 3168 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26, |
| 3169 | /* VHT 80+80 channel */ |
| 3170 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27, |
Krishna Rao | ddd81ae | 2017-09-23 14:54:24 +0530 | [diff] [blame] | 3171 | /* HE 20 channel */ |
| 3172 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28, |
| 3173 | /* HE 40 with extension channel above */ |
| 3174 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29, |
| 3175 | /* HE 40 with extension channel below */ |
| 3176 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30, |
| 3177 | /* HE 40 intolerant */ |
| 3178 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1 << 31, |
| 3179 | }; |
| 3180 | |
| 3181 | /** |
| 3182 | * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a |
| 3183 | * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is |
| 3184 | * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2. |
| 3185 | */ |
| 3186 | enum qca_wlan_vendor_channel_prop_flags_2 { |
| 3187 | /* HE 40 intolerant mark bit for ACS use */ |
| 3188 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0, |
| 3189 | /* HE 80 channel */ |
| 3190 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1, |
| 3191 | /* HE 160 channel */ |
| 3192 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2, |
| 3193 | /* HE 80+80 channel */ |
| 3194 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3195 | }; |
| 3196 | |
| 3197 | /** |
| 3198 | * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for |
| 3199 | * each channel. This is used by |
| 3200 | * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT. |
| 3201 | */ |
| 3202 | enum qca_wlan_vendor_channel_prop_flags_ext { |
| 3203 | /* Radar found on channel */ |
| 3204 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0, |
| 3205 | /* DFS required on channel */ |
| 3206 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1, |
| 3207 | /* DFS required on channel for 2nd band of 80+80 */ |
| 3208 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2, |
| 3209 | /* If channel has been checked for DFS */ |
| 3210 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3, |
| 3211 | /* Excluded in 802.11d */ |
| 3212 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4, |
| 3213 | /* Channel Switch Announcement received on this channel */ |
| 3214 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5, |
| 3215 | /* Ad-hoc is not allowed */ |
| 3216 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6, |
| 3217 | /* Station only channel */ |
| 3218 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7, |
| 3219 | /* DFS radar history for slave device (STA mode) */ |
| 3220 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8, |
| 3221 | /* DFS CAC valid for slave device (STA mode) */ |
| 3222 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9, |
| 3223 | }; |
| 3224 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3225 | /** |
| 3226 | * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd |
| 3227 | * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite |
| 3228 | * information to start/stop the NUD statistics collection. |
| 3229 | */ |
| 3230 | enum qca_attr_nud_stats_set { |
| 3231 | QCA_ATTR_NUD_STATS_SET_INVALID = 0, |
| 3232 | |
| 3233 | /* |
| 3234 | * Flag to start/stop the NUD statistics collection. |
| 3235 | * Start - If included, Stop - If not included |
| 3236 | */ |
| 3237 | QCA_ATTR_NUD_STATS_SET_START = 1, |
| 3238 | /* IPv4 address of the default gateway (in network byte order) */ |
| 3239 | QCA_ATTR_NUD_STATS_GW_IPV4 = 2, |
Poddar, Siddarth | 6974498 | 2018-01-22 13:08:23 +0530 | [diff] [blame] | 3240 | /* |
| 3241 | * Represents the data packet type to be monitored. |
| 3242 | * Host driver tracks the stats corresponding to each data frame |
| 3243 | * represented by these flags. |
| 3244 | * These data packets are represented by |
| 3245 | * enum qca_wlan_vendor_nud_stats_set_data_pkt_info. |
| 3246 | */ |
| 3247 | QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3248 | /* keep last */ |
| 3249 | QCA_ATTR_NUD_STATS_SET_LAST, |
| 3250 | QCA_ATTR_NUD_STATS_SET_MAX = |
| 3251 | QCA_ATTR_NUD_STATS_SET_LAST - 1, |
| 3252 | }; |
| 3253 | |
| 3254 | /** |
Poddar, Siddarth | 6974498 | 2018-01-22 13:08:23 +0530 | [diff] [blame] | 3255 | * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd |
| 3256 | * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite |
| 3257 | * information to start / stop the NUD stats collection. |
| 3258 | * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats |
| 3259 | * Bitmap to Flag to Start / Stop the NUD stats collection |
| 3260 | * Start - If included , Stop - If not included |
| 3261 | * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gatway ipv4 address |
| 3262 | * IPv4 address of Default Gateway (in network byte order) |
| 3263 | * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite |
| 3264 | * information to start / stop the NUD stats collection. |
| 3265 | * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats |
| 3266 | * Flag to Start / Stop the NUD stats collection |
| 3267 | * Start - If included , Stop - If not included |
| 3268 | * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gatway ipv4 address |
| 3269 | * IPv4 address of Default Gateway (in network byte order) |
| 3270 | * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite |
| 3271 | * information to start / stop the NUD stats collection. |
| 3272 | * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats |
| 3273 | * Flag to Start / Stop the NUD stats collection |
| 3274 | * Start - If included , Stop - If not included |
| 3275 | * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gatway ipv4 address |
| 3276 | * IPv4 address of Default Gateway (in network byte order) |
| 3277 | */ |
| 3278 | enum qca_attr_connectivity_check_stats_set { |
| 3279 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0, |
| 3280 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1, |
| 3281 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2, |
| 3282 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3, |
| 3283 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4, |
| 3284 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5, |
| 3285 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6, |
| 3286 | /* keep last */ |
| 3287 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST, |
| 3288 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX = |
| 3289 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1, |
| 3290 | }; |
| 3291 | |
| 3292 | /** |
| 3293 | * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various |
| 3294 | * data types for which the stats have to get collected. |
| 3295 | */ |
| 3296 | enum qca_wlan_vendor_connectivity_check_pkt_flags { |
| 3297 | QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0, |
| 3298 | QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1, |
| 3299 | QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2, |
| 3300 | QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3, |
| 3301 | QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4, |
| 3302 | /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get |
| 3303 | * to represent the stats of respective data type. |
| 3304 | */ |
| 3305 | QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5, |
| 3306 | QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6, |
| 3307 | QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7, |
| 3308 | }; |
| 3309 | |
| 3310 | enum qca_attr_connectivity_check_stats { |
| 3311 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0, |
| 3312 | /* Data packet type for which the stats are collected. |
| 3313 | * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags |
| 3314 | */ |
| 3315 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1, |
| 3316 | /* ID corresponding to the DNS frame for which the respective DNS stats |
| 3317 | * are monitored (u32). |
| 3318 | */ |
| 3319 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2, |
| 3320 | /* source / destination port on which the respective proto stats are |
| 3321 | * collected (u32). |
| 3322 | */ |
| 3323 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3, |
| 3324 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4, |
| 3325 | /* IPv4/IPv6 address for which the destined data packets are |
| 3326 | * monitored. (in network byte order) |
| 3327 | */ |
| 3328 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5, |
| 3329 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6, |
| 3330 | /* Data packet Request count received from netdev */ |
| 3331 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7, |
| 3332 | /* Data packet Request count sent to lower MAC from upper MAC */ |
| 3333 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8, |
| 3334 | /* Data packet Request count received by lower MAC from upper MAC */ |
| 3335 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9, |
| 3336 | /* Data packet Request count successfully transmitted by the device */ |
| 3337 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10, |
| 3338 | /* Data packet Response count received by lower MAC */ |
| 3339 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11, |
| 3340 | /* Data packet Response count received by upper MAC */ |
| 3341 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12, |
| 3342 | /* Data packet Response count delivered to netdev */ |
| 3343 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13, |
| 3344 | /* Data Packet Response count that are dropped out of order */ |
| 3345 | QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14, |
| 3346 | |
| 3347 | /* keep last */ |
| 3348 | QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST, |
| 3349 | QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX = |
| 3350 | QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1, |
| 3351 | }; |
| 3352 | |
| 3353 | /** |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3354 | * qca_attr_nud_stats_get: Attributes to vendor subcmd |
| 3355 | * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite |
| 3356 | * NUD statistics collected when queried. |
| 3357 | */ |
| 3358 | enum qca_attr_nud_stats_get { |
| 3359 | QCA_ATTR_NUD_STATS_GET_INVALID = 0, |
| 3360 | /* ARP Request count from netdev */ |
| 3361 | QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1, |
| 3362 | /* ARP Request count sent to lower MAC from upper MAC */ |
| 3363 | QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2, |
| 3364 | /* ARP Request count received by lower MAC from upper MAC */ |
| 3365 | QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3, |
| 3366 | /* ARP Request count successfully transmitted by the device */ |
| 3367 | QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4, |
| 3368 | /* ARP Response count received by lower MAC */ |
| 3369 | QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5, |
| 3370 | /* ARP Response count received by upper MAC */ |
| 3371 | QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6, |
| 3372 | /* ARP Response count delivered to netdev */ |
| 3373 | QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7, |
| 3374 | /* ARP Response count delivered to netdev */ |
| 3375 | QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8, |
| 3376 | /* |
| 3377 | * Flag indicating if the station's link to the AP is active. |
| 3378 | * Active Link - If included, Inactive link - If not included |
| 3379 | */ |
| 3380 | QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9, |
| 3381 | /* |
| 3382 | * Flag indicating if there is any duplicate address detected (DAD). |
| 3383 | * Yes - If detected, No - If not detected. |
| 3384 | */ |
| 3385 | QCA_ATTR_NUD_STATS_IS_DAD = 10, |
Poddar, Siddarth | 6974498 | 2018-01-22 13:08:23 +0530 | [diff] [blame] | 3386 | /* |
| 3387 | * List of Data types for which the stats are requested. |
| 3388 | * This list does not carry ARP stats as they are done by the |
| 3389 | * above attributes. Represented by enum qca_attr_nud_data_stats. |
| 3390 | */ |
| 3391 | QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3392 | /* keep last */ |
| 3393 | QCA_ATTR_NUD_STATS_GET_LAST, |
| 3394 | QCA_ATTR_NUD_STATS_GET_MAX = |
| 3395 | QCA_ATTR_NUD_STATS_GET_LAST - 1, |
| 3396 | }; |
| 3397 | |
| 3398 | enum qca_wlan_btm_candidate_status { |
| 3399 | QCA_STATUS_ACCEPT = 0, |
| 3400 | QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1, |
| 3401 | QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2, |
| 3402 | QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3, |
| 3403 | QCA_STATUS_REJECT_LOW_RSSI = 4, |
| 3404 | QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5, |
| 3405 | QCA_STATUS_REJECT_UNKNOWN = 6, |
| 3406 | }; |
| 3407 | |
| 3408 | enum qca_wlan_vendor_attr_btm_candidate_info { |
| 3409 | QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0, |
| 3410 | |
| 3411 | /* 6-byte MAC address representing the BSSID of transition candidate */ |
| 3412 | QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1, |
| 3413 | /* |
| 3414 | * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status |
| 3415 | * returned by the driver. It says whether the BSSID provided in |
| 3416 | * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by |
| 3417 | * the driver, if not it specifies the reason for rejection. |
| 3418 | * Note that the user-space can overwrite the transition reject reason |
| 3419 | * codes provided by driver based on more information. |
| 3420 | */ |
| 3421 | QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2, |
| 3422 | |
| 3423 | /* keep last */ |
| 3424 | QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST, |
| 3425 | QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX = |
| 3426 | QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1, |
| 3427 | }; |
| 3428 | |
| 3429 | enum qca_attr_trace_level { |
| 3430 | QCA_ATTR_TRACE_LEVEL_INVALID = 0, |
| 3431 | /* |
| 3432 | * Nested array of the following attributes: |
| 3433 | * QCA_ATTR_TRACE_LEVEL_MODULE, |
| 3434 | * QCA_ATTR_TRACE_LEVEL_MASK. |
| 3435 | */ |
| 3436 | QCA_ATTR_TRACE_LEVEL_PARAM = 1, |
| 3437 | /* |
| 3438 | * Specific QCA host driver module. Please refer to the QCA host |
| 3439 | * driver implementation to get the specific module ID. |
| 3440 | */ |
| 3441 | QCA_ATTR_TRACE_LEVEL_MODULE = 2, |
| 3442 | /* Different trace level masks represented in the QCA host driver. */ |
| 3443 | QCA_ATTR_TRACE_LEVEL_MASK = 3, |
| 3444 | |
| 3445 | /* keep last */ |
| 3446 | QCA_ATTR_TRACE_LEVEL_AFTER_LAST, |
| 3447 | QCA_ATTR_TRACE_LEVEL_MAX = |
| 3448 | QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1, |
| 3449 | }; |
| 3450 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3451 | /** |
| 3452 | * enum qca_wlan_vendor_attr_get_logger_features - value for logger |
| 3453 | * supported features |
| 3454 | * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid |
| 3455 | * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features |
| 3456 | * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum |
| 3457 | * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type |
| 3458 | * |
| 3459 | * enum values are used for NL attributes for data used by |
| 3460 | * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command. |
| 3461 | */ |
| 3462 | enum qca_wlan_vendor_attr_get_logger_features { |
| 3463 | QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0, |
| 3464 | QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1, |
| 3465 | |
| 3466 | /* keep last */ |
| 3467 | QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST, |
| 3468 | QCA_WLAN_VENDOR_ATTR_LOGGER_MAX = |
| 3469 | QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1, |
| 3470 | }; |
| 3471 | |
| 3472 | /** |
| 3473 | * enum qca_wlan_vendor_attr_link_properties - link properties |
| 3474 | * |
| 3475 | * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value |
| 3476 | * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to |
| 3477 | * specify the number of spatial streams negotiated |
| 3478 | * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value |
| 3479 | * to specify negotiated rate flags i.e. ht, vht and channel width |
| 3480 | * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to |
| 3481 | * specify the operating frequency |
Ashish Kumar Dhanotiya | 38a0c9f | 2018-01-19 20:17:02 +0530 | [diff] [blame] | 3482 | * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer |
| 3483 | * (STA / AP ) for the connected link. |
| 3484 | * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a |
| 3485 | * &struct nl80211_sta_flag_update for the respective connected link. MAC |
| 3486 | * address of the peer represented by |
| 3487 | * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3488 | * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last |
| 3489 | * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value |
| 3490 | */ |
| 3491 | enum qca_wlan_vendor_attr_link_properties { |
| 3492 | QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0, |
| 3493 | QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1, |
| 3494 | QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2, |
| 3495 | QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3, |
Ashish Kumar Dhanotiya | 38a0c9f | 2018-01-19 20:17:02 +0530 | [diff] [blame] | 3496 | QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4, |
| 3497 | QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3498 | |
| 3499 | /* KEEP LAST */ |
| 3500 | QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST, |
| 3501 | QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX = |
| 3502 | QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1, |
| 3503 | }; |
| 3504 | |
| 3505 | /** |
| 3506 | * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support |
| 3507 | * |
| 3508 | * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid |
| 3509 | * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload |
| 3510 | * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum |
| 3511 | * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type |
| 3512 | * |
| 3513 | * enum values are used for NL attributes for data used by |
| 3514 | * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command. |
| 3515 | */ |
| 3516 | enum qca_wlan_vendor_attr_nd_offload { |
| 3517 | QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0, |
| 3518 | QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG, |
| 3519 | |
| 3520 | /* Keep last */ |
| 3521 | QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST, |
| 3522 | QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX = |
| 3523 | QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1, |
| 3524 | }; |
| 3525 | |
| 3526 | /** |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 3527 | * enum qca_wlan_vendor_features - Vendor device/driver feature flags |
| 3528 | * |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3529 | * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 3530 | * management offload, a mechanism where the station's firmware |
| 3531 | * does the exchange with the AP to establish the temporal keys |
| 3532 | * after roaming, rather than having the user space wpa_supplicant do it. |
| 3533 | * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic |
| 3534 | * band selection based on channel selection results. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3535 | * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 3536 | * simultaneous off-channel operations. |
| 3537 | * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P |
| 3538 | * Listen offload; a mechanism where the station's firmware takes care of |
| 3539 | * responding to incoming Probe Request frames received from other P2P |
| 3540 | * Devices whilst in Listen state, rather than having the user space |
| 3541 | * wpa_supplicant do it. Information from received P2P requests are |
| 3542 | * forwarded from firmware to host whenever the host processor wakes up. |
yeshwanth sriram guntuka | 8bdb069 | 2017-07-18 13:30:42 +0530 | [diff] [blame] | 3543 | * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 3544 | * specific features. |
yeshwanth sriram guntuka | 8bdb069 | 2017-07-18 13:30:42 +0530 | [diff] [blame] | 3545 | * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific |
| 3546 | * features. |
| 3547 | * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON |
| 3548 | * specific features only. If a Device sets this bit but not the |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 3549 | * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that |
yeshwanth sriram guntuka | 8bdb069 | 2017-07-18 13:30:42 +0530 | [diff] [blame] | 3550 | * this Device may not support all OCE AP functionalities but can support |
| 3551 | * only OCE STA-CFON functionalities. |
Kiran Kumar Lokere | 76da799 | 2018-04-23 18:47:04 -0700 | [diff] [blame] | 3552 | * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self |
| 3553 | * managed regulatory. |
Ashish Kumar Dhanotiya | 50400f9 | 2019-03-27 14:56:42 +0530 | [diff] [blame] | 3554 | * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time). |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 3555 | * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE) |
| 3556 | * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation |
| 3557 | * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3558 | */ |
| 3559 | enum qca_wlan_vendor_features { |
| 3560 | QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0, |
| 3561 | QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1, |
| 3562 | QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2, |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 3563 | QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3, |
yeshwanth sriram guntuka | 8bdb069 | 2017-07-18 13:30:42 +0530 | [diff] [blame] | 3564 | QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4, |
| 3565 | QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5, |
| 3566 | QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6, |
Kiran Kumar Lokere | 76da799 | 2018-04-23 18:47:04 -0700 | [diff] [blame] | 3567 | QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7, |
Ashish Kumar Dhanotiya | 50400f9 | 2019-03-27 14:56:42 +0530 | [diff] [blame] | 3568 | QCA_WLAN_VENDOR_FEATURE_TWT = 8, |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 3569 | QCA_WLAN_VENDOR_FEATURE_11AX = 9, |
| 3570 | QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10, |
| 3571 | |
| 3572 | NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3573 | }; |
| 3574 | |
| 3575 | /** |
| 3576 | * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP |
| 3577 | * conditional channel switch |
| 3578 | * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial |
| 3579 | * value |
| 3580 | * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based |
| 3581 | * frequency list (an array of u32 values in host byte order) |
| 3582 | * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the |
| 3583 | * conditional switch (u32)- 0: Success, Non-zero: Failure |
| 3584 | * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last |
| 3585 | * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max |
| 3586 | */ |
| 3587 | enum qca_wlan_vendor_attr_sap_conditional_chan_switch { |
| 3588 | QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0, |
| 3589 | QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1, |
| 3590 | QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2, |
| 3591 | |
| 3592 | /* Keep Last */ |
| 3593 | QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST, |
| 3594 | QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX = |
| 3595 | QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1, |
| 3596 | }; |
| 3597 | |
| 3598 | /** |
| 3599 | * enum wifi_logger_supported_features - values for supported logger features |
Srinivas Girigowda | ce25ca3 | 2018-01-22 17:44:55 -0800 | [diff] [blame] | 3600 | * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW |
| 3601 | * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics |
| 3602 | * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events |
| 3603 | * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver |
| 3604 | * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver |
| 3605 | * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health |
| 3606 | * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump |
| 3607 | * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3608 | */ |
| 3609 | enum wifi_logger_supported_features { |
| 3610 | WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)), |
| 3611 | WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)), |
| 3612 | WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)), |
| 3613 | WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)), |
| 3614 | WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)), |
| 3615 | WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)), |
| 3616 | WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)), |
Srinivas Girigowda | ce25ca3 | 2018-01-22 17:44:55 -0800 | [diff] [blame] | 3617 | WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)), |
| 3618 | WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8)) |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3619 | }; |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 3620 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3621 | /** |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 3622 | * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with |
| 3623 | * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3624 | * |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 3625 | * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8). |
| 3626 | * Used with event to notify the primary channel number selected in ACS |
| 3627 | * operation. |
| 3628 | * Note: If both the driver and user-space application supports the 6 GHz band, |
| 3629 | * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use |
| 3630 | * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead. |
| 3631 | * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL |
| 3632 | * is still used if either of the driver or user space application doesn't |
| 3633 | * support the 6 GHz band. |
| 3634 | * |
| 3635 | * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8). |
| 3636 | * Used with event to notify the secondary channel number selected in ACS |
| 3637 | * operation. |
| 3638 | * Note: If both the driver and user-space application supports the 6 GHz band, |
| 3639 | * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use |
| 3640 | * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead. |
| 3641 | * To maintain backward compatibility, |
| 3642 | * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of |
| 3643 | * the driver or user space application doesn't support 6 GHz band. |
| 3644 | * |
| 3645 | * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8). |
| 3646 | * (a) Used with command to configure hw_mode from |
| 3647 | * enum qca_wlan_vendor_acs_hw_mode for ACS operation. |
| 3648 | * (b) Also used with event to notify the hw_mode of selected primary channel |
| 3649 | * in ACS operation. |
| 3650 | * |
| 3651 | * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute. |
| 3652 | * Used with command to configure ACS operation for HT mode. |
| 3653 | * Disable (flag attribute not present) - HT disabled and |
| 3654 | * Enable (flag attribute present) - HT enabled. |
| 3655 | * |
| 3656 | * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute. |
| 3657 | * Used with command to configure ACS operation for HT40 mode. |
| 3658 | * Disable (flag attribute not present) - HT40 disabled and |
| 3659 | * Enable (flag attribute present) - HT40 enabled. |
| 3660 | * |
| 3661 | * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute. |
| 3662 | * Used with command to configure ACS operation for VHT mode. |
| 3663 | * Disable (flag attribute not present) - VHT disabled and |
| 3664 | * Enable (flag attribute present) - VHT enabled. |
| 3665 | * |
| 3666 | * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and |
| 3667 | * mandatory with event. |
| 3668 | * If specified in command path, ACS operation is configured with the given |
| 3669 | * channel width (in MHz). |
| 3670 | * In event path, specifies the channel width of the primary channel selected. |
| 3671 | * |
| 3672 | * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC. |
| 3673 | * Used with command to configure channel list using an array of |
| 3674 | * channel numbers (u8). |
| 3675 | * Note: If both the driver and user-space application supports the 6 GHz band, |
| 3676 | * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas |
| 3677 | * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional. |
| 3678 | * |
| 3679 | * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8). |
| 3680 | * Used with event to notify the VHT segment 0 center channel number selected in |
| 3681 | * ACS operation. |
| 3682 | * Note: If both the driver and user-space application supports the 6 GHz band, |
| 3683 | * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use |
| 3684 | * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead. |
| 3685 | * To maintain backward compatibility, |
| 3686 | * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of |
| 3687 | * the driver or user space application doesn't support the 6 GHz band. |
| 3688 | * |
| 3689 | * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8). |
| 3690 | * Used with event to notify the VHT segment 1 center channel number selected in |
| 3691 | * ACS operation. |
| 3692 | * Note: If both the driver and user-space application supports the 6 GHz band, |
| 3693 | * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use |
| 3694 | * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead. |
| 3695 | * To maintain backward compatibility, |
| 3696 | * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of |
| 3697 | * the driver or user space application doesn't support the 6 GHz band. |
| 3698 | * |
| 3699 | * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC. |
| 3700 | * Used with command to configure the channel list using an array of channel |
| 3701 | * center frequencies in MHz (u32). |
| 3702 | * Note: If both the driver and user-space application supports the 6 GHz band, |
| 3703 | * the driver first parses the frequency list and if it fails to get a frequency |
| 3704 | * list, parses the channel list specified using |
| 3705 | * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in |
| 3706 | * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST). |
| 3707 | * |
| 3708 | * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32). |
| 3709 | * Used with event to notify the primary channel center frequency (MHz) selected |
| 3710 | * in ACS operation. |
| 3711 | * Note: If the driver supports the 6 GHz band, the event sent from the driver |
| 3712 | * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL. |
| 3713 | * |
| 3714 | * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32). |
| 3715 | * Used with event to notify the secondary channel center frequency (MHz) |
| 3716 | * selected in ACS operation. |
| 3717 | * Note: If the driver supports the 6 GHz band, the event sent from the driver |
| 3718 | * includes this attribute along with |
| 3719 | * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL. |
| 3720 | * |
| 3721 | * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32). |
| 3722 | * Used with event to notify the VHT segment 0 center channel frequency (MHz) |
| 3723 | * selected in ACS operation. |
| 3724 | * Note: If the driver supports the 6 GHz band, the event sent from the driver |
| 3725 | * includes this attribute along with |
| 3726 | * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL. |
| 3727 | * |
| 3728 | * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32). |
| 3729 | * Used with event to notify the VHT segment 1 center channel frequency (MHz) |
| 3730 | * selected in ACS operation. |
| 3731 | * Note: If the driver supports the 6 GHz band, the event sent from the driver |
| 3732 | * includes this attribute along with |
| 3733 | * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3734 | */ |
| 3735 | enum qca_wlan_vendor_attr_acs_offload { |
| 3736 | QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0, |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 3737 | QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1, |
| 3738 | QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2, |
| 3739 | QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3, |
| 3740 | QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4, |
| 3741 | QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5, |
| 3742 | QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6, |
| 3743 | QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7, |
| 3744 | QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8, |
| 3745 | QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9, |
| 3746 | QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10, |
| 3747 | QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11, |
| 3748 | QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12, |
| 3749 | QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13, |
| 3750 | QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14, |
| 3751 | QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15, |
| 3752 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3753 | /* keep last */ |
| 3754 | QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST, |
| 3755 | QCA_WLAN_VENDOR_ATTR_ACS_MAX = |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 3756 | QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1 |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3757 | }; |
| 3758 | |
| 3759 | /** |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 3760 | * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the |
| 3761 | * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3762 | * |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 3763 | * @QCA_ACS_MODE_IEEE80211B: 802.11b mode |
| 3764 | * @QCA_ACS_MODE_IEEE80211G: 802.11g mode |
| 3765 | * @QCA_ACS_MODE_IEEE80211A: 802.11a mode |
| 3766 | * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode |
| 3767 | * @QCA_ACS_MODE_IEEE80211ANY: all modes |
| 3768 | * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3769 | */ |
| 3770 | enum qca_wlan_vendor_acs_hw_mode { |
| 3771 | QCA_ACS_MODE_IEEE80211B, |
| 3772 | QCA_ACS_MODE_IEEE80211G, |
| 3773 | QCA_ACS_MODE_IEEE80211A, |
| 3774 | QCA_ACS_MODE_IEEE80211AD, |
| 3775 | QCA_ACS_MODE_IEEE80211ANY, |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 3776 | QCA_ACS_MODE_IEEE80211AX, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3777 | }; |
| 3778 | |
| 3779 | /** |
| 3780 | * enum qca_access_policy - access control policy |
| 3781 | * |
| 3782 | * Access control policy is applied on the configured IE |
| 3783 | * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE). |
| 3784 | * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY. |
| 3785 | * |
| 3786 | * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match |
| 3787 | *» with the specific configuration (IE) set, i.e. allow all the |
| 3788 | *» connections which do not match the configuration. |
| 3789 | * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match |
| 3790 | *» with the specific configuration (IE) set, i.e. deny all the |
| 3791 | *» connections which do not match the configuration. |
| 3792 | */ |
| 3793 | enum qca_access_policy { |
| 3794 | QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED, |
| 3795 | QCA_ACCESS_POLICY_DENY_UNLESS_LISTED, |
| 3796 | }; |
| 3797 | |
| 3798 | /** |
| 3799 | * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values |
| 3800 | * |
| 3801 | * The valid values for the ignore assoc disallowed |
| 3802 | * |
| 3803 | * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed |
| 3804 | * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed |
| 3805 | * |
| 3806 | */ |
| 3807 | enum qca_ignore_assoc_disallowed { |
| 3808 | QCA_IGNORE_ASSOC_DISALLOWED_DISABLE, |
| 3809 | QCA_IGNORE_ASSOC_DISALLOWED_ENABLE |
| 3810 | }; |
| 3811 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3812 | /* Attributes for data used by |
| 3813 | * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and |
| 3814 | * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3815 | */ |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3816 | enum qca_wlan_vendor_attr_config { |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3817 | QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3818 | /* |
| 3819 | * Unsigned 32-bit value to set the DTIM period. |
| 3820 | * Whether the wifi chipset wakes at every dtim beacon or a multiple of |
| 3821 | * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3 |
| 3822 | * DTIM beacons. |
| 3823 | */ |
Selvaraj, Sridhar | 2a0301a | 2017-03-07 11:02:26 +0530 | [diff] [blame] | 3824 | QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3825 | /* |
| 3826 | * Unsigned 32-bit value to set the wifi_iface stats averaging factor |
| 3827 | * used to calculate statistics like average the TSF offset or average |
| 3828 | * number of frame leaked. |
| 3829 | * For instance, upon Beacon frame reception: |
| 3830 | * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000 |
| 3831 | * For instance, when evaluating leaky APs: |
| 3832 | * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000 |
| 3833 | */ |
Selvaraj, Sridhar | 2a0301a | 2017-03-07 11:02:26 +0530 | [diff] [blame] | 3834 | QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3835 | /* |
| 3836 | * Unsigned 32-bit value to configure guard time, i.e., when |
| 3837 | * implementing IEEE power management based on frame control PM bit, how |
| 3838 | * long the driver waits before shutting down the radio and after |
| 3839 | * receiving an ACK frame for a Data frame with PM bit set. |
| 3840 | */ |
Selvaraj, Sridhar | 2a0301a | 2017-03-07 11:02:26 +0530 | [diff] [blame] | 3841 | QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3842 | /* Unsigned 32-bit value to change the FTM capability dynamically */ |
Selvaraj, Sridhar | 2a0301a | 2017-03-07 11:02:26 +0530 | [diff] [blame] | 3843 | QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4, |
| 3844 | /* Unsigned 16-bit value to configure maximum TX rate dynamically */ |
| 3845 | QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3846 | /* |
| 3847 | * Unsigned 32-bit value to configure the number of continuous |
| 3848 | * Beacon Miss which shall be used by the firmware to penalize |
| 3849 | * the RSSI. |
| 3850 | */ |
Selvaraj, Sridhar | 2a0301a | 2017-03-07 11:02:26 +0530 | [diff] [blame] | 3851 | QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3852 | /* |
| 3853 | * Unsigned 8-bit value to configure the channel avoidance indication |
| 3854 | * behavior. Firmware to send only one indication and ignore duplicate |
| 3855 | * indications when set to avoid multiple Apps wakeups. |
| 3856 | */ |
Selvaraj, Sridhar | 2a0301a | 2017-03-07 11:02:26 +0530 | [diff] [blame] | 3857 | QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3858 | /* |
| 3859 | * 8-bit unsigned value to configure the maximum TX MPDU for |
| 3860 | * aggregation. |
| 3861 | */ |
Selvaraj, Sridhar | 2a0301a | 2017-03-07 11:02:26 +0530 | [diff] [blame] | 3862 | QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3863 | /* |
| 3864 | * 8-bit unsigned value to configure the maximum RX MPDU for |
| 3865 | * aggregation. |
| 3866 | */ |
Selvaraj, Sridhar | 2a0301a | 2017-03-07 11:02:26 +0530 | [diff] [blame] | 3867 | QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3868 | /* |
| 3869 | * 8-bit unsigned value to configure the Non aggregrate/11g sw |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3870 | * retry threshold (0 disable, 31 max). |
| 3871 | */ |
Selvaraj, Sridhar | 2a0301a | 2017-03-07 11:02:26 +0530 | [diff] [blame] | 3872 | QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3873 | /* |
| 3874 | * 8-bit unsigned value to configure the aggregrate sw |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3875 | * retry threshold (0 disable, 31 max). |
| 3876 | */ |
Selvaraj, Sridhar | 2a0301a | 2017-03-07 11:02:26 +0530 | [diff] [blame] | 3877 | QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3878 | /* |
| 3879 | * 8-bit unsigned value to configure the MGMT frame |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3880 | * retry threshold (0 disable, 31 max). |
| 3881 | */ |
Selvaraj, Sridhar | 2a0301a | 2017-03-07 11:02:26 +0530 | [diff] [blame] | 3882 | QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3883 | /* |
| 3884 | * 8-bit unsigned value to configure the CTRL frame |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3885 | * retry threshold (0 disable, 31 max). |
| 3886 | */ |
Selvaraj, Sridhar | 2a0301a | 2017-03-07 11:02:26 +0530 | [diff] [blame] | 3887 | QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3888 | /* |
| 3889 | * 8-bit unsigned value to configure the propagation delay for |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3890 | * 2G/5G band (0~63, units in us) |
| 3891 | */ |
Selvaraj, Sridhar | 2a0301a | 2017-03-07 11:02:26 +0530 | [diff] [blame] | 3892 | QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3893 | /* |
| 3894 | * Unsigned 32-bit value to configure the number of unicast TX fail |
Selvaraj, Sridhar | 2a0301a | 2017-03-07 11:02:26 +0530 | [diff] [blame] | 3895 | * packet count. The peer is disconnected once this threshold is |
| 3896 | * reached. |
| 3897 | */ |
| 3898 | QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3899 | /* |
| 3900 | * Attribute used to set scan default IEs to the driver. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3901 | * |
| 3902 | * These IEs can be used by scan operations that will be initiated by |
| 3903 | * the driver/firmware. |
| 3904 | * |
| 3905 | * For further scan requests coming to the driver, these IEs should be |
| 3906 | * merged with the IEs received along with scan request coming to the |
| 3907 | * driver. If a particular IE is present in the scan default IEs but not |
| 3908 | * present in the scan request, then that IE should be added to the IEs |
| 3909 | * sent in the Probe Request frames for that scan request. |
| 3910 | */ |
Selvaraj, Sridhar | 2a0301a | 2017-03-07 11:02:26 +0530 | [diff] [blame] | 3911 | QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3912 | /* Unsigned 32-bit attribute for generic commands */ |
Selvaraj, Sridhar | 2a0301a | 2017-03-07 11:02:26 +0530 | [diff] [blame] | 3913 | QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3914 | /* Unsigned 32-bit value attribute for generic commands */ |
Selvaraj, Sridhar | 2a0301a | 2017-03-07 11:02:26 +0530 | [diff] [blame] | 3915 | QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3916 | /* Unsigned 32-bit data attribute for generic command response */ |
Selvaraj, Sridhar | 2a0301a | 2017-03-07 11:02:26 +0530 | [diff] [blame] | 3917 | QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3918 | /* |
| 3919 | * Unsigned 32-bit length attribute for |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3920 | * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA |
| 3921 | */ |
Selvaraj, Sridhar | 2a0301a | 2017-03-07 11:02:26 +0530 | [diff] [blame] | 3922 | QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3923 | /* |
| 3924 | * Unsigned 32-bit flags attribute for |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3925 | * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA |
| 3926 | */ |
Selvaraj, Sridhar | 2a0301a | 2017-03-07 11:02:26 +0530 | [diff] [blame] | 3927 | QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3928 | /* |
| 3929 | * Unsigned 32-bit, defining the access policy. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3930 | * See enum qca_access_policy. Used with |
| 3931 | * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST. |
| 3932 | */ |
Selvaraj, Sridhar | 2a0301a | 2017-03-07 11:02:26 +0530 | [diff] [blame] | 3933 | QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3934 | /* |
| 3935 | * Sets the list of full set of IEs for which a specific access policy |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3936 | * has to be applied. Used along with |
| 3937 | * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access. |
| 3938 | * Zero length payload can be used to clear this access constraint. |
| 3939 | */ |
Selvaraj, Sridhar | 2a0301a | 2017-03-07 11:02:26 +0530 | [diff] [blame] | 3940 | QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3941 | /* |
| 3942 | * Unsigned 32-bit, specifies the interface index (netdev) for which the |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3943 | * corresponding configurations are applied. If the interface index is |
| 3944 | * not specified, the configurations are attributed to the respective |
| 3945 | * wiphy. |
| 3946 | */ |
Selvaraj, Sridhar | 2a0301a | 2017-03-07 11:02:26 +0530 | [diff] [blame] | 3947 | QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3948 | /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3949 | QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3950 | /* |
| 3951 | * 8-bit unsigned value to configure the driver and below layers to |
| 3952 | * ignore the assoc disallowed set by APs while connecting |
| 3953 | * 1-Ignore, 0-Don't ignore |
| 3954 | */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 3955 | QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 3956 | /* |
| 3957 | * 32-bit unsigned value to trigger antenna diversity features: |
| 3958 | * 1-Enable, 0-Disable |
| 3959 | */ |
| 3960 | QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27, |
| 3961 | /* 32-bit unsigned value to configure specific chain antenna */ |
| 3962 | QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28, |
| 3963 | /* |
| 3964 | * 32-bit unsigned value to trigger cycle selftest |
| 3965 | * 1-Enable, 0-Disable |
| 3966 | */ |
| 3967 | QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29, |
| 3968 | /* |
| 3969 | * 32-bit unsigned to configure the cycle time of selftest |
| 3970 | * the unit is micro-second |
| 3971 | */ |
| 3972 | QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30, |
| 3973 | /* 32-bit unsigned value to set reorder timeout for AC_VO */ |
| 3974 | QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31, |
| 3975 | /* 32-bit unsigned value to set reorder timeout for AC_VI */ |
| 3976 | QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32, |
| 3977 | /* 32-bit unsigned value to set reorder timeout for AC_BE */ |
| 3978 | QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33, |
| 3979 | /* 32-bit unsigned value to set reorder timeout for AC_BK */ |
| 3980 | QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34, |
| 3981 | /* 6-byte MAC address to point out the specific peer */ |
| 3982 | QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35, |
| 3983 | /* 32-bit unsigned value to set window size for specific peer */ |
| 3984 | QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36, |
| 3985 | /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */ |
| 3986 | QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37, |
| 3987 | /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */ |
| 3988 | QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38, |
| 3989 | /* |
| 3990 | * 32-bit unsigned value to configure 5 or 10 MHz channel width for |
| 3991 | * station device while in disconnect state. The attribute use the |
| 3992 | * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz, |
| 3993 | * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or |
| 3994 | * 10 MHz channel width, the station will not connect to a BSS using 20 |
| 3995 | * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to |
| 3996 | * clear this constraint. |
| 3997 | */ |
| 3998 | QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39, |
| 3999 | /* |
| 4000 | * 32-bit unsigned value to configure the propagation absolute delay |
| 4001 | * for 2G/5G band (units in us) |
| 4002 | */ |
Zhang Qian | b83f9e7 | 2017-04-17 13:04:33 +0800 | [diff] [blame] | 4003 | QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 4004 | /* 32-bit unsigned value to set probe period */ |
| 4005 | QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41, |
| 4006 | /* 32-bit unsigned value to set stay period */ |
| 4007 | QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42, |
| 4008 | /* 32-bit unsigned value to set snr diff */ |
| 4009 | QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43, |
| 4010 | /* 32-bit unsigned value to set probe dwell time */ |
| 4011 | QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44, |
| 4012 | /* 32-bit unsigned value to set mgmt snr weight */ |
| 4013 | QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45, |
| 4014 | /* 32-bit unsigned value to set data snr weight */ |
| 4015 | QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46, |
| 4016 | /* 32-bit unsigned value to set ack snr weight */ |
| 4017 | QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47, |
Ajit Pal Singh | 83eddc5 | 2017-05-23 16:22:05 +0530 | [diff] [blame] | 4018 | /* |
Mukul Sharma | 7d97853 | 2017-05-17 17:14:08 +0530 | [diff] [blame] | 4019 | * 32-bit unsigned value to configure the listen interval. |
| 4020 | * This is in units of beacon intervals. This configuration alters |
| 4021 | * the negotiated listen interval with the AP during the connection. |
| 4022 | * It is highly recommended to configure a value less than or equal to |
| 4023 | * the one negotiated during the association. Configuring any greater |
| 4024 | * value can have adverse effects (frame loss, AP disassociating STA, |
| 4025 | * etc.). |
| 4026 | */ |
| 4027 | QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48, |
| 4028 | /* |
Ajit Pal Singh | 83eddc5 | 2017-05-23 16:22:05 +0530 | [diff] [blame] | 4029 | * 8 bit unsigned value that is set on an AP/GO virtual interface to |
| 4030 | * disable operations that would cause the AP/GO to leave its operating |
| 4031 | * channel. |
| 4032 | * |
| 4033 | * This will restrict the scans to the AP/GO operating channel and the |
| 4034 | * channels of the other band, if DBS is supported.A STA/CLI interface |
| 4035 | * brought up after this setting is enabled, will be restricted to |
| 4036 | * connecting to devices only on the AP/GO interface's operating channel |
| 4037 | * or on the other band in DBS case. P2P supported channel list is |
| 4038 | * modified, to only include AP interface's operating-channel and the |
| 4039 | * channels of the other band if DBS is supported. |
| 4040 | * |
| 4041 | * These restrictions are only applicable as long as the AP/GO interface |
| 4042 | * is alive. If the AP/GO interface is brought down then this |
| 4043 | * setting/restriction is forgotten. |
| 4044 | * |
| 4045 | * If this variable is set on an AP/GO interface while a multi-channel |
| 4046 | * concurrent session is active, it has no effect on the operation of |
| 4047 | * the current interfaces, other than restricting the scan to the AP/GO |
| 4048 | * operating channel and the other band channels if DBS is supported. |
| 4049 | * However, if the STA is brought down and restarted then the new STA |
| 4050 | * connection will either be formed on the AP/GO channel or on the |
| 4051 | * other band in a DBS case. This is because of the scan being |
| 4052 | * restricted on these channels as mentioned above. |
| 4053 | * |
| 4054 | * 1-Disable offchannel operations, 0-Enable offchannel operations. |
| 4055 | */ |
| 4056 | QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49, |
Zhang Qian | b83f9e7 | 2017-04-17 13:04:33 +0800 | [diff] [blame] | 4057 | |
Sandeep Puligilla | 4296edb | 2017-10-14 00:41:44 -0700 | [diff] [blame] | 4058 | /* |
Poddar, Siddarth | 0a17421 | 2017-10-30 14:42:05 +0530 | [diff] [blame] | 4059 | * 8 bit unsigned value to enable/disable LRO (Large Receive Offload) |
| 4060 | * on an interface. |
| 4061 | * 1 - Enable , 0 - Disable. |
| 4062 | */ |
| 4063 | QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50, |
| 4064 | |
| 4065 | /* |
Sandeep Puligilla | 4296edb | 2017-10-14 00:41:44 -0700 | [diff] [blame] | 4066 | * 8 bit unsigned value to globally enable/disable scan |
| 4067 | * 1 - Enable, 0 - Disable. |
| 4068 | */ |
| 4069 | QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51, |
| 4070 | |
Nachiket Kukade | 6e3ecc0 | 2017-07-28 19:24:11 +0530 | [diff] [blame] | 4071 | /* 8-bit unsigned value to set the total beacon miss count */ |
| 4072 | QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52, |
| 4073 | |
Vignesh Viswanathan | 3c11bdd | 2017-10-30 18:13:55 +0530 | [diff] [blame] | 4074 | /* |
| 4075 | * Unsigned 32-bit value to configure the number of continuous |
| 4076 | * Beacon Miss which shall be used by the firmware to penalize |
| 4077 | * the RSSI for BTC. |
| 4078 | */ |
| 4079 | QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53, |
| 4080 | |
| 4081 | /* |
| 4082 | * 8-bit unsigned value to configure the driver and below layers to |
| 4083 | * enable/disable all fils features. |
| 4084 | * 0-enable, 1-disable |
| 4085 | */ |
| 4086 | QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54, |
| 4087 | |
Paul Zhang | d6d1635 | 2017-12-08 16:08:00 +0800 | [diff] [blame] | 4088 | /* 16-bit unsigned value to configure the level of WLAN latency |
| 4089 | * module. See enum qca_wlan_vendor_attr_config_latency_level. |
| 4090 | */ |
| 4091 | QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55, |
| 4092 | |
Abhishek Singh | d4212c2 | 2017-12-20 15:01:00 +0530 | [diff] [blame] | 4093 | /* |
| 4094 | * 8-bit unsigned value indicating the driver to use the RSNE as-is from |
| 4095 | * the connect interface. Exclusively used for the scenarios where the |
| 4096 | * device is used as a test bed device with special functionality and |
| 4097 | * not recommended for production. This helps driver to not validate the |
| 4098 | * RSNE passed from user space and thus allow arbitrary IE data to be |
| 4099 | * used for testing purposes. |
| 4100 | * 1-enable, 0-disable. |
| 4101 | * Applications set/reset this configuration. If not reset, this |
| 4102 | * parameter remains in use until the driver is unloaded. |
| 4103 | */ |
| 4104 | QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56, |
| 4105 | |
Ashish Kumar Dhanotiya | 6f00d69 | 2018-06-15 11:35:41 +0530 | [diff] [blame] | 4106 | /* |
| 4107 | * 8-bit unsigned value to trigger green Tx power saving. |
| 4108 | * 1-Enable, 0-Disable |
| 4109 | */ |
| 4110 | QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57, |
| 4111 | |
Srinivas Dasari | f4667d4 | 2019-07-01 16:22:13 +0530 | [diff] [blame] | 4112 | /* |
| 4113 | * Attribute to configure disconnect IEs to the driver. |
| 4114 | * This carries an array of unsigned 8-bit characters. |
| 4115 | * |
| 4116 | * If this is configured, driver shall fill the IEs in disassoc/deauth |
| 4117 | * frame. |
| 4118 | * These IEs are expected to be considered only for the next |
| 4119 | * immediate disconnection (disassoc/deauth frame) originated by |
| 4120 | * the DUT, irrespective of the entity (user space/driver/firmware) |
| 4121 | * triggering the disconnection. |
| 4122 | * The host drivers are not expected to use the IEs set through |
| 4123 | * this interface for further disconnections after the first immediate |
| 4124 | * disconnection initiated post the configuration. |
| 4125 | * If the IEs are also updated through cfg80211 interface (after the |
| 4126 | * enhancement to cfg80211_disconnect), host driver is expected to |
| 4127 | * take the union of IEs from both of these interfaces and send in |
| 4128 | * further disassoc/deauth frames. |
| 4129 | */ |
| 4130 | QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES = 58, |
| 4131 | |
Paul Zhang | e1b64ab | 2019-06-23 22:11:11 +0800 | [diff] [blame] | 4132 | /* 8-bit unsigned value for ELNA bypass. |
| 4133 | * 1-Enable, 0-Disable |
| 4134 | */ |
| 4135 | QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59, |
| 4136 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4137 | /* keep last */ |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 4138 | QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4139 | QCA_WLAN_VENDOR_ATTR_CONFIG_MAX = |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 4140 | QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4141 | }; |
| 4142 | |
| 4143 | /** |
| 4144 | * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting |
| 4145 | * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute |
| 4146 | * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID |
| 4147 | * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level |
| 4148 | * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag |
| 4149 | * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value |
| 4150 | * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value |
| 4151 | */ |
| 4152 | enum qca_wlan_vendor_attr_wifi_logger_start { |
| 4153 | QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0, |
| 4154 | QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1, |
| 4155 | QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2, |
| 4156 | QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3, |
| 4157 | /* keep last */ |
| 4158 | QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST, |
| 4159 | QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX = |
| 4160 | QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1, |
| 4161 | }; |
| 4162 | |
| 4163 | /* |
| 4164 | * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data |
| 4165 | * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute |
| 4166 | * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID |
| 4167 | * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value |
| 4168 | * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value |
| 4169 | */ |
| 4170 | enum qca_wlan_vendor_attr_wifi_logger_get_ring_data { |
| 4171 | QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0, |
| 4172 | QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1, |
| 4173 | /* keep last */ |
| 4174 | QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST, |
| 4175 | QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX = |
| 4176 | QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1, |
| 4177 | }; |
| 4178 | |
| 4179 | #ifdef WLAN_FEATURE_OFFLOAD_PACKETS |
| 4180 | /** |
| 4181 | * enum wlan_offloaded_packets_control - control commands |
| 4182 | * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets |
| 4183 | * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets |
| 4184 | * |
| 4185 | */ |
| 4186 | enum wlan_offloaded_packets_control { |
| 4187 | WLAN_START_OFFLOADED_PACKETS = 1, |
| 4188 | WLAN_STOP_OFFLOADED_PACKETS = 2 |
| 4189 | }; |
| 4190 | |
| 4191 | /** |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 4192 | * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication |
| 4193 | * |
| 4194 | * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to |
| 4195 | * the offloaded data. |
| 4196 | * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded |
| 4197 | * data. |
| 4198 | * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload |
| 4199 | * indication. |
| 4200 | */ |
| 4201 | enum qca_wlan_vendor_attr_data_offload_ind { |
| 4202 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0, |
| 4203 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION, |
| 4204 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL, |
| 4205 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT, |
| 4206 | |
| 4207 | /* keep last */ |
| 4208 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST, |
| 4209 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX = |
| 4210 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1 |
| 4211 | }; |
| 4212 | |
Arun Kumar Khandavalli | 330e6c3 | 2019-02-27 16:18:13 +0530 | [diff] [blame] | 4213 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 4214 | /** |
Arun Kumar Khandavalli | 330e6c3 | 2019-02-27 16:18:13 +0530 | [diff] [blame] | 4215 | * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command |
| 4216 | * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4217 | */ |
| 4218 | enum qca_wlan_vendor_attr_offloaded_packets { |
| 4219 | QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0, |
Arun Kumar Khandavalli | 330e6c3 | 2019-02-27 16:18:13 +0530 | [diff] [blame] | 4220 | /* |
| 4221 | * Takes valid value from the enum |
| 4222 | * qca_wlan_offloaded_packets_sending_control |
| 4223 | * Unsigned 32-bit value |
| 4224 | **/ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4225 | QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL, |
Arun Kumar Khandavalli | 330e6c3 | 2019-02-27 16:18:13 +0530 | [diff] [blame] | 4226 | /* Unsigned 32-bit value */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4227 | QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID, |
Arun Kumar Khandavalli | 330e6c3 | 2019-02-27 16:18:13 +0530 | [diff] [blame] | 4228 | /* array of u8 len: Max packet size */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4229 | QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA, |
Arun Kumar Khandavalli | 330e6c3 | 2019-02-27 16:18:13 +0530 | [diff] [blame] | 4230 | /* 6-byte MAC address used to represent source MAC address */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4231 | QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR, |
Arun Kumar Khandavalli | 330e6c3 | 2019-02-27 16:18:13 +0530 | [diff] [blame] | 4232 | /* 6-byte MAC address used to represent destination MAC address */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4233 | QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR, |
Arun Kumar Khandavalli | 330e6c3 | 2019-02-27 16:18:13 +0530 | [diff] [blame] | 4234 | /* Unsigned 32-bit value, in milli seconds */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4235 | QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD, |
Arun Kumar Khandavalli | 330e6c3 | 2019-02-27 16:18:13 +0530 | [diff] [blame] | 4236 | /* |
| 4237 | * This attribute is used and optional for specifying |
| 4238 | * ethernet protocol type, if not specified it will default to ipv4 |
| 4239 | * Unsigned 16-bit value |
| 4240 | **/ |
| 4241 | QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4242 | |
| 4243 | /* keep last */ |
| 4244 | QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST, |
| 4245 | QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX = |
| 4246 | QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1, |
| 4247 | }; |
Arun Kumar Khandavalli | 330e6c3 | 2019-02-27 16:18:13 +0530 | [diff] [blame] | 4248 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4249 | #endif |
| 4250 | |
| 4251 | /** |
| 4252 | * enum qca_wlan_rssi_monitoring_control - rssi control commands |
| 4253 | * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid |
| 4254 | * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start |
| 4255 | * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop |
| 4256 | */ |
| 4257 | enum qca_wlan_rssi_monitoring_control { |
| 4258 | QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0, |
| 4259 | QCA_WLAN_RSSI_MONITORING_START, |
| 4260 | QCA_WLAN_RSSI_MONITORING_STOP, |
| 4261 | }; |
| 4262 | |
| 4263 | /** |
| 4264 | * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring |
| 4265 | * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid |
| 4266 | * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control |
| 4267 | * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi |
| 4268 | * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi |
| 4269 | * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid |
| 4270 | * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi |
| 4271 | * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last |
| 4272 | * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max |
| 4273 | */ |
| 4274 | enum qca_wlan_vendor_attr_rssi_monitoring { |
| 4275 | QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0, |
| 4276 | |
| 4277 | QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL, |
| 4278 | QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID, |
| 4279 | |
| 4280 | QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI, |
| 4281 | QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI, |
| 4282 | |
| 4283 | /* attributes to be used/received in callback */ |
| 4284 | QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID, |
| 4285 | QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI, |
| 4286 | |
| 4287 | /* keep last */ |
| 4288 | QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST, |
| 4289 | QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX = |
| 4290 | QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1, |
| 4291 | }; |
| 4292 | |
| 4293 | /** |
Naveen Rawat | 6b44ef3 | 2018-05-09 11:09:41 -0700 | [diff] [blame] | 4294 | * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command |
| 4295 | * QCA_NL80211_VENDOR_SUBCMD_NDP. |
| 4296 | * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID |
| 4297 | * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd |
| 4298 | * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID: |
| 4299 | * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicats a service info |
| 4300 | * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz |
| 4301 | * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC |
| 4302 | * address |
| 4303 | * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being |
| 4304 | * created |
| 4305 | * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use |
| 4306 | * NCS_SK_TYPE/PMK/SCID instead |
| 4307 | * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS |
| 4308 | * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info |
| 4309 | * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id |
| 4310 | * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids |
| 4311 | * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response |
| 4312 | * code: accept/reject |
| 4313 | * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address |
| 4314 | * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by |
| 4315 | * driver |
| 4316 | * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by |
| 4317 | * driver |
| 4318 | * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration |
| 4319 | * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type |
| 4320 | * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO |
| 4321 | * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the |
| 4322 | * PMKID |
| 4323 | * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase |
| 4324 | * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name |
| 4325 | * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule |
| 4326 | * update: |
| 4327 | * BIT_0: NSS Update |
| 4328 | * BIT_1: Channel list update |
| 4329 | * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss |
| 4330 | * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL |
| 4331 | * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH: |
| 4332 | * 0:20 MHz, |
| 4333 | * 1:40 MHz, |
| 4334 | * 2:80 MHz, |
| 4335 | * 3:160 MHz |
| 4336 | * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width |
| 4337 | * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute |
| 4338 | * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type |
Naveen Rawat | 46f1362 | 2018-05-17 14:45:45 -0700 | [diff] [blame] | 4339 | * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array |
| 4340 | * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating |
| 4341 | * transport port used by NDP. |
| 4342 | * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating |
| 4343 | * protocol used by NDP and assigned by the Internet Assigned Numbers Authority |
| 4344 | * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml |
Naveen Rawat | 6b44ef3 | 2018-05-09 11:09:41 -0700 | [diff] [blame] | 4345 | */ |
| 4346 | enum qca_wlan_vendor_attr_ndp_params { |
| 4347 | QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0, |
Naveen Rawat | 46f1362 | 2018-05-17 14:45:45 -0700 | [diff] [blame] | 4348 | QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1, |
| 4349 | QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2, |
| 4350 | QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3, |
| 4351 | QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4, |
| 4352 | QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5, |
| 4353 | QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6, |
| 4354 | QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7, |
| 4355 | QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8, |
| 4356 | QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9, |
| 4357 | QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10, |
| 4358 | QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11, |
| 4359 | QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12, |
| 4360 | QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13, |
| 4361 | QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14, |
| 4362 | QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15, |
| 4363 | QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16, |
| 4364 | QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17, |
| 4365 | QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18, |
| 4366 | QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19, |
| 4367 | QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20, |
| 4368 | QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21, |
| 4369 | QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22, |
| 4370 | QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23, |
| 4371 | QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24, |
| 4372 | QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25, |
| 4373 | QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26, |
| 4374 | QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27, |
| 4375 | QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28, |
| 4376 | QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29, |
Naveen Rawat | 6b44ef3 | 2018-05-09 11:09:41 -0700 | [diff] [blame] | 4377 | |
| 4378 | /* keep last */ |
| 4379 | QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST, |
| 4380 | QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX = |
| 4381 | QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1, |
| 4382 | }; |
| 4383 | |
| 4384 | /** |
| 4385 | * enum qca_wlan_ndp_sub_cmd - NDP sub comands types for |
| 4386 | * QCA_NL80211_VENDOR_SUBCMD_NDP. |
| 4387 | * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value |
| 4388 | * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: create a ndi |
| 4389 | * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: delete a ndi |
| 4390 | * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST: initiate a ndp session |
| 4391 | * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above |
| 4392 | * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session |
| 4393 | * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above |
| 4394 | * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end |
| 4395 | * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above |
| 4396 | * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request |
| 4397 | * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete |
| 4398 | * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request |
| 4399 | * being received |
| 4400 | * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule |
| 4401 | * update |
| 4402 | */ |
| 4403 | enum qca_wlan_ndp_sub_cmd { |
| 4404 | QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0, |
| 4405 | QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1, |
| 4406 | QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2, |
| 4407 | QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3, |
| 4408 | QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4, |
| 4409 | QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5, |
| 4410 | QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6, |
| 4411 | QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7, |
| 4412 | QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8, |
| 4413 | QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9, |
| 4414 | QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10, |
| 4415 | QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11, |
| 4416 | QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12 |
| 4417 | }; |
| 4418 | |
| 4419 | /** |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4420 | * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel |
| 4421 | * information. These attributes are sent as part of |
| 4422 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following |
| 4423 | * attributes correspond to a single channel. |
| 4424 | * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16) |
| 4425 | * with flags specified in qca_wlan_vendor_channel_prop_flags_ext. |
| 4426 | * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16) |
| 4427 | * with flags specified in qca_wlan_vendor_channel_prop_flags_ext. |
| 4428 | * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency |
| 4429 | * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum |
| 4430 | * regulatory transmission power |
| 4431 | * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum |
| 4432 | * transmission power |
| 4433 | * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum |
| 4434 | * transmission power |
| 4435 | * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory |
| 4436 | * class id |
| 4437 | * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum |
| 4438 | * antenna gain in dbm |
| 4439 | * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0 |
| 4440 | * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1 |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 4441 | * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht |
| 4442 | * segment 0 in center freq in MHz. |
| 4443 | * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht |
| 4444 | * segment 1 in center freq in MHz. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4445 | * |
| 4446 | */ |
| 4447 | enum qca_wlan_vendor_external_acs_event_chan_info_attr { |
| 4448 | QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0, |
| 4449 | |
| 4450 | QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1, |
| 4451 | QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2, |
| 4452 | QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3, |
| 4453 | QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4, |
| 4454 | QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5, |
| 4455 | QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6, |
| 4456 | QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7, |
| 4457 | QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8, |
| 4458 | QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9, |
| 4459 | QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10, |
Krishna Rao | ddd81ae | 2017-09-23 14:54:24 +0530 | [diff] [blame] | 4460 | /* |
| 4461 | * A bitmask (u32) with flags specified in |
| 4462 | * enum qca_wlan_vendor_channel_prop_flags_2. |
| 4463 | */ |
| 4464 | QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4465 | |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 4466 | /* |
| 4467 | * VHT segment 0 in MHz (u32) and the attribute is mandatory. |
| 4468 | * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes |
| 4469 | * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 |
| 4470 | * along with |
| 4471 | * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0. |
| 4472 | * |
| 4473 | * If both the driver and user-space application supports the 6 GHz |
| 4474 | * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 |
| 4475 | * is deprecated and |
| 4476 | * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 |
| 4477 | * should be used. |
| 4478 | * |
| 4479 | * To maintain backward compatibility, |
| 4480 | * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 |
| 4481 | * is still used if either of the driver or user space application |
| 4482 | * doesn't support the 6 GHz band. |
| 4483 | */ |
| 4484 | QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 12, |
| 4485 | |
| 4486 | /* |
| 4487 | * VHT segment 1 in MHz (u32) and the attribute is mandatory. |
| 4488 | * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes |
| 4489 | * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 |
| 4490 | * along with |
| 4491 | * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1. |
| 4492 | * |
| 4493 | * If both the driver and user-space application supports the 6 GHz |
| 4494 | * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 |
| 4495 | * is deprecated and |
| 4496 | * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 |
| 4497 | * should be considered. |
| 4498 | * |
| 4499 | * To maintain backward compatibility, |
| 4500 | * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 |
| 4501 | * is still used if either of the driver or user space application |
| 4502 | * doesn't support the 6 GHz band. |
| 4503 | */ |
| 4504 | QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 13, |
| 4505 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4506 | /* keep last */ |
| 4507 | QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST, |
| 4508 | QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX = |
| 4509 | QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1, |
| 4510 | }; |
| 4511 | |
| 4512 | /** |
| 4513 | * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command |
| 4514 | * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host |
| 4515 | * driver. |
| 4516 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to |
| 4517 | * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why |
| 4518 | * ACS need to be started |
| 4519 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does |
| 4520 | * driver supports spectral scanning or not |
| 4521 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is |
| 4522 | * offloaded to firmware. |
| 4523 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver |
| 4524 | * provides additional channel capability as part of scan operation. |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 4525 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate |
| 4526 | * interface status is UP |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4527 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of |
| 4528 | * interface. It takes one of nl80211_iftype values. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4529 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound |
| 4530 | * of chan width. ACS logic should try to get a channel with specified width |
| 4531 | * if not found then look for lower values. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4532 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands |
| 4533 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as |
| 4534 | * a/b/g/n/ac. |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 4535 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list |
| 4536 | * among which ACS should choose best frequency. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4537 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the |
| 4538 | * driver which will have <channel(u8), weight(u8)> format as array of |
| 4539 | * nested values. |
| 4540 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute |
| 4541 | * for each channel. It takes attr as defined in |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 4542 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as |
| 4543 | * PCL mandatory, PCL preferred, etc.It uses values defined in enum |
| 4544 | * qca_wlan_vendor_attr_external_acs_policy. |
Krishna Rao | fcb834f | 2017-11-11 20:38:29 +0530 | [diff] [blame] | 4545 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF |
| 4546 | * Operating Parameter (RROP) availability information (u16). It uses values |
| 4547 | * defined in enum qca_wlan_vendor_attr_rropavail_info. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4548 | */ |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 4549 | enum qca_wlan_vendor_attr_external_acs_event { |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4550 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0, |
| 4551 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1, |
| 4552 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2, |
| 4553 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3, |
| 4554 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 4555 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5, |
| 4556 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4557 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7, |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 4558 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8, |
| 4559 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9, |
| 4560 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10, |
| 4561 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11, |
| 4562 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12, |
| 4563 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13, |
Krishna Rao | fcb834f | 2017-11-11 20:38:29 +0530 | [diff] [blame] | 4564 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4565 | |
| 4566 | /* keep last */ |
| 4567 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST, |
| 4568 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX = |
| 4569 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1, |
| 4570 | }; |
| 4571 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 4572 | enum qca_iface_type { |
| 4573 | QCA_IFACE_TYPE_STA, |
| 4574 | QCA_IFACE_TYPE_AP, |
| 4575 | QCA_IFACE_TYPE_P2P_CLIENT, |
| 4576 | QCA_IFACE_TYPE_P2P_GO, |
| 4577 | QCA_IFACE_TYPE_IBSS, |
| 4578 | QCA_IFACE_TYPE_TDLS, |
| 4579 | }; |
| 4580 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4581 | /** |
| 4582 | * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command |
Jayachandran Sreekumaran | 203cf90 | 2019-01-08 13:36:52 +0530 | [diff] [blame] | 4583 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and |
| 4584 | * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4585 | * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value |
| 4586 | * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number |
| 4587 | * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight |
Jayachandran Sreekumaran | 203cf90 | 2019-01-08 13:36:52 +0530 | [diff] [blame] | 4588 | * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency |
| 4589 | * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4590 | */ |
| 4591 | enum qca_wlan_vendor_attr_pcl_config { |
Kapil Gupta | c427841 | 2017-05-18 20:58:01 +0530 | [diff] [blame] | 4592 | QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0, |
| 4593 | QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1, |
| 4594 | QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2, |
Jayachandran Sreekumaran | 203cf90 | 2019-01-08 13:36:52 +0530 | [diff] [blame] | 4595 | QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3, |
| 4596 | QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4597 | }; |
| 4598 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 4599 | enum qca_set_band { |
| 4600 | QCA_SETBAND_AUTO, |
| 4601 | QCA_SETBAND_5G, |
| 4602 | QCA_SETBAND_2G, |
| 4603 | }; |
| 4604 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4605 | /** |
| 4606 | * enum set_reset_packet_filter - set packet filter control commands |
| 4607 | * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter |
| 4608 | * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter |
Nachiket Kukade | b29adc4 | 2018-05-25 14:52:55 +0530 | [diff] [blame] | 4609 | * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data |
| 4610 | * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data |
| 4611 | * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter |
| 4612 | * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4613 | */ |
| 4614 | enum set_reset_packet_filter { |
| 4615 | QCA_WLAN_SET_PACKET_FILTER = 1, |
| 4616 | QCA_WLAN_GET_PACKET_FILTER = 2, |
Nachiket Kukade | b29adc4 | 2018-05-25 14:52:55 +0530 | [diff] [blame] | 4617 | QCA_WLAN_WRITE_PACKET_FILTER = 3, |
| 4618 | QCA_WLAN_READ_PACKET_FILTER = 4, |
| 4619 | QCA_WLAN_ENABLE_PACKET_FILTER = 5, |
| 4620 | QCA_WLAN_DISABLE_PACKET_FILTER = 6, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4621 | }; |
| 4622 | |
| 4623 | /** |
Nachiket Kukade | a52b818 | 2018-05-22 12:17:15 +0530 | [diff] [blame] | 4624 | * enum qca_wlan_vendor_attr_packet_filter - APF control commands |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4625 | * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid |
| 4626 | * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID |
| 4627 | * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version |
| 4628 | * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length |
| 4629 | * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset |
Nachiket Kukade | a52b818 | 2018-05-22 12:17:15 +0530 | [diff] [blame] | 4630 | * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions |
Nachiket Kukade | b29adc4 | 2018-05-25 14:52:55 +0530 | [diff] [blame] | 4631 | * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program |
| 4632 | * section in packet filter buffer |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4633 | */ |
| 4634 | enum qca_wlan_vendor_attr_packet_filter { |
| 4635 | QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0, |
| 4636 | QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER, |
| 4637 | QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION, |
| 4638 | QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID, |
| 4639 | QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE, |
| 4640 | QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET, |
| 4641 | QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM, |
Nachiket Kukade | b29adc4 | 2018-05-25 14:52:55 +0530 | [diff] [blame] | 4642 | QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4643 | |
| 4644 | /* keep last */ |
| 4645 | QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST, |
| 4646 | QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX = |
| 4647 | QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1, |
| 4648 | }; |
| 4649 | |
| 4650 | /** |
| 4651 | * enum qca_wlan_vendor_attr_wake_stats - wake lock stats |
| 4652 | * @QCA_WLAN_VENDOR_ATTR_GET_WAKE_STATS_INVALID: invalid |
| 4653 | * @QCA_WLAN_VENDOR_ATTR_TOTAL_CMD_EVENT_WAKE: |
| 4654 | * @QCA_WLAN_VENDOR_ATTR_CMD_EVENT_WAKE_CNT_PTR: |
| 4655 | * @QCA_WLAN_VENDOR_ATTR_CMD_EVENT_WAKE_CNT_SZ: |
| 4656 | * @QCA_WLAN_VENDOR_ATTR_TOTAL_DRIVER_FW_LOCAL_WAKE: |
| 4657 | * @QCA_WLAN_VENDOR_ATTR_DRIVER_FW_LOCAL_WAKE_CNT_PTR: |
| 4658 | * @QCA_WLAN_VENDOR_ATTR_DRIVER_FW_LOCAL_WAKE_CNT_SZ: |
| 4659 | * @QCA_WLAN_VENDOR_ATTR_TOTAL_RX_DATA_WAKE: |
| 4660 | * total rx wakeup count |
| 4661 | * @QCA_WLAN_VENDOR_ATTR_RX_UNICAST_CNT: |
| 4662 | * Total rx unicast packet which woke up host |
| 4663 | * @QCA_WLAN_VENDOR_ATTR_RX_MULTICAST_CNT: |
| 4664 | * Total rx multicast packet which woke up host |
| 4665 | * @QCA_WLAN_VENDOR_ATTR_RX_BROADCAST_CNT: |
| 4666 | * Total rx broadcast packet which woke up host |
| 4667 | * @QCA_WLAN_VENDOR_ATTR_ICMP_PKT: |
| 4668 | * wake icmp packet count |
| 4669 | * @QCA_WLAN_VENDOR_ATTR_ICMP6_PKT: |
| 4670 | * wake icmp6 packet count |
| 4671 | * @QCA_WLAN_VENDOR_ATTR_ICMP6_RA: |
| 4672 | * wake icmp6 RA packet count |
| 4673 | * @QCA_WLAN_VENDOR_ATTR_ICMP6_NA: |
| 4674 | * wake icmp6 NA packet count |
| 4675 | * @QCA_WLAN_VENDOR_ATTR_ICMP6_NS: |
| 4676 | * wake icmp6 NS packet count |
| 4677 | * @QCA_WLAN_VENDOR_ATTR_ICMP4_RX_MULTICAST_CNT: |
| 4678 | * Rx wake packet count due to ipv4 multicast |
| 4679 | * @QCA_WLAN_VENDOR_ATTR_ICMP6_RX_MULTICAST_CNT: |
| 4680 | * Rx wake packet count due to ipv6 multicast |
| 4681 | * @QCA_WLAN_VENDOR_ATTR_OTHER_RX_MULTICAST_CNT: |
| 4682 | * Rx wake packet count due to non-ipv4 and non-ipv6 packets |
| 4683 | * @QCA_WLAN_VENDOR_ATTR_RSSI_BREACH_CNT: |
| 4684 | * wake rssi breach packet count |
| 4685 | * @QCA_WLAN_VENDOR_ATTR_LOW_RSSI_CNT: |
| 4686 | * wake low rssi packet count |
| 4687 | * @QCA_WLAN_VENDOR_ATTR_GSCAN_CNT: |
| 4688 | * wake gscan packet count |
| 4689 | * @QCA_WLAN_VENDOR_ATTR_PNO_COMPLETE_CNT: |
| 4690 | * wake pno complete packet count |
| 4691 | * @QCA_WLAN_VENDOR_ATTR_PNO_MATCH_CNT: |
| 4692 | * wake pno match packet count |
| 4693 | */ |
| 4694 | enum qca_wlan_vendor_attr_wake_stats { |
| 4695 | QCA_WLAN_VENDOR_ATTR_GET_WAKE_STATS_INVALID = 0, |
| 4696 | QCA_WLAN_VENDOR_ATTR_TOTAL_CMD_EVENT_WAKE, |
| 4697 | QCA_WLAN_VENDOR_ATTR_CMD_EVENT_WAKE_CNT_PTR, |
| 4698 | QCA_WLAN_VENDOR_ATTR_CMD_EVENT_WAKE_CNT_SZ, |
| 4699 | QCA_WLAN_VENDOR_ATTR_TOTAL_DRIVER_FW_LOCAL_WAKE, |
| 4700 | QCA_WLAN_VENDOR_ATTR_DRIVER_FW_LOCAL_WAKE_CNT_PTR, |
| 4701 | QCA_WLAN_VENDOR_ATTR_DRIVER_FW_LOCAL_WAKE_CNT_SZ, |
| 4702 | QCA_WLAN_VENDOR_ATTR_TOTAL_RX_DATA_WAKE, |
| 4703 | QCA_WLAN_VENDOR_ATTR_RX_UNICAST_CNT, |
| 4704 | QCA_WLAN_VENDOR_ATTR_RX_MULTICAST_CNT, |
| 4705 | QCA_WLAN_VENDOR_ATTR_RX_BROADCAST_CNT, |
| 4706 | QCA_WLAN_VENDOR_ATTR_ICMP_PKT, |
| 4707 | QCA_WLAN_VENDOR_ATTR_ICMP6_PKT, |
| 4708 | QCA_WLAN_VENDOR_ATTR_ICMP6_RA, |
| 4709 | QCA_WLAN_VENDOR_ATTR_ICMP6_NA, |
| 4710 | QCA_WLAN_VENDOR_ATTR_ICMP6_NS, |
| 4711 | QCA_WLAN_VENDOR_ATTR_ICMP4_RX_MULTICAST_CNT, |
| 4712 | QCA_WLAN_VENDOR_ATTR_ICMP6_RX_MULTICAST_CNT, |
| 4713 | QCA_WLAN_VENDOR_ATTR_OTHER_RX_MULTICAST_CNT, |
| 4714 | QCA_WLAN_VENDOR_ATTR_RSSI_BREACH_CNT, |
| 4715 | QCA_WLAN_VENDOR_ATTR_LOW_RSSI_CNT, |
| 4716 | QCA_WLAN_VENDOR_ATTR_GSCAN_CNT, |
| 4717 | QCA_WLAN_VENDOR_ATTR_PNO_COMPLETE_CNT, |
| 4718 | QCA_WLAN_VENDOR_ATTR_PNO_MATCH_CNT, |
| 4719 | /* keep last */ |
| 4720 | QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST, |
| 4721 | QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX = |
| 4722 | QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1, |
| 4723 | }; |
| 4724 | |
| 4725 | /** |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 4726 | * enum qca_vendor_element_id - QCA Vendor Specific element types |
| 4727 | * |
| 4728 | * These values are used to identify QCA Vendor Specific elements. The |
| 4729 | * payload of the element starts with the three octet OUI (OUI_QCA) and |
| 4730 | * is followed by a single octet type which is defined by this enum. |
| 4731 | * |
| 4732 | * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list. |
| 4733 | * This element can be used to specify preference order for supported |
| 4734 | * channels. The channels in this list are in preference order (the first |
| 4735 | * one has the highest preference) and are described as a pair of |
| 4736 | * (global) Operating Class and Channel Number (each one octet) fields. |
| 4737 | * |
| 4738 | * This extends the standard P2P functionality by providing option to have |
| 4739 | * more than one preferred operating channel. When this element is present, |
| 4740 | * it replaces the preference indicated in the Operating Channel attribute. |
| 4741 | * For supporting other implementations, the Operating Channel attribute is |
| 4742 | * expected to be used with the highest preference channel. Similarly, all |
| 4743 | * the channels included in this Preferred channel list element are |
| 4744 | * expected to be included in the Channel List attribute. |
| 4745 | * |
| 4746 | * This vendor element may be included in GO Negotiation Request, P2P |
| 4747 | * Invitation Request, and Provision Discovery Request frames. |
| 4748 | * |
| 4749 | * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element. |
| 4750 | * This element can be used for pre-standard publication testing of HE |
| 4751 | * before P802.11ax draft assigns the element ID. The payload of this |
| 4752 | * vendor specific element is defined by the latest P802.11ax draft. |
| 4753 | * Please note that the draft is still work in progress and this element |
| 4754 | * payload is subject to change. |
| 4755 | * |
| 4756 | * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element. |
| 4757 | * This element can be used for pre-standard publication testing of HE |
| 4758 | * before P802.11ax draft assigns the element ID. The payload of this |
| 4759 | * vendor specific element is defined by the latest P802.11ax draft. |
| 4760 | * Please note that the draft is still work in progress and this element |
| 4761 | * payload is subject to change. |
| 4762 | * |
| 4763 | * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set |
| 4764 | * element). |
| 4765 | * This element can be used for pre-standard publication testing of HE |
| 4766 | * before P802.11ax draft assigns the element ID extension. The payload of |
| 4767 | * this vendor specific element is defined by the latest P802.11ax draft |
| 4768 | * (not including the Element ID Extension field). Please note that the |
| 4769 | * draft is still work in progress and this element payload is subject to |
| 4770 | * change. |
| 4771 | * |
| 4772 | * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element. |
| 4773 | * This element can be used for pre-standard publication testing of HE |
| 4774 | * before P802.11ax draft assigns the element ID extension. The payload of |
| 4775 | * this vendor specific element is defined by the latest P802.11ax draft |
| 4776 | * (not including the Element ID Extension field). Please note that the |
| 4777 | * draft is still work in progress and this element payload is subject to |
| 4778 | * change. |
| 4779 | * |
| 4780 | * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element. |
| 4781 | * This element can be used for pre-standard publication testing of HE |
| 4782 | * before P802.11ax draft assigns the element ID extension. The payload of |
| 4783 | * this vendor specific element is defined by the latest P802.11ax draft |
| 4784 | * (not including the Element ID Extension field). Please note that the |
| 4785 | * draft is still work in progress and this element payload is subject to |
| 4786 | * change. |
| 4787 | */ |
| 4788 | enum qca_vendor_element_id { |
| 4789 | QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0, |
| 4790 | QCA_VENDOR_ELEM_HE_CAPAB = 1, |
| 4791 | QCA_VENDOR_ELEM_HE_OPER = 2, |
| 4792 | QCA_VENDOR_ELEM_RAPS = 3, |
| 4793 | QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4, |
| 4794 | QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5, |
| 4795 | }; |
| 4796 | |
| 4797 | /** |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4798 | * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture |
| 4799 | * @QCA_WLAN_VENDOR_ATTR_TSF_INVALID: Invalid attribute value |
| 4800 | * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32) |
| 4801 | * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value |
| 4802 | * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized |
| 4803 | * SOC timer value at TSF capture |
| 4804 | * @QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST: after last |
| 4805 | * @QCA_WLAN_VENDOR_ATTR_TSF_MAX: Max value |
| 4806 | */ |
| 4807 | enum qca_vendor_attr_tsf_cmd { |
| 4808 | QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0, |
| 4809 | QCA_WLAN_VENDOR_ATTR_TSF_CMD, |
| 4810 | QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE, |
| 4811 | QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE, |
| 4812 | QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST, |
| 4813 | QCA_WLAN_VENDOR_ATTR_TSF_MAX = |
| 4814 | QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1 |
| 4815 | }; |
| 4816 | |
| 4817 | /** |
| 4818 | * enum qca_tsf_operation: TSF driver commands |
| 4819 | * @QCA_TSF_CAPTURE: Initiate TSF Capture |
| 4820 | * @QCA_TSF_GET: Get TSF capture value |
| 4821 | * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value |
| 4822 | */ |
| 4823 | enum qca_tsf_cmd { |
| 4824 | QCA_TSF_CAPTURE, |
| 4825 | QCA_TSF_GET, |
| 4826 | QCA_TSF_SYNC_GET, |
| 4827 | }; |
| 4828 | |
| 4829 | /** |
| 4830 | * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list |
| 4831 | * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value |
| 4832 | * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type |
| 4833 | * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list |
Jayachandran Sreekumaran | 203cf90 | 2019-01-08 13:36:52 +0530 | [diff] [blame] | 4834 | * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4835 | * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last |
| 4836 | * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max |
| 4837 | */ |
| 4838 | enum qca_vendor_attr_get_preferred_freq_list { |
| 4839 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID, |
| 4840 | /* A 32-unsigned value; the interface type/mode for which the preferred |
| 4841 | * frequency list is requested (see enum qca_iface_type for possible |
| 4842 | * values); used in both south- and north-bound. |
| 4843 | */ |
| 4844 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE, |
| 4845 | /* An array of 32-unsigned values; values are frequency (MHz); used |
| 4846 | * in north-bound only. |
| 4847 | */ |
| 4848 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST, |
Jayachandran Sreekumaran | 203cf90 | 2019-01-08 13:36:52 +0530 | [diff] [blame] | 4849 | /* An array of nested values as per enum |
| 4850 | * qca_wlan_vendor_attr_pcl_config attribute. |
| 4851 | * Each element contains frequency (MHz), weight, and flag |
| 4852 | * bit mask indicating how the frequency should be used in P2P |
| 4853 | * negotiation. |
| 4854 | */ |
| 4855 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4856 | /* keep last */ |
| 4857 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST, |
| 4858 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX = |
| 4859 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1 |
| 4860 | }; |
| 4861 | |
| 4862 | /** |
| 4863 | * enum qca_vendor_attr_probable_oper_channel - channel hint |
| 4864 | * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value |
| 4865 | * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type |
| 4866 | * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value |
| 4867 | * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last |
| 4868 | * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max |
| 4869 | */ |
| 4870 | enum qca_vendor_attr_probable_oper_channel { |
| 4871 | QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID, |
| 4872 | /* 32-bit unsigned value; indicates the connection/iface type likely to |
| 4873 | * come on this channel (see enum qca_iface_type). |
| 4874 | */ |
| 4875 | QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE, |
| 4876 | /* 32-bit unsigned value; the frequency (MHz) of the probable channel */ |
| 4877 | QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ, |
| 4878 | /* keep last */ |
| 4879 | QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST, |
| 4880 | QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX = |
| 4881 | QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1 |
| 4882 | }; |
| 4883 | |
| 4884 | /** |
| 4885 | * enum qca_wlan_vendor_attr_gw_param_config - gateway param config |
| 4886 | * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid |
| 4887 | * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr |
| 4888 | * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr |
| 4889 | * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr |
| 4890 | */ |
| 4891 | enum qca_wlan_vendor_attr_gw_param_config { |
| 4892 | QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0, |
| 4893 | QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR, |
| 4894 | QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR, |
| 4895 | QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR, |
| 4896 | QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST, |
| 4897 | QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX = |
| 4898 | QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1, |
| 4899 | }; |
| 4900 | |
| 4901 | /** |
| 4902 | * enum drv_dbs_capability - DBS capability |
| 4903 | * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled |
| 4904 | * @DRV_DBS_CAPABILITY_1X1: 1x1 |
| 4905 | * @DRV_DBS_CAPABILITY_2X2: 2x2 |
| 4906 | */ |
| 4907 | enum drv_dbs_capability { |
| 4908 | DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */ |
| 4909 | DRV_DBS_CAPABILITY_1X1, |
| 4910 | DRV_DBS_CAPABILITY_2X2, |
| 4911 | }; |
| 4912 | |
| 4913 | /** |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 4914 | * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease |
| 4915 | * |
| 4916 | * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB. |
| 4917 | */ |
| 4918 | enum qca_vendor_attr_txpower_decr_db { |
| 4919 | QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID, |
| 4920 | /* |
| 4921 | * 8-bit unsigned value to indicate the reduction of TX power in dB for |
| 4922 | * a virtual interface. |
| 4923 | */ |
| 4924 | QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB, |
| 4925 | /* keep last */ |
| 4926 | QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST, |
| 4927 | QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX = |
| 4928 | QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1 |
| 4929 | }; |
| 4930 | |
| 4931 | /** |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 4932 | * enum qca_vendor_attr_ota_test - Enable OTA test |
| 4933 | * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value |
| 4934 | * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test |
| 4935 | * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last |
| 4936 | * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max |
| 4937 | */ |
| 4938 | enum qca_vendor_attr_ota_test { |
| 4939 | QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID, |
| 4940 | /* 8-bit unsigned value to indicate if OTA test is enabled */ |
| 4941 | QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE, |
| 4942 | /* keep last */ |
| 4943 | QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST, |
| 4944 | QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX = |
| 4945 | QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1 |
| 4946 | }; |
| 4947 | |
| 4948 | /** enum qca_vendor_attr_txpower_scale - vendor sub commands index |
| 4949 | * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value |
| 4950 | * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value |
| 4951 | * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value |
| 4952 | * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value |
| 4953 | */ |
| 4954 | enum qca_vendor_attr_txpower_scale { |
| 4955 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID, |
| 4956 | /* 8-bit unsigned value to indicate the scaling of tx power */ |
| 4957 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE, |
| 4958 | /* keep last */ |
| 4959 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST, |
| 4960 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX = |
| 4961 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1 |
| 4962 | }; |
| 4963 | |
| 4964 | /** |
| 4965 | * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index |
| 4966 | * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value |
| 4967 | * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value |
| 4968 | * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value |
| 4969 | * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value |
| 4970 | */ |
| 4971 | enum qca_vendor_attr_txpower_scale_decr_db { |
| 4972 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID, |
| 4973 | /* 8-bit unsigned value to indicate the scaling of tx power */ |
| 4974 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB, |
| 4975 | /* keep last */ |
| 4976 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST, |
| 4977 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX = |
| 4978 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1 |
| 4979 | }; |
| 4980 | |
| 4981 | /** |
| 4982 | * enum dfs_mode - state of DFS mode |
| 4983 | * @DFS_MODE_NONE: DFS mode attribute is none |
| 4984 | * @DFS_MODE_ENABLE: DFS mode is enabled |
| 4985 | * @DFS_MODE_DISABLE: DFS mode is disabled |
| 4986 | * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning |
| 4987 | */ |
| 4988 | enum dfs_mode { |
| 4989 | DFS_MODE_NONE, |
| 4990 | DFS_MODE_ENABLE, |
| 4991 | DFS_MODE_DISABLE, |
| 4992 | DFS_MODE_DEPRIORITIZE |
| 4993 | }; |
| 4994 | |
| 4995 | /** |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 4996 | * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes |
| 4997 | * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY. |
| 4998 | * |
| 4999 | * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8) |
| 5000 | * DFS mode for ACS operation from enum qca_acs_dfs_mode. |
| 5001 | * |
| 5002 | * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8) |
| 5003 | * channel number hint for ACS operation, if valid channel is specified then |
| 5004 | * ACS operation gives priority to this channel. |
| 5005 | * Note: If both the driver and user space application supports the 6 GHz band, |
| 5006 | * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT |
| 5007 | * should be used. |
| 5008 | * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT |
| 5009 | * is still used if either of the driver or user space application doesn't |
| 5010 | * support the 6 GHz band. |
| 5011 | * |
| 5012 | * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32). |
| 5013 | * Channel center frequency (MHz) hint for ACS operation, if a valid center |
| 5014 | * frequency is specified, ACS operation gives priority to this channel. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 5015 | */ |
| 5016 | enum qca_wlan_vendor_attr_acs_config { |
| 5017 | QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0, |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 5018 | QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1, |
| 5019 | QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2, |
| 5020 | QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 5021 | |
| 5022 | QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST, |
| 5023 | QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX = |
| 5024 | QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 5025 | }; |
| 5026 | |
| 5027 | /** |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 5028 | * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability |
| 5029 | */ |
| 5030 | enum qca_wlan_vendor_attr_get_hw_capability { |
| 5031 | QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID, |
| 5032 | /* |
| 5033 | * Antenna isolation |
| 5034 | * An attribute used in the response. |
| 5035 | * The content of this attribute is encoded in a byte array. Each byte |
| 5036 | * value is an antenna isolation value. The array length is the number |
| 5037 | * of antennas. |
| 5038 | */ |
| 5039 | QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION, |
| 5040 | /* |
| 5041 | * Request HW capability |
| 5042 | * An attribute used in the request. |
| 5043 | * The content of this attribute is a u32 array for one or more of |
| 5044 | * hardware capabilities (attribute IDs) that are being requested. Each |
| 5045 | * u32 value has a value from this |
| 5046 | * enum qca_wlan_vendor_attr_get_hw_capability |
| 5047 | * identifying which capabilities are requested. |
| 5048 | */ |
| 5049 | QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY, |
| 5050 | |
| 5051 | /* keep last */ |
| 5052 | QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST, |
| 5053 | QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX = |
| 5054 | QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1, |
| 5055 | }; |
| 5056 | |
| 5057 | /** |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 5058 | * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config - |
| 5059 | * config params for sta roam policy |
| 5060 | * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid |
| 5061 | * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels |
| 5062 | * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL: |
| 5063 | * If sta should skip unsafe channels or not in scanning |
| 5064 | * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST: |
| 5065 | * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute |
| 5066 | */ |
| 5067 | enum qca_wlan_vendor_attr_sta_connect_roam_policy_config { |
| 5068 | QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0, |
| 5069 | QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE, |
| 5070 | QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL, |
| 5071 | |
| 5072 | QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST, |
| 5073 | QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX = |
| 5074 | QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1, |
| 5075 | }; |
| 5076 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 5077 | /* Attributes for FTM commands and events */ |
| 5078 | |
| 5079 | /** |
| 5080 | * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities |
| 5081 | * |
| 5082 | * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See |
| 5083 | * enum qca_wlan_vendor_attr_loc_capa_flags. |
| 5084 | * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number |
| 5085 | * of measurement sessions that can run concurrently. |
| 5086 | * Default is one session (no session concurrency). |
| 5087 | * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique |
| 5088 | * peers that are supported in running sessions. For example, |
| 5089 | * if the value is 8 and maximum number of sessions is 2, you can |
| 5090 | * have one session with 8 unique peers, or 2 sessions with 4 unique |
| 5091 | * peers each, and so on. |
| 5092 | * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number |
| 5093 | * of bursts per peer, as an exponent (2^value). Default is 0, |
| 5094 | * meaning no multi-burst support. |
| 5095 | * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number |
| 5096 | * of measurement exchanges allowed in a single burst. |
| 5097 | * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement |
| 5098 | * types. A bit mask (unsigned 32 bit value), each bit corresponds |
| 5099 | * to an AOA type as defined by enum qca_vendor_attr_aoa_type. |
| 5100 | */ |
| 5101 | enum qca_wlan_vendor_attr_loc_capa { |
| 5102 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID, |
| 5103 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS, |
| 5104 | QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS, |
| 5105 | QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS, |
| 5106 | QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP, |
| 5107 | QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST, |
| 5108 | QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES, |
| 5109 | /* keep last */ |
| 5110 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST, |
| 5111 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX = |
| 5112 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1, |
| 5113 | }; |
| 5114 | |
| 5115 | /** |
| 5116 | * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags |
| 5117 | * |
| 5118 | * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver |
| 5119 | * can be configured as an FTM responder (for example, an AP that |
| 5120 | * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER |
| 5121 | * will be supported if set. |
| 5122 | * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver |
| 5123 | * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION |
| 5124 | * will be supported if set. |
| 5125 | * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder |
| 5126 | * supports immediate (ASAP) response. |
| 5127 | * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone |
| 5128 | * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS. |
| 5129 | * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports |
| 5130 | * requesting AOA measurements as part of an FTM session. |
| 5131 | */ |
| 5132 | enum qca_wlan_vendor_attr_loc_capa_flags { |
| 5133 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0, |
| 5134 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1, |
| 5135 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2, |
| 5136 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3, |
| 5137 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4, |
| 5138 | }; |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 5139 | |
| 5140 | /** |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 5141 | * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration |
| 5142 | * |
| 5143 | * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8) |
| 5144 | * Channel number on which Access Point should restart. |
| 5145 | * Note: If both the driver and user space application supports the 6 GHz band, |
| 5146 | * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY |
| 5147 | * should be used. |
| 5148 | * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL |
| 5149 | * is still used if either of the driver or user space application doesn't |
| 5150 | * support the 6 GHz band. |
| 5151 | * |
| 5152 | * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required |
| 5153 | * Nested attribute to hold list of center frequencies on which AP is |
| 5154 | * expected to operate. This is irrespective of ACS configuration. |
| 5155 | * This list is a priority based one and is looked for before the AP is |
| 5156 | * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC) |
| 5157 | * co-exist in the system. |
| 5158 | * |
| 5159 | * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32) |
| 5160 | * Channel center frequency (MHz) on which the access point should restart. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 5161 | */ |
| 5162 | enum qca_wlan_vendor_attr_sap_config { |
| 5163 | QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0, |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 5164 | QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 5165 | QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2, |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 5166 | QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3, |
| 5167 | |
| 5168 | /* Keep last */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 5169 | QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST, |
| 5170 | QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX = |
| 5171 | QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1, |
| 5172 | }; |
| 5173 | |
| 5174 | /** |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 5175 | * enum qca_wlan_vendor_attr_ftm_peer_info: Information about |
| 5176 | * a single peer in a measurement session. |
| 5177 | * |
| 5178 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer. |
| 5179 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related |
| 5180 | * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags. |
| 5181 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of |
| 5182 | * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0 |
| 5183 | * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for |
| 5184 | * list of supported attributes. |
| 5185 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for |
| 5186 | * secure measurement. |
| 5187 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA |
| 5188 | * measurement every <value> bursts. If 0 or not specified, |
| 5189 | * AOA measurements will be disabled for this peer. |
| 5190 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where |
| 5191 | * the measurement frames are exchanged. Optional; if not |
| 5192 | * specified, try to locate the peer in the kernel scan |
| 5193 | * results cache and use frequency from there. |
| 5194 | */ |
| 5195 | enum qca_wlan_vendor_attr_ftm_peer_info { |
| 5196 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID, |
| 5197 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR, |
| 5198 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS, |
| 5199 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS, |
| 5200 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID, |
| 5201 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD, |
| 5202 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ, |
| 5203 | /* keep last */ |
| 5204 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST, |
| 5205 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX = |
| 5206 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1, |
| 5207 | }; |
| 5208 | |
| 5209 | /** |
| 5210 | * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags, |
| 5211 | * per-peer |
| 5212 | * |
| 5213 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request |
| 5214 | * immediate (ASAP) response from peer. |
| 5215 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request |
| 5216 | * LCI report from peer. The LCI report includes the absolute |
| 5217 | * location of the peer in "official" coordinates (similar to GPS). |
| 5218 | * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information. |
| 5219 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request |
| 5220 | * Location civic report from peer. The LCR includes the location |
| 5221 | * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0, |
| 5222 | * 11.24.6.7 for more information. |
| 5223 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set, |
| 5224 | * request a secure measurement. |
| 5225 | * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided. |
| 5226 | */ |
| 5227 | enum qca_wlan_vendor_attr_ftm_peer_meas_flags { |
| 5228 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0, |
| 5229 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1, |
| 5230 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2, |
| 5231 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3, |
| 5232 | }; |
| 5233 | |
| 5234 | /** |
| 5235 | * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters |
| 5236 | * |
| 5237 | * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements |
| 5238 | * to perform in a single burst. |
| 5239 | * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to |
| 5240 | * perform, specified as an exponent (2^value). |
| 5241 | * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst |
| 5242 | * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. |
| 5243 | * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts, |
| 5244 | * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must |
| 5245 | * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION. |
| 5246 | */ |
| 5247 | enum qca_wlan_vendor_attr_ftm_meas_param { |
| 5248 | QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID, |
| 5249 | QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST, |
| 5250 | QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP, |
| 5251 | QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION, |
| 5252 | QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD, |
| 5253 | /* keep last */ |
| 5254 | QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST, |
| 5255 | QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX = |
| 5256 | QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1, |
| 5257 | }; |
| 5258 | |
| 5259 | /** |
| 5260 | * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results |
| 5261 | * |
| 5262 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported |
| 5263 | * peer. |
| 5264 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement |
| 5265 | * request for this peer. |
| 5266 | * See enum qca_wlan_vendor_attr_ftm_peer_result_status. |
| 5267 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related |
| 5268 | * to measurement results for this peer. |
| 5269 | * See enum qca_wlan_vendor_attr_ftm_peer_result_flags. |
| 5270 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when |
| 5271 | * request failed and peer requested not to send an additional request |
| 5272 | * for this number of seconds. |
| 5273 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received |
| 5274 | * from peer. In the format specified by IEEE P802.11-REVmc/D7.0, |
| 5275 | * 9.4.2.22.10. |
| 5276 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when |
| 5277 | * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0, |
| 5278 | * 9.4.2.22.13. |
| 5279 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer |
| 5280 | * overridden some measurement request parameters. See |
| 5281 | * enum qca_wlan_vendor_attr_ftm_meas_param. |
| 5282 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement |
| 5283 | * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT. |
| 5284 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement |
| 5285 | * results. Each entry is a nested attribute defined |
| 5286 | * by enum qca_wlan_vendor_attr_ftm_meas. |
| 5287 | */ |
| 5288 | enum qca_wlan_vendor_attr_ftm_peer_result { |
| 5289 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID, |
| 5290 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR, |
| 5291 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS, |
| 5292 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS, |
| 5293 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS, |
| 5294 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI, |
| 5295 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR, |
| 5296 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS, |
| 5297 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS, |
| 5298 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS, |
| 5299 | /* keep last */ |
| 5300 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST, |
| 5301 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX = |
| 5302 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1, |
| 5303 | }; |
| 5304 | |
| 5305 | /** |
| 5306 | * enum qca_wlan_vendor_attr_ftm_peer_result_status |
| 5307 | * |
| 5308 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results |
| 5309 | * will be provided. Peer may have overridden some measurement parameters, |
| 5310 | * in which case overridden parameters will be report by |
| 5311 | * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute. |
| 5312 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable |
| 5313 | * of performing the measurement request. No more results will be sent |
| 5314 | * for this peer in this session. |
| 5315 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request |
| 5316 | * failed, and requested not to send an additional request for number |
| 5317 | * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS |
| 5318 | * attribute. |
| 5319 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation |
| 5320 | * failed. Request was not sent over the air. |
| 5321 | */ |
| 5322 | enum qca_wlan_vendor_attr_ftm_peer_result_status { |
| 5323 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK, |
| 5324 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE, |
| 5325 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED, |
| 5326 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID, |
| 5327 | }; |
| 5328 | |
| 5329 | /** |
| 5330 | * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags |
| 5331 | * for measurement result, per-peer |
| 5332 | * |
| 5333 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set, |
| 5334 | * measurement completed for this peer. No more results will be reported |
| 5335 | * for this peer in this session. |
| 5336 | */ |
| 5337 | enum qca_wlan_vendor_attr_ftm_peer_result_flags { |
| 5338 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0, |
| 5339 | }; |
| 5340 | |
| 5341 | /** |
| 5342 | * enum qca_vendor_attr_loc_session_status: Session completion status code |
| 5343 | * |
| 5344 | * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed |
| 5345 | * successfully. |
| 5346 | * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted |
| 5347 | * by request. |
| 5348 | * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request |
| 5349 | * was invalid and was not started. |
| 5350 | * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error |
| 5351 | * and did not complete normally (for example out of resources). |
| 5352 | */ |
| 5353 | enum qca_vendor_attr_loc_session_status { |
| 5354 | QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK, |
| 5355 | QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED, |
| 5356 | QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID, |
| 5357 | QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED, |
| 5358 | }; |
| 5359 | |
| 5360 | /** |
| 5361 | * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data |
| 5362 | * |
| 5363 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as |
| 5364 | * recorded by responder, in picoseconds. |
| 5365 | * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. |
| 5366 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at |
| 5367 | * initiator, in picoseconds. |
| 5368 | * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. |
| 5369 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by |
| 5370 | * initiator, in picoseconds. |
| 5371 | * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. |
| 5372 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at |
| 5373 | * responder, in picoseconds. |
| 5374 | * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. |
| 5375 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded |
| 5376 | * during this measurement exchange. Optional and will be provided if |
| 5377 | * the hardware can measure it. |
| 5378 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by |
| 5379 | * responder. Not always provided. |
| 5380 | * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. |
| 5381 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by |
| 5382 | * responder. Not always provided. |
| 5383 | * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. |
| 5384 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by |
| 5385 | * initiator. Not always provided. |
| 5386 | * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. |
| 5387 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by |
| 5388 | * initiator. Not always provided. |
| 5389 | * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. |
| 5390 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding. |
| 5391 | */ |
| 5392 | enum qca_wlan_vendor_attr_ftm_meas { |
| 5393 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID, |
| 5394 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1, |
| 5395 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2, |
| 5396 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3, |
| 5397 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4, |
| 5398 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI, |
| 5399 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR, |
| 5400 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR, |
| 5401 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR, |
| 5402 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR, |
| 5403 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD, |
| 5404 | /* keep last */ |
| 5405 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST, |
| 5406 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX = |
| 5407 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1, |
| 5408 | }; |
| 5409 | |
| 5410 | /** |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 5411 | * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index |
| 5412 | * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value |
| 5413 | * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL: |
| 5414 | * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one |
| 5415 | * of the social channels. |
| 5416 | * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period |
| 5417 | * A 32-bit unsigned value; the P2P listen offload period (ms). |
| 5418 | * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL: |
| 5419 | * A 32-bit unsigned value; the P2P listen interval duration (ms). |
| 5420 | * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT: |
| 5421 | * A 32-bit unsigned value; number of interval times the Firmware needs |
| 5422 | * to run the offloaded P2P listen operation before it stops. |
| 5423 | * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types |
| 5424 | * An array of unsigned 8-bit characters; vendor information elements. |
| 5425 | * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs |
| 5426 | * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW |
| 5427 | * A 32-bit unsigned value; a control flag to indicate whether listen |
| 5428 | * results need to be flushed to wpa_supplicant. |
| 5429 | * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason |
| 5430 | * A 8-bit unsigned value; reason code for P2P listen offload stop |
| 5431 | * event. |
| 5432 | * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value |
| 5433 | * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value |
| 5434 | */ |
| 5435 | enum qca_wlan_vendor_attr_p2p_listen_offload { |
| 5436 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0, |
| 5437 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL, |
| 5438 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD, |
| 5439 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL, |
| 5440 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT, |
| 5441 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES, |
| 5442 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE, |
| 5443 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG, |
| 5444 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON, |
| 5445 | /* keep last */ |
| 5446 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST, |
| 5447 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX = |
| 5448 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1 |
| 5449 | }; |
| 5450 | |
| 5451 | /** |
| 5452 | * enum qca_wlan_vendor_drv_info - WLAN driver info |
| 5453 | * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid |
| 5454 | * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info |
| 5455 | * between Firmware & Host. |
| 5456 | */ |
| 5457 | enum qca_wlan_vendor_drv_info { |
| 5458 | QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0, |
| 5459 | QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE, |
| 5460 | |
| 5461 | /* keep last */ |
| 5462 | QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST, |
| 5463 | QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX = |
| 5464 | QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1, |
| 5465 | }; |
| 5466 | |
| 5467 | /** |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 5468 | * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type |
| 5469 | * |
| 5470 | * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest |
| 5471 | * CIR (channel impulse response) path for each antenna. |
| 5472 | * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude |
| 5473 | * of the strongest CIR path for each antenna. |
| 5474 | */ |
| 5475 | enum qca_wlan_vendor_attr_aoa_type { |
| 5476 | QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE, |
| 5477 | QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP, |
| 5478 | QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX |
| 5479 | }; |
| 5480 | |
| 5481 | /** |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 5482 | * enum qca_wlan_vendor_attr_encryption_test - Attributes to |
| 5483 | * validate encryption engine |
| 5484 | * |
| 5485 | * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute. |
| 5486 | * This will be included if the request is for decryption; if not included, |
| 5487 | * the request is treated as a request for encryption by default. |
| 5488 | * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value |
| 5489 | * indicating the key cipher suite. Takes same values as |
| 5490 | * NL80211_ATTR_KEY_CIPHER. |
| 5491 | * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value |
| 5492 | * Key Id to be used for encryption |
| 5493 | * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values. |
| 5494 | * Key (TK) to be used for encryption/decryption |
| 5495 | * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values. |
| 5496 | * Packet number to be specified for encryption/decryption |
| 5497 | * 6 bytes for TKIP/CCMP/GCMP. |
| 5498 | * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values |
| 5499 | * representing the 802.11 packet (header + payload + FCS) that |
| 5500 | * needs to be encrypted/decrypted. |
| 5501 | * Encrypted/decrypted response from the driver will also be sent |
| 5502 | * to userspace with the same attribute. |
| 5503 | */ |
| 5504 | enum qca_wlan_vendor_attr_encryption_test { |
| 5505 | QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0, |
| 5506 | QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION, |
| 5507 | QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER, |
| 5508 | QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID, |
| 5509 | QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK, |
| 5510 | QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN, |
| 5511 | QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA, |
| 5512 | |
| 5513 | /* keep last */ |
| 5514 | QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST, |
| 5515 | QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX = |
| 5516 | QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1 |
| 5517 | }; |
| 5518 | |
| 5519 | /** |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 5520 | * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of |
| 5521 | * sector for DMG RF sector operations. |
| 5522 | * |
| 5523 | * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector |
| 5524 | * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector |
| 5525 | */ |
| 5526 | enum qca_wlan_vendor_attr_dmg_rf_sector_type { |
| 5527 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX, |
| 5528 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX, |
| 5529 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX |
| 5530 | }; |
| 5531 | |
| 5532 | /** |
Qun Zhang | af8a081 | 2019-02-01 11:30:34 +0800 | [diff] [blame] | 5533 | * enum qca_wlan_vendor_attr_fw_state - State of firmware |
| 5534 | * |
| 5535 | * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state |
| 5536 | * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active |
| 5537 | */ |
| 5538 | enum qca_wlan_vendor_attr_fw_state { |
| 5539 | QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR, |
| 5540 | QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE, |
| 5541 | QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX |
| 5542 | }; |
| 5543 | |
| 5544 | /** |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 5545 | * BRP antenna limit mode |
| 5546 | * |
| 5547 | * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force |
| 5548 | * antenna limit, BRP will be performed as usual. |
| 5549 | * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal |
| 5550 | * antennas limit. the hardware may use less antennas than the |
| 5551 | * maximum limit. |
| 5552 | * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will |
| 5553 | * use exactly the specified number of antennas for BRP. |
| 5554 | */ |
| 5555 | enum qca_wlan_vendor_attr_brp_ant_limit_mode { |
| 5556 | QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE, |
| 5557 | QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE, |
| 5558 | QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE, |
| 5559 | QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX |
| 5560 | }; |
| 5561 | |
| 5562 | /** |
| 5563 | * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for |
| 5564 | * DMG RF sector configuration for a single RF module. |
| 5565 | * The values are defined in a compact way which closely matches |
| 5566 | * the way it is stored in HW registers. |
| 5567 | * The configuration provides values for 32 antennas and 8 distribution |
| 5568 | * amplifiers, and together describes the characteristics of the RF |
| 5569 | * sector - such as a beam in some direction with some gain. |
| 5570 | * |
| 5571 | * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index |
| 5572 | * of RF module for this configuration. |
| 5573 | * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge |
| 5574 | * amplifier gain index. Unsigned 32 bit number containing |
| 5575 | * bits for all 32 antennas. |
| 5576 | * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge |
| 5577 | * amplifier gain index. Unsigned 32 bit number containing |
| 5578 | * bits for all 32 antennas. |
| 5579 | * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge |
| 5580 | * amplifier gain index. Unsigned 32 bit number containing |
| 5581 | * bits for all 32 antennas. |
| 5582 | * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values |
| 5583 | * for first 16 antennas, 2 bits per antenna. |
| 5584 | * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values |
| 5585 | * for last 16 antennas, 2 bits per antenna. |
| 5586 | * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains |
| 5587 | * DTYPE values (3 bits) for each distribution amplifier, followed |
| 5588 | * by X16 switch bits for each distribution amplifier. There are |
| 5589 | * total of 8 distribution amplifiers. |
| 5590 | */ |
| 5591 | enum qca_wlan_vendor_attr_dmg_rf_sector_cfg { |
| 5592 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0, |
| 5593 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1, |
| 5594 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2, |
| 5595 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3, |
| 5596 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4, |
| 5597 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5, |
| 5598 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6, |
| 5599 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7, |
| 5600 | |
| 5601 | /* keep last */ |
| 5602 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST, |
| 5603 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX = |
| 5604 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1 |
| 5605 | }; |
| 5606 | |
| 5607 | /** |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 5608 | * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for |
| 5609 | * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver. |
| 5610 | * |
| 5611 | * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger |
| 5612 | * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode |
| 5613 | * represents the different TDLS trigger modes. |
| 5614 | * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within |
| 5615 | * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number |
| 5616 | * of packets shall meet the criteria for implicit TDLS setup. |
| 5617 | * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx |
| 5618 | * packets within a duration. |
| 5619 | * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate |
| 5620 | * a TDLS setup. |
| 5621 | * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to inititate |
| 5622 | * a TDLS Discovery to the Peer. |
| 5623 | * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of |
| 5624 | * discovery attempts to know the TDLS capability of the peer. A peer is |
| 5625 | * marked as TDLS not capable if there is no response for all the attempts. |
| 5626 | * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32) |
| 5627 | * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD |
| 5628 | * number of TX / RX frames meet the criteria for TDLS teardown. |
Jeff Johnson | 24d440b | 2018-05-12 11:41:14 -0700 | [diff] [blame] | 5629 | * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 5630 | * (u32) of Tx/Rx packets within a duration |
| 5631 | * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link |
| 5632 | * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold |
| 5633 | * corresponding to the RSSI of the peer below which a TDLS |
| 5634 | * setup is triggered. |
| 5635 | * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold |
| 5636 | * corresponding to the RSSI of the peer above which |
| 5637 | * a TDLS teardown is triggered. |
| 5638 | */ |
| 5639 | enum qca_wlan_vendor_attr_tdls_configuration { |
| 5640 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0, |
| 5641 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1, |
| 5642 | |
| 5643 | /* Attributes configuring the TDLS Implicit Trigger */ |
| 5644 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2, |
| 5645 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3, |
| 5646 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4, |
| 5647 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5, |
| 5648 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6, |
| 5649 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7, |
| 5650 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8, |
| 5651 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9, |
| 5652 | |
| 5653 | /* keep last */ |
| 5654 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST, |
| 5655 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX = |
| 5656 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1 |
| 5657 | }; |
| 5658 | |
| 5659 | /** |
| 5660 | * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in |
| 5661 | * the driver. |
| 5662 | * |
| 5663 | * The following are the different values for |
| 5664 | * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE. |
| 5665 | * |
| 5666 | * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to |
| 5667 | * initiate/teardown the TDLS connection to a respective peer comes |
| 5668 | * from the user space. wpa_supplicant provides the commands |
| 5669 | * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this. |
| 5670 | * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS |
| 5671 | * setup/teardown to the eligible peer once the configured criteria |
| 5672 | * (such as TX/RX threshold, RSSI) is met. The attributes |
| 5673 | * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to |
| 5674 | * the different configuration criteria for the TDLS trigger from the |
| 5675 | * host driver. |
| 5676 | * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger |
| 5677 | * the TDLS setup / teardown through the implicit mode, only to the |
| 5678 | * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1, |
| 5679 | * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands). |
| 5680 | * External mode works on top of the implicit mode, thus the host Driver |
| 5681 | * is expected to be configured in TDLS Implicit mode too to operate in |
| 5682 | * External mode. Configuring External mode alone without Implicit |
| 5683 | * mode is invalid. |
| 5684 | * |
| 5685 | * All the above implementations work as expected only when the host driver |
| 5686 | * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - |
| 5687 | * representing that the TDLS message exchange is not internal to the host |
| 5688 | * driver, but depends on wpa_supplicant to do the message exchange. |
| 5689 | */ |
| 5690 | enum qca_wlan_vendor_tdls_trigger_mode { |
| 5691 | QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0, |
| 5692 | QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1, |
| 5693 | QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2, |
| 5694 | }; |
| 5695 | |
| 5696 | /** |
| 5697 | * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits |
| 5698 | * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0 |
| 5699 | * that is hard-coded in the Board Data File (BDF). |
| 5700 | * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1 |
| 5701 | * that is hard-coded in the Board Data File (BDF). |
| 5702 | * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2 |
| 5703 | * that is hard-coded in the Board Data File (BDF). |
| 5704 | * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3 |
| 5705 | * that is hard-coded in the Board Data File (BDF). |
| 5706 | * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4 |
| 5707 | * that is hard-coded in the Board Data File (BDF). |
| 5708 | * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any |
| 5709 | * source of SAR power limits, thereby disabling the SAR power |
| 5710 | * limit feature. |
| 5711 | * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power |
| 5712 | * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR. |
Kabilan Kannan | 762ad5d | 2018-06-21 16:55:47 -0700 | [diff] [blame] | 5713 | * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power |
| 5714 | * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 5715 | * |
| 5716 | * This enumerates the valid set of values that may be supplied for |
| 5717 | * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of |
Jeff Johnson | f2f8dea | 2017-12-18 15:49:20 -0800 | [diff] [blame] | 5718 | * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in |
| 5719 | * the response to an instance of the |
| 5720 | * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 5721 | */ |
| 5722 | enum qca_vendor_attr_sar_limits_selections { |
| 5723 | QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0, |
| 5724 | QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1, |
| 5725 | QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2, |
| 5726 | QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3, |
| 5727 | QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4, |
| 5728 | QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5, |
| 5729 | QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6, |
Kabilan Kannan | 762ad5d | 2018-06-21 16:55:47 -0700 | [diff] [blame] | 5730 | QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 5731 | }; |
| 5732 | |
| 5733 | /** |
| 5734 | * enum qca_vendor_attr_sar_limits_spec_modulations - |
| 5735 | * SAR limits specification modulation |
| 5736 | * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK - |
| 5737 | * CCK modulation |
| 5738 | * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM - |
| 5739 | * OFDM modulation |
| 5740 | * |
| 5741 | * This enumerates the valid set of values that may be supplied for |
| 5742 | * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an |
| 5743 | * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an |
| 5744 | * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor |
Jeff Johnson | f2f8dea | 2017-12-18 15:49:20 -0800 | [diff] [blame] | 5745 | * command or in the response to an instance of the |
| 5746 | * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 5747 | */ |
| 5748 | enum qca_vendor_attr_sar_limits_spec_modulations { |
| 5749 | QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0, |
| 5750 | QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1, |
| 5751 | }; |
| 5752 | |
| 5753 | /** |
| 5754 | * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits |
| 5755 | * |
| 5756 | * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to |
| 5757 | * select which SAR power limit table should be used. Valid |
| 5758 | * values are enumerated in enum |
| 5759 | * %qca_vendor_attr_sar_limits_selections. The existing SAR |
| 5760 | * power limit selection is unchanged if this attribute is not |
| 5761 | * present. |
| 5762 | * |
| 5763 | * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value |
| 5764 | * which specifies the number of SAR power limit specifications |
| 5765 | * which will follow. |
| 5766 | * |
| 5767 | * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power |
| 5768 | * limit specifications. The number of specifications is |
| 5769 | * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each |
| 5770 | * specification contains a set of |
| 5771 | * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A |
| 5772 | * specification is uniquely identified by the attributes |
| 5773 | * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND, |
| 5774 | * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and |
| 5775 | * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always |
| 5776 | * contains as a payload the attribute |
| 5777 | * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT. |
Kabilan Kannan | 762ad5d | 2018-06-21 16:55:47 -0700 | [diff] [blame] | 5778 | * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX. |
| 5779 | * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or |
| 5780 | * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is |
| 5781 | * needed based upon the value of |
| 5782 | * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 5783 | * |
| 5784 | * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to |
| 5785 | * indicate for which band this specification applies. Valid |
| 5786 | * values are enumerated in enum %nl80211_band (although not all |
| 5787 | * bands may be supported by a given device). If the attribute is |
| 5788 | * not supplied then the specification will be applied to all |
| 5789 | * supported bands. |
| 5790 | * |
| 5791 | * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value |
| 5792 | * to indicate for which antenna chain this specification |
| 5793 | * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the |
| 5794 | * attribute is not supplied then the specification will be |
| 5795 | * applied to all chains. |
| 5796 | * |
| 5797 | * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32) |
| 5798 | * value to indicate for which modulation scheme this |
| 5799 | * specification applies. Valid values are enumerated in enum |
| 5800 | * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute |
| 5801 | * is not supplied then the specification will be applied to all |
| 5802 | * modulation schemes. |
| 5803 | * |
| 5804 | * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32) |
Kabilan Kannan | 762ad5d | 2018-06-21 16:55:47 -0700 | [diff] [blame] | 5805 | * value to specify the actual power limit value in units of 0.5 |
| 5806 | * dBm (i.e., a value of 11 represents 5.5 dBm). |
| 5807 | * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is |
| 5808 | * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER. |
| 5809 | * |
| 5810 | * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32) |
| 5811 | * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles. |
| 5812 | * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is |
| 5813 | * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 5814 | * |
Jeff Johnson | f2f8dea | 2017-12-18 15:49:20 -0800 | [diff] [blame] | 5815 | * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS |
| 5816 | * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 5817 | */ |
| 5818 | enum qca_vendor_attr_sar_limits { |
| 5819 | QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0, |
| 5820 | QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1, |
| 5821 | QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2, |
| 5822 | QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3, |
| 5823 | QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4, |
| 5824 | QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5, |
| 5825 | QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6, |
| 5826 | QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7, |
Kabilan Kannan | 762ad5d | 2018-06-21 16:55:47 -0700 | [diff] [blame] | 5827 | QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 5828 | |
| 5829 | QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST, |
| 5830 | QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX = |
| 5831 | QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1 |
| 5832 | }; |
| 5833 | |
| 5834 | /** |
Zhang Qian | 7fc2e86 | 2017-03-23 17:49:43 +0800 | [diff] [blame] | 5835 | * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring |
| 5836 | * offload which is an extension for LL_STATS. |
| 5837 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms. |
| 5838 | * If MAC counters do not exceed the threshold, FW will report monitored |
| 5839 | * link layer counters periodically as this setting. The first report is |
| 5840 | * always triggered by this timer. |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 5841 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99). |
Zhang Qian | 7fc2e86 | 2017-03-23 17:49:43 +0800 | [diff] [blame] | 5842 | * For each MAC layer counter, FW holds two copies. One is the current value. |
| 5843 | * The other is the last report. Once a current counter's increment is larger |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 5844 | * than the threshold, FW will indicate that counter to host even if the |
Zhang Qian | 7fc2e86 | 2017-03-23 17:49:43 +0800 | [diff] [blame] | 5845 | * monitoring timer does not expire. |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 5846 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change |
| 5847 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU |
| 5848 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same |
Zhang Qian | 7fc2e86 | 2017-03-23 17:49:43 +0800 | [diff] [blame] | 5849 | * failure code. |
| 5850 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code |
| 5851 | * 1: TX packet discarded |
| 5852 | * 2: No ACK |
| 5853 | * 3: Postpone |
| 5854 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address |
| 5855 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state |
Zhang Qian | 9d973df | 2017-04-26 15:10:46 +0800 | [diff] [blame] | 5856 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold. |
| 5857 | * Threshold for all monitored parameters. If per counter dedicated threshold |
| 5858 | * is not enabled, this threshold will take effect. |
| 5859 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this |
| 5860 | * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0. |
| 5861 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID |
| 5862 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID |
| 5863 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters |
| 5864 | * Bit0: TX counter unit in MSDU |
| 5865 | * Bit1: TX counter unit in MPDU |
| 5866 | * Bit2: TX counter unit in PPDU |
| 5867 | * Bit3: TX counter unit in byte |
| 5868 | * Bit4: Dropped MSDUs |
| 5869 | * Bit5: Dropped Bytes |
| 5870 | * Bit6: MPDU retry counter |
| 5871 | * Bit7: MPDU failure counter |
| 5872 | * Bit8: PPDU failure counter |
| 5873 | * Bit9: MPDU aggregation counter |
| 5874 | * Bit10: MCS counter for ACKed MPDUs |
| 5875 | * Bit11: MCS counter for Failed MPDUs |
| 5876 | * Bit12: TX Delay counter |
| 5877 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters |
| 5878 | * Bit0: MAC RX counter unit in MPDU |
| 5879 | * Bit1: MAC RX counter unit in byte |
| 5880 | * Bit2: PHY RX counter unit in PPDU |
| 5881 | * Bit3: PHY RX counter unit in byte |
| 5882 | * Bit4: Disorder counter |
| 5883 | * Bit5: Retry counter |
| 5884 | * Bit6: Duplication counter |
| 5885 | * Bit7: Discard counter |
| 5886 | * Bit8: MPDU aggregation size counter |
| 5887 | * Bit9: MCS counter |
| 5888 | * Bit10: Peer STA power state change (wake to sleep) counter |
| 5889 | * Bit11: Peer STA power save counter, total time in PS mode |
| 5890 | * Bit12: Probe request counter |
| 5891 | * Bit13: Other management frames counter |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 5892 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA |
Zhang Qian | 9d973df | 2017-04-26 15:10:46 +0800 | [diff] [blame] | 5893 | * Bit0: Idle time |
| 5894 | * Bit1: TX time |
| 5895 | * Bit2: time RX in current bss |
| 5896 | * Bit3: Out of current bss time |
| 5897 | * Bit4: Wireless medium busy time |
| 5898 | * Bit5: RX in bad condition time |
| 5899 | * Bit6: TX in bad condition time |
| 5900 | * Bit7: time wlan card not available |
| 5901 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal |
| 5902 | * Bit0: Per channel SNR counter |
| 5903 | * Bit1: Per channel noise floor counter |
Zhang Qian | 7fc2e86 | 2017-03-23 17:49:43 +0800 | [diff] [blame] | 5904 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers |
Zhang Qian | 9d973df | 2017-04-26 15:10:46 +0800 | [diff] [blame] | 5905 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels |
| 5906 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats |
| 5907 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats |
| 5908 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats |
| 5909 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs |
| 5910 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs |
| 5911 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs |
| 5912 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data |
| 5913 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets |
| 5914 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped |
| 5915 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK |
| 5916 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed |
| 5917 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed |
| 5918 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM: |
| 5919 | * aggregation stats buffer length |
| 5920 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats |
| 5921 | * buffer for ACKed MPDUs. |
| 5922 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats |
| 5923 | * buffer for failed MPDUs. |
| 5924 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE: |
| 5925 | * length of delay stats array. |
| 5926 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats |
| 5927 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs |
| 5928 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs |
| 5929 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats |
| 5930 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received |
| 5931 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received |
| 5932 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received |
| 5933 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received |
| 5934 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost |
| 5935 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets |
| 5936 | * flagged as retransmissions |
| 5937 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets |
| 5938 | * flagged as duplicated |
| 5939 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX |
| 5940 | * packets discarded |
| 5941 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation |
| 5942 | * stats buffer. |
| 5943 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs |
| 5944 | * stats buffer. |
| 5945 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer |
| 5946 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer |
| 5947 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep |
| 5948 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time |
| 5949 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe |
| 5950 | * requests received |
| 5951 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt |
| 5952 | * frames received |
| 5953 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time |
| 5954 | * there is no TX, nor RX, nor interference. |
| 5955 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time |
| 5956 | * transmitting packets. |
| 5957 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time |
| 5958 | * for receiving. |
| 5959 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time |
| 5960 | * interference detected. |
| 5961 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time |
| 5962 | * receiving packets with errors. |
| 5963 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time |
| 5964 | * TX no-ACK. |
| 5965 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time |
| 5966 | * the chip is unable to work in normal conditions. |
| 5967 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time |
| 5968 | * receiving packets in current BSS. |
| 5969 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time |
| 5970 | * receiving packets not in current BSS. |
| 5971 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas |
| 5972 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL: |
| 5973 | * This is a container for per antenna signal stats. |
| 5974 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value |
| 5975 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value |
| 5976 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon |
| 5977 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon |
| 5978 | */ |
Zhang Qian | 7fc2e86 | 2017-03-23 17:49:43 +0800 | [diff] [blame] | 5979 | enum qca_wlan_vendor_attr_ll_stats_ext { |
| 5980 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0, |
| 5981 | |
| 5982 | /* Attributes for configurations */ |
| 5983 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD, |
| 5984 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD, |
| 5985 | |
| 5986 | /* Peer STA power state change */ |
| 5987 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG, |
| 5988 | |
| 5989 | /* TX failure event */ |
| 5990 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID, |
| 5991 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU, |
| 5992 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS, |
| 5993 | |
| 5994 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE, |
| 5995 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS, |
Zhang Qian | 9d973df | 2017-04-26 15:10:46 +0800 | [diff] [blame] | 5996 | |
| 5997 | /* MAC counters */ |
| 5998 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL, |
| 5999 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE, |
| 6000 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID, |
| 6001 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID, |
| 6002 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP, |
| 6003 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP, |
| 6004 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP, |
| 6005 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP, |
Zhang Qian | 7fc2e86 | 2017-03-23 17:49:43 +0800 | [diff] [blame] | 6006 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM, |
Zhang Qian | 9d973df | 2017-04-26 15:10:46 +0800 | [diff] [blame] | 6007 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM, |
| 6008 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS, |
| 6009 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER, |
| 6010 | |
| 6011 | /* Sub-attributes for PEER_AC_TX */ |
| 6012 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU, |
| 6013 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU, |
| 6014 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU, |
| 6015 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES, |
| 6016 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP, |
| 6017 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES, |
| 6018 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY, |
| 6019 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK, |
| 6020 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK, |
| 6021 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM, |
| 6022 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM, |
| 6023 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM, |
| 6024 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR, |
| 6025 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS, |
| 6026 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS, |
| 6027 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE, |
| 6028 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY, |
| 6029 | |
| 6030 | /* Sub-attributes for PEER_AC_RX */ |
| 6031 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU, |
| 6032 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES, |
| 6033 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU, |
| 6034 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES, |
| 6035 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST, |
| 6036 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY, |
| 6037 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP, |
| 6038 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD, |
| 6039 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM, |
| 6040 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM, |
| 6041 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS, |
| 6042 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR, |
| 6043 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES, |
| 6044 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION, |
| 6045 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ, |
| 6046 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT, |
| 6047 | |
| 6048 | /* Sub-attributes for CCA_BSS */ |
| 6049 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME, |
| 6050 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME, |
| 6051 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME, |
| 6052 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY, |
| 6053 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD, |
| 6054 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD, |
| 6055 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL, |
| 6056 | |
| 6057 | /* sub-attribute for BSS_RX_TIME */ |
| 6058 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME, |
| 6059 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME, |
| 6060 | |
| 6061 | /* Sub-attributes for PEER_SIGNAL */ |
| 6062 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM, |
| 6063 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL, |
| 6064 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR, |
| 6065 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF, |
| 6066 | |
| 6067 | /* Sub-attributes for IFACE_BSS */ |
| 6068 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON, |
| 6069 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON, |
Zhang Qian | 7fc2e86 | 2017-03-23 17:49:43 +0800 | [diff] [blame] | 6070 | |
| 6071 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST, |
| 6072 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX = |
| 6073 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1 |
| 6074 | }; |
| 6075 | |
| 6076 | /** |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 6077 | * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd |
| 6078 | * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels |
| 6079 | * in priority order as decided after ACS operation in userspace. |
| 6080 | * |
| 6081 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8). |
| 6082 | * One of reason code from enum qca_wlan_vendor_acs_select_reason. |
| 6083 | * |
| 6084 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required |
| 6085 | * Array of nested values for each channel with following attributes: |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 6086 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY, |
| 6087 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY, |
| 6088 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0, |
| 6089 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1, |
| 6090 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 6091 | * Note: If both the driver and user-space application supports the 6 GHz band, |
| 6092 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use |
| 6093 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST. |
| 6094 | * To maintain backward compatibility, |
| 6095 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST |
| 6096 | * is still used if either of the driver or user space application doesn't |
| 6097 | * support the 6 GHz band. |
| 6098 | * |
| 6099 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8). |
| 6100 | * Primary channel number |
| 6101 | * Note: If both the driver and user-space application supports the 6 GHz band, |
| 6102 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use |
| 6103 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY. |
| 6104 | * To maintain backward compatibility, |
| 6105 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY |
| 6106 | * is still used if either of the driver or user space application doesn't |
| 6107 | * support the 6 GHz band. |
| 6108 | * |
| 6109 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8). |
| 6110 | * Secondary channel number, required only for 160 and 80+80 MHz bandwidths. |
| 6111 | * Note: If both the driver and user-space application supports the 6 GHz band, |
| 6112 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use |
| 6113 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY. |
| 6114 | * To maintain backward compatibility, |
| 6115 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY |
| 6116 | * is still used if either of the driver or user space application |
| 6117 | * doesn't support the 6 GHz band. |
| 6118 | * |
| 6119 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8). |
| 6120 | * VHT seg0 channel number |
| 6121 | * Note: If both the driver and user-space application supports the 6 GHz band, |
| 6122 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use |
| 6123 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0. |
| 6124 | * To maintain backward compatibility, |
| 6125 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 |
| 6126 | * is still used if either of the driver or user space application |
| 6127 | * doesn't support the 6 GHz band. |
| 6128 | * |
| 6129 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8). |
| 6130 | * VHT seg1 channel number |
| 6131 | * Note: If both the driver and user-space application supports the 6 GHz band, |
| 6132 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use |
| 6133 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1. |
| 6134 | * To maintain backward compatibility, |
| 6135 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 |
| 6136 | * is still used if either of the driver or user space application |
| 6137 | * doesn't support the 6 GHz band. |
| 6138 | * |
| 6139 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8). |
| 6140 | * Takes one of enum nl80211_chan_width values. |
| 6141 | * |
| 6142 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required |
| 6143 | * Array of nested values for each channel with following attributes: |
| 6144 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32), |
| 6145 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32), |
| 6146 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32), |
| 6147 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32), |
| 6148 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH |
| 6149 | * Note: If user-space application has no support of the 6 GHz band, this |
| 6150 | * attribute is optional. |
| 6151 | * |
| 6152 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32) |
| 6153 | * Primary channel frequency in MHz |
| 6154 | * Note: If user-space application has no support of the 6 GHz band, this |
| 6155 | * attribute is optional. |
| 6156 | * |
| 6157 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32) |
| 6158 | * Secondary channel frequency in MHz used for HT 40 MHz channels. |
| 6159 | * Note: If user-space application has no support of the 6 GHz band, this |
| 6160 | * attribute is optional. |
| 6161 | * |
| 6162 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32) |
| 6163 | * VHT seg0 channel frequency in MHz |
| 6164 | * Note: If user-space application has no support of the 6GHz band, this |
| 6165 | * attribute is optional. |
| 6166 | * |
| 6167 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32) |
| 6168 | * VHT seg1 channel frequency in MHz |
| 6169 | * Note: If user-space application has no support of the 6 GHz band, this |
| 6170 | * attribute is optional. |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 6171 | */ |
| 6172 | enum qca_wlan_vendor_attr_external_acs_channels { |
| 6173 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0, |
| 6174 | |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 6175 | /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason |
| 6176 | */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 6177 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1, |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 6178 | |
| 6179 | /* Array of nested values for each channel with following attributes: |
| 6180 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND, |
| 6181 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY, |
| 6182 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY, |
| 6183 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0, |
| 6184 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1, |
| 6185 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH |
| 6186 | */ |
Kapil Gupta | c427841 | 2017-05-18 20:58:01 +0530 | [diff] [blame] | 6187 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2, |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 6188 | /* This (u8) will hold values of one of enum nl80211_bands */ |
Kapil Gupta | c427841 | 2017-05-18 20:58:01 +0530 | [diff] [blame] | 6189 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3, |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 6190 | /* Primary channel (u8) */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 6191 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4, |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 6192 | /* Secondary channel (u8) used for HT 40 MHz channels */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 6193 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5, |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 6194 | /* VHT seg0 channel (u8) */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 6195 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6, |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 6196 | /* VHT seg1 channel (u8) */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 6197 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7, |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 6198 | /* Channel width (u8). Takes one of enum nl80211_chan_width values. */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 6199 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8, |
| 6200 | |
Rajeev Kumar Sirasanagandla | b339eda | 2019-09-23 18:11:41 +0530 | [diff] [blame] | 6201 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9, |
| 6202 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10, |
| 6203 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11, |
| 6204 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12, |
| 6205 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13, |
| 6206 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 6207 | /* keep last */ |
| 6208 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST, |
| 6209 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX = |
| 6210 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1 |
| 6211 | }; |
| 6212 | |
| 6213 | /** |
| 6214 | * qca_wlan_vendor_acs_select_reason: This represents the different reasons why |
Krishna Rao | 365029b | 2019-08-16 18:16:56 +0530 | [diff] [blame] | 6215 | * the ACS has to be triggered. These values are used by |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 6216 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and |
Krishna Rao | 365029b | 2019-08-16 18:16:56 +0530 | [diff] [blame] | 6217 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 6218 | */ |
| 6219 | enum qca_wlan_vendor_acs_select_reason { |
Krishna Rao | 365029b | 2019-08-16 18:16:56 +0530 | [diff] [blame] | 6220 | /* Represents the reason that the ACS triggered during the AP start */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 6221 | QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT, |
Krishna Rao | 365029b | 2019-08-16 18:16:56 +0530 | [diff] [blame] | 6222 | /* Represents the reason that DFS found with the current channel */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 6223 | QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS, |
Krishna Rao | 365029b | 2019-08-16 18:16:56 +0530 | [diff] [blame] | 6224 | /* Represents the reason that LTE co-exist in the current band. */ |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 6225 | QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX, |
Krishna Rao | 365029b | 2019-08-16 18:16:56 +0530 | [diff] [blame] | 6226 | /* Represents the reason that generic, uncategorized interference has |
| 6227 | * been found in the current channel. |
| 6228 | */ |
| 6229 | QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE, |
| 6230 | /* Represents the reason that excessive 802.11 interference has been |
| 6231 | * found in the current channel. |
| 6232 | */ |
| 6233 | QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE, |
| 6234 | /* Represents the reason that generic Continuous Wave (CW) interference |
| 6235 | * has been found in the current channel. |
| 6236 | */ |
| 6237 | QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE, |
| 6238 | /* Represents the reason that Microwave Oven (MWO) interference has been |
| 6239 | * found in the current channel. |
| 6240 | */ |
| 6241 | QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE, |
| 6242 | /* Represents the reason that generic Frequency-Hopping Spread Spectrum |
| 6243 | * (FHSS) interference has been found in the current channel. This may |
| 6244 | * include 802.11 waveforms. |
| 6245 | */ |
| 6246 | QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE, |
| 6247 | /* Represents the reason that non-802.11 generic Frequency-Hopping |
| 6248 | * Spread Spectrum (FHSS) interference has been found in the current |
| 6249 | * channel. |
| 6250 | */ |
| 6251 | QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE, |
| 6252 | /* Represents the reason that generic Wideband (WB) interference has |
| 6253 | * been found in the current channel. This may include 802.11 waveforms. |
| 6254 | */ |
| 6255 | QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE, |
| 6256 | /* Represents the reason that non-802.11 generic Wideband (WB) |
| 6257 | * interference has been found in the current channel. |
| 6258 | */ |
| 6259 | QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE, |
| 6260 | /* Represents the reason that Jammer interference has been found in the |
| 6261 | * current channel. |
| 6262 | */ |
| 6263 | QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE, |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 6264 | }; |
Om Prakash Tripathi | 7d867d6 | 2017-04-26 16:52:09 +0530 | [diff] [blame] | 6265 | |
| 6266 | /** |
| 6267 | * enum qca_wlan_gpio_attr - Parameters for GPIO configuration |
| 6268 | */ |
| 6269 | enum qca_wlan_gpio_attr { |
| 6270 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0, |
| 6271 | /* Unsigned 32-bit attribute for GPIO command */ |
| 6272 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND, |
| 6273 | /* Unsigned 32-bit attribute for GPIO PIN number to configure */ |
| 6274 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM, |
| 6275 | /* Unsigned 32-bit attribute for GPIO value to configure */ |
| 6276 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE, |
| 6277 | /* Unsigned 32-bit attribute for GPIO pull type */ |
| 6278 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE, |
| 6279 | /* Unsigned 32-bit attribute for GPIO interrupt mode */ |
| 6280 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE, |
| 6281 | |
| 6282 | /* keep last */ |
| 6283 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST, |
| 6284 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX = |
| 6285 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1, |
| 6286 | }; |
| 6287 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 6288 | /** |
Venkateswara Swamy Bandaru | ce6b944 | 2018-02-20 14:24:49 +0530 | [diff] [blame] | 6289 | * qca_wlan_set_qdepth_thresh_attr - Parameters for setting |
| 6290 | * MSDUQ depth threshold per peer per tid in the target |
| 6291 | * |
| 6292 | * Associated Vendor Command: |
| 6293 | * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH |
| 6294 | */ |
| 6295 | enum qca_wlan_set_qdepth_thresh_attr { |
| 6296 | QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0, |
| 6297 | /* 6-byte MAC address */ |
| 6298 | QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR, |
| 6299 | /* Unsigned 32-bit attribute for holding the TID */ |
| 6300 | QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID, |
| 6301 | /* Unsigned 32-bit attribute for holding the update mask |
| 6302 | * bit 0 - Update high priority msdu qdepth threshold |
| 6303 | * bit 1 - Update low priority msdu qdepth threshold |
| 6304 | * bit 2 - Update UDP msdu qdepth threshold |
| 6305 | * bit 3 - Update Non UDP msdu qdepth threshold |
| 6306 | * rest of bits are reserved |
| 6307 | */ |
| 6308 | QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK, |
| 6309 | /* Unsigned 32-bit attribute for holding the threshold value */ |
| 6310 | QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE, |
| 6311 | |
| 6312 | /* keep last */ |
| 6313 | QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST, |
| 6314 | QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX = |
| 6315 | QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1, |
| 6316 | }; |
| 6317 | |
| 6318 | /** |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 6319 | * qca_wlan_vendor_attr_external_acs_policy: Attribute values for |
| 6320 | * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd |
| 6321 | * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the |
| 6322 | * external ACS policies to select the channels w.r.t. the PCL weights. |
| 6323 | * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and |
| 6324 | * their PCL weights.) |
| 6325 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to |
| 6326 | * select a channel with non-zero PCL weight. |
| 6327 | * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a |
| 6328 | * channel with non-zero PCL weight. |
| 6329 | * |
| 6330 | */ |
| 6331 | enum qca_wlan_vendor_attr_external_acs_policy { |
| 6332 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED, |
| 6333 | QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY, |
| 6334 | }; |
| 6335 | |
| 6336 | /** |
| 6337 | * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters |
| 6338 | */ |
| 6339 | enum qca_wlan_vendor_attr_spectral_scan { |
| 6340 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0, |
| 6341 | /* |
| 6342 | * Number of times the chip enters spectral scan mode before |
| 6343 | * deactivating spectral scans. When set to 0, chip will enter spectral |
| 6344 | * scan mode continuously. u32 attribute. |
| 6345 | */ |
| 6346 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1, |
| 6347 | /* |
| 6348 | * Spectral scan period. Period increment resolution is 256*Tclk, |
| 6349 | * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute. |
| 6350 | */ |
| 6351 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2, |
| 6352 | /* Spectral scan priority. u32 attribute. */ |
| 6353 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3, |
| 6354 | /* Number of FFT data points to compute. u32 attribute. */ |
| 6355 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4, |
| 6356 | /* |
| 6357 | * Enable targeted gain change before starting the spectral scan FFT. |
| 6358 | * u32 attribute. |
| 6359 | */ |
| 6360 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5, |
| 6361 | /* Restart a queued spectral scan. u32 attribute. */ |
| 6362 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6, |
| 6363 | /* |
| 6364 | * Noise floor reference number for the calculation of bin power. |
| 6365 | * u32 attribute. |
| 6366 | */ |
| 6367 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7, |
| 6368 | /* |
| 6369 | * Disallow spectral scan triggers after TX/RX packets by setting |
| 6370 | * this delay value to roughly SIFS time period or greater. |
| 6371 | * u32 attribute. |
| 6372 | */ |
| 6373 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8, |
| 6374 | /* |
| 6375 | * Number of strong bins (inclusive) per sub-channel, below |
| 6376 | * which a signal is declared a narrow band tone. u32 attribute. |
| 6377 | */ |
| 6378 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9, |
| 6379 | /* |
| 6380 | * Specify the threshold over which a bin is declared strong (for |
| 6381 | * scan bandwidth analysis). u32 attribute. |
| 6382 | */ |
| 6383 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10, |
| 6384 | /* Spectral scan report mode. u32 attribute. */ |
| 6385 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11, |
| 6386 | /* |
| 6387 | * RSSI report mode, if the ADC RSSI is below |
| 6388 | * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR, |
| 6389 | * then FFTs will not trigger, but timestamps and summaries get |
| 6390 | * reported. u32 attribute. |
| 6391 | */ |
| 6392 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12, |
| 6393 | /* |
| 6394 | * ADC RSSI must be greater than or equal to this threshold (signed dB) |
| 6395 | * to ensure spectral scan reporting with normal error code. |
| 6396 | * u32 attribute. |
| 6397 | */ |
| 6398 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13, |
| 6399 | /* |
| 6400 | * Format of frequency bin magnitude for spectral scan triggered FFTs: |
| 6401 | * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)). |
| 6402 | * u32 attribute. |
| 6403 | */ |
| 6404 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14, |
| 6405 | /* |
| 6406 | * Format of FFT report to software for spectral scan triggered FFTs. |
| 6407 | * 0: No FFT report (only spectral scan summary report) |
| 6408 | * 1: 2-dword summary of metrics for each completed FFT + spectral scan |
| 6409 | * report |
| 6410 | * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled |
| 6411 | * bins (in-band) per FFT + spectral scan summary report |
| 6412 | * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled |
| 6413 | * bins (all) per FFT + spectral scan summary report |
| 6414 | * u32 attribute. |
| 6415 | */ |
| 6416 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15, |
| 6417 | /* |
| 6418 | * Number of LSBs to shift out in order to scale the FFT bins. |
| 6419 | * u32 attribute. |
| 6420 | */ |
| 6421 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16, |
| 6422 | /* |
| 6423 | * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes |
| 6424 | * in dBm power. u32 attribute. |
| 6425 | */ |
| 6426 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17, |
| 6427 | /* |
| 6428 | * Per chain enable mask to select input ADC for search FFT. |
| 6429 | * u32 attribute. |
| 6430 | */ |
| 6431 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18, |
| 6432 | /* |
| 6433 | * An unsigned 64-bit integer provided by host driver to identify the |
| 6434 | * spectral scan request. This attribute is included in the scan |
| 6435 | * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START |
| 6436 | * and used as an attribute in |
| 6437 | * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the |
| 6438 | * specific scan to be stopped. |
| 6439 | */ |
| 6440 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19, |
Edayilliam Jayadev | 20edcbb | 2017-11-06 15:22:04 +0530 | [diff] [blame] | 6441 | /* Skip interval for FFT reports. u32 attribute */ |
| 6442 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20, |
| 6443 | /* Set to report only one set of FFT results. |
| 6444 | * u32 attribute. |
| 6445 | */ |
| 6446 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21, |
| 6447 | /* Debug level for spectral module in driver. |
| 6448 | * 0 : Verbosity level 0 |
| 6449 | * 1 : Verbosity level 1 |
| 6450 | * 2 : Verbosity level 2 |
| 6451 | * 3 : Matched filterID display |
| 6452 | * 4 : One time dump of FFT report |
| 6453 | * u32 attribute. |
| 6454 | */ |
| 6455 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22, |
| 6456 | /* Type of spectral scan request. u32 attribute. |
| 6457 | * It uses values defined in enum |
| 6458 | * qca_wlan_vendor_attr_spectral_scan_request_type. |
| 6459 | */ |
| 6460 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23, |
Edayilliam Jayadev | db96269 | 2019-04-24 16:41:58 +0530 | [diff] [blame] | 6461 | /* This specifies the frequency span over which spectral |
| 6462 | * scan would be carried out. Its value depends on the |
| 6463 | * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and |
| 6464 | * the relation is as follows. |
| 6465 | * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL |
| 6466 | * Not applicable. Spectral scan would happen in the |
| 6467 | * operating span. |
| 6468 | * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE |
| 6469 | * Center frequency (in MHz) of the span of interest or |
| 6470 | * for convenience, center frequency (in MHz) of any channel |
| 6471 | * in the span of interest. If agile spectral scan is initiated |
| 6472 | * without setting a valid frequency it returns the error code |
| 6473 | * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED). |
| 6474 | * u32 attribute. |
| 6475 | */ |
| 6476 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24, |
| 6477 | /* Spectral scan mode. u32 attribute. |
| 6478 | * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode. |
| 6479 | * If this attribute is not present, it is assumed to be |
| 6480 | * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL). |
| 6481 | */ |
| 6482 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25, |
| 6483 | /* Spectral scan error code. u32 attribute. |
| 6484 | * It uses values defined in enum |
| 6485 | * qca_wlan_vendor_spectral_scan_error_code. |
| 6486 | * This attribute is included only in failure scenarios. |
| 6487 | */ |
| 6488 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26, |
Shiva Krishna Pittala | efbe2e9 | 2019-06-06 15:26:55 +0530 | [diff] [blame] | 6489 | /* 8-bit unsigned value to enable/disable debug of the |
| 6490 | * Spectral DMA ring. |
| 6491 | * 1-enable, 0-disable |
| 6492 | */ |
| 6493 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27, |
| 6494 | /* 8-bit unsigned value to enable/disable debug of the |
| 6495 | * Spectral DMA buffers. |
| 6496 | * 1-enable, 0-disable |
| 6497 | */ |
| 6498 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28, |
Edayilliam Jayadev | db96269 | 2019-04-24 16:41:58 +0530 | [diff] [blame] | 6499 | |
SaidiReddy Yenuga | e8deb19 | 2017-04-17 16:53:30 +0530 | [diff] [blame] | 6500 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST, |
| 6501 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX = |
| 6502 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1, |
| 6503 | }; |
| 6504 | |
Edayilliam Jayadev | 20edcbb | 2017-11-06 15:22:04 +0530 | [diff] [blame] | 6505 | /** |
| 6506 | * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command |
| 6507 | * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS. |
| 6508 | */ |
| 6509 | enum qca_wlan_vendor_attr_spectral_diag_stats { |
| 6510 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0, |
| 6511 | /* Number of spectral TLV signature mismatches. |
| 6512 | * u64 attribute. |
| 6513 | */ |
| 6514 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1, |
| 6515 | /* Number of spectral phyerror events with insufficient length when |
| 6516 | * parsing for secondary 80 search FFT report. u64 attribute. |
| 6517 | */ |
| 6518 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2, |
| 6519 | /* Number of spectral phyerror events without secondary 80 |
| 6520 | * search FFT report. u64 attribute. |
| 6521 | */ |
| 6522 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3, |
| 6523 | /* Number of spectral phyerror events with vht operation segment 1 id |
| 6524 | * mismatches in search fft report. u64 attribute. |
| 6525 | */ |
| 6526 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4, |
| 6527 | /* Number of spectral phyerror events with vht operation segment 2 id |
| 6528 | * mismatches in search fft report. u64 attribute. |
| 6529 | */ |
| 6530 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5, |
| 6531 | |
| 6532 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST, |
| 6533 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX = |
| 6534 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1, |
| 6535 | }; |
| 6536 | |
| 6537 | /** |
| 6538 | * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command |
| 6539 | * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. |
| 6540 | */ |
| 6541 | enum qca_wlan_vendor_attr_spectral_cap { |
| 6542 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0, |
| 6543 | /* Flag attribute to indicate phydiag capability */ |
| 6544 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1, |
| 6545 | /* Flag attribute to indicate radar detection capability */ |
| 6546 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2, |
| 6547 | /* Flag attribute to indicate spectral capability */ |
| 6548 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3, |
| 6549 | /* Flag attribute to indicate advanced spectral capability */ |
| 6550 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4, |
Edayilliam Jayadev | 0a04a14 | 2018-05-07 10:46:25 +0530 | [diff] [blame] | 6551 | /* Spectral hardware generation. u32 attribute. |
| 6552 | * It uses values defined in enum |
| 6553 | * qca_wlan_vendor_spectral_scan_cap_hw_gen. |
| 6554 | */ |
| 6555 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5, |
Edayilliam Jayadev | 83da227 | 2018-12-17 17:03:15 +0530 | [diff] [blame] | 6556 | /* Spectral bin scaling formula ID. u16 attribute. |
| 6557 | * It uses values defined in enum |
| 6558 | * qca_wlan_vendor_spectral_scan_cap_formula_id. |
| 6559 | */ |
| 6560 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6, |
| 6561 | /* Spectral bin scaling param - low level offset. |
| 6562 | * s16 attribute. |
| 6563 | */ |
| 6564 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7, |
| 6565 | /* Spectral bin scaling param - high level offset. |
| 6566 | * s16 attribute. |
| 6567 | */ |
| 6568 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8, |
| 6569 | /* Spectral bin scaling param - RSSI threshold. |
| 6570 | * s16 attribute. |
| 6571 | */ |
| 6572 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9, |
| 6573 | /* Spectral bin scaling param - default AGC max gain. |
| 6574 | * u8 attribute. |
| 6575 | */ |
| 6576 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10, |
Edayilliam Jayadev | 8feb825 | 2019-10-09 15:44:24 +0530 | [diff] [blame] | 6577 | /* Flag attribute to indicate agile spectral scan capability |
| 6578 | * for 20/40/80 MHz modes. |
| 6579 | */ |
Edayilliam Jayadev | db96269 | 2019-04-24 16:41:58 +0530 | [diff] [blame] | 6580 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11, |
Edayilliam Jayadev | 8feb825 | 2019-10-09 15:44:24 +0530 | [diff] [blame] | 6581 | /* Flag attribute to indicate agile spectral scan capability |
| 6582 | * for 160 MHz mode. |
| 6583 | */ |
| 6584 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12, |
| 6585 | /* Flag attribute to indicate agile spectral scan capability |
| 6586 | * for 80+80 MHz mode. |
| 6587 | */ |
| 6588 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13, |
Edayilliam Jayadev | 20edcbb | 2017-11-06 15:22:04 +0530 | [diff] [blame] | 6589 | |
| 6590 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST, |
| 6591 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX = |
| 6592 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1, |
| 6593 | }; |
| 6594 | |
| 6595 | /** |
| 6596 | * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command |
| 6597 | * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. |
| 6598 | */ |
| 6599 | enum qca_wlan_vendor_attr_spectral_scan_status { |
| 6600 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0, |
| 6601 | /* Flag attribute to indicate whether spectral scan is enabled */ |
| 6602 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1, |
| 6603 | /* Flag attribute to indicate whether spectral scan is in progress*/ |
| 6604 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2, |
Edayilliam Jayadev | db96269 | 2019-04-24 16:41:58 +0530 | [diff] [blame] | 6605 | /* Spectral scan mode. u32 attribute. |
| 6606 | * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode. |
| 6607 | * If this attribute is not present, normal mode |
| 6608 | * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be |
| 6609 | * requested. |
| 6610 | */ |
| 6611 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3, |
Edayilliam Jayadev | 20edcbb | 2017-11-06 15:22:04 +0530 | [diff] [blame] | 6612 | |
| 6613 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST, |
| 6614 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX = |
| 6615 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1, |
| 6616 | }; |
| 6617 | |
| 6618 | /** |
Paul Zhang | d6d1635 | 2017-12-08 16:08:00 +0800 | [diff] [blame] | 6619 | * enum qca_wlan_vendor_attr_config_latency_level - Level for |
| 6620 | * wlan latency module. |
| 6621 | * |
| 6622 | * There will be various of Wi-Fi functionality like scan/roaming/adaptive |
| 6623 | * power saving which would causing data exchange out of service, this |
| 6624 | * would be a big impact on latency. For latency sensitive applications over |
| 6625 | * Wi-Fi are intolerant to such operations and thus would configure them |
| 6626 | * to meet their respective needs. It is well understood by such applications |
| 6627 | * that altering the default behavior would degrade the Wi-Fi functionality |
| 6628 | * w.r.t the above pointed WLAN operations. |
| 6629 | * |
| 6630 | * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL: |
| 6631 | * Default WLAN operation level which throughput orientated. |
| 6632 | * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE: |
| 6633 | * Use moderate level to improve latency by limit scan duration. |
| 6634 | * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW: |
| 6635 | * Use low latency level to benifit application like concurrent |
| 6636 | * downloading or video streaming via constraint scan/adaptive PS. |
| 6637 | * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW: |
| 6638 | * Use ultra low latency level to benefit for gaming/voice |
| 6639 | * application via constraint scan/roaming/adaptive PS. |
| 6640 | */ |
| 6641 | enum qca_wlan_vendor_attr_config_latency_level { |
| 6642 | QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0, |
| 6643 | QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1, |
| 6644 | QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 2, |
| 6645 | QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3, |
| 6646 | QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4, |
| 6647 | |
| 6648 | /* keep last */ |
| 6649 | QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST, |
| 6650 | QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX = |
| 6651 | QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1, |
| 6652 | }; |
| 6653 | |
| 6654 | /** |
Edayilliam Jayadev | 20edcbb | 2017-11-06 15:22:04 +0530 | [diff] [blame] | 6655 | * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for |
| 6656 | * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd |
| 6657 | * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the |
| 6658 | * spectral scan request types. |
| 6659 | * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to |
| 6660 | * set the spectral parameters and start scan. |
| 6661 | * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to |
| 6662 | * only set the spectral parameters. |
| 6663 | * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to |
| 6664 | * only start the spectral scan. |
| 6665 | */ |
| 6666 | enum qca_wlan_vendor_attr_spectral_scan_request_type { |
| 6667 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG, |
| 6668 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN, |
| 6669 | QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG, |
| 6670 | }; |
| 6671 | |
Krishna Rao | fcb834f | 2017-11-11 20:38:29 +0530 | [diff] [blame] | 6672 | /** |
Edayilliam Jayadev | db96269 | 2019-04-24 16:41:58 +0530 | [diff] [blame] | 6673 | * qca_wlan_vendor_spectral_scan_mode: Attribute values for |
| 6674 | * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd |
| 6675 | * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and |
| 6676 | * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd |
| 6677 | * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the |
| 6678 | * spectral scan modes. |
| 6679 | * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan: |
| 6680 | * spectral scan in the current operating span. |
| 6681 | * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan: |
| 6682 | * spectral scan in the configured agile span. |
| 6683 | */ |
| 6684 | enum qca_wlan_vendor_spectral_scan_mode { |
| 6685 | QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0, |
| 6686 | QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1, |
| 6687 | }; |
| 6688 | |
| 6689 | /** |
| 6690 | * qca_wlan_vendor_spectral_scan_error_code: Attribute values for |
| 6691 | * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd |
| 6692 | * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. |
| 6693 | * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value |
| 6694 | * of a parameter is not supported. |
| 6695 | * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan |
| 6696 | * mode is not supported. |
| 6697 | * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter |
| 6698 | * has invalid value. |
| 6699 | * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter |
| 6700 | * is not initialized. |
| 6701 | */ |
| 6702 | enum qca_wlan_vendor_spectral_scan_error_code { |
| 6703 | QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0, |
| 6704 | QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1, |
| 6705 | QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2, |
| 6706 | QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3, |
| 6707 | }; |
| 6708 | |
| 6709 | /** |
Edayilliam Jayadev | 0a04a14 | 2018-05-07 10:46:25 +0530 | [diff] [blame] | 6710 | * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for |
| 6711 | * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd |
| 6712 | * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the |
| 6713 | * spectral hardware generation. |
| 6714 | * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1 |
| 6715 | * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2 |
| 6716 | * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3 |
| 6717 | */ |
| 6718 | enum qca_wlan_vendor_spectral_scan_cap_hw_gen { |
| 6719 | QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0, |
| 6720 | QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1, |
| 6721 | QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2, |
| 6722 | }; |
| 6723 | |
| 6724 | /** |
Edayilliam Jayadev | 83da227 | 2018-12-17 17:03:15 +0530 | [diff] [blame] | 6725 | * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for |
| 6726 | * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd |
| 6727 | * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the |
| 6728 | * Spectral bin scaling formula ID. |
| 6729 | * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling |
| 6730 | * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain |
| 6731 | * and RSSI threshold based formula. |
| 6732 | */ |
| 6733 | enum qca_wlan_vendor_spectral_scan_cap_formula_id { |
| 6734 | QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0, |
| 6735 | QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1, |
| 6736 | }; |
| 6737 | |
| 6738 | /** |
Krishna Rao | fcb834f | 2017-11-11 20:38:29 +0530 | [diff] [blame] | 6739 | * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative |
| 6740 | * RF Operating Parameter (RROP) information is available, and if so, at which |
| 6741 | * point in the application-driver interaction sequence it can be retrieved by |
| 6742 | * the application from the driver. This point may vary by architecture and |
| 6743 | * other factors. This is a u16 value. |
| 6744 | */ |
| 6745 | enum qca_wlan_vendor_attr_rropavail_info { |
| 6746 | /* RROP information is unavailable. */ |
| 6747 | QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE, |
| 6748 | /* RROP information is available and the application can retrieve the |
| 6749 | * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS |
| 6750 | * event from the driver. |
| 6751 | */ |
| 6752 | QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START, |
| 6753 | /* RROP information is available only after a vendor specific scan |
| 6754 | * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has |
| 6755 | * successfully completed. The application can retrieve the information |
| 6756 | * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from |
| 6757 | * the driver. |
| 6758 | */ |
| 6759 | QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END, |
| 6760 | }; |
| 6761 | |
| 6762 | /** |
| 6763 | * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific |
| 6764 | * Representative RF Operating Parameter (RROP) information. It is sent for the |
| 6765 | * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is |
| 6766 | * intended for use by external Auto Channel Selection applications. It provides |
| 6767 | * guidance values for some RF parameters that are used by the system during |
| 6768 | * operation. These values could vary by channel, band, radio, and so on. |
| 6769 | */ |
| 6770 | enum qca_wlan_vendor_attr_rrop_info { |
| 6771 | QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0, |
| 6772 | |
| 6773 | /* Representative Tx Power List (RTPL) which has an array of nested |
| 6774 | * values as per attributes in enum qca_wlan_vendor_attr_rtplinst. |
| 6775 | */ |
| 6776 | QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1, |
| 6777 | |
| 6778 | QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST, |
| 6779 | QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX = |
| 6780 | QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1 |
| 6781 | }; |
| 6782 | |
| 6783 | /** |
| 6784 | * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list |
| 6785 | * entry instances in the Representative Tx Power List (RTPL). It provides |
| 6786 | * simplified power values intended for helping external Auto channel Selection |
| 6787 | * applications compare potential Tx power performance between channels, other |
| 6788 | * operating conditions remaining identical. These values are not necessarily |
| 6789 | * the actual Tx power values that will be used by the system. They are also not |
| 6790 | * necessarily the max or average values that will be used. Instead, they are |
| 6791 | * relative, summarized keys for algorithmic use computed by the driver or |
| 6792 | * underlying firmware considering a number of vendor specific factors. |
| 6793 | */ |
| 6794 | enum qca_wlan_vendor_attr_rtplinst { |
| 6795 | QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0, |
| 6796 | |
| 6797 | /* Primary channel number (u8) */ |
| 6798 | QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1, |
| 6799 | /* Representative Tx power in dBm (s32) with emphasis on throughput. */ |
| 6800 | QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2, |
| 6801 | /* Representative Tx power in dBm (s32) with emphasis on range. */ |
| 6802 | QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3, |
| 6803 | |
| 6804 | QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST, |
| 6805 | QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX = |
| 6806 | QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1, |
| 6807 | }; |
| 6808 | |
Yeshwanth Sriram Guntuka | 64de344 | 2018-02-23 12:17:41 +0530 | [diff] [blame] | 6809 | /** |
| 6810 | * enum qca_wlan_vendor_attr_mac - Used by the vendor command |
| 6811 | * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO. |
| 6812 | * |
| 6813 | * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an |
| 6814 | * array of nested values as per attributes in |
| 6815 | * enum qca_wlan_vendor_attr_mac_mode_info. |
| 6816 | */ |
| 6817 | enum qca_wlan_vendor_attr_mac { |
| 6818 | QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0, |
| 6819 | QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1, |
| 6820 | |
| 6821 | /* keep last */ |
| 6822 | QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST, |
| 6823 | QCA_WLAN_VENDOR_ATTR_MAC_MAX = |
| 6824 | QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1, |
| 6825 | }; |
| 6826 | |
| 6827 | /** |
| 6828 | * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected |
| 6829 | * WiFi netdev interface on a respective MAC. Used by the attribute |
| 6830 | * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO. |
| 6831 | * |
| 6832 | * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32). |
| 6833 | * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of |
| 6834 | * the connected Wi-Fi interface(u32). |
| 6835 | */ |
| 6836 | enum qca_wlan_vendor_attr_mac_iface_info { |
| 6837 | QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0, |
| 6838 | QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1, |
| 6839 | QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2, |
| 6840 | |
| 6841 | /* keep last */ |
| 6842 | QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST, |
| 6843 | QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX = |
| 6844 | QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1, |
| 6845 | }; |
| 6846 | |
| 6847 | /** |
| 6848 | * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information. |
| 6849 | * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the |
| 6850 | * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO. |
| 6851 | * |
| 6852 | * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the |
| 6853 | * MAC (u32) |
| 6854 | * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC |
| 6855 | * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described |
| 6856 | * in enum nl80211_band. |
| 6857 | * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev |
| 6858 | * interfaces associated with this MAC. Represented by enum |
| 6859 | * qca_wlan_vendor_attr_mac_iface_info. |
| 6860 | */ |
| 6861 | enum qca_wlan_vendor_attr_mac_info { |
| 6862 | QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0, |
| 6863 | QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1, |
| 6864 | QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2, |
| 6865 | QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3, |
| 6866 | |
| 6867 | /* keep last */ |
| 6868 | QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST, |
| 6869 | QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX = |
| 6870 | QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1, |
| 6871 | |
| 6872 | }; |
| 6873 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 6874 | #if !(defined (SUPPORT_WDEV_CFG80211_VENDOR_EVENT_ALLOC)) && \ |
| 6875 | (LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0)) && \ |
| 6876 | !(defined(WITH_BACKPORTS)) |
| 6877 | |
| 6878 | static inline struct sk_buff * |
| 6879 | backported_cfg80211_vendor_event_alloc(struct wiphy *wiphy, |
| 6880 | struct wireless_dev *wdev, |
| 6881 | int approxlen, |
| 6882 | int event_idx, gfp_t gfp) |
| 6883 | { |
| 6884 | struct sk_buff *skb; |
| 6885 | |
| 6886 | skb = cfg80211_vendor_event_alloc(wiphy, approxlen, event_idx, gfp); |
| 6887 | |
| 6888 | if (skb && wdev) { |
| 6889 | struct nlattr *attr; |
| 6890 | u32 ifindex = wdev->netdev->ifindex; |
| 6891 | |
| 6892 | nla_nest_cancel(skb, ((void **)skb->cb)[2]); |
| 6893 | if (nla_put_u32(skb, NL80211_ATTR_IFINDEX, ifindex)) |
| 6894 | goto nla_fail; |
| 6895 | |
| 6896 | attr = nla_nest_start(skb, NL80211_ATTR_VENDOR_DATA); |
| 6897 | ((void **)skb->cb)[2] = attr; |
| 6898 | } |
| 6899 | |
| 6900 | return skb; |
| 6901 | |
| 6902 | nla_fail: |
| 6903 | kfree_skb(skb); |
| 6904 | |
| 6905 | return NULL; |
| 6906 | } |
| 6907 | #define cfg80211_vendor_event_alloc backported_cfg80211_vendor_event_alloc |
| 6908 | #endif |
| 6909 | |
Kiran Kumar Lokere | ddf7f88 | 2018-02-02 18:06:45 -0800 | [diff] [blame] | 6910 | /** |
| 6911 | * enum he_fragmentation_val - HE fragmentation support values |
| 6912 | * Indicates level of dynamic fragmentation that is supported by |
| 6913 | * a STA as a recipient. |
| 6914 | * HE fragmentation values are defined as per 11ax spec and are used in |
| 6915 | * HE capability IE to advertise the support. These values are validated |
| 6916 | * in the driver to check the device capability and advertised in the HE |
| 6917 | * capability element. |
| 6918 | * |
| 6919 | * @HE_FRAG_DISABLE: no support for dynamic fragmentation |
| 6920 | * @HE_FRAG_LEVEL1: support for dynamic fragments that are |
| 6921 | * contained within an MPDU or S-MPDU, no support for dynamic fragments |
| 6922 | * within an A-MPDU that is not an S-MPDU. |
| 6923 | * @HE_FRAG_LEVEL2: support for dynamic fragments that are |
| 6924 | * contained within an MPDU or S-MPDU and support for up to one dynamic |
| 6925 | * fragment for each MSDU, each A-MSDU if supported by the recipient, and |
| 6926 | * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an |
| 6927 | * MPDU or S-MPDU. |
| 6928 | * @HE_FRAG_LEVEL3: support for dynamic fragments that are |
| 6929 | * contained within an MPDU or S-MPDU and support for multiple dynamic |
| 6930 | * fragments for each MSDU and for each A-MSDU if supported by the |
| 6931 | * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic |
| 6932 | * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU. |
| 6933 | */ |
| 6934 | enum he_fragmentation_val { |
| 6935 | HE_FRAG_DISABLE, |
| 6936 | HE_FRAG_LEVEL1, |
| 6937 | HE_FRAG_LEVEL2, |
| 6938 | HE_FRAG_LEVEL3, |
| 6939 | }; |
| 6940 | |
| 6941 | /** |
| 6942 | * enum he_mcs_config - HE MCS support configuration |
| 6943 | * |
| 6944 | * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth. |
| 6945 | * These values are used in driver to configure the HE MCS map to advertise |
| 6946 | * Tx/Rx MCS map in HE capability and these values are applied for all the |
| 6947 | * streams supported by the device. To configure MCS for different bandwidths, |
| 6948 | * vendor command needs to be sent using this attribute with appropriate value. |
| 6949 | * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS |
| 6950 | * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS |
| 6951 | * for HE_160_MCS0_11 send this command using HE MCS config attribute with |
| 6952 | * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11; |
| 6953 | * |
| 6954 | * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7 |
| 6955 | * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9 |
| 6956 | * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11 |
| 6957 | * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7 |
| 6958 | * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9 |
| 6959 | * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11 |
| 6960 | * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7 |
| 6961 | * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9 |
| 6962 | * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11 |
| 6963 | */ |
| 6964 | enum he_mcs_config { |
| 6965 | HE_80_MCS0_7 = 0, |
| 6966 | HE_80_MCS0_9 = 1, |
| 6967 | HE_80_MCS0_11 = 2, |
| 6968 | HE_160_MCS0_7 = 4, |
| 6969 | HE_160_MCS0_9 = 5, |
| 6970 | HE_160_MCS0_11 = 6, |
| 6971 | HE_80p80_MCS0_7 = 8, |
| 6972 | HE_80p80_MCS0_9 = 9, |
| 6973 | HE_80p80_MCS0_11 = 10, |
| 6974 | }; |
| 6975 | |
Kiran Kumar Lokere | 42398af | 2018-02-27 20:01:29 -0800 | [diff] [blame] | 6976 | /** |
| 6977 | * enum qca_wlan_ba_session_config - BA session configuration |
| 6978 | * |
| 6979 | * Indicates the configuration values for BA session configuration attribute. |
| 6980 | * |
| 6981 | * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration. |
| 6982 | * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID. |
| 6983 | */ |
| 6984 | enum qca_wlan_ba_session_config { |
| 6985 | QCA_WLAN_ADD_BA = 1, |
| 6986 | QCA_WLAN_DELETE_BA = 2, |
| 6987 | }; |
| 6988 | |
| 6989 | /** |
| 6990 | * enum qca_wlan_ac_type - access category type |
| 6991 | * |
| 6992 | * Indicates the access category type value. |
| 6993 | * |
| 6994 | * @QCA_WLAN_AC_BE: BE access category |
| 6995 | * @QCA_WLAN_AC_BK: BK access category |
| 6996 | * @QCA_WLAN_AC_VI: VI access category |
| 6997 | * @QCA_WLAN_AC_VO: VO access category |
| 6998 | * @QCA_WLAN_AC_ALL: All ACs |
| 6999 | */ |
| 7000 | enum qca_wlan_ac_type { |
| 7001 | QCA_WLAN_AC_BE = 0, |
| 7002 | QCA_WLAN_AC_BK = 1, |
| 7003 | QCA_WLAN_AC_VI = 2, |
| 7004 | QCA_WLAN_AC_VO = 3, |
| 7005 | QCA_WLAN_AC_ALL = 4, |
| 7006 | }; |
| 7007 | |
Kiran Kumar Lokere | cbb21ca | 2018-03-08 19:34:24 -0800 | [diff] [blame] | 7008 | /** |
| 7009 | * enum qca_wlan_he_ltf_cfg - HE LTF configuration |
| 7010 | * |
| 7011 | * Indicates the HE LTF configuration value. |
| 7012 | * |
| 7013 | * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to |
| 7014 | * the mandatory HE-LTF based on the GI setting |
| 7015 | * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF |
| 7016 | * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF |
| 7017 | * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF |
| 7018 | */ |
| 7019 | enum qca_wlan_he_ltf_cfg { |
| 7020 | QCA_WLAN_HE_LTF_AUTO = 0, |
| 7021 | QCA_WLAN_HE_LTF_1X = 1, |
| 7022 | QCA_WLAN_HE_LTF_2X = 2, |
| 7023 | QCA_WLAN_HE_LTF_4X = 3, |
| 7024 | }; |
| 7025 | |
Kiran Kumar Lokere | 8b60f1e | 2018-07-05 15:57:01 -0700 | [diff] [blame] | 7026 | /** |
| 7027 | * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration |
| 7028 | * |
| 7029 | * Indicates the HE trigger frame MAC padding duration value. |
| 7030 | * |
| 7031 | * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to |
| 7032 | * process the trigger frame. |
| 7033 | * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for |
| 7034 | * trigger frame. |
| 7035 | * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for |
| 7036 | * trigger frame. |
| 7037 | */ |
| 7038 | enum qca_wlan_he_mac_padding_dur { |
| 7039 | QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0, |
| 7040 | QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1, |
| 7041 | QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2, |
| 7042 | }; |
| 7043 | |
Kiran Kumar Lokere | fd7bd58 | 2018-09-21 18:28:17 -0700 | [diff] [blame] | 7044 | /** |
| 7045 | * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration |
| 7046 | * |
| 7047 | * Indicates the HE Operating mode control channel width setting value. |
| 7048 | * |
| 7049 | * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz |
| 7050 | * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz |
| 7051 | * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz |
| 7052 | * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz |
| 7053 | */ |
| 7054 | enum qca_wlan_he_om_ctrl_ch_bw { |
| 7055 | QCA_WLAN_HE_OM_CTRL_BW_20M = 0, |
| 7056 | QCA_WLAN_HE_OM_CTRL_BW_40M = 1, |
| 7057 | QCA_WLAN_HE_OM_CTRL_BW_80M = 2, |
| 7058 | QCA_WLAN_HE_OM_CTRL_BW_160M = 3, |
| 7059 | }; |
| 7060 | |
Kiran Kumar Lokere | bd60ad3 | 2018-12-10 19:02:50 -0800 | [diff] [blame] | 7061 | /** |
| 7062 | * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for |
| 7063 | * HE operating mode control transmit request. These attributes are |
| 7064 | * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and |
| 7065 | * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. |
| 7066 | * |
| 7067 | * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value |
| 7068 | * indicates the maximum number of spatial streams, NSS, that the STA |
| 7069 | * supports in reception for PPDU bandwidths less than or equal to 80 MHz |
| 7070 | * and is set to NSS - 1. |
| 7071 | * |
| 7072 | * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value |
| 7073 | * indicates the operating channel width supported by the STA for both |
| 7074 | * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values. |
| 7075 | * |
| 7076 | * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value |
| 7077 | * indicates the all trigger based UL MU operations by the STA. |
| 7078 | * 0 - UL MU operations are enabled by the STA. |
| 7079 | * 1 - All triggered UL MU transmissions are suspended by the STA. |
| 7080 | * |
| 7081 | * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value |
| 7082 | * indicates the maximum number of space-time streams, NSTS, that |
| 7083 | * the STA supports in transmission and is set to NSTS - 1. |
Kiran Kumar Lokere | 55ec2b9 | 2019-02-06 14:17:11 -0800 | [diff] [blame] | 7084 | * |
| 7085 | * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value |
| 7086 | * combined with the UL MU Disable subfield and the recipient's setting |
| 7087 | * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC |
| 7088 | * capabilities to determine which HE TB PPDUs are possible by the |
| 7089 | * STA to transmit. |
| 7090 | * 0 - UL MU data operations are enabled by the STA. |
| 7091 | * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable |
| 7092 | * bit is not set, else UL MU Tx is suspended. |
| 7093 | * |
Kiran Kumar Lokere | bd60ad3 | 2018-12-10 19:02:50 -0800 | [diff] [blame] | 7094 | */ |
| 7095 | enum qca_wlan_vendor_attr_he_omi_tx { |
| 7096 | QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0, |
| 7097 | QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1, |
| 7098 | QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2, |
| 7099 | QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3, |
| 7100 | QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4, |
Kiran Kumar Lokere | 55ec2b9 | 2019-02-06 14:17:11 -0800 | [diff] [blame] | 7101 | QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5, |
Kiran Kumar Lokere | bd60ad3 | 2018-12-10 19:02:50 -0800 | [diff] [blame] | 7102 | |
| 7103 | /* keep last */ |
| 7104 | QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST, |
| 7105 | QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX = |
| 7106 | QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1, |
| 7107 | }; |
| 7108 | |
Kiran Kumar Lokere | ddf7f88 | 2018-02-02 18:06:45 -0800 | [diff] [blame] | 7109 | /* Attributes for data used by |
| 7110 | * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION |
| 7111 | */ |
| 7112 | enum qca_wlan_vendor_attr_wifi_test_config { |
| 7113 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0, |
| 7114 | /* 8-bit unsigned value to configure the driver to enable/disable |
| 7115 | * WMM feature. This attribute is used to configure testbed device. |
| 7116 | * 1-enable, 0-disable |
| 7117 | */ |
| 7118 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1, |
| 7119 | |
| 7120 | /* 8-bit unsigned value to configure the driver to accept/reject |
| 7121 | * the addba request from peer. This attribute is used to configure |
| 7122 | * the testbed device. |
| 7123 | * 1-accept addba, 0-reject addba |
| 7124 | */ |
| 7125 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2, |
| 7126 | |
| 7127 | /* 8-bit unsigned value to configure the driver to send or not to |
| 7128 | * send the addba request to peer. |
| 7129 | * This attribute is used to configure the testbed device. |
| 7130 | * 1-send addba, 0-do not send addba |
| 7131 | */ |
| 7132 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3, |
| 7133 | |
| 7134 | /* 8-bit unsigned value to indicate the HE fragmentation support. |
Kiran Kumar Lokere | 42398af | 2018-02-27 20:01:29 -0800 | [diff] [blame] | 7135 | * Uses enum he_fragmentation_val values. |
| 7136 | * This attribute is used to configure the testbed device to |
| 7137 | * allow the advertised hardware capabilities to be downgraded |
| 7138 | * for testing purposes. |
Kiran Kumar Lokere | ddf7f88 | 2018-02-02 18:06:45 -0800 | [diff] [blame] | 7139 | */ |
| 7140 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4, |
| 7141 | |
| 7142 | /* 8-bit unsigned value to indicate the HE MCS support. |
Kiran Kumar Lokere | 42398af | 2018-02-27 20:01:29 -0800 | [diff] [blame] | 7143 | * Uses enum he_mcs_config values. |
| 7144 | * This attribute is used to configure the testbed device to |
| 7145 | * allow the advertised hardware capabilities to be downgraded |
| 7146 | * for testing purposes. |
Kiran Kumar Lokere | ddf7f88 | 2018-02-02 18:06:45 -0800 | [diff] [blame] | 7147 | */ |
| 7148 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5, |
| 7149 | |
Kiran Kumar Lokere | 2a450cc | 2018-02-26 15:09:18 -0800 | [diff] [blame] | 7150 | /* 8-bit unsigned value to configure the driver to allow or not to |
| 7151 | * allow the connection with WEP/TKIP in HT/VHT/HE modes. |
| 7152 | * This attribute is used to configure the testbed device. |
| 7153 | * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip |
| 7154 | */ |
| 7155 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6, |
| 7156 | |
Kiran Kumar Lokere | 42398af | 2018-02-27 20:01:29 -0800 | [diff] [blame] | 7157 | /* 8-bit unsigned value to configure the driver to add a |
| 7158 | * new BA session or delete the existing BA session for |
| 7159 | * given TID. ADDBA command uses the buffer size and tid |
| 7160 | * configuration if user specifies the values else default |
| 7161 | * value for buffer size is used for all tids if the tid |
| 7162 | * also not specified. For DEL_BA command TID value is |
| 7163 | * required to process the command. |
| 7164 | * Uses enum qca_wlan_ba_session_config values. |
| 7165 | * This attribute is used to configure the testbed device. |
| 7166 | */ |
| 7167 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7, |
| 7168 | |
Kiran Kumar Lokere | 7ba00f3 | 2018-08-29 18:27:34 -0700 | [diff] [blame] | 7169 | /* 16-bit unsigned value to configure the buffer size in addba |
Kiran Kumar Lokere | 42398af | 2018-02-27 20:01:29 -0800 | [diff] [blame] | 7170 | * request and response frames. |
| 7171 | * This attribute is used to configure the testbed device. |
Kiran Kumar Lokere | 7ba00f3 | 2018-08-29 18:27:34 -0700 | [diff] [blame] | 7172 | * The range of the value is 0 to 256. |
Kiran Kumar Lokere | 42398af | 2018-02-27 20:01:29 -0800 | [diff] [blame] | 7173 | */ |
| 7174 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8, |
| 7175 | |
| 7176 | /* 8-bit unsigned value to configure the buffer size in addba |
| 7177 | * request and response frames. |
| 7178 | * This attribute is used to configure the testbed device. |
| 7179 | */ |
| 7180 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9, |
| 7181 | |
| 7182 | /* 8-bit unsigned value to configure the no ack policy. |
| 7183 | * To configure no ack policy, access category value |
| 7184 | * is required to process the command. |
| 7185 | * This attribute is used to configure the testbed device. |
| 7186 | * 1 - enable no ack, 0 - disable no ack |
| 7187 | */ |
| 7188 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10, |
| 7189 | |
| 7190 | /* 8-bit unsigned value to configure the AC for no ack policy |
| 7191 | * This attribute is used to configure the testbed device. |
| 7192 | * uses the enum qca_wlan_ac_type values |
| 7193 | */ |
| 7194 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11, |
| 7195 | |
Kiran Kumar Lokere | cbb21ca | 2018-03-08 19:34:24 -0800 | [diff] [blame] | 7196 | /* 8-bit unsigned value to configure the HE LTF |
| 7197 | * This attribute is used to configure the testbed device. |
| 7198 | * Uses the enum qca_wlan_he_ltf_cfg values. |
| 7199 | */ |
| 7200 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12, |
| 7201 | |
Kiran Kumar Lokere | 993a384 | 2018-05-14 18:17:18 -0700 | [diff] [blame] | 7202 | /* 8-bit unsigned value to configure the tx beamformee. |
| 7203 | * This attribute is used to configure the testbed device. |
| 7204 | * 1 - enable, 0 - disable. |
| 7205 | */ |
| 7206 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13, |
| 7207 | |
Kiran Kumar Lokere | 9c0d0e0 | 2018-06-27 15:27:01 -0700 | [diff] [blame] | 7208 | /* 8-bit unsigned value to configure the tx beamformee number of |
| 7209 | * space-time streams. |
| 7210 | * This attribute is used to configure the testbed device. |
| 7211 | * The range of the value is 0 to 8 |
| 7212 | */ |
| 7213 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14, |
| 7214 | |
Kiran Kumar Lokere | 0c66f3e | 2018-07-05 15:46:49 -0700 | [diff] [blame] | 7215 | /* 8-bit unsigned value to configure the MU EDCA params for given AC |
| 7216 | * This attribute is used to configure the testbed device. |
| 7217 | * Uses the enum qca_wlan_ac_type values. |
| 7218 | */ |
| 7219 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15, |
| 7220 | |
| 7221 | /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC |
| 7222 | * To configure MU EDCA AIFSN value, MU EDCA access category value |
| 7223 | * is required to process the command. |
| 7224 | * This attribute is used to configure the testbed device. |
| 7225 | */ |
| 7226 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16, |
| 7227 | |
| 7228 | /* 8-bit unsigned value to configure the MU EDCA ECW min value for |
| 7229 | * given AC. |
| 7230 | * To configure MU EDCA ECW min value, MU EDCA access category value |
| 7231 | * is required to process the command. |
| 7232 | * This attribute is used to configure the testbed device. |
| 7233 | */ |
| 7234 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17, |
| 7235 | |
| 7236 | /* 8-bit unsigned value to configure the MU EDCA ECW max value for |
| 7237 | * given AC. |
| 7238 | * To configure MU EDCA ECW max value, MU EDCA access category value |
| 7239 | * is required to process the command. |
| 7240 | * This attribute is used to configure the testbed device. |
| 7241 | */ |
| 7242 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18, |
| 7243 | |
| 7244 | /* 8-bit unsigned value to configure the MU EDCA timer for given AC |
| 7245 | * To configure MU EDCA timer value, MU EDCA access category value |
| 7246 | * is required to process the command. |
| 7247 | * This attribute is used to configure the testbed device. |
| 7248 | */ |
| 7249 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19, |
| 7250 | |
Kiran Kumar Lokere | 8b60f1e | 2018-07-05 15:57:01 -0700 | [diff] [blame] | 7251 | /* 8-bit unsigned value to configure the HE trigger frame MAC padding |
| 7252 | * duration. |
| 7253 | * This attribute is used to configure the testbed device. |
| 7254 | * Uses the enum qca_wlan_he_mac_padding_dur values. |
| 7255 | */ |
| 7256 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20, |
| 7257 | |
Kiran Kumar Lokere | cb0c0a1 | 2018-07-24 13:36:59 -0700 | [diff] [blame] | 7258 | /* 8-bit unsigned value to override the MU EDCA params to defaults |
| 7259 | * regardless of the AP beacon MU EDCA params. If it is enabled use |
| 7260 | * the default values else use the MU EDCA params from AP beacon. |
| 7261 | * This attribute is used to configure the testbed device. |
| 7262 | * 1 - enable override, 0 - disable. |
| 7263 | */ |
| 7264 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21, |
| 7265 | |
Kiran Kumar Lokere | 7ba00f3 | 2018-08-29 18:27:34 -0700 | [diff] [blame] | 7266 | /* 8-bit unsigned value to configure the support for receiving |
| 7267 | * an MPDU that contains an operating mode control subfield. |
| 7268 | * This attribute is used to configure the testbed device. |
| 7269 | * 1-enable, 0-disable. |
| 7270 | */ |
| 7271 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22, |
| 7272 | |
Varun Reddy Yeturu | 49149e8 | 2018-09-22 18:52:40 -0700 | [diff] [blame] | 7273 | /* Nested attribute values required to setup the TWT session. |
| 7274 | * enum qca_wlan_vendor_attr_twt_setup provides the necessary |
| 7275 | * information to set up the session. It contains broadcast flags, |
| 7276 | * set_up flags, trigger value, flow type, flow ID, wake interval |
| 7277 | * exponent, protection, target wake time, wake duration, wake interval |
| 7278 | * mantissa. These nested attributes are used to setup a host triggered |
| 7279 | * TWT session. |
| 7280 | */ |
| 7281 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23, |
| 7282 | |
| 7283 | /* This nested attribute is used to terminate the current TWT session. |
| 7284 | * It does not currently carry any attributes. |
| 7285 | */ |
| 7286 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24, |
| 7287 | |
| 7288 | /* This nested attribute is used to suspend the current TWT session. |
| 7289 | * It does not currently carry any attributes. |
| 7290 | */ |
| 7291 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25, |
| 7292 | |
| 7293 | /* Nested attribute values to indicate the request for resume. |
| 7294 | * This attribute is used to resume the TWT session. |
| 7295 | * enum qca_wlan_vendor_attr_twt_resume provides the necessary |
| 7296 | * parameters required to resume the TWT session. |
| 7297 | */ |
| 7298 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26, |
| 7299 | |
Kiran Kumar Lokere | fd7bd58 | 2018-09-21 18:28:17 -0700 | [diff] [blame] | 7300 | /* 8-bit unsigned value to set the HE operating mode control |
| 7301 | * (OM CTRL) Channel Width subfield. |
| 7302 | * The Channel Width subfield indicates the operating channel width |
| 7303 | * supported by the STA for both reception and transmission. |
| 7304 | * Uses the enum qca_wlan_he_om_ctrl_ch_bw values. |
| 7305 | * This setting is cleared with the |
| 7306 | * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG |
| 7307 | * flag attribute to reset defaults. |
| 7308 | * This attribute is used to configure the testbed device. |
| 7309 | */ |
| 7310 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27, |
| 7311 | |
| 7312 | /* 8-bit unsigned value to configure the number of spatial |
| 7313 | * streams in HE operating mode control field. |
| 7314 | * This setting is cleared with the |
| 7315 | * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG |
| 7316 | * flag attribute to reset defaults. |
| 7317 | * This attribute is used to configure the testbed device. |
| 7318 | */ |
| 7319 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28, |
| 7320 | |
| 7321 | /* Flag attribute to configure the UL MU disable bit in |
| 7322 | * HE operating mode control field. |
| 7323 | * This setting is cleared with the |
| 7324 | * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG |
| 7325 | * flag attribute to reset defaults. |
| 7326 | * This attribute is used to configure the testbed device. |
| 7327 | */ |
| 7328 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29, |
| 7329 | |
| 7330 | /* Flag attribute to clear the previously set HE operating mode |
| 7331 | * control field configuration. |
| 7332 | * This attribute is used to configure the testbed device to reset |
| 7333 | * defaults to clear any previously set HE operating mode control |
| 7334 | * field configuration. |
| 7335 | */ |
| 7336 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30, |
| 7337 | |
Kiran Kumar Lokere | 82ba870 | 2018-09-25 18:16:47 -0700 | [diff] [blame] | 7338 | /* 8-bit unsigned value to configure HE single user PPDU |
| 7339 | * transmission. By default this setting is disabled and it |
| 7340 | * is disabled in the reset defaults of the device configuration. |
| 7341 | * This attribute is used to configure the testbed device. |
| 7342 | * 1-enable, 0-disable |
| 7343 | */ |
| 7344 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31, |
| 7345 | |
Kiran Kumar Lokere | 7b5131b | 2018-09-25 18:28:42 -0700 | [diff] [blame] | 7346 | /* 8-bit unsigned value to configure action frame transmission |
| 7347 | * in HE trigger based PPDU transmission. |
| 7348 | * By default this setting is disabled and it is disabled in |
| 7349 | * the reset defaults of the device configuration. |
| 7350 | * This attribute is used to configure the testbed device. |
| 7351 | * 1-enable, 0-disable |
| 7352 | */ |
| 7353 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32, |
| 7354 | |
Kiran Kumar Lokere | bd60ad3 | 2018-12-10 19:02:50 -0800 | [diff] [blame] | 7355 | /* Nested attribute to indicate HE operating mode control field |
| 7356 | * transmission. It contains operating mode control field Nss, |
| 7357 | * channel bandwidth, Tx Nsts and UL MU disable attributes. |
| 7358 | * These nested attributes are used to send HE operating mode control |
| 7359 | * with configured values. |
| 7360 | * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes. |
| 7361 | * This attribute is used to configure the testbed device. |
| 7362 | */ |
| 7363 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33, |
| 7364 | |
| 7365 | /* 8-bit unsigned value to configure +HTC_HE support to indicate the |
| 7366 | * support for the reception of a frame that carries an HE variant |
| 7367 | * HT Control field. |
| 7368 | * This attribute is used to configure the testbed device. |
| 7369 | * 1-enable, 0-disable |
| 7370 | */ |
| 7371 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34, |
| 7372 | |
Kiran Kumar Lokere | 47eba66 | 2019-02-06 14:38:19 -0800 | [diff] [blame] | 7373 | /* 8-bit unsigned value to configure VHT support in 2.4G band. |
| 7374 | * This attribute is used to configure the testbed device. |
| 7375 | * 1-enable, 0-disable |
| 7376 | */ |
| 7377 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35, |
| 7378 | |
Kiran Kumar Lokere | 2d26d82 | 2019-02-24 21:44:00 -0800 | [diff] [blame] | 7379 | /* 8-bit unsigned value to configure HE testbed defaults. |
| 7380 | * This attribute is used to configure the testbed device. |
| 7381 | * 1-set the device HE capabilities to testbed defaults. |
| 7382 | * 0-reset the device HE capabilities to supported config. |
| 7383 | */ |
| 7384 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36, |
| 7385 | |
Arif Hussain | 1d9aae0 | 2019-03-12 14:30:51 -0700 | [diff] [blame] | 7386 | /* 8-bit unsigned value to configure twt request support. |
| 7387 | * This attribute is used to configure the testbed device. |
| 7388 | * 1-enable, 0-disable. |
| 7389 | */ |
| 7390 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37, |
| 7391 | |
Kiran Kumar Lokere | ddf7f88 | 2018-02-02 18:06:45 -0800 | [diff] [blame] | 7392 | /* keep last */ |
| 7393 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST, |
| 7394 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX = |
| 7395 | QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1, |
| 7396 | }; |
| 7397 | |
Varun Reddy Yeturu | 49149e8 | 2018-09-22 18:52:40 -0700 | [diff] [blame] | 7398 | /** |
| 7399 | * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for |
| 7400 | * TWT (Target Wake Time) setup request. These attributes are sent as part of |
| 7401 | * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and |
| 7402 | * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. |
| 7403 | * |
| 7404 | * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute. |
| 7405 | * Disable (flag attribute not present) - Individual TWT |
| 7406 | * Enable (flag attribute present) - Broadcast TWT. |
| 7407 | * Individual means the session is between the STA and the AP. |
| 7408 | * This session is established using a separate negotiation between |
| 7409 | * STA and AP. |
| 7410 | * Broadcast means the session is across multiple STAs and an AP. The |
| 7411 | * configuration parameters are announced in Beacon frames by the AP. |
| 7412 | * |
| 7413 | * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8). |
| 7414 | * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to |
| 7415 | * specify the TWT request type |
| 7416 | * |
| 7417 | * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute |
| 7418 | * Enable (flag attribute present) - TWT with trigger support. |
| 7419 | * Disable (flag attribute not present) - TWT without trigger support. |
| 7420 | * Trigger means the AP will send the trigger frame to allow STA to send data. |
| 7421 | * Without trigger, the STA will wait for the MU EDCA timer before |
| 7422 | * transmitting the data. |
| 7423 | * |
| 7424 | * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8) |
| 7425 | * 0 - Announced TWT - In this mode, STA may skip few service periods to |
| 7426 | * save more power. If STA wants to wake up, it will send a PS-POLL/QoS |
| 7427 | * NULL frame to AP. |
| 7428 | * 1 - Unannounced TWT - The STA will wakeup during every SP. |
| 7429 | * |
| 7430 | * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8) |
| 7431 | * Flow ID is the unique identifier for each TWT session. |
| 7432 | * Currently this is not required and dialog ID will be set to zero. |
| 7433 | * |
| 7434 | * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8) |
| 7435 | * This attribute (exp) is used along with the mantissa to derive the |
| 7436 | * wake interval using the following formula: |
| 7437 | * pow(2,exp) = wake_intvl_us/wake_intvl_mantis |
| 7438 | * Wake interval is the interval between 2 successive SP. |
| 7439 | * |
| 7440 | * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute |
| 7441 | * Enable (flag attribute present) - Protection required. |
| 7442 | * Disable (flag attribute not present) - Protection not required. |
| 7443 | * If protection is enabled, then the AP will use protection |
| 7444 | * mechanism using RTS/CTS to self to reserve the airtime. |
| 7445 | * |
| 7446 | * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32) |
| 7447 | * This attribute is used as the SP offset which is the offset from |
| 7448 | * TSF after which the wake happens. The units are in microseconds. If |
| 7449 | * this attribute is not provided, then the value will be set to zero. |
| 7450 | * |
| 7451 | * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32) |
| 7452 | * This is the duration of the service period. The units are in TU. |
| 7453 | * |
| 7454 | * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32) |
| 7455 | * This attribute is used to configure wake interval mantissa. |
| 7456 | * The units are in TU. |
| 7457 | */ |
| 7458 | enum qca_wlan_vendor_attr_twt_setup { |
| 7459 | QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0, |
| 7460 | QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1, |
| 7461 | QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2, |
| 7462 | QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3, |
| 7463 | QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4, |
| 7464 | QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5, |
| 7465 | QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6, |
| 7466 | QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7, |
| 7467 | QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8, |
| 7468 | QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9, |
| 7469 | QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10, |
| 7470 | |
| 7471 | /* keep last */ |
| 7472 | QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST, |
| 7473 | QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX = |
| 7474 | QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1, |
| 7475 | }; |
| 7476 | |
| 7477 | /** |
| 7478 | * enum qca_wlan_vendor_attr_twt_resume: Represents attributes for |
| 7479 | * TWT (Target Wake Time) resume request. These attributes are sent as part of |
| 7480 | * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and |
| 7481 | * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. |
| 7482 | * |
| 7483 | * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8) |
| 7484 | * This attribute is used as the SP offset which is the offset from |
| 7485 | * TSF after which the wake happens. The units are in microseconds. |
| 7486 | * If this attribute is not provided, then the value will be set to |
| 7487 | * zero. |
| 7488 | * |
| 7489 | * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32) |
| 7490 | * This attribute represents the next TWT subfield size. |
| 7491 | */ |
| 7492 | enum qca_wlan_vendor_attr_twt_resume { |
| 7493 | QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0, |
| 7494 | QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1, |
| 7495 | QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2, |
| 7496 | |
| 7497 | /* keep last */ |
| 7498 | QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST, |
| 7499 | QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX = |
| 7500 | QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1, |
| 7501 | }; |
| 7502 | |
| 7503 | /** |
| 7504 | * enum qca_wlan_vendor_twt_setup_req_type - Required (u8) |
| 7505 | * Represents the setup type being requested for TWT. |
| 7506 | * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT |
| 7507 | * parameters but relying on AP to fill the parameters during the negotiation. |
| 7508 | * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested |
| 7509 | * values which the AP may accept or AP may provide alternative parameters |
| 7510 | * which the STA may accept. |
| 7511 | * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any |
| 7512 | * alternate parameters than the requested ones. |
| 7513 | */ |
| 7514 | enum qca_wlan_vendor_twt_setup_req_type { |
| 7515 | QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1, |
| 7516 | QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2, |
| 7517 | QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3, |
| 7518 | }; |
| 7519 | |
Alok Kumar | db0d423 | 2018-11-08 19:08:13 +0530 | [diff] [blame] | 7520 | /** |
| 7521 | * enum qca_wlan_throughput_level - Current throughput level |
| 7522 | * |
| 7523 | * Indicates the current level of throughput calculated by driver. The driver |
| 7524 | * may choose different thresholds to decide whether the throughput level is |
| 7525 | * low or medium or high based on variety of parameters like physical link |
| 7526 | * capacity of current connection, number of pakcets being dispatched per |
| 7527 | * second etc. The throughput level events might not be consistent with the |
| 7528 | * actual current throughput value being observed. |
| 7529 | * |
| 7530 | * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput |
| 7531 | * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput |
| 7532 | * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput |
| 7533 | */ |
| 7534 | enum qca_wlan_throughput_level { |
| 7535 | QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0, |
| 7536 | QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1, |
| 7537 | QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2, |
| 7538 | }; |
| 7539 | |
| 7540 | /** |
| 7541 | * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to |
| 7542 | * report throughput changes from driver to user space. enum values are used |
| 7543 | * for NL attributes sent with |
| 7544 | * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command. |
| 7545 | */ |
| 7546 | enum qca_wlan_vendor_attr_throughput_change { |
| 7547 | QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0, |
| 7548 | /* |
| 7549 | * Indicates the direction of throughput in which the change is being |
| 7550 | * reported. u8 attribute. Value is 0 for TX and 1 for RX. |
| 7551 | */ |
| 7552 | QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1, |
| 7553 | |
| 7554 | /* |
| 7555 | * Indicates the newly observed throughput level. |
| 7556 | * qca_wlan_throughput_level describes the possible range of values. |
| 7557 | * u8 attribute. |
| 7558 | */ |
| 7559 | QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2, |
| 7560 | |
| 7561 | /* |
| 7562 | * Indicates the driver's guidance on the new value to be set to |
| 7563 | * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver |
| 7564 | * may optionally include this attribute. |
| 7565 | */ |
| 7566 | QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3, |
| 7567 | |
| 7568 | /* |
| 7569 | * Indicates the driver's guidance on the new value to be set to |
| 7570 | * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible |
| 7571 | * values are from -31 to 31. Driver may optionally include this |
| 7572 | * attribute. |
| 7573 | */ |
| 7574 | QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4, |
| 7575 | |
| 7576 | /* |
| 7577 | * Indicates the driver's guidance on the new value to be set to |
| 7578 | * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may |
| 7579 | * optionally include this attribute. |
| 7580 | */ |
| 7581 | QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5, |
| 7582 | |
| 7583 | /* keep last */ |
| 7584 | QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST, |
| 7585 | QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX = |
| 7586 | QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1, |
| 7587 | }; |
| 7588 | |
Nachiket Kukade | 30ed5c4 | 2018-12-03 18:30:46 +0530 | [diff] [blame] | 7589 | /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute |
| 7590 | * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command |
| 7591 | * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. |
| 7592 | */ |
| 7593 | enum qca_wlan_nan_ext_subcmd_type { |
| 7594 | /* Subcmd of type NAN Enable Request */ |
| 7595 | QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1, |
| 7596 | /* Subcmd of type NAN Disable Request */ |
| 7597 | QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2, |
| 7598 | }; |
| 7599 | |
| 7600 | /** |
| 7601 | * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command |
| 7602 | * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. |
| 7603 | */ |
| 7604 | enum qca_wlan_vendor_attr_nan_params { |
| 7605 | QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0, |
| 7606 | /* Carries NAN command for firmware component. Every vendor command |
| 7607 | * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a |
| 7608 | * payload containing the NAN command. NLA_BINARY attribute. |
| 7609 | */ |
| 7610 | QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1, |
| 7611 | /* Indicates the type of NAN command sent with |
| 7612 | * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type |
| 7613 | * describes the possible range of values. This attribute is mandatory |
| 7614 | * if the command being issued is either |
| 7615 | * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or |
| 7616 | * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute. |
| 7617 | */ |
| 7618 | QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2, |
| 7619 | /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz |
| 7620 | * band. This attribute is mandatory when command type is |
| 7621 | * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute. |
| 7622 | */ |
| 7623 | QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3, |
| 7624 | /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz |
| 7625 | * band. This attribute is optional and should be included when command |
| 7626 | * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery |
| 7627 | * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute. |
| 7628 | */ |
| 7629 | QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4, |
| 7630 | |
| 7631 | /* keep last */ |
| 7632 | QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST, |
| 7633 | QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX = |
| 7634 | QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1 |
| 7635 | }; |
Amir Patel | 62f72ed | 2019-03-11 20:13:53 +0530 | [diff] [blame] | 7636 | |
| 7637 | /** |
Jiani Liu | 19f4cb0 | 2019-03-04 16:47:21 +0800 | [diff] [blame] | 7638 | * enum qca_coex_config_profiles - This enum defines different types of |
| 7639 | * traffic streams that can be prioritized one over the other during coex |
| 7640 | * scenarios. |
| 7641 | * The types defined in this enum are categorized in the below manner. |
| 7642 | * 0 - 31 values corresponds to WLAN |
| 7643 | * 32 - 63 values corresponds to BT |
| 7644 | * 64 - 95 values corresponds to Zigbee |
| 7645 | * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA |
| 7646 | * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA |
| 7647 | * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA |
| 7648 | * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA |
| 7649 | * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA |
| 7650 | * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP |
| 7651 | * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP |
| 7652 | * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP |
| 7653 | * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP |
| 7654 | * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP |
| 7655 | * @QCA_BT_A2DP: Prioritize BT A2DP |
| 7656 | * @QCA_BT_BLE: Prioritize BT BLE |
| 7657 | * @QCA_BT_SCO: Prioritize BT SCO |
| 7658 | * @QCA_ZB_LOW: Prioritize Zigbee Low |
| 7659 | * @QCA_ZB_HIGH: Prioritize Zigbee High |
| 7660 | */ |
| 7661 | enum qca_coex_config_profiles { |
| 7662 | /* 0 - 31 corresponds to WLAN */ |
| 7663 | QCA_WIFI_STA_DISCOVERY = 0, |
| 7664 | QCA_WIFI_STA_CONNECTION = 1, |
| 7665 | QCA_WIFI_STA_CLASS_3_MGMT = 2, |
| 7666 | QCA_WIFI_STA_DATA = 3, |
| 7667 | QCA_WIFI_STA_ALL = 4, |
| 7668 | QCA_WIFI_SAP_DISCOVERY = 5, |
| 7669 | QCA_WIFI_SAP_CONNECTION = 6, |
| 7670 | QCA_WIFI_SAP_CLASS_3_MGMT = 7, |
| 7671 | QCA_WIFI_SAP_DATA = 8, |
| 7672 | QCA_WIFI_SAP_ALL = 9, |
| 7673 | QCA_WIFI_CASE_MAX = 31, |
| 7674 | /* 32 - 63 corresponds to BT */ |
| 7675 | QCA_BT_A2DP = 32, |
| 7676 | QCA_BT_BLE = 33, |
| 7677 | QCA_BT_SCO = 34, |
| 7678 | QCA_BT_CASE_MAX = 63, |
| 7679 | /* 64 - 95 corresponds to Zigbee */ |
| 7680 | QCA_ZB_LOW = 64, |
| 7681 | QCA_ZB_HIGH = 65, |
| 7682 | QCA_ZB_CASE_MAX = 95, |
| 7683 | /* 0xff is default value if the u8 profile value is not set. */ |
| 7684 | QCA_PROFILE_DEFAULT_VALUE = 255 |
| 7685 | }; |
| 7686 | |
| 7687 | /** |
| 7688 | * enum qca_vendor_attr_coex_config_types - Coex configurations types. |
| 7689 | * This enum defines the valid set of values of coex configuration types. These |
| 7690 | * values may used by attribute |
| 7691 | * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE. |
| 7692 | * |
| 7693 | * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the |
| 7694 | * weights to default values. |
| 7695 | * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config |
| 7696 | * weights with configurability value. |
| 7697 | */ |
| 7698 | enum qca_vendor_attr_coex_config_types { |
| 7699 | QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0, |
| 7700 | QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1, |
| 7701 | QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2, |
| 7702 | QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX |
| 7703 | }; |
| 7704 | |
| 7705 | /** |
| 7706 | * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config |
| 7707 | * attributes |
| 7708 | * Attributes for data used by |
| 7709 | * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG |
| 7710 | * |
| 7711 | * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute. |
| 7712 | * Indicate config type. |
| 7713 | * the config types are 32-bit values from qca_vendor_attr_coex_config_types |
| 7714 | * |
| 7715 | * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute. |
| 7716 | * Indicate the Priority 1 profiles. |
| 7717 | * the profiles are 8-bit values from enum qca_coex_config_profiles |
| 7718 | * In same priority level, maximum to 4 profiles can be set here. |
| 7719 | * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute. |
| 7720 | * Indicate the Priority 2 profiles. |
| 7721 | * the profiles are 8-bit values from enum qca_coex_config_profiles |
| 7722 | * In same priority level, maximum to 4 profiles can be set here. |
| 7723 | * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute. |
| 7724 | * Indicate the Priority 3 profiles. |
| 7725 | * the profiles are 8-bit values from enum qca_coex_config_profiles |
| 7726 | * In same priority level, maximum to 4 profiles can be set here. |
| 7727 | * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute. |
| 7728 | * Indicate the Priority 4 profiles. |
| 7729 | * the profiles are 8-bit values from enum qca_coex_config_profiles |
| 7730 | * In same priority level, maximum to 4 profiles can be set here. |
| 7731 | * NOTE: |
| 7732 | * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority |
| 7733 | * arrangement: |
| 7734 | * 1: In the same u32 attribute(priority x), the profiles enum values own |
| 7735 | * same priority level. |
| 7736 | * 2: 0xff is default value if the u8 profile value is not set. |
| 7737 | * 3: max to 4 rules/profiles in same priority level. |
| 7738 | * 4: max to 4 priority level (priority 1 - priority 4) |
| 7739 | * 5: one priority level only supports one scenario from WLAN/BT/ZB, |
| 7740 | * hybrid rules not support. |
| 7741 | * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will |
| 7742 | * remain blank to reset all parameters. |
| 7743 | * For example: |
| 7744 | * |
| 7745 | * If the attributes as follow: |
| 7746 | * priority 1: |
| 7747 | * ------------------------------------ |
| 7748 | * | 0xff | 0 | 1 | 2 | |
| 7749 | * ------------------------------------ |
| 7750 | * priority 2: |
| 7751 | * ------------------------------------- |
| 7752 | * | 0xff | 0xff | 0xff | 32 | |
| 7753 | * ------------------------------------- |
| 7754 | * priority 3: |
| 7755 | * ------------------------------------- |
| 7756 | * | 0xff | 0xff | 0xff | 65 | |
| 7757 | * ------------------------------------- |
| 7758 | * then it means: |
| 7759 | * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION |
| 7760 | * owns same priority level. |
| 7761 | * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION |
| 7762 | * has priority over BT_A2DP and ZB_HIGH. |
| 7763 | * 3: BT_A2DP has priority over ZB_HIGH. |
| 7764 | */ |
| 7765 | |
| 7766 | enum qca_vendor_attr_coex_config_three_way { |
| 7767 | QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0, |
| 7768 | QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1, |
| 7769 | QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2, |
| 7770 | QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3, |
| 7771 | QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4, |
| 7772 | QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5, |
| 7773 | |
| 7774 | /* Keep last */ |
| 7775 | QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST, |
| 7776 | QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX = |
| 7777 | QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1, |
| 7778 | }; |
| 7779 | |
| 7780 | /** |
Amir Patel | 62f72ed | 2019-03-11 20:13:53 +0530 | [diff] [blame] | 7781 | * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type |
| 7782 | * This enum defines the valid set of values of peer stats cache types. These |
| 7783 | * values are used by attribute |
| 7784 | * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID. |
| 7785 | * |
| 7786 | * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics. |
| 7787 | * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics. |
| 7788 | * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn |
| 7789 | * statistics |
| 7790 | */ |
| 7791 | enum qca_vendor_attr_peer_stats_cache_type { |
| 7792 | QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0, |
| 7793 | |
| 7794 | QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS, |
| 7795 | QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS, |
| 7796 | QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS, |
| 7797 | }; |
| 7798 | |
| 7799 | /** |
| 7800 | * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines |
| 7801 | * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH |
| 7802 | * Attributes are required to flush peer rate statistics from driver to |
| 7803 | * user application. |
| 7804 | * |
| 7805 | * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute |
| 7806 | * Indicate peer stats cache type. |
| 7807 | * The statistics types are 32-bit values from |
| 7808 | * qca_vendor_attr_peer_stats_cache_type |
| 7809 | * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array |
| 7810 | * of size 6, representing peer mac address. |
| 7811 | * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute |
| 7812 | * containing buffer of statistics to send event to application layer entity. |
| 7813 | * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute |
| 7814 | * representing cookie for peer unique session. |
| 7815 | */ |
| 7816 | enum qca_wlan_vendor_attr_peer_stats_cache_params { |
| 7817 | QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0, |
| 7818 | |
| 7819 | QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1, |
| 7820 | QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2, |
| 7821 | QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3, |
| 7822 | QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4, |
| 7823 | |
| 7824 | /* Keep last */ |
| 7825 | QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST, |
| 7826 | QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX = |
| 7827 | QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1 |
| 7828 | }; |
stonez | a558be1 | 2019-03-11 13:59:57 +0800 | [diff] [blame] | 7829 | |
| 7830 | /** |
| 7831 | * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee. |
| 7832 | * this enum defines all the possible state of zigbee, which can be |
| 7833 | * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE. |
| 7834 | * |
| 7835 | * @ZIGBEE_IDLE: zigbee in idle state |
| 7836 | * @ZIGBEE_FORM_NETWORK: zibee forming network |
| 7837 | * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network |
| 7838 | * @ZIGBEE_JOIN: zigbee joining network |
| 7839 | * @ZIGBEE_NETWORK_UP: zigbee network is up |
| 7840 | * @ZIGBEE_HMI: zigbee in HMI mode |
| 7841 | */ |
| 7842 | enum qca_mpta_helper_attr_zigbee_state { |
| 7843 | ZIGBEE_IDLE = 0, |
| 7844 | ZIGBEE_FORM_NETWORK = 1, |
| 7845 | ZIGBEE_WAIT_JOIN = 2, |
| 7846 | ZIGBEE_JOIN = 3, |
| 7847 | ZIGBEE_NETWORK_UP = 4, |
| 7848 | ZIGBEE_HMI = 5, |
| 7849 | }; |
| 7850 | |
| 7851 | /** |
| 7852 | * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by |
| 7853 | * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG. |
| 7854 | */ |
| 7855 | enum qca_mpta_helper_vendor_attr { |
| 7856 | QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0, |
| 7857 | /* Optional attribute used to update zigbee state. |
| 7858 | * enum qca_mpta_helper_attr_zigbee_state. |
| 7859 | * NLA_U32 attribute. |
| 7860 | */ |
| 7861 | QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1, |
| 7862 | /* Optional attribute used to configure wlan duration for Shape-OCS |
| 7863 | * during interrupt. |
| 7864 | * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION. |
| 7865 | * Value range 0 ~ 300 (ms). |
| 7866 | * NLA_U32 attribute. |
| 7867 | */ |
| 7868 | QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2, |
| 7869 | /* Optional attribute used to configure non wlan duration for Shape-OCS |
| 7870 | * during interrupt. |
| 7871 | * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION. |
| 7872 | * Value range 0 ~ 300 (ms). |
| 7873 | * NLA_U32 attribute. |
| 7874 | */ |
| 7875 | QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3, |
| 7876 | /* Optional attribute used to configure wlan duration for Shape-OCS |
| 7877 | * monitor period. |
| 7878 | * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION. |
| 7879 | * Value range 0 ~ 300 (ms) |
| 7880 | * NLA_U32 attribute |
| 7881 | */ |
| 7882 | QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4, |
| 7883 | /* Optional attribute used to configure non wlan duration for Shape-OCS |
| 7884 | * monitor period. |
| 7885 | * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION. |
| 7886 | * Value range 0 ~ 300 (ms) |
| 7887 | * NLA_U32 attribute |
| 7888 | */ |
| 7889 | QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5, |
| 7890 | /* Optional attribute used to configure ocs interrupt duration. |
| 7891 | * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION. |
| 7892 | * Value range 1000 ~ 20000 (ms) |
| 7893 | * NLA_U32 attribute |
| 7894 | */ |
| 7895 | QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6, |
| 7896 | /* Optional attribute used to configure ocs monitor duration. |
| 7897 | * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION. |
| 7898 | * Value range 1000 ~ 20000 (ms) |
| 7899 | * NLA_U32 attribute |
| 7900 | */ |
| 7901 | QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7, |
| 7902 | /* Optional attribute used to notify wlan FW current zigbee channel. |
| 7903 | * Value range 11 ~ 26 |
| 7904 | * NLA_U32 attribute |
| 7905 | */ |
| 7906 | QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8, |
| 7907 | /* Optional attribute used to configure wlan mute duration. |
| 7908 | * Value range 0 ~ 400 (ms) |
| 7909 | * NLA_U32 attribute |
| 7910 | */ |
| 7911 | QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9, |
| 7912 | |
| 7913 | /* keep last */ |
| 7914 | QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST, |
| 7915 | QCA_MPTA_HELPER_VENDOR_ATTR_MAX = |
| 7916 | QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1 |
| 7917 | }; |
Abhinav Kumar | 88e3fc5 | 2019-05-03 00:21:11 +0530 | [diff] [blame] | 7918 | |
| 7919 | /** |
| 7920 | * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of |
| 7921 | * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be |
| 7922 | * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE. |
| 7923 | * |
| 7924 | * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver |
| 7925 | * to request the driver to start reporting Beacon frames. |
| 7926 | * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver |
| 7927 | * to request the driver to stop reporting Beacon frames. |
| 7928 | * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to |
| 7929 | * userspace to report received Beacon frames. |
| 7930 | * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace |
| 7931 | * to indicate that the driver is going to pause reporting Beacon frames. |
| 7932 | */ |
| 7933 | enum qca_wlan_vendor_beacon_reporting_op_types { |
| 7934 | QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0, |
| 7935 | QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1, |
| 7936 | QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2, |
| 7937 | QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3, |
| 7938 | }; |
| 7939 | |
| 7940 | /** |
| 7941 | * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different |
| 7942 | * types of reasons for which the driver is pausing reporting Beacon frames. |
| 7943 | * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON. |
| 7944 | * |
| 7945 | * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified |
| 7946 | * reasons. |
| 7947 | * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the |
| 7948 | * driver/firmware is starting a scan. |
| 7949 | * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the |
| 7950 | * driver/firmware disconnects from the ESS and indicates the disconnection to |
| 7951 | * userspace (non-seamless roaming case). This reason code will be used by the |
| 7952 | * driver/firmware to indicate stopping of beacon report events. Userspace |
| 7953 | * will need to start beacon reporting again (if desired) by sending vendor |
| 7954 | * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with |
| 7955 | * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to |
| 7956 | * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is |
| 7957 | * completed. |
| 7958 | */ |
| 7959 | enum qca_wlan_vendor_beacon_reporting_pause_reasons { |
| 7960 | QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0, |
| 7961 | QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1, |
| 7962 | QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2, |
| 7963 | }; |
| 7964 | |
| 7965 | /* |
| 7966 | * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used |
| 7967 | * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING. |
| 7968 | */ |
| 7969 | enum qca_wlan_vendor_attr_beacon_reporting_params { |
| 7970 | QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0, |
| 7971 | /* Specifies the type of operation that the vendor command/event is |
| 7972 | * intended for. Possible values for this attribute are defined in |
| 7973 | * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute. |
| 7974 | */ |
| 7975 | QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1, |
| 7976 | /* Optionally set by userspace to request the driver to report Beacon |
| 7977 | * frames using asynchronous vendor events when the |
| 7978 | * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to |
| 7979 | * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute. |
| 7980 | * If this flag is not set, the driver will only update Beacon frames |
| 7981 | * in cfg80211 scan cache but not send any vendor events. |
| 7982 | */ |
| 7983 | QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2, |
| 7984 | /* Optionally used by userspace to request the driver/firmware to |
| 7985 | * report Beacon frames periodically when the |
| 7986 | * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to |
| 7987 | * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. |
| 7988 | * u32 attribute, indicates the period of Beacon frames to be reported |
| 7989 | * and in the units of beacon interval. |
| 7990 | * If this attribute is missing in the command, then the default value |
| 7991 | * of 1 will be assumed by driver, i.e., to report every Beacon frame. |
| 7992 | * Zero is an invalid value. |
| 7993 | * If a valid value is received for this attribute, the driver will |
| 7994 | * update the cfg80211 scan cache periodically as per the value |
| 7995 | * received in this attribute in addition to updating the cfg80211 scan |
| 7996 | * cache when there is significant change in Beacon frame IEs. |
| 7997 | */ |
| 7998 | QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3, |
| 7999 | /* Used by the driver to encapsulate the SSID when the |
| 8000 | * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to |
| 8001 | * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. |
| 8002 | * u8 array with a maximum size of 32. |
| 8003 | * |
| 8004 | * When generating beacon report from non-MBSSID Beacon frame, the SSID |
| 8005 | * will be taken from the SSID element of the received Beacon frame. |
| 8006 | * |
| 8007 | * When generating beacon report from Multiple BSSID Beacon frame and |
| 8008 | * if the BSSID of the current connected BSS matches the BSSID of the |
| 8009 | * transmitting BSS, the SSID will be taken from the SSID element of |
| 8010 | * the received Beacon frame. |
| 8011 | * |
| 8012 | * When generating beacon report from Multiple BSSID Beacon frame and |
| 8013 | * if the BSSID of the current connected BSS matches the BSSID of one |
| 8014 | * of the* nontransmitting BSSs, the SSID will be taken from the SSID |
| 8015 | * field included in the nontransmitted BSS profile whose derived BSSI |
| 8016 | * is same as the BSSID of the current connected BSS. When there is no |
| 8017 | * nontransmitted BSS profile whose derived BSSID is same as the BSSID |
| 8018 | * of current connected* BSS, this attribute will not be present. |
| 8019 | */ |
| 8020 | QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4, |
| 8021 | /* Used by the driver to encapsulate the BSSID of the AP to which STA |
| 8022 | * is currently connected to when the |
| 8023 | * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to |
| 8024 | * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a |
| 8025 | * fixed size of 6 bytes. |
| 8026 | * |
| 8027 | * When generating beacon report from a Multiple BSSID beacon and the |
| 8028 | * current connected BSSID matches one of the nontransmitted BSSIDs in |
| 8029 | * a Multiple BSSID set, this BSSID will be that particular |
| 8030 | * nontransmitted BSSID and not the transmitted BSSID (i.e., the |
| 8031 | * transmitting address of the Beacon frame). |
| 8032 | */ |
| 8033 | QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5, |
| 8034 | /* Used by the driver to encapsulate the frequency in MHz on which |
| 8035 | * the Beacon frame was received when the |
| 8036 | * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is |
| 8037 | * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. |
| 8038 | * u32 attribute. |
| 8039 | */ |
| 8040 | QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6, |
| 8041 | /* Used by the driver to encapsulate the Beacon interval |
| 8042 | * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to |
| 8043 | * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. |
| 8044 | * u16 attribute. The value will be copied from the Beacon frame and |
| 8045 | * the units are TUs. |
| 8046 | */ |
| 8047 | QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7, |
| 8048 | /* Used by the driver to encapsulate the Timestamp field from the |
| 8049 | * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE |
| 8050 | * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. |
| 8051 | * u64 attribute. |
| 8052 | */ |
| 8053 | QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8, |
| 8054 | /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this |
| 8055 | * Beacon frame is received in the driver when the |
| 8056 | * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to |
| 8057 | * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in |
| 8058 | * the units of nanoseconds. This value is expected to have accuracy of |
| 8059 | * about 10 ms. |
| 8060 | */ |
| 8061 | QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9, |
| 8062 | /* Used by the driver to encapsulate the IEs of the Beacon frame from |
| 8063 | * which this event is generated when the |
| 8064 | * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to |
| 8065 | * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array. |
| 8066 | */ |
| 8067 | QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10, |
| 8068 | /* Used by the driver to specify the reason for the driver/firmware to |
| 8069 | * pause sending beacons to userspace when the |
| 8070 | * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to |
| 8071 | * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are |
| 8072 | * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32 |
| 8073 | * attribute. |
| 8074 | */ |
| 8075 | QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11, |
| 8076 | /* Used by the driver to specify whether the driver will automatically |
| 8077 | * resume reporting beacon events to userspace later (for example after |
| 8078 | * the ongoing off-channel activity is completed etc.) when the |
| 8079 | * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to |
| 8080 | * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute. |
| 8081 | */ |
| 8082 | QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12, |
Bala Venkatesh | 3b0dee8 | 2019-06-12 11:41:17 +0530 | [diff] [blame] | 8083 | /* Optionally set by userspace to request the driver not to resume |
| 8084 | * beacon reporting after a pause is completed, when the |
| 8085 | * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to |
| 8086 | * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute. |
| 8087 | * If this flag is set, the driver will not resume beacon reporting |
| 8088 | * after any pause in beacon reporting is completed. Userspace has to |
| 8089 | * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order |
| 8090 | * to initiate beacon reporting again. If this flag is set in the recent |
| 8091 | * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the |
| 8092 | * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any) |
| 8093 | * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be |
| 8094 | * set by the driver. Setting this flag until and unless there is a |
| 8095 | * specific need is not recommended as there is a chance of some beacons |
| 8096 | * received after pause command and next start command being not |
| 8097 | * reported. |
| 8098 | */ |
| 8099 | QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13, |
Abhinav Kumar | 88e3fc5 | 2019-05-03 00:21:11 +0530 | [diff] [blame] | 8100 | |
| 8101 | /* Keep last */ |
| 8102 | QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST, |
| 8103 | QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX = |
| 8104 | QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1 |
| 8105 | }; |
| 8106 | |
Paul Zhang | 71b1d14 | 2019-06-23 21:15:21 +0800 | [diff] [blame] | 8107 | /* |
| 8108 | * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command |
| 8109 | * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA. |
| 8110 | * |
| 8111 | * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: The binary blob for the vendor |
| 8112 | * command QCA_NL80211_VENDOR_SUBCMD_OEM_DATA are carried through this |
| 8113 | * attribute. |
| 8114 | * NLA_BINARY attribute, the max size is 1024 bytes. |
| 8115 | */ |
| 8116 | enum qca_wlan_vendor_attr_oem_data_params { |
| 8117 | QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0, |
| 8118 | QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1, |
| 8119 | |
| 8120 | /* keep last */ |
| 8121 | QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST, |
| 8122 | QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX = |
| 8123 | QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1 |
| 8124 | }; |
Shiva Sankar Gajula | 0f1216e | 2019-10-18 10:35:31 +0530 | [diff] [blame] | 8125 | |
Rajeev Kumar Sirasanagandla | 90f0c5e | 2019-09-23 19:31:48 +0530 | [diff] [blame] | 8126 | /** |
| 8127 | * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be |
| 8128 | * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT. |
| 8129 | * |
| 8130 | * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required |
| 8131 | * Nested attribute containing multiple ranges with following attributes: |
| 8132 | * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and |
| 8133 | * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END. |
| 8134 | * |
| 8135 | * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32) |
| 8136 | * Starting center frequency in MHz. |
| 8137 | * |
| 8138 | * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32) |
| 8139 | * Ending center frequency in MHz. |
| 8140 | */ |
| 8141 | enum qca_wlan_vendor_attr_avoid_frequency_ext { |
| 8142 | QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0, |
| 8143 | QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1, |
| 8144 | QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2, |
| 8145 | QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3, |
| 8146 | |
| 8147 | QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST, |
| 8148 | QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX = |
| 8149 | QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1 |
| 8150 | }; |
| 8151 | |
Shiva Sankar Gajula | 0f1216e | 2019-10-18 10:35:31 +0530 | [diff] [blame] | 8152 | /* |
| 8153 | * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command |
| 8154 | * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE. |
| 8155 | */ |
| 8156 | enum qca_wlan_vendor_attr_add_sta_node_params { |
| 8157 | QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0, |
| 8158 | /* 6 byte MAC address of STA */ |
| 8159 | QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1, |
| 8160 | /* Authentication algorithm used by the station of size u16; |
| 8161 | * defined in enum nl80211_auth_type. |
| 8162 | */ |
| 8163 | QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2, |
| 8164 | |
| 8165 | /* keep last */ |
| 8166 | QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST, |
| 8167 | QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX = |
| 8168 | QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1 |
| 8169 | }; |
Yu Wang | 2b95204 | 2019-10-16 09:06:55 +0800 | [diff] [blame] | 8170 | |
| 8171 | /** |
| 8172 | * enum qca_btc_chain_mode - Specifies BT coex chain mode. |
| 8173 | * This enum defines the valid set of values of BT coex chain mode. |
| 8174 | * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of |
| 8175 | * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE. |
| 8176 | * |
| 8177 | * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4G are shared. |
| 8178 | * @QCA_BTC_CHAIN_SEPARATED: chains of BT and WLAN 2.4G are separated. |
| 8179 | */ |
| 8180 | enum qca_btc_chain_mode { |
| 8181 | QCA_BTC_CHAIN_SHARED = 0, |
| 8182 | QCA_BTC_CHAIN_SEPARATED = 1, |
| 8183 | }; |
| 8184 | |
| 8185 | /** |
| 8186 | * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex |
| 8187 | * chain mode. |
| 8188 | * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE. |
| 8189 | * |
| 8190 | * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute. |
| 8191 | * Indicates the BT coex chain mode, are 32-bit values from |
| 8192 | * enum qca_btc_chain_mode. This attribute is mandatory. |
| 8193 | * |
| 8194 | * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute. |
| 8195 | * If set, vdev should be restarted when BT coex chain mode is updated. |
| 8196 | * This attribute is optional. |
| 8197 | */ |
| 8198 | enum qca_vendor_attr_btc_chain_mode { |
| 8199 | QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0, |
| 8200 | QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1, |
| 8201 | QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2, |
| 8202 | |
| 8203 | /* Keep last */ |
| 8204 | QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST, |
| 8205 | QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX = |
| 8206 | QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1, |
| 8207 | }; |
| 8208 | |
Vivek | 3e5a3ba | 2017-02-20 18:13:57 +0530 | [diff] [blame] | 8209 | #endif |