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