1 /* 2 * Qualcomm Atheros OUI and vendor specific assignments 3 * Copyright (c) 2014-2017, Qualcomm Atheros, Inc. 4 * Copyright (c) 2018, The Linux Foundation 5 * 6 * This software may be distributed under the terms of the BSD license. 7 * See README for more details. 8 */ 9 10 #ifndef QCA_VENDOR_H 11 #define QCA_VENDOR_H 12 13 /* 14 * This file is a registry of identifier assignments from the Qualcomm Atheros 15 * OUI 00:13:74 for purposes other than MAC address assignment. New identifiers 16 * can be assigned through normal review process for changes to the upstream 17 * hostap.git repository. 18 */ 19 20 #define OUI_QCA 0x001374 21 22 /** 23 * enum qca_radiotap_vendor_ids - QCA radiotap vendor namespace IDs 24 */ 25 enum qca_radiotap_vendor_ids { 26 QCA_RADIOTAP_VID_WLANTEST = 0, 27 }; 28 29 /** 30 * enum qca_nl80211_vendor_subcmds - QCA nl80211 vendor command identifiers 31 * 32 * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Reserved value 0 33 * 34 * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test command/event 35 * 36 * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Set roaming policy for drivers that use 37 * internal BSS-selection. This command uses 38 * @QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY to specify the new roaming policy 39 * for the current connection (i.e., changes policy set by the nl80211 40 * Connect command). @QCA_WLAN_VENDOR_ATTR_MAC_ADDR may optionally be 41 * included to indicate which BSS to use in case roaming is disabled. 42 * 43 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Recommendation of frequency 44 * ranges to avoid to reduce issues due to interference or internal 45 * co-existence information in the driver. The event data structure is 46 * defined in struct qca_avoid_freq_list. 47 * 48 * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support 49 * for DFS offloading. 50 * 51 * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass 52 * NAN Request/Response and NAN Indication messages. These messages are 53 * interpreted between the framework and the firmware component. While 54 * sending the command from userspace to the driver, payload is not 55 * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN 56 * is used when receiving vendor events in userspace from the driver. 57 * 58 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Set key operation that can be 59 * used to configure PMK to the driver even when not connected. This can 60 * be used to request offloading of key management operations. Only used 61 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD. 62 * 63 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: An extended version of 64 * NL80211_CMD_ROAM event with optional attributes including information 65 * from offloaded key management operation. Uses 66 * enum qca_wlan_vendor_attr_roam_auth attributes. Only used 67 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD. 68 * 69 * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to 70 * invoke the ACS function in device and pass selected channels to 71 * hostapd. 72 * 73 * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Command to get the features 74 * supported by the driver. enum qca_wlan_vendor_features defines 75 * the possible features. 76 * 77 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver, 78 * which supports DFS offloading, to indicate a channel availability check 79 * start. 80 * 81 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver, 82 * which supports DFS offloading, to indicate a channel availability check 83 * completion. 84 * 85 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver, 86 * which supports DFS offloading, to indicate that the channel availability 87 * check aborted, no change to the channel status. 88 * 89 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by 90 * driver, which supports DFS offloading, to indicate that the 91 * Non-Occupancy Period for this channel is over, channel becomes usable. 92 * 93 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver, 94 * which supports DFS offloading, to indicate a radar pattern has been 95 * detected. The channel is now unusable. 96 * 97 * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: Get the feature bitmap 98 * based on enum wifi_logger_supported_features. Attributes defined in 99 * enum qca_wlan_vendor_attr_get_logger_features. 100 * 101 * @QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA: Get the ring data from a particular 102 * logger ring, QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID is passed as the 103 * attribute for this command. Attributes defined in 104 * enum qca_wlan_vendor_attr_wifi_logger_start. 105 * 106 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES: Get the supported TDLS 107 * capabilities of the driver, parameters includes the attributes defined 108 * in enum qca_wlan_vendor_attr_tdls_get_capabilities. 109 * 110 * @QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS: Vendor command used to offload 111 * sending of certain periodic IP packet to firmware, attributes defined in 112 * enum qca_wlan_vendor_attr_offloaded_packets. 113 * 114 * @QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI: Command used to configure RSSI 115 * monitoring, defines min and max RSSI which are configured for RSSI 116 * monitoring. Also used to notify the RSSI breach and provides the BSSID 117 * and RSSI value that was breached. Attributes defined in 118 * enum qca_wlan_vendor_attr_rssi_monitoring. 119 * 120 * @QCA_NL80211_VENDOR_SUBCMD_NDP: Command used for performing various NAN 121 * Data Path (NDP) related operations, attributes defined in 122 * enum qca_wlan_vendor_attr_ndp_params. 123 * 124 * @QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD: Command used to enable/disable 125 * Neighbour Discovery offload, attributes defined in 126 * enum qca_wlan_vendor_attr_nd_offload. 127 * 128 * @QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER: Used to set/get the various 129 * configuration parameter for BPF packet filter, attributes defined in 130 * enum qca_wlan_vendor_attr_packet_filter. 131 * 132 * @QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE: Gets the driver-firmware 133 * maximum supported size, attributes defined in 134 * enum qca_wlan_vendor_drv_info. 135 * 136 * @QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS: Command to get various 137 * data about wake reasons and datapath IP statistics, attributes defined 138 * in enum qca_wlan_vendor_attr_wake_stats. 139 * 140 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG: Command used to set configuration 141 * for IEEE 802.11 communicating outside the context of a basic service 142 * set, called OCB command. Uses the attributes defines in 143 * enum qca_wlan_vendor_attr_ocb_set_config. 144 * 145 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME: Command used to set OCB 146 * UTC time. Use the attributes defines in 147 * enum qca_wlan_vendor_attr_ocb_set_utc_time. 148 * 149 * @QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT: Command used to start 150 * sending OCB timing advert frames. Uses the attributes defines in 151 * enum qca_wlan_vendor_attr_ocb_start_timing_advert. 152 * 153 * @QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT: Command used to stop 154 * OCB timing advert. Uses the attributes defines in 155 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert. 156 * 157 * @QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER: Command used to get TSF 158 * timer value. Uses the attributes defines in 159 * enum qca_wlan_vendor_attr_ocb_get_tsf_resp. 160 * 161 * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: Command/event to update the 162 * link properties of the respective interface. As an event, is used 163 * to notify the connected station's status. The attributes for this 164 * command are defined in enum qca_wlan_vendor_attr_link_properties. 165 * 166 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to 167 * start the P2P Listen offload function in device and pass the listen 168 * channel, period, interval, count, device types, and vendor specific 169 * information elements to the device driver and firmware. 170 * Uses the attributes defines in 171 * enum qca_wlan_vendor_attr_p2p_listen_offload. 172 * 173 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to 174 * indicate stop request/response of the P2P Listen offload function in 175 * device. As an event, it indicates either the feature stopped after it 176 * was already running or feature has actually failed to start. Uses the 177 * attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload. 178 * 179 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts 180 * beaconing, this sub command provides the driver, the frequencies on the 181 * 5 GHz band to check for any radar activity. Driver selects one channel 182 * from this priority list provided through 183 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts 184 * to check for radar activity on it. If no radar activity is detected 185 * during the channel availability check period, driver internally switches 186 * to the selected frequency of operation. If the frequency is zero, driver 187 * internally selects a channel. The status of this conditional switch is 188 * indicated through an event using the same sub command through 189 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are 190 * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch. 191 * 192 * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the 193 * attributes defined in enum qca_wlan_gpio_attr. 194 * 195 * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities. 196 * This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which 197 * capabilities are to be fetched and other 198 * enum qca_wlan_vendor_attr_get_hw_capability attributes to return the 199 * requested capabilities. 200 * 201 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension. 202 * enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this 203 * command and event. 204 * 205 * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for 206 * indoor location features. Capabilities are reported in 207 * QCA_WLAN_VENDOR_ATTR_LOC_CAPA. 208 * 209 * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM 210 * (fine timing measurement) session with one or more peers. 211 * Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and 212 * peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS. 213 * On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT 214 * events will be reported, followed by 215 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate 216 * end of session. 217 * Refer to IEEE P802.11-REVmc/D7.0, 11.24.6 218 * 219 * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session. 220 * A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with 221 * status code indicating session was aborted. 222 * 223 * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement 224 * results for one peer. Results are reported in 225 * QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS. 226 * 227 * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when 228 * FTM session is finished, either successfully or aborted by 229 * request. 230 * 231 * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder 232 * mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether 233 * to enable or disable the responder. LCI/LCR reports can be 234 * configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and 235 * QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple 236 * times to update the LCI/LCR reports. 237 * 238 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of 239 * arrival) measurement with a single peer. Specify peer MAC address in 240 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in 241 * QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel 242 * scan results cache and use the frequency from there). 243 * Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE. 244 * Measurement result is reported in 245 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event. 246 * 247 * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify 248 * peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR. 249 * 250 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports 251 * the AOA measurement result. 252 * Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR. 253 * success/failure status is reported in 254 * QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS. 255 * Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT. 256 * The antenna array(s) used in the measurement are reported in 257 * QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK. 258 * 259 * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given 260 * data as per the given parameters. 261 * 262 * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a 263 * specific chain. 264 * 265 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level 266 * configuration for a DMG RF sector. Specify sector index in 267 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in 268 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules 269 * to return sector information for in 270 * QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration 271 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the 272 * exact time where information was captured in 273 * QCA_WLAN_VENDOR_ATTR_TSF. 274 * 275 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level 276 * configuration for a DMG RF sector. Specify sector index in 277 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in 278 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration 279 * for one or more DMG RF modules in 280 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. 281 * 282 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected 283 * DMG RF sector for a station. This is the sector that the HW 284 * will use to communicate with the station. Specify the MAC address 285 * of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not 286 * needed for unassociated station). Specify sector type to return in 287 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected 288 * sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX. 289 * Also return the exact time where the information was captured 290 * in QCA_WLAN_VENDOR_ATTR_TSF. 291 * 292 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the 293 * selected DMG RF sector for a station. This is the sector that 294 * the HW will use to communicate with the station. 295 * Specify the MAC address of associated station/AP/PCP in 296 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in 297 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index 298 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX. 299 * The selected sector will be locked such that it will not be 300 * modified like it normally does (for example when station 301 * moves around). To unlock the selected sector for a station 302 * pass the special value 0xFFFF in the sector index. To unlock 303 * all connected stations also pass a broadcast MAC address. 304 * 305 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior 306 * in the host driver. The different TDLS configurations are defined 307 * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration. 308 * 309 * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Query device IEEE 802.11ax HE 310 * capabilities. The response uses the attributes defined in 311 * enum qca_wlan_vendor_attr_get_he_capabilities. 312 * 313 * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was 314 * started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command 315 * carries the scan cookie of the corresponding scan request. The scan 316 * cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE. 317 * 318 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific 319 * Absorption Rate (SAR) power limits. A critical regulation for 320 * FCC compliance, OEMs require methods to set SAR limits on TX 321 * power of WLAN/WWAN. enum qca_vendor_attr_sar_limits 322 * attributes are used with this command. 323 * 324 * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the 325 * host driver for offloading the implementation of Auto Channel Selection 326 * (ACS) to an external user space entity. This interface is used as the 327 * event from the host driver to the user space entity and also as the 328 * request from the user space entity to the host driver. The event from 329 * the host driver is used by the user space entity as an indication to 330 * start the ACS functionality. The attributes used by this event are 331 * represented by the enum qca_wlan_vendor_attr_external_acs_event. 332 * User space entity uses the same interface to inform the host driver with 333 * selected channels after the ACS operation using the attributes defined 334 * by enum qca_wlan_vendor_attr_external_acs_channels. 335 * 336 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the 337 * requisite information leading to a power save failure. The information 338 * carried as part of this event is represented by the 339 * enum qca_attr_chip_power_save_failure attributes. 340 * 341 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics 342 * collection. Uses attributes defined in enum qca_attr_nud_stats_set. 343 * 344 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These 345 * statistics are represented by the enum qca_attr_nud_stats_get 346 * attributes. 347 * 348 * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch 349 * the BSS transition status, whether accept or reject, for a list of 350 * candidate BSSIDs provided by the userspace. This uses the vendor 351 * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and 352 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify 353 * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an 354 * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in 355 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response 356 * the driver shall specify array of 357 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and 358 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in 359 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. 360 * 361 * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a 362 * specific QCA module. The trace levels are represented by 363 * enum qca_attr_trace_level attributes. 364 * 365 * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement 366 * Protocol antenna limit in different modes. See enum 367 * qca_wlan_vendor_attr_brp_ant_limit_mode. 368 * 369 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan 370 * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan. 371 * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) 372 * identifying the operation in success case. 373 * 374 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses 375 * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from 376 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to 377 * be stopped. 378 * 379 * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the 380 * specific interface. This can be used to modify some of the low level 381 * scan parameters (off channel dwell time, home channel time) in the 382 * driver/firmware. These parameters are maintained within the host driver. 383 * This command is valid only when the interface is in the connected state. 384 * These scan parameters shall be reset by the driver/firmware once 385 * disconnected. The attributes used with this command are defined in 386 * enum qca_wlan_vendor_attr_active_tos. 387 * 388 * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the 389 * driver has detected an internal failure. This event carries the 390 * information indicating the reason that triggered this detection. The 391 * attributes for this command are defined in 392 * enum qca_wlan_vendor_attr_hang. 393 * 394 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values 395 * of spectral parameters used. The spectral scan parameters are specified 396 * by enum qca_wlan_vendor_attr_spectral_scan. 397 * 398 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats 399 * for spectral scan functionality. The debug stats are specified by 400 * enum qca_wlan_vendor_attr_spectral_diag_stats. 401 * 402 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral 403 * scan system capabilities. The capabilities are specified 404 * by enum qca_wlan_vendor_attr_spectral_cap. 405 * 406 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current 407 * status of spectral scan. The status values are specified 408 * by enum qca_wlan_vendor_attr_spectral_scan_status. 409 * 410 * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush 411 * peer pending packets. Specify the peer MAC address in 412 * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets 413 * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed 414 * in enum qca_wlan_vendor_attr_flush_pending. 415 * 416 * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative 417 * RF Operating Parameter (RROP) information. The attributes for this 418 * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is 419 * intended for use by external Auto Channel Selection applications. 420 * 421 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate 422 * (SAR) power limits. This is a companion to the command 423 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the 424 * settings currently in use. The attributes returned by this command are 425 * defined by enum qca_vendor_attr_sar_limits. 426 * 427 * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behavior of 428 * the WLAN hardware MAC. Also, provides the WLAN netdev interface 429 * information attached to the respective MAC. 430 * This works both as a query (user space asks the current mode) or event 431 * interface (driver advertising the current mode to the user space). 432 * Driver does not trigger this event for temporary hardware mode changes. 433 * Mode changes w.r.t Wi-Fi connection update (VIZ creation / deletion, 434 * channel change, etc.) are updated with this event. Attributes for this 435 * interface are defined in enum qca_wlan_vendor_attr_mac. 436 * 437 * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold 438 * per peer per TID. Attributes for this command are define in 439 * enum qca_wlan_set_qdepth_thresh_attr. 440 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action 441 * guide for WLAN driver. Request to suspend of driver and FW if the 442 * temperature is higher than the suspend threshold; resume action is 443 * requested to driver if the temperature is lower than the resume 444 * threshold. In user poll mode, request temperature data by user. For test 445 * purpose, getting thermal shutdown configuration parameters is needed. 446 * Attributes for this interface are defined in 447 * enum qca_wlan_vendor_attr_thermal_cmd. 448 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from 449 * driver. Thermal temperature and indication of resume completion are 450 * reported as thermal events. The attributes for this command are defined 451 * in enum qca_wlan_vendor_attr_thermal_event. 452 * 453 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi 454 * test configuration. Attributes for this command are defined in 455 * enum qca_wlan_vendor_attr_wifi_test_config. 456 * 457 * @QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER: This command is used to configure an 458 * RX filter to receive frames from stations that are active on the 459 * operating channel, but not associated with the local device (e.g., STAs 460 * associated with other APs). Filtering is done based on a list of BSSIDs 461 * and STA MAC addresses added by the user. This command is also used to 462 * fetch the statistics of unassociated stations. The attributes used with 463 * this command are defined in enum qca_wlan_vendor_attr_bss_filter. 464 * 465 * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor 466 * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN, 467 * carried a payload which was a binary blob of data. The command was not 468 * extendable to send more information. The newer version carries the 469 * legacy blob encapsulated within an attribute and can be extended with 470 * additional vendor attributes that can enhance the NAN command interface. 471 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT: Event to indicate scan triggered 472 * or stopped within driver/firmware in order to initiate roaming. The 473 * attributes used with this event are defined in enum 474 * qca_wlan_vendor_attr_roam_scan. Some drivers may not send these events 475 * in few cases, e.g., if the host processor is sleeping when this event 476 * is generated in firmware. 477 * 478 * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to 479 * configure parameters per peer to capture Channel Frequency Response 480 * (CFR) and enable Periodic CFR capture. The attributes for this command 481 * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. 482 * 483 * @QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT: Event to indicate changes 484 * in throughput dynamically. The driver estimates the throughput based on 485 * number of packets being transmitted/received per second and indicates 486 * the changes in throughput to user space. Userspace tools can use this 487 * information to configure kernel's TCP parameters in order to achieve 488 * peak throughput. Optionally, the driver will also send guidance on 489 * modifications to kernel's TCP parameters which can be referred by 490 * userspace tools. The attributes used with this event are defined in enum 491 * qca_wlan_vendor_attr_throughput_change. 492 * 493 * @QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG: This command is used to set 494 * priorities among different types of traffic during coex scenarios. 495 * Current supported prioritization is among WLAN/BT/ZIGBEE with different 496 * profiles mentioned in enum qca_coex_config_profiles. The associated 497 * attributes used with this command are defined in enum 498 * qca_vendor_attr_coex_config. 499 * 500 * Based on the config provided, FW will boost the weight and prioritize 501 * the traffic for that subsystem (WLAN/BT/Zigbee). 502 */ 503 enum qca_nl80211_vendor_subcmds { 504 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0, 505 QCA_NL80211_VENDOR_SUBCMD_TEST = 1, 506 /* subcmds 2..8 not yet allocated */ 507 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9, 508 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10, 509 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11, 510 QCA_NL80211_VENDOR_SUBCMD_NAN = 12, 511 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13, 512 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14, 513 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15, 514 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16, 515 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17, 516 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18, 517 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19, 518 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20, 519 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21, 520 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22, 521 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23, 522 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24, 523 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25, 524 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26, 525 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27, 526 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28, 527 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29, 528 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30, 529 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31, 530 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32, 531 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33, 532 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34, 533 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35, 534 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36, 535 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37, 536 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38, 537 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39, 538 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40, 539 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41, 540 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42, 541 /* 43..49 - reserved for QCA */ 542 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50, 543 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51, 544 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52, 545 /* 53 - reserved - was used by QCA, but not in use anymore */ 546 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54, 547 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55, 548 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56, 549 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57, 550 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58, 551 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59, 552 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60, 553 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61, 554 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62, 555 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63, 556 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64, 557 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65, 558 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66, 559 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67, 560 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68, 561 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69, 562 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70, 563 QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71, 564 QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72, 565 QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73, 566 /* Wi-Fi configuration subcommands */ 567 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74, 568 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75, 569 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76, 570 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77, 571 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78, 572 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79, 573 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80, 574 QCA_NL80211_VENDOR_SUBCMD_NDP = 81, 575 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82, 576 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83, 577 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84, 578 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85, 579 /* 86-90 - reserved for QCA */ 580 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91, 581 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92, 582 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93, 583 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94, 584 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95, 585 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96, 586 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97, 587 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98, 588 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99, 589 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100, 590 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101, 591 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102, 592 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103, 593 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104, 594 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105, 595 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106, 596 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107, 597 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108, 598 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109, 599 /* 110..114 - reserved for QCA */ 600 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115, 601 /* 116..117 - reserved for QCA */ 602 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118, 603 QCA_NL80211_VENDOR_SUBCMD_TSF = 119, 604 QCA_NL80211_VENDOR_SUBCMD_WISA = 120, 605 /* 121 - reserved for QCA */ 606 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122, 607 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123, 608 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124, 609 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125, 610 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126, 611 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127, 612 /* FTM/indoor location subcommands */ 613 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128, 614 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129, 615 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130, 616 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131, 617 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132, 618 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133, 619 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134, 620 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135, 621 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136, 622 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137, 623 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138, 624 /* DMG low level RF sector operations */ 625 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139, 626 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140, 627 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141, 628 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142, 629 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143, 630 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144, 631 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145, 632 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146, 633 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147, 634 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148, 635 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149, 636 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150, 637 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151, 638 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152, 639 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153, 640 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154, 641 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155, 642 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156, 643 QCA_NL80211_VENDOR_SUBCMD_HANG = 157, 644 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158, 645 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159, 646 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160, 647 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161, 648 /* Flush peer pending data */ 649 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162, 650 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163, 651 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164, 652 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165, 653 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166, 654 /* Thermal shutdown commands to protect wifi chip */ 655 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167, 656 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168, 657 /* Wi-Fi test configuration subcommand */ 658 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169, 659 /* Frame filter operations for other BSSs/unassociated STAs */ 660 QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170, 661 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171, 662 QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172, 663 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173, 664 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174, 665 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175, 666 }; 667 668 enum qca_wlan_vendor_attr { 669 QCA_WLAN_VENDOR_ATTR_INVALID = 0, 670 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */ 671 QCA_WLAN_VENDOR_ATTR_DFS = 1, 672 /* Used only when driver sends vendor events to the userspace under the 673 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends 674 * commands to the driver. 675 */ 676 QCA_WLAN_VENDOR_ATTR_NAN = 2, 677 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ 678 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3, 679 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ 680 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4, 681 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined 682 * by enum qca_roaming_policy. 683 */ 684 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5, 685 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6, 686 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */ 687 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7, 688 QCA_WLAN_VENDOR_ATTR_TEST = 8, 689 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */ 690 /* Unsigned 32-bit value. */ 691 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9, 692 /* Unsigned 32-bit value */ 693 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10, 694 /* Unsigned 32-bit value */ 695 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11, 696 /* Unsigned 32-bit value from enum qca_set_band. */ 697 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12, 698 /* Dummy (NOP) attribute for 64 bit padding */ 699 QCA_WLAN_VENDOR_ATTR_PAD = 13, 700 /* Unique FTM session cookie (Unsigned 64 bit). Specified in 701 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in 702 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and 703 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE. 704 */ 705 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14, 706 /* Indoor location capabilities, returned by 707 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA. 708 * see enum qca_wlan_vendor_attr_loc_capa. 709 */ 710 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15, 711 /* Array of nested attributes containing information about each peer 712 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info 713 * for supported attributes for each peer. 714 */ 715 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16, 716 /* Array of nested attributes containing measurement results for 717 * one or more peers, reported by the 718 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event. 719 * See enum qca_wlan_vendor_attr_peer_result for list of supported 720 * attributes. 721 */ 722 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17, 723 /* Flag attribute for enabling or disabling responder functionality. */ 724 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18, 725 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 726 * command to specify the LCI report that will be sent by 727 * the responder during a measurement exchange. The format is 728 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10. 729 */ 730 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19, 731 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 732 * command to specify the location civic report that will 733 * be sent by the responder during a measurement exchange. 734 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13. 735 */ 736 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20, 737 /* Session/measurement completion status code, 738 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and 739 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT 740 * see enum qca_vendor_attr_loc_session_status. 741 */ 742 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21, 743 /* Initial dialog token used by responder (0 if not specified), 744 * unsigned 8 bit value. 745 */ 746 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22, 747 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS 748 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if 749 * AOA measurements are needed as part of an FTM session. 750 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See 751 * enum qca_wlan_vendor_attr_aoa_type. 752 */ 753 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23, 754 /* A bit mask (unsigned 32 bit value) of antenna arrays used 755 * by indoor location measurements. Refers to the antenna 756 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS. 757 */ 758 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24, 759 /* AOA measurement data. Its contents depends on the AOA measurement 760 * type and antenna array mask: 761 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values, 762 * phase of the strongest CIR path for each antenna in the measured 763 * array(s). 764 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16 765 * values, phase and amplitude of the strongest CIR path for each 766 * antenna in the measured array(s). 767 */ 768 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25, 769 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 770 * to specify the chain number (unsigned 32 bit value) to inquire 771 * the corresponding antenna RSSI value 772 */ 773 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26, 774 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 775 * to report the specific antenna RSSI value (unsigned 32 bit value) 776 */ 777 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27, 778 /* Frequency in MHz, various uses. Unsigned 32 bit value */ 779 QCA_WLAN_VENDOR_ATTR_FREQ = 28, 780 /* TSF timer value, unsigned 64 bit value. 781 * May be returned by various commands. 782 */ 783 QCA_WLAN_VENDOR_ATTR_TSF = 29, 784 /* DMG RF sector index, unsigned 16 bit number. Valid values are 785 * 0..127 for sector indices or 65535 as special value used to 786 * unlock sector selection in 787 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR. 788 */ 789 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30, 790 /* DMG RF sector type, unsigned 8 bit value. One of the values 791 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type. 792 */ 793 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31, 794 /* Bitmask of DMG RF modules for which information is requested. Each 795 * bit corresponds to an RF module with the same index as the bit 796 * number. Unsigned 32 bit number but only low 8 bits can be set since 797 * all DMG chips currently have up to 8 RF modules. 798 */ 799 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32, 800 /* Array of nested attributes where each entry is DMG RF sector 801 * configuration for a single RF module. 802 * Attributes for each entry are taken from enum 803 * qca_wlan_vendor_attr_dmg_rf_sector_cfg. 804 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG 805 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG. 806 */ 807 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33, 808 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command 809 * to report frame aggregation statistics to userspace. 810 */ 811 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34, 812 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35, 813 /* Unsigned 8-bit value representing MBO transition reason code as 814 * provided by the AP used by subcommand 815 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is 816 * specified by the userspace in the request to the driver. 817 */ 818 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36, 819 /* Array of nested attributes, BSSID and status code, used by subcommand 820 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each 821 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info. 822 * The userspace space specifies the list/array of candidate BSSIDs in 823 * the order of preference in the request. The driver specifies the 824 * status code, for each BSSID in the list, in the response. The 825 * acceptable candidates are listed in the order preferred by the 826 * driver. 827 */ 828 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37, 829 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command 830 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode. 831 */ 832 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38, 833 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command 834 * to define the number of antennas to use for BRP. 835 * different purpose in each ANT_LIMIT_MODE: 836 * DISABLE - ignored 837 * EFFECTIVE - upper limit to number of antennas to be used 838 * FORCE - exact number of antennas to be used 839 * unsigned 8 bit value 840 */ 841 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39, 842 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 843 * to report the corresponding antenna index to the chain RSSI value 844 */ 845 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40, 846 847 /* keep last */ 848 QCA_WLAN_VENDOR_ATTR_AFTER_LAST, 849 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1, 850 }; 851 852 enum qca_roaming_policy { 853 QCA_ROAMING_NOT_ALLOWED, 854 QCA_ROAMING_ALLOWED_WITHIN_ESS, 855 }; 856 857 enum qca_wlan_vendor_attr_roam_auth { 858 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0, 859 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID, 860 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE, 861 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE, 862 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED, 863 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR, 864 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK, 865 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK, 866 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS, 867 /* Indicates the status of re-association requested by user space for 868 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID. 869 * Type u16. 870 * Represents the status code from AP. Use 871 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the 872 * real status code for failures. 873 */ 874 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS, 875 /* This attribute indicates that the old association was maintained when 876 * a re-association is requested by user space and that re-association 877 * attempt fails (i.e., cannot connect to the requested BSS, but can 878 * remain associated with the BSS with which the association was in 879 * place when being requested to roam). Used along with 880 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current 881 * re-association status. Type flag. 882 * This attribute is applicable only for re-association failure cases. 883 */ 884 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION, 885 /* This attribute specifies the PMK if one was newly generated during 886 * FILS roaming. This is added to the PMKSA cache and is used in 887 * subsequent connections with PMKSA caching. 888 */ 889 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11, 890 /* This attribute specifies the PMKID used/generated for the current 891 * FILS roam. This is used in subsequent connections with PMKSA caching. 892 */ 893 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12, 894 /* A 16-bit unsigned value specifying the next sequence number to use 895 * in ERP message in the currently associated realm. This is used in 896 * doing subsequent ERP based connections in the same realm. 897 */ 898 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13, 899 /* keep last */ 900 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST, 901 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX = 902 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1 903 }; 904 905 enum qca_wlan_vendor_attr_p2p_listen_offload { 906 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0, 907 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one 908 * of the social channels. 909 */ 910 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL, 911 /* A 32-bit unsigned value; the P2P listen offload period (ms). 912 */ 913 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD, 914 /* A 32-bit unsigned value; the P2P listen interval duration (ms). 915 */ 916 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL, 917 /* A 32-bit unsigned value; number of interval times the firmware needs 918 * to run the offloaded P2P listen operation before it stops. 919 */ 920 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT, 921 /* An array of arbitrary binary data with one or more 8-byte values. 922 * The device types include both primary and secondary device types. 923 */ 924 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES, 925 /* An array of unsigned 8-bit characters; vendor information elements. 926 */ 927 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE, 928 /* A 32-bit unsigned value; a control flag to indicate whether listen 929 * results need to be flushed to wpa_supplicant. 930 */ 931 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG, 932 /* A 8-bit unsigned value; reason code for P2P listen offload stop 933 * event. 934 */ 935 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON, 936 /* keep last */ 937 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST, 938 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX = 939 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1 940 }; 941 942 enum qca_wlan_vendor_attr_acs_offload { 943 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0, 944 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL, 945 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL, 946 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE, 947 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED, 948 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED, 949 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED, 950 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH, 951 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST, 952 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL, 953 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL, 954 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST, 955 /* keep last */ 956 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST, 957 QCA_WLAN_VENDOR_ATTR_ACS_MAX = 958 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1 959 }; 960 961 enum qca_wlan_vendor_acs_hw_mode { 962 QCA_ACS_MODE_IEEE80211B, 963 QCA_ACS_MODE_IEEE80211G, 964 QCA_ACS_MODE_IEEE80211A, 965 QCA_ACS_MODE_IEEE80211AD, 966 QCA_ACS_MODE_IEEE80211ANY, 967 }; 968 969 /** 970 * enum qca_wlan_vendor_features - Vendor device/driver feature flags 971 * 972 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key 973 * management offload, a mechanism where the station's firmware 974 * does the exchange with the AP to establish the temporal keys 975 * after roaming, rather than having the user space wpa_supplicant do it. 976 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic 977 * band selection based on channel selection results. 978 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports 979 * simultaneous off-channel operations. 980 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P 981 * Listen offload; a mechanism where the station's firmware takes care of 982 * responding to incoming Probe Request frames received from other P2P 983 * Devices whilst in Listen state, rather than having the user space 984 * wpa_supplicant do it. Information from received P2P requests are 985 * forwarded from firmware to host whenever the host processor wakes up. 986 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA 987 * specific features. 988 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific 989 * features. 990 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON 991 * specific features only. If a Device sets this bit but not the 992 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that 993 * this Device may not support all OCE AP functionalities but can support 994 * only OCE STA-CFON functionalities. 995 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self 996 * managed regulatory. 997 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits 998 */ 999 enum qca_wlan_vendor_features { 1000 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0, 1001 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1, 1002 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2, 1003 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3, 1004 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4, 1005 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5, 1006 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6, 1007 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7, 1008 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */ 1009 }; 1010 1011 /** 1012 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication 1013 * 1014 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to 1015 * the offloaded data. 1016 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded 1017 * data. 1018 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload 1019 * indication. 1020 */ 1021 enum qca_wlan_vendor_attr_data_offload_ind { 1022 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0, 1023 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION, 1024 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL, 1025 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT, 1026 1027 /* keep last */ 1028 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST, 1029 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX = 1030 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1 1031 }; 1032 1033 /** 1034 * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set 1035 * OCB config 1036 * 1037 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the 1038 * configuration 1039 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule 1040 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels 1041 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be 1042 * scheduled 1043 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel 1044 * information 1045 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL 1046 * active state configuration 1047 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as 1048 * OCB_CONFIG_FLAG_80211_FRAME_MODE 1049 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to 1050 * use in the case that a packet is sent without a TX control header 1051 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the 1052 * last TA received that the local time set by TA is synchronous to other 1053 * communicating OCB STAs. 1054 */ 1055 enum qca_wlan_vendor_attr_ocb_set_config { 1056 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0, 1057 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1, 1058 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2, 1059 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3, 1060 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4, 1061 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5, 1062 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6, 1063 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7, 1064 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8, 1065 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9, 1066 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST, 1067 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX = 1068 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1 1069 }; 1070 1071 /** 1072 * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set 1073 * UTC time 1074 * 1075 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of 1076 * 10 bytes 1077 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of 1078 * 5 bytes 1079 */ 1080 enum qca_wlan_vendor_attr_ocb_set_utc_time { 1081 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0, 1082 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1, 1083 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2, 1084 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST, 1085 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX = 1086 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1 1087 }; 1088 1089 /** 1090 * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes 1091 * to start sending timing advert frames 1092 * 1093 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency 1094 * on which to send the frames 1095 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times 1096 * the frame is sent in 5 seconds 1097 */ 1098 enum qca_wlan_vendor_attr_ocb_start_timing_advert { 1099 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0, 1100 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1, 1101 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2, 1102 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST, 1103 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX = 1104 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1 1105 }; 1106 1107 /** 1108 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes 1109 * to stop timing advert 1110 * 1111 * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel 1112 * frequency on which to stop the timing advert 1113 */ 1114 enum qca_wlan_vendor_attr_ocb_stop_timing_advert { 1115 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0, 1116 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1, 1117 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST, 1118 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX = 1119 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1 1120 }; 1121 1122 /** 1123 * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to 1124 * get TSF timer value 1125 * 1126 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the 1127 * timer 1128 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer 1129 */ 1130 enum qca_wlan_vendor_attr_ocb_get_tsf_resp { 1131 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0, 1132 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1, 1133 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2, 1134 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST, 1135 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX = 1136 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1 1137 }; 1138 1139 enum qca_vendor_attr_get_preferred_freq_list { 1140 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID, 1141 /* A 32-unsigned value; the interface type/mode for which the preferred 1142 * frequency list is requested (see enum qca_iface_type for possible 1143 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to 1144 * kernel and in the kernel response back to user-space. 1145 */ 1146 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE, 1147 /* An array of 32-unsigned values; values are frequency (MHz); sent 1148 * from kernel space to user space. 1149 */ 1150 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST, 1151 /* An array of nested values as per enum qca_wlan_vendor_attr_pcl 1152 * attribute. Each element contains frequency (MHz), weight, and flag 1153 * bit mask indicating how the frequency should be used in P2P 1154 * negotiation; sent from kernel space to user space. 1155 */ 1156 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL, 1157 /* keep last */ 1158 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST, 1159 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX = 1160 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1 1161 }; 1162 1163 enum qca_vendor_attr_probable_oper_channel { 1164 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID, 1165 /* 32-bit unsigned value; indicates the connection/iface type likely to 1166 * come on this channel (see enum qca_iface_type). 1167 */ 1168 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE, 1169 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */ 1170 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ, 1171 /* keep last */ 1172 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST, 1173 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX = 1174 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1 1175 }; 1176 1177 enum qca_iface_type { 1178 QCA_IFACE_TYPE_STA, 1179 QCA_IFACE_TYPE_AP, 1180 QCA_IFACE_TYPE_P2P_CLIENT, 1181 QCA_IFACE_TYPE_P2P_GO, 1182 QCA_IFACE_TYPE_IBSS, 1183 QCA_IFACE_TYPE_TDLS, 1184 }; 1185 1186 enum qca_set_band { 1187 QCA_SETBAND_AUTO, 1188 QCA_SETBAND_5G, 1189 QCA_SETBAND_2G, 1190 }; 1191 1192 /** 1193 * enum qca_access_policy - Access control policy 1194 * 1195 * Access control policy is applied on the configured IE 1196 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE). 1197 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY. 1198 * 1199 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match 1200 * the specific configuration (IE) set, i.e., allow all the 1201 * connections which do not match the configuration. 1202 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match 1203 * the specific configuration (IE) set, i.e., deny all the 1204 * connections which do not match the configuration. 1205 */ 1206 enum qca_access_policy { 1207 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED, 1208 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED, 1209 }; 1210 1211 /** 1212 * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture 1213 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32) 1214 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value 1215 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized 1216 * SOC timer value at TSF capture 1217 */ 1218 enum qca_vendor_attr_tsf_cmd { 1219 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0, 1220 QCA_WLAN_VENDOR_ATTR_TSF_CMD, 1221 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE, 1222 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE, 1223 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST, 1224 QCA_WLAN_VENDOR_ATTR_TSF_MAX = 1225 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1 1226 }; 1227 1228 /** 1229 * enum qca_tsf_operation: TSF driver commands 1230 * @QCA_TSF_CAPTURE: Initiate TSF Capture 1231 * @QCA_TSF_GET: Get TSF capture value 1232 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value 1233 */ 1234 enum qca_tsf_cmd { 1235 QCA_TSF_CAPTURE, 1236 QCA_TSF_GET, 1237 QCA_TSF_SYNC_GET, 1238 }; 1239 1240 /** 1241 * enum qca_vendor_attr_wisa_cmd 1242 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32) 1243 * WISA setup vendor commands 1244 */ 1245 enum qca_vendor_attr_wisa_cmd { 1246 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0, 1247 QCA_WLAN_VENDOR_ATTR_WISA_MODE, 1248 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST, 1249 QCA_WLAN_VENDOR_ATTR_WISA_MAX = 1250 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1 1251 }; 1252 1253 /* IEEE 802.11 Vendor Specific elements */ 1254 1255 /** 1256 * enum qca_vendor_element_id - QCA Vendor Specific element types 1257 * 1258 * These values are used to identify QCA Vendor Specific elements. The 1259 * payload of the element starts with the three octet OUI (OUI_QCA) and 1260 * is followed by a single octet type which is defined by this enum. 1261 * 1262 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list. 1263 * This element can be used to specify preference order for supported 1264 * channels. The channels in this list are in preference order (the first 1265 * one has the highest preference) and are described as a pair of 1266 * (global) Operating Class and Channel Number (each one octet) fields. 1267 * 1268 * This extends the standard P2P functionality by providing option to have 1269 * more than one preferred operating channel. When this element is present, 1270 * it replaces the preference indicated in the Operating Channel attribute. 1271 * For supporting other implementations, the Operating Channel attribute is 1272 * expected to be used with the highest preference channel. Similarly, all 1273 * the channels included in this Preferred channel list element are 1274 * expected to be included in the Channel List attribute. 1275 * 1276 * This vendor element may be included in GO Negotiation Request, P2P 1277 * Invitation Request, and Provision Discovery Request frames. 1278 * 1279 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element. 1280 * This element can be used for pre-standard publication testing of HE 1281 * before P802.11ax draft assigns the element ID. The payload of this 1282 * vendor specific element is defined by the latest P802.11ax draft. 1283 * Please note that the draft is still work in progress and this element 1284 * payload is subject to change. 1285 * 1286 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element. 1287 * This element can be used for pre-standard publication testing of HE 1288 * before P802.11ax draft assigns the element ID. The payload of this 1289 * vendor specific element is defined by the latest P802.11ax draft. 1290 * Please note that the draft is still work in progress and this element 1291 * payload is subject to change. 1292 * 1293 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set 1294 * element). 1295 * This element can be used for pre-standard publication testing of HE 1296 * before P802.11ax draft assigns the element ID extension. The payload of 1297 * this vendor specific element is defined by the latest P802.11ax draft 1298 * (not including the Element ID Extension field). Please note that the 1299 * draft is still work in progress and this element payload is subject to 1300 * change. 1301 * 1302 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element. 1303 * This element can be used for pre-standard publication testing of HE 1304 * before P802.11ax draft assigns the element ID extension. The payload of 1305 * this vendor specific element is defined by the latest P802.11ax draft 1306 * (not including the Element ID Extension field). Please note that the 1307 * draft is still work in progress and this element payload is subject to 1308 * change. 1309 * 1310 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element. 1311 * This element can be used for pre-standard publication testing of HE 1312 * before P802.11ax draft assigns the element ID extension. The payload of 1313 * this vendor specific element is defined by the latest P802.11ax draft 1314 * (not including the Element ID Extension field). Please note that the 1315 * draft is still work in progress and this element payload is subject to 1316 * change. 1317 */ 1318 enum qca_vendor_element_id { 1319 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0, 1320 QCA_VENDOR_ELEM_HE_CAPAB = 1, 1321 QCA_VENDOR_ELEM_HE_OPER = 2, 1322 QCA_VENDOR_ELEM_RAPS = 3, 1323 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4, 1324 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5, 1325 }; 1326 1327 /** 1328 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes 1329 * 1330 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan 1331 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes 1332 * with frequencies to be scanned (in MHz) 1333 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned 1334 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported 1335 * rates to be included 1336 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests 1337 * at non CCK rate in 2GHz band 1338 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags 1339 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the 1340 * driver for the specific scan request 1341 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan 1342 * request decoded as in enum scan_status 1343 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation 1344 * scan flag is set 1345 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with 1346 * randomisation 1347 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the 1348 * specific BSSID to scan for. 1349 */ 1350 enum qca_wlan_vendor_attr_scan { 1351 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0, 1352 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1, 1353 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2, 1354 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3, 1355 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4, 1356 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5, 1357 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6, 1358 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7, 1359 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8, 1360 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9, 1361 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10, 1362 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11, 1363 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST, 1364 QCA_WLAN_VENDOR_ATTR_SCAN_MAX = 1365 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1 1366 }; 1367 1368 /** 1369 * enum scan_status - Specifies the valid values the vendor scan attribute 1370 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take 1371 * 1372 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with 1373 * new scan results 1374 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between 1375 */ 1376 enum scan_status { 1377 VENDOR_SCAN_STATUS_NEW_RESULTS, 1378 VENDOR_SCAN_STATUS_ABORTED, 1379 VENDOR_SCAN_STATUS_MAX, 1380 }; 1381 1382 /** 1383 * enum qca_vendor_attr_ota_test - Specifies the values for vendor 1384 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST 1385 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test 1386 */ 1387 enum qca_vendor_attr_ota_test { 1388 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID, 1389 /* 8-bit unsigned value to indicate if OTA test is enabled */ 1390 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE, 1391 /* keep last */ 1392 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST, 1393 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX = 1394 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1 1395 }; 1396 1397 /** 1398 * enum qca_vendor_attr_txpower_scale - vendor sub commands index 1399 * 1400 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value 1401 */ 1402 enum qca_vendor_attr_txpower_scale { 1403 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID, 1404 /* 8-bit unsigned value to indicate the scaling of tx power */ 1405 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE, 1406 /* keep last */ 1407 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST, 1408 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX = 1409 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1 1410 }; 1411 1412 /** 1413 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease 1414 * 1415 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB. 1416 */ 1417 enum qca_vendor_attr_txpower_decr_db { 1418 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID, 1419 /* 8-bit unsigned value to indicate the reduction of TX power in dB for 1420 * a virtual interface. 1421 */ 1422 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB, 1423 /* keep last */ 1424 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST, 1425 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX = 1426 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1 1427 }; 1428 1429 /* Attributes for data used by 1430 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and 1431 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands. 1432 */ 1433 enum qca_wlan_vendor_attr_config { 1434 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0, 1435 /* Unsigned 32-bit value to set the DTIM period. 1436 * Whether the wifi chipset wakes at every dtim beacon or a multiple of 1437 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3 1438 * DTIM beacons. 1439 */ 1440 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1, 1441 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor 1442 * used to calculate statistics like average the TSF offset or average 1443 * number of frame leaked. 1444 * For instance, upon Beacon frame reception: 1445 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000 1446 * For instance, when evaluating leaky APs: 1447 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000 1448 */ 1449 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2, 1450 /* Unsigned 32-bit value to configure guard time, i.e., when 1451 * implementing IEEE power management based on frame control PM bit, how 1452 * long the driver waits before shutting down the radio and after 1453 * receiving an ACK frame for a Data frame with PM bit set. 1454 */ 1455 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3, 1456 /* Unsigned 32-bit value to change the FTM capability dynamically */ 1457 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4, 1458 /* Unsigned 16-bit value to configure maximum TX rate dynamically */ 1459 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5, 1460 /* Unsigned 32-bit value to configure the number of continuous 1461 * Beacon Miss which shall be used by the firmware to penalize 1462 * the RSSI. 1463 */ 1464 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6, 1465 /* Unsigned 8-bit value to configure the channel avoidance indication 1466 * behavior. Firmware to send only one indication and ignore duplicate 1467 * indications when set to avoid multiple Apps wakeups. 1468 */ 1469 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7, 1470 /* 8-bit unsigned value to configure the maximum TX MPDU for 1471 * aggregation. 1472 */ 1473 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8, 1474 /* 8-bit unsigned value to configure the maximum RX MPDU for 1475 * aggregation. 1476 */ 1477 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9, 1478 /* 8-bit unsigned value to configure the Non aggregrate/11g sw 1479 * retry threshold (0 disable, 31 max). 1480 */ 1481 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10, 1482 /* 8-bit unsigned value to configure the aggregrate sw 1483 * retry threshold (0 disable, 31 max). 1484 */ 1485 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11, 1486 /* 8-bit unsigned value to configure the MGMT frame 1487 * retry threshold (0 disable, 31 max). 1488 */ 1489 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12, 1490 /* 8-bit unsigned value to configure the CTRL frame 1491 * retry threshold (0 disable, 31 max). 1492 */ 1493 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13, 1494 /* 8-bit unsigned value to configure the propagation delay for 1495 * 2G/5G band (0~63, units in us) 1496 */ 1497 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14, 1498 /* Unsigned 32-bit value to configure the number of unicast TX fail 1499 * packet count. The peer is disconnected once this threshold is 1500 * reached. 1501 */ 1502 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15, 1503 /* Attribute used to set scan default IEs to the driver. 1504 * 1505 * These IEs can be used by scan operations that will be initiated by 1506 * the driver/firmware. 1507 * 1508 * For further scan requests coming to the driver, these IEs should be 1509 * merged with the IEs received along with scan request coming to the 1510 * driver. If a particular IE is present in the scan default IEs but not 1511 * present in the scan request, then that IE should be added to the IEs 1512 * sent in the Probe Request frames for that scan request. 1513 */ 1514 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16, 1515 /* Unsigned 32-bit attribute for generic commands */ 1516 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17, 1517 /* Unsigned 32-bit value attribute for generic commands */ 1518 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18, 1519 /* Unsigned 32-bit data attribute for generic command response */ 1520 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19, 1521 /* Unsigned 32-bit length attribute for 1522 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA 1523 */ 1524 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20, 1525 /* Unsigned 32-bit flags attribute for 1526 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA 1527 */ 1528 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21, 1529 /* Unsigned 32-bit, defining the access policy. 1530 * See enum qca_access_policy. Used with 1531 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST. 1532 */ 1533 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22, 1534 /* Sets the list of full set of IEs for which a specific access policy 1535 * has to be applied. Used along with 1536 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access. 1537 * Zero length payload can be used to clear this access constraint. 1538 */ 1539 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23, 1540 /* Unsigned 32-bit, specifies the interface index (netdev) for which the 1541 * corresponding configurations are applied. If the interface index is 1542 * not specified, the configurations are attributed to the respective 1543 * wiphy. 1544 */ 1545 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24, 1546 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */ 1547 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25, 1548 /* 8-bit unsigned value to configure the driver and below layers to 1549 * ignore the assoc disallowed set by APs while connecting 1550 * 1-Ignore, 0-Don't ignore 1551 */ 1552 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26, 1553 /* 32-bit unsigned value to trigger antenna diversity features: 1554 * 1-Enable, 0-Disable 1555 */ 1556 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27, 1557 /* 32-bit unsigned value to configure specific chain antenna */ 1558 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28, 1559 /* 32-bit unsigned value to trigger cycle selftest 1560 * 1-Enable, 0-Disable 1561 */ 1562 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29, 1563 /* 32-bit unsigned to configure the cycle time of selftest 1564 * the unit is micro-second 1565 */ 1566 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30, 1567 /* 32-bit unsigned value to set reorder timeout for AC_VO */ 1568 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31, 1569 /* 32-bit unsigned value to set reorder timeout for AC_VI */ 1570 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32, 1571 /* 32-bit unsigned value to set reorder timeout for AC_BE */ 1572 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33, 1573 /* 32-bit unsigned value to set reorder timeout for AC_BK */ 1574 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34, 1575 /* 6-byte MAC address to point out the specific peer */ 1576 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35, 1577 /* 32-bit unsigned value to set window size for specific peer */ 1578 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36, 1579 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */ 1580 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37, 1581 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */ 1582 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38, 1583 /* 32-bit unsigned value to configure 5 or 10 MHz channel width for 1584 * station device while in disconnect state. The attribute use the 1585 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz, 1586 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or 1587 * 10 MHz channel width, the station will not connect to a BSS using 20 1588 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to 1589 * clear this constraint. 1590 */ 1591 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39, 1592 /* 32-bit unsigned value to configure the propagation absolute delay 1593 * for 2G/5G band (units in us) 1594 */ 1595 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40, 1596 /* 32-bit unsigned value to set probe period */ 1597 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41, 1598 /* 32-bit unsigned value to set stay period */ 1599 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42, 1600 /* 32-bit unsigned value to set snr diff */ 1601 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43, 1602 /* 32-bit unsigned value to set probe dwell time */ 1603 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44, 1604 /* 32-bit unsigned value to set mgmt snr weight */ 1605 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45, 1606 /* 32-bit unsigned value to set data snr weight */ 1607 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46, 1608 /* 32-bit unsigned value to set ack snr weight */ 1609 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47, 1610 /* 32-bit unsigned value to configure the listen interval. 1611 * This is in units of beacon intervals. This configuration alters 1612 * the negotiated listen interval with the AP during the connection. 1613 * It is highly recommended to configure a value less than or equal to 1614 * the one negotiated during the association. Configuring any greater 1615 * value can have adverse effects (frame loss, AP disassociating STA, 1616 * etc.). 1617 */ 1618 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48, 1619 /* 1620 * 8 bit unsigned value that is set on an AP/GO virtual interface to 1621 * disable operations that would cause the AP/GO to leave its operating 1622 * channel. 1623 * 1624 * This will restrict the scans to the AP/GO operating channel and the 1625 * channels of the other band, if DBS is supported.A STA/CLI interface 1626 * brought up after this setting is enabled, will be restricted to 1627 * connecting to devices only on the AP/GO interface's operating channel 1628 * or on the other band in DBS case. P2P supported channel list is 1629 * modified, to only include AP interface's operating-channel and the 1630 * channels of the other band if DBS is supported. 1631 * 1632 * These restrictions are only applicable as long as the AP/GO interface 1633 * is alive. If the AP/GO interface is brought down then this 1634 * setting/restriction is forgotten. 1635 * 1636 * If this variable is set on an AP/GO interface while a multi-channel 1637 * concurrent session is active, it has no effect on the operation of 1638 * the current interfaces, other than restricting the scan to the AP/GO 1639 * operating channel and the other band channels if DBS is supported. 1640 * However, if the STA is brought down and restarted then the new STA 1641 * connection will either be formed on the AP/GO channel or on the 1642 * other band in a DBS case. This is because of the scan being 1643 * restricted on these channels as mentioned above. 1644 * 1645 * 1-Restrict / 0-Don't restrict offchannel operations. 1646 */ 1647 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49, 1648 /* 1649 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload) 1650 * on an interface. 1651 * 1 - Enable, 0 - Disable. 1652 */ 1653 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50, 1654 1655 /* 1656 * 8 bit unsigned value to globally enable/disable scan 1657 * 1 - Enable, 0 - Disable. 1658 */ 1659 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51, 1660 1661 /* 8-bit unsigned value to set the total beacon miss count 1662 * This parameter will set the total beacon miss count. 1663 */ 1664 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52, 1665 1666 /* Unsigned 32-bit value to configure the number of continuous 1667 * Beacon Miss which shall be used by the firmware to penalize 1668 * the RSSI for BTC. 1669 */ 1670 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53, 1671 1672 /* 8-bit unsigned value to configure the driver and below layers to 1673 * enable/disable all FILS features. 1674 * 0-enable, 1-disable 1675 */ 1676 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54, 1677 1678 /* 16-bit unsigned value to configure the level of WLAN latency 1679 * module. See enum qca_wlan_vendor_attr_config_latency_level. 1680 */ 1681 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55, 1682 1683 /* 8-bit unsigned value indicating the driver to use the RSNE as-is from 1684 * the connect interface. Exclusively used for the scenarios where the 1685 * device is used as a test bed device with special functionality and 1686 * not recommended for production. This helps driver to not validate the 1687 * RSNE passed from user space and thus allow arbitrary IE data to be 1688 * used for testing purposes. 1689 * 1-enable, 0-disable. 1690 * Applications set/reset this configuration. If not reset, this 1691 * parameter remains in use until the driver is unloaded. 1692 */ 1693 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56, 1694 1695 /* 8-bit unsigned value to trigger green Tx power saving. 1696 * 1-Enable, 0-Disable 1697 */ 1698 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57, 1699 1700 /* keep last */ 1701 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST, 1702 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX = 1703 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1, 1704 }; 1705 1706 /** 1707 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration 1708 */ 1709 enum qca_wlan_vendor_attr_sap_config { 1710 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0, 1711 /* 1 - reserved for QCA */ 1712 /* List of frequencies on which AP is expected to operate. 1713 * This is irrespective of ACS configuration. This list is a priority 1714 * based one and is looked for before the AP is created to ensure the 1715 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in 1716 * the system. 1717 */ 1718 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2, 1719 1720 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST, 1721 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX = 1722 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1, 1723 }; 1724 1725 /** 1726 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP 1727 * conditional channel switch 1728 */ 1729 enum qca_wlan_vendor_attr_sap_conditional_chan_switch { 1730 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0, 1731 /* Priority based frequency list (an array of u32 values in host byte 1732 * order) 1733 */ 1734 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1, 1735 /* Status of the conditional switch (u32). 1736 * 0: Success, Non-zero: Failure 1737 */ 1738 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2, 1739 1740 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST, 1741 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX = 1742 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1, 1743 }; 1744 1745 /** 1746 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration 1747 */ 1748 enum qca_wlan_gpio_attr { 1749 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0, 1750 /* Unsigned 32-bit attribute for GPIO command */ 1751 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND, 1752 /* Unsigned 32-bit attribute for GPIO PIN number to configure */ 1753 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM, 1754 /* Unsigned 32-bit attribute for GPIO value to configure */ 1755 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE, 1756 /* Unsigned 32-bit attribute for GPIO pull type */ 1757 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE, 1758 /* Unsigned 32-bit attribute for GPIO interrupt mode */ 1759 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE, 1760 1761 /* keep last */ 1762 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST, 1763 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX = 1764 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1 1765 }; 1766 1767 /** 1768 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting 1769 * MSDUQ depth threshold per peer per tid in the target 1770 * 1771 * Associated Vendor Command: 1772 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH 1773 */ 1774 enum qca_wlan_set_qdepth_thresh_attr { 1775 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0, 1776 /* 6-byte MAC address */ 1777 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR, 1778 /* Unsigned 32-bit attribute for holding the TID */ 1779 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID, 1780 /* Unsigned 32-bit attribute for holding the update mask 1781 * bit 0 - Update high priority msdu qdepth threshold 1782 * bit 1 - Update low priority msdu qdepth threshold 1783 * bit 2 - Update UDP msdu qdepth threshold 1784 * bit 3 - Update Non UDP msdu qdepth threshold 1785 * rest of bits are reserved 1786 */ 1787 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK, 1788 /* Unsigned 32-bit attribute for holding the threshold value */ 1789 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE, 1790 1791 /* keep last */ 1792 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST, 1793 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX = 1794 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1, 1795 }; 1796 1797 /** 1798 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability 1799 */ 1800 enum qca_wlan_vendor_attr_get_hw_capability { 1801 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID, 1802 /* Antenna isolation 1803 * An attribute used in the response. 1804 * The content of this attribute is encoded in a byte array. Each byte 1805 * value is an antenna isolation value. The array length is the number 1806 * of antennas. 1807 */ 1808 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION, 1809 /* Request HW capability 1810 * An attribute used in the request. 1811 * The content of this attribute is a u32 array for one or more of 1812 * hardware capabilities (attribute IDs) that are being requested. Each 1813 * u32 value has a value from this 1814 * enum qca_wlan_vendor_attr_get_hw_capability 1815 * identifying which capabilities are requested. 1816 */ 1817 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY, 1818 1819 /* keep last */ 1820 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST, 1821 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX = 1822 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1, 1823 }; 1824 1825 /** 1826 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring 1827 * offload which is an extension for LL_STATS. 1828 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms. 1829 * If MAC counters do not exceed the threshold, FW will report monitored 1830 * link layer counters periodically as this setting. The first report is 1831 * always triggered by this timer. 1832 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99). 1833 * For each MAC layer counter, FW holds two copies. One is the current value. 1834 * The other is the last report. Once a current counter's increment is larger 1835 * than the threshold, FW will indicate that counter to host even if the 1836 * monitoring timer does not expire. 1837 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change 1838 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU 1839 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same 1840 * failure code. 1841 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code 1842 * 1: TX packet discarded 1843 * 2: No ACK 1844 * 3: Postpone 1845 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address 1846 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state 1847 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold. 1848 * Threshold for all monitored parameters. If per counter dedicated threshold 1849 * is not enabled, this threshold will take effect. 1850 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this 1851 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0. 1852 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID 1853 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID 1854 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters 1855 * Bit0: TX counter unit in MSDU 1856 * Bit1: TX counter unit in MPDU 1857 * Bit2: TX counter unit in PPDU 1858 * Bit3: TX counter unit in byte 1859 * Bit4: Dropped MSDUs 1860 * Bit5: Dropped Bytes 1861 * Bit6: MPDU retry counter 1862 * Bit7: MPDU failure counter 1863 * Bit8: PPDU failure counter 1864 * Bit9: MPDU aggregation counter 1865 * Bit10: MCS counter for ACKed MPDUs 1866 * Bit11: MCS counter for Failed MPDUs 1867 * Bit12: TX Delay counter 1868 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters 1869 * Bit0: MAC RX counter unit in MPDU 1870 * Bit1: MAC RX counter unit in byte 1871 * Bit2: PHY RX counter unit in PPDU 1872 * Bit3: PHY RX counter unit in byte 1873 * Bit4: Disorder counter 1874 * Bit5: Retry counter 1875 * Bit6: Duplication counter 1876 * Bit7: Discard counter 1877 * Bit8: MPDU aggregation size counter 1878 * Bit9: MCS counter 1879 * Bit10: Peer STA power state change (wake to sleep) counter 1880 * Bit11: Peer STA power save counter, total time in PS mode 1881 * Bit12: Probe request counter 1882 * Bit13: Other management frames counter 1883 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA 1884 * Bit0: Idle time 1885 * Bit1: TX time 1886 * Bit2: time RX in current bss 1887 * Bit3: Out of current bss time 1888 * Bit4: Wireless medium busy time 1889 * Bit5: RX in bad condition time 1890 * Bit6: TX in bad condition time 1891 * Bit7: time wlan card not available 1892 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal 1893 * Bit0: Per channel SNR counter 1894 * Bit1: Per channel noise floor counter 1895 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers 1896 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels 1897 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats 1898 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats 1899 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats 1900 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs 1901 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs 1902 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs 1903 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data 1904 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets 1905 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped 1906 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK 1907 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed 1908 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed 1909 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM: 1910 * aggregation stats buffer length 1911 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats 1912 * buffer for ACKed MPDUs. 1913 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats 1914 * buffer for failed MPDUs. 1915 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE: 1916 * length of delay stats array. 1917 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats 1918 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs 1919 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs 1920 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats 1921 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received 1922 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received 1923 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received 1924 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received 1925 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost 1926 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets 1927 * flagged as retransmissions 1928 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets 1929 * flagged as duplicated 1930 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX 1931 * packets discarded 1932 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation 1933 * stats buffer. 1934 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs 1935 * stats buffer. 1936 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer 1937 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer 1938 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep 1939 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time 1940 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe 1941 * requests received 1942 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt 1943 * frames received 1944 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time 1945 * there is no TX, nor RX, nor interference. 1946 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time 1947 * transmitting packets. 1948 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time 1949 * for receiving. 1950 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time 1951 * interference detected. 1952 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time 1953 * receiving packets with errors. 1954 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time 1955 * TX no-ACK. 1956 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time 1957 * the chip is unable to work in normal conditions. 1958 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time 1959 * receiving packets in current BSS. 1960 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time 1961 * receiving packets not in current BSS. 1962 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas 1963 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL: 1964 * This is a container for per antenna signal stats. 1965 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value 1966 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value 1967 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon 1968 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon 1969 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64 1970 * Absolute timestamp from 1970/1/1, unit in ms. After receiving the 1971 * message, user layer APP could call gettimeofday to get another 1972 * timestamp and calculate transfer delay for the message. 1973 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32 1974 * Real period for this measurement, unit in us. 1975 */ 1976 enum qca_wlan_vendor_attr_ll_stats_ext { 1977 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0, 1978 1979 /* Attributes for configurations */ 1980 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD, 1981 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD, 1982 1983 /* Peer STA power state change */ 1984 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG, 1985 1986 /* TX failure event */ 1987 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID, 1988 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU, 1989 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS, 1990 1991 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE, 1992 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS, 1993 1994 /* MAC counters */ 1995 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL, 1996 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE, 1997 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID, 1998 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID, 1999 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP, 2000 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP, 2001 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP, 2002 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP, 2003 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM, 2004 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM, 2005 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS, 2006 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER, 2007 2008 /* Sub-attributes for PEER_AC_TX */ 2009 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU, 2010 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU, 2011 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU, 2012 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES, 2013 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP, 2014 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES, 2015 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY, 2016 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK, 2017 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK, 2018 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM, 2019 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM, 2020 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM, 2021 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR, 2022 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS, 2023 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS, 2024 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE, 2025 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY, 2026 2027 /* Sub-attributes for PEER_AC_RX */ 2028 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU, 2029 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES, 2030 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU, 2031 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES, 2032 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST, 2033 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY, 2034 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP, 2035 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD, 2036 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM, 2037 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM, 2038 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS, 2039 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR, 2040 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES, 2041 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION, 2042 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ, 2043 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT, 2044 2045 /* Sub-attributes for CCA_BSS */ 2046 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME, 2047 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME, 2048 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME, 2049 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY, 2050 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD, 2051 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD, 2052 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL, 2053 2054 /* sub-attribute for BSS_RX_TIME */ 2055 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME, 2056 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME, 2057 2058 /* Sub-attributes for PEER_SIGNAL */ 2059 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM, 2060 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL, 2061 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR, 2062 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF, 2063 2064 /* Sub-attributes for IFACE_BSS */ 2065 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON, 2066 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON, 2067 2068 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME, 2069 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME, 2070 2071 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST, 2072 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX = 2073 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1 2074 }; 2075 2076 /* Attributes for FTM commands and events */ 2077 2078 /** 2079 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities 2080 * 2081 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See 2082 * enum qca_wlan_vendor_attr_loc_capa_flags. 2083 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number 2084 * of measurement sessions that can run concurrently. 2085 * Default is one session (no session concurrency). 2086 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique 2087 * peers that are supported in running sessions. For example, 2088 * if the value is 8 and maximum number of sessions is 2, you can 2089 * have one session with 8 unique peers, or 2 sessions with 4 unique 2090 * peers each, and so on. 2091 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number 2092 * of bursts per peer, as an exponent (2^value). Default is 0, 2093 * meaning no multi-burst support. 2094 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number 2095 * of measurement exchanges allowed in a single burst. 2096 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement 2097 * types. A bit mask (unsigned 32 bit value), each bit corresponds 2098 * to an AOA type as defined by enum qca_vendor_attr_aoa_type. 2099 */ 2100 enum qca_wlan_vendor_attr_loc_capa { 2101 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID, 2102 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS, 2103 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS, 2104 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS, 2105 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP, 2106 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST, 2107 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES, 2108 /* keep last */ 2109 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST, 2110 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX = 2111 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1, 2112 }; 2113 2114 /** 2115 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags 2116 * 2117 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver 2118 * can be configured as an FTM responder (for example, an AP that 2119 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 2120 * will be supported if set. 2121 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver 2122 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION 2123 * will be supported if set. 2124 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder 2125 * supports immediate (ASAP) response. 2126 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone 2127 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS. 2128 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports 2129 * requesting AOA measurements as part of an FTM session. 2130 */ 2131 enum qca_wlan_vendor_attr_loc_capa_flags { 2132 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0, 2133 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1, 2134 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2, 2135 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3, 2136 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4, 2137 }; 2138 2139 /** 2140 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about 2141 * a single peer in a measurement session. 2142 * 2143 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer. 2144 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related 2145 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags. 2146 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of 2147 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0 2148 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for 2149 * list of supported attributes. 2150 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for 2151 * secure measurement. 2152 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA 2153 * measurement every <value> bursts. If 0 or not specified, 2154 * AOA measurements will be disabled for this peer. 2155 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where 2156 * the measurement frames are exchanged. Optional; if not 2157 * specified, try to locate the peer in the kernel scan 2158 * results cache and use frequency from there. 2159 */ 2160 enum qca_wlan_vendor_attr_ftm_peer_info { 2161 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID, 2162 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR, 2163 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS, 2164 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS, 2165 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID, 2166 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD, 2167 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ, 2168 /* keep last */ 2169 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST, 2170 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX = 2171 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1, 2172 }; 2173 2174 /** 2175 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags, 2176 * per-peer 2177 * 2178 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request 2179 * immediate (ASAP) response from peer. 2180 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request 2181 * LCI report from peer. The LCI report includes the absolute 2182 * location of the peer in "official" coordinates (similar to GPS). 2183 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information. 2184 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request 2185 * Location civic report from peer. The LCR includes the location 2186 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0, 2187 * 11.24.6.7 for more information. 2188 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set, 2189 * request a secure measurement. 2190 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided. 2191 */ 2192 enum qca_wlan_vendor_attr_ftm_peer_meas_flags { 2193 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0, 2194 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1, 2195 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2, 2196 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3, 2197 }; 2198 2199 /** 2200 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters 2201 * 2202 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements 2203 * to perform in a single burst. 2204 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to 2205 * perform, specified as an exponent (2^value). 2206 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst 2207 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. 2208 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts, 2209 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must 2210 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION. 2211 */ 2212 enum qca_wlan_vendor_attr_ftm_meas_param { 2213 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID, 2214 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST, 2215 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP, 2216 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION, 2217 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD, 2218 /* keep last */ 2219 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST, 2220 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX = 2221 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1, 2222 }; 2223 2224 /** 2225 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results 2226 * 2227 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported 2228 * peer. 2229 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement 2230 * request for this peer. 2231 * See enum qca_wlan_vendor_attr_ftm_peer_result_status. 2232 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related 2233 * to measurement results for this peer. 2234 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags. 2235 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when 2236 * request failed and peer requested not to send an additional request 2237 * for this number of seconds. 2238 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received 2239 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0, 2240 * 9.4.2.22.10. 2241 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when 2242 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0, 2243 * 9.4.2.22.13. 2244 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer 2245 * overridden some measurement request parameters. See 2246 * enum qca_wlan_vendor_attr_ftm_meas_param. 2247 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement 2248 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT. 2249 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement 2250 * results. Each entry is a nested attribute defined 2251 * by enum qca_wlan_vendor_attr_ftm_meas. 2252 */ 2253 enum qca_wlan_vendor_attr_ftm_peer_result { 2254 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID, 2255 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR, 2256 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS, 2257 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS, 2258 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS, 2259 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI, 2260 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR, 2261 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS, 2262 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS, 2263 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS, 2264 /* keep last */ 2265 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST, 2266 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX = 2267 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1, 2268 }; 2269 2270 /** 2271 * enum qca_wlan_vendor_attr_ftm_peer_result_status 2272 * 2273 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results 2274 * will be provided. Peer may have overridden some measurement parameters, 2275 * in which case overridden parameters will be report by 2276 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute. 2277 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable 2278 * of performing the measurement request. No more results will be sent 2279 * for this peer in this session. 2280 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request 2281 * failed, and requested not to send an additional request for number 2282 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS 2283 * attribute. 2284 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation 2285 * failed. Request was not sent over the air. 2286 */ 2287 enum qca_wlan_vendor_attr_ftm_peer_result_status { 2288 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK, 2289 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE, 2290 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED, 2291 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID, 2292 }; 2293 2294 /** 2295 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags 2296 * for measurement result, per-peer 2297 * 2298 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set, 2299 * measurement completed for this peer. No more results will be reported 2300 * for this peer in this session. 2301 */ 2302 enum qca_wlan_vendor_attr_ftm_peer_result_flags { 2303 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0, 2304 }; 2305 2306 /** 2307 * enum qca_vendor_attr_loc_session_status: Session completion status code 2308 * 2309 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed 2310 * successfully. 2311 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted 2312 * by request. 2313 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request 2314 * was invalid and was not started. 2315 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error 2316 * and did not complete normally (for example out of resources). 2317 */ 2318 enum qca_vendor_attr_loc_session_status { 2319 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK, 2320 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED, 2321 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID, 2322 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED, 2323 }; 2324 2325 /** 2326 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data 2327 * 2328 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as 2329 * recorded by responder, in picoseconds. 2330 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 2331 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at 2332 * initiator, in picoseconds. 2333 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 2334 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by 2335 * initiator, in picoseconds. 2336 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 2337 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at 2338 * responder, in picoseconds. 2339 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 2340 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded 2341 * during this measurement exchange. Optional and will be provided if 2342 * the hardware can measure it. 2343 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by 2344 * responder. Not always provided. 2345 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 2346 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by 2347 * responder. Not always provided. 2348 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 2349 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by 2350 * initiator. Not always provided. 2351 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 2352 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by 2353 * initiator. Not always provided. 2354 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 2355 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding. 2356 */ 2357 enum qca_wlan_vendor_attr_ftm_meas { 2358 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID, 2359 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1, 2360 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2, 2361 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3, 2362 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4, 2363 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI, 2364 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR, 2365 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR, 2366 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR, 2367 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR, 2368 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD, 2369 /* keep last */ 2370 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST, 2371 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX = 2372 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1, 2373 }; 2374 2375 /** 2376 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type 2377 * 2378 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest 2379 * CIR (channel impulse response) path for each antenna. 2380 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude 2381 * of the strongest CIR path for each antenna. 2382 */ 2383 enum qca_wlan_vendor_attr_aoa_type { 2384 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE, 2385 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP, 2386 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX 2387 }; 2388 2389 /** 2390 * enum qca_wlan_vendor_attr_encryption_test - Attributes to 2391 * validate encryption engine 2392 * 2393 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute. 2394 * This will be included if the request is for decryption; if not included, 2395 * the request is treated as a request for encryption by default. 2396 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value 2397 * indicating the key cipher suite. Takes same values as 2398 * NL80211_ATTR_KEY_CIPHER. 2399 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value 2400 * Key Id to be used for encryption 2401 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values. 2402 * Key (TK) to be used for encryption/decryption 2403 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values. 2404 * Packet number to be specified for encryption/decryption 2405 * 6 bytes for TKIP/CCMP/GCMP. 2406 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values 2407 * representing the 802.11 packet (header + payload + FCS) that 2408 * needs to be encrypted/decrypted. 2409 * Encrypted/decrypted response from the driver will also be sent 2410 * to userspace with the same attribute. 2411 */ 2412 enum qca_wlan_vendor_attr_encryption_test { 2413 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0, 2414 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION, 2415 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER, 2416 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID, 2417 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK, 2418 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN, 2419 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA, 2420 2421 /* keep last */ 2422 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST, 2423 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX = 2424 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1 2425 }; 2426 2427 /** 2428 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of 2429 * sector for DMG RF sector operations. 2430 * 2431 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector 2432 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector 2433 */ 2434 enum qca_wlan_vendor_attr_dmg_rf_sector_type { 2435 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX, 2436 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX, 2437 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX 2438 }; 2439 2440 /** 2441 * BRP antenna limit mode 2442 * 2443 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force 2444 * antenna limit, BRP will be performed as usual. 2445 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal 2446 * antennas limit. the hardware may use less antennas than the 2447 * maximum limit. 2448 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will 2449 * use exactly the specified number of antennas for BRP. 2450 */ 2451 enum qca_wlan_vendor_attr_brp_ant_limit_mode { 2452 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE, 2453 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE, 2454 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE, 2455 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX 2456 }; 2457 2458 /** 2459 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for 2460 * DMG RF sector configuration for a single RF module. 2461 * The values are defined in a compact way which closely matches 2462 * the way it is stored in HW registers. 2463 * The configuration provides values for 32 antennas and 8 distribution 2464 * amplifiers, and together describes the characteristics of the RF 2465 * sector - such as a beam in some direction with some gain. 2466 * 2467 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index 2468 * of RF module for this configuration. 2469 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge 2470 * amplifier gain index. Unsigned 32 bit number containing 2471 * bits for all 32 antennas. 2472 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge 2473 * amplifier gain index. Unsigned 32 bit number containing 2474 * bits for all 32 antennas. 2475 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge 2476 * amplifier gain index. Unsigned 32 bit number containing 2477 * bits for all 32 antennas. 2478 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values 2479 * for first 16 antennas, 2 bits per antenna. 2480 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values 2481 * for last 16 antennas, 2 bits per antenna. 2482 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains 2483 * DTYPE values (3 bits) for each distribution amplifier, followed 2484 * by X16 switch bits for each distribution amplifier. There are 2485 * total of 8 distribution amplifiers. 2486 */ 2487 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg { 2488 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0, 2489 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1, 2490 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2, 2491 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3, 2492 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4, 2493 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5, 2494 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6, 2495 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7, 2496 2497 /* keep last */ 2498 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST, 2499 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX = 2500 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1 2501 }; 2502 2503 enum qca_wlan_vendor_attr_ll_stats_set { 2504 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0, 2505 /* Unsigned 32-bit value */ 2506 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1, 2507 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2, 2508 /* keep last */ 2509 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST, 2510 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX = 2511 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1, 2512 }; 2513 2514 enum qca_wlan_vendor_attr_ll_stats_clr { 2515 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0, 2516 /* Unsigned 32bit bitmap for clearing statistics 2517 * All radio statistics 0x00000001 2518 * cca_busy_time (within radio statistics) 0x00000002 2519 * All channel stats (within radio statistics) 0x00000004 2520 * All scan statistics (within radio statistics) 0x00000008 2521 * All interface statistics 0x00000010 2522 * All tx rate statistics (within interface statistics) 0x00000020 2523 * All ac statistics (with in interface statistics) 0x00000040 2524 * All contention (min, max, avg) statistics (within ac statisctics) 2525 * 0x00000080. 2526 */ 2527 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1, 2528 /* Unsigned 8 bit value: Request to stop statistics collection */ 2529 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2, 2530 2531 /* Unsigned 32 bit bitmap: Response from the driver 2532 * for the cleared statistics 2533 */ 2534 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3, 2535 /* Unsigned 8 bit value: Response from driver/firmware 2536 * for the stop request 2537 */ 2538 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4, 2539 /* keep last */ 2540 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST, 2541 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX = 2542 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1, 2543 }; 2544 2545 enum qca_wlan_vendor_attr_ll_stats_get { 2546 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0, 2547 /* Unsigned 32 bit value provided by the caller issuing the GET stats 2548 * command. When reporting the stats results, the driver uses the same 2549 * value to indicate which GET request the results correspond to. 2550 */ 2551 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1, 2552 /* Unsigned 32 bit value - bit mask to identify what statistics are 2553 * requested for retrieval. 2554 * Radio Statistics 0x00000001 2555 * Interface Statistics 0x00000020 2556 * All Peer Statistics 0x00000040 2557 * Peer Statistics 0x00000080 2558 */ 2559 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2, 2560 /* keep last */ 2561 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST, 2562 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX = 2563 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1, 2564 }; 2565 2566 enum qca_wlan_vendor_attr_ll_stats_results { 2567 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0, 2568 /* Unsigned 32bit value. Used by the driver; must match the request id 2569 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command. 2570 */ 2571 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1, 2572 2573 /* Unsigned 32 bit value */ 2574 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2, 2575 /* Unsigned 32 bit value */ 2576 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3, 2577 /* Unsigned 32 bit value */ 2578 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4, 2579 /* Unsigned 32 bit value */ 2580 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5, 2581 /* Signed 32 bit value */ 2582 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6, 2583 /* Signed 32 bit value */ 2584 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7, 2585 /* Signed 32 bit value */ 2586 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8, 2587 2588 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are 2589 * nested within the interface stats. 2590 */ 2591 2592 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc. 2593 * Type = enum wifi_interface_mode. 2594 */ 2595 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9, 2596 /* Interface MAC address. An array of 6 Unsigned int8 */ 2597 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10, 2598 /* Type = enum wifi_connection_state, e.g., DISCONNECTED, 2599 * AUTHENTICATING, etc. valid for STA, CLI only. 2600 */ 2601 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11, 2602 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE 2603 */ 2604 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12, 2605 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */ 2606 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13, 2607 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */ 2608 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14, 2609 /* BSSID. An array of 6 unsigned 8 bit values */ 2610 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15, 2611 /* Country string advertised by AP. An array of 3 unsigned 8 bit 2612 * values. 2613 */ 2614 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16, 2615 /* Country string for this association. An array of 3 unsigned 8 bit 2616 * values. 2617 */ 2618 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17, 2619 2620 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could 2621 * be nested within the interface stats. 2622 */ 2623 2624 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */ 2625 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18, 2626 /* Unsigned int 32 value corresponding to respective AC */ 2627 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19, 2628 /* Unsigned int 32 value corresponding to respective AC */ 2629 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20, 2630 /* Unsigned int 32 value corresponding to respective AC */ 2631 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21, 2632 /* Unsigned int 32 value corresponding to respective AC */ 2633 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22, 2634 /* Unsigned int 32 value corresponding to respective AC */ 2635 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23, 2636 /* Unsigned int 32 value corresponding to respective AC */ 2637 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24, 2638 /* Unsigned int 32 value corresponding to respective AC */ 2639 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25, 2640 /* Unsigned int 32 value corresponding to respective AC */ 2641 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26, 2642 /* Unsigned int 32 value corresponding to respective AC */ 2643 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27, 2644 /* Unsigned int 32 values corresponding to respective AC */ 2645 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28, 2646 /* Unsigned int 32 values corresponding to respective AC */ 2647 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29, 2648 /* Unsigned int 32 values corresponding to respective AC */ 2649 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30, 2650 /* Unsigned int 32 values corresponding to respective AC */ 2651 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31, 2652 /* Unsigned int 32 values corresponding to respective AC */ 2653 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32, 2654 /* Unsigned 32 bit value. Number of peers */ 2655 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33, 2656 2657 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are 2658 * nested within the interface stats. 2659 */ 2660 2661 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */ 2662 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34, 2663 /* MAC addr corresponding to respective peer. An array of 6 unsigned 2664 * 8 bit values. 2665 */ 2666 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35, 2667 /* Unsigned int 32 bit value representing capabilities corresponding 2668 * to respective peer. 2669 */ 2670 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36, 2671 /* Unsigned 32 bit value. Number of rates */ 2672 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37, 2673 2674 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* 2675 * are nested within the rate stat. 2676 */ 2677 2678 /* Wi-Fi Rate - separate attributes defined for individual fields */ 2679 2680 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */ 2681 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38, 2682 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */ 2683 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39, 2684 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */ 2685 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40, 2686 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std 2687 * in the units of 0.5 Mbps HT/VHT it would be MCS index 2688 */ 2689 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41, 2690 2691 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */ 2692 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42, 2693 2694 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be 2695 * nested within the peer info stats. 2696 */ 2697 2698 /* Unsigned int 32 bit value. Number of successfully transmitted data 2699 * packets, i.e., with ACK received corresponding to the respective 2700 * rate. 2701 */ 2702 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43, 2703 /* Unsigned int 32 bit value. Number of received data packets 2704 * corresponding to the respective rate. 2705 */ 2706 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44, 2707 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK 2708 * received corresponding to the respective rate. 2709 */ 2710 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45, 2711 /* Unsigned int 32 bit value. Total number of data packet retries for 2712 * the respective rate. 2713 */ 2714 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46, 2715 /* Unsigned int 32 bit value. Total number of short data packet retries 2716 * for the respective rate. 2717 */ 2718 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47, 2719 /* Unsigned int 32 bit value. Total number of long data packet retries 2720 * for the respective rate. 2721 */ 2722 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48, 2723 2724 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49, 2725 /* Unsigned 32 bit value. Total number of msecs the radio is awake 2726 * accruing over time. 2727 */ 2728 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50, 2729 /* Unsigned 32 bit value. Total number of msecs the radio is 2730 * transmitting accruing over time. 2731 */ 2732 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51, 2733 /* Unsigned 32 bit value. Total number of msecs the radio is in active 2734 * receive accruing over time. 2735 */ 2736 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52, 2737 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2738 * to all scan accruing over time. 2739 */ 2740 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53, 2741 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2742 * to NAN accruing over time. 2743 */ 2744 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54, 2745 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2746 * to GSCAN accruing over time. 2747 */ 2748 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55, 2749 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2750 * to roam scan accruing over time. 2751 */ 2752 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56, 2753 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2754 * to PNO scan accruing over time. 2755 */ 2756 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57, 2757 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2758 * to Hotspot 2.0 scans and GAS exchange accruing over time. 2759 */ 2760 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58, 2761 /* Unsigned 32 bit value. Number of channels. */ 2762 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59, 2763 2764 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could 2765 * be nested within the channel stats. 2766 */ 2767 2768 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */ 2769 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60, 2770 /* Unsigned 32 bit value. Primary 20 MHz channel. */ 2771 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61, 2772 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */ 2773 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62, 2774 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */ 2775 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63, 2776 2777 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be 2778 * nested within the radio stats. 2779 */ 2780 2781 /* Unsigned int 32 bit value representing total number of msecs the 2782 * radio is awake on that channel accruing over time, corresponding to 2783 * the respective channel. 2784 */ 2785 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64, 2786 /* Unsigned int 32 bit value representing total number of msecs the CCA 2787 * register is busy accruing over time corresponding to the respective 2788 * channel. 2789 */ 2790 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65, 2791 2792 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66, 2793 2794 /* Signifies the nested list of channel attributes 2795 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* 2796 */ 2797 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67, 2798 2799 /* Signifies the nested list of peer info attributes 2800 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* 2801 */ 2802 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68, 2803 2804 /* Signifies the nested list of rate info attributes 2805 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* 2806 */ 2807 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69, 2808 2809 /* Signifies the nested list of wmm info attributes 2810 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* 2811 */ 2812 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70, 2813 2814 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates 2815 * that more stats, e.g., peers or radio, are to follow in the next 2816 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event. 2817 * Otherwise, it is set to 0. 2818 */ 2819 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71, 2820 2821 /* Unsigned 64 bit value */ 2822 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72, 2823 2824 /* Unsigned 32 bit value */ 2825 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73, 2826 2827 /* Unsigned 32 bit value */ 2828 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74, 2829 2830 /* Unsigned 32 bit value */ 2831 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75, 2832 2833 /* Unsigned 32 bit value */ 2834 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76, 2835 2836 /* Unsigned 32 bit value */ 2837 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77, 2838 2839 /* Number of msecs the radio spent in transmitting for each power level 2840 */ 2841 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78, 2842 2843 /* Unsigned 32 bit value */ 2844 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79, 2845 /* Unsigned 32 bit value */ 2846 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80, 2847 /* Unsigned 32 bit value */ 2848 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81, 2849 /* Unsigned 32 bit value */ 2850 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82, 2851 2852 /* Unsigned int 32 value. 2853 * Pending MSDUs corresponding to respective AC. 2854 */ 2855 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83, 2856 2857 /* keep last */ 2858 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST, 2859 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX = 2860 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1, 2861 }; 2862 2863 enum qca_wlan_vendor_attr_ll_stats_type { 2864 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0, 2865 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1, 2866 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2, 2867 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3, 2868 2869 /* keep last */ 2870 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST, 2871 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX = 2872 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1, 2873 }; 2874 2875 /** 2876 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for 2877 * TDLS configuration to the host driver. 2878 * 2879 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger 2880 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode 2881 * represents the different TDLS trigger modes. 2882 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within 2883 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number 2884 * of packets shall meet the criteria for implicit TDLS setup. 2885 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets 2886 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD 2887 * to initiate a TDLS setup. 2888 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate 2889 * a TDLS Discovery to the peer. 2890 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of 2891 * discovery attempts to know the TDLS capability of the peer. A peer is 2892 * marked as TDLS not capable if there is no response for all the attempts. 2893 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32) 2894 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD 2895 * number of TX / RX frames meet the criteria for TDLS teardown. 2896 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32) 2897 * of Tx/Rx packets within a duration 2898 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link. 2899 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold 2900 * corresponding to the RSSI of the peer below which a TDLS setup is 2901 * triggered. 2902 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold 2903 * corresponding to the RSSI of the peer above which a TDLS teardown is 2904 * triggered. 2905 */ 2906 enum qca_wlan_vendor_attr_tdls_configuration { 2907 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0, 2908 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1, 2909 2910 /* Attributes configuring the TDLS Implicit Trigger */ 2911 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2, 2912 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3, 2913 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4, 2914 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5, 2915 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6, 2916 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7, 2917 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8, 2918 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9, 2919 2920 /* keep last */ 2921 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST, 2922 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX = 2923 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1 2924 }; 2925 2926 /** 2927 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in 2928 * the driver 2929 * 2930 * The following are the different values for 2931 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE. 2932 * 2933 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown 2934 * the TDLS connection to a respective peer comes from the user space. 2935 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN, 2936 * TDLS_DISCOVER to do this. 2937 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS 2938 * setup/teardown to the eligible peer once the configured criteria 2939 * (such as TX/RX threshold, RSSI) is met. The attributes 2940 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to 2941 * the different configuration criteria for the TDLS trigger from the 2942 * host driver. 2943 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger 2944 * the TDLS setup / teardown through the implicit mode only to the 2945 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1, 2946 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands). 2947 * External mode works on top of the implicit mode. Thus the host driver 2948 * is expected to configure in TDLS Implicit mode too to operate in 2949 * External mode. 2950 * Configuring External mode alone without Implicit mode is invalid. 2951 * 2952 * All the above implementations work as expected only when the host driver 2953 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing 2954 * that the TDLS message exchange is not internal to the host driver, but 2955 * depends on wpa_supplicant to do the message exchange. 2956 */ 2957 enum qca_wlan_vendor_tdls_trigger_mode { 2958 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0, 2959 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1, 2960 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2, 2961 }; 2962 2963 /** 2964 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits 2965 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0 2966 * that is hard-coded in the Board Data File (BDF). 2967 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1 2968 * that is hard-coded in the Board Data File (BDF). 2969 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2 2970 * that is hard-coded in the Board Data File (BDF). 2971 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3 2972 * that is hard-coded in the Board Data File (BDF). 2973 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4 2974 * that is hard-coded in the Board Data File (BDF). 2975 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any 2976 * source of SAR power limits, thereby disabling the SAR power 2977 * limit feature. 2978 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power 2979 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR. 2980 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power 2981 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR. 2982 * 2983 * This enumerates the valid set of values that may be supplied for 2984 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of 2985 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in 2986 * the response to an instance of the 2987 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command. 2988 */ 2989 enum qca_vendor_attr_sar_limits_selections { 2990 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0, 2991 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1, 2992 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2, 2993 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3, 2994 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4, 2995 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5, 2996 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6, 2997 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7, 2998 }; 2999 3000 /** 3001 * enum qca_vendor_attr_sar_limits_spec_modulations - 3002 * SAR limits specification modulation 3003 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK - 3004 * CCK modulation 3005 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM - 3006 * OFDM modulation 3007 * 3008 * This enumerates the valid set of values that may be supplied for 3009 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an 3010 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an 3011 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor 3012 * command or in the response to an instance of the 3013 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command. 3014 */ 3015 enum qca_vendor_attr_sar_limits_spec_modulations { 3016 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0, 3017 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1, 3018 }; 3019 3020 /** 3021 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits 3022 * 3023 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to 3024 * select which SAR power limit table should be used. Valid 3025 * values are enumerated in enum 3026 * %qca_vendor_attr_sar_limits_selections. The existing SAR 3027 * power limit selection is unchanged if this attribute is not 3028 * present. 3029 * 3030 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value 3031 * which specifies the number of SAR power limit specifications 3032 * which will follow. 3033 * 3034 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power 3035 * limit specifications. The number of specifications is 3036 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each 3037 * specification contains a set of 3038 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A 3039 * specification is uniquely identified by the attributes 3040 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND, 3041 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and 3042 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always 3043 * contains as a payload the attribute 3044 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT, 3045 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX. 3046 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or 3047 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is 3048 * needed based upon the value of 3049 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE. 3050 * 3051 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to 3052 * indicate for which band this specification applies. Valid 3053 * values are enumerated in enum %nl80211_band (although not all 3054 * bands may be supported by a given device). If the attribute is 3055 * not supplied then the specification will be applied to all 3056 * supported bands. 3057 * 3058 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value 3059 * to indicate for which antenna chain this specification 3060 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the 3061 * attribute is not supplied then the specification will be 3062 * applied to all chains. 3063 * 3064 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32) 3065 * value to indicate for which modulation scheme this 3066 * specification applies. Valid values are enumerated in enum 3067 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute 3068 * is not supplied then the specification will be applied to all 3069 * modulation schemes. 3070 * 3071 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32) 3072 * value to specify the actual power limit value in units of 0.5 3073 * dBm (i.e., a value of 11 represents 5.5 dBm). 3074 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is 3075 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER. 3076 * 3077 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32) 3078 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles. 3079 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is 3080 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0. 3081 * 3082 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS 3083 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS. 3084 */ 3085 enum qca_vendor_attr_sar_limits { 3086 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0, 3087 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1, 3088 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2, 3089 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3, 3090 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4, 3091 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5, 3092 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6, 3093 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7, 3094 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8, 3095 3096 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST, 3097 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX = 3098 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1 3099 }; 3100 3101 /** 3102 * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by 3103 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command. 3104 */ 3105 enum qca_wlan_vendor_attr_get_wifi_info { 3106 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0, 3107 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1, 3108 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2, 3109 3110 /* keep last */ 3111 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST, 3112 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX = 3113 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1, 3114 }; 3115 3116 /* 3117 * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by 3118 * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command. 3119 */ 3120 enum qca_wlan_vendor_attr_wifi_logger_start { 3121 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0, 3122 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1, 3123 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2, 3124 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3, 3125 3126 /* keep last */ 3127 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST, 3128 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX = 3129 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1, 3130 }; 3131 3132 enum qca_wlan_vendor_attr_logger_results { 3133 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0, 3134 3135 /* Unsigned 32-bit value; must match the request Id supplied by 3136 * Wi-Fi HAL in the corresponding subcmd NL msg. 3137 */ 3138 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1, 3139 3140 /* Unsigned 32-bit value; used to indicate the size of memory 3141 * dump to be allocated. 3142 */ 3143 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2, 3144 3145 /* keep last */ 3146 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST, 3147 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX = 3148 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1, 3149 }; 3150 3151 enum qca_wlan_vendor_attr_roaming_config_params { 3152 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0, 3153 3154 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1, 3155 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2, 3156 3157 /* Attributes for wifi_set_ssid_white_list */ 3158 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3, 3159 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4, 3160 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5, 3161 3162 /* Attributes for set_roam_params */ 3163 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6, 3164 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7, 3165 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8, 3166 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9, 3167 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10, 3168 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11, 3169 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12, 3170 3171 /* Attribute for set_lazy_roam */ 3172 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13, 3173 3174 /* Attribute for set_lazy_roam with preferences */ 3175 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14, 3176 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15, 3177 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16, 3178 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17, 3179 3180 /* Attribute for set_blacklist bssid params */ 3181 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18, 3182 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19, 3183 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20, 3184 3185 /* keep last */ 3186 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST, 3187 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX = 3188 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1, 3189 }; 3190 3191 /* 3192 * enum qca_wlan_vendor_attr_roam_subcmd: Attributes for data used by 3193 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command. 3194 */ 3195 enum qca_wlan_vendor_attr_roam_subcmd { 3196 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_INVALID = 0, 3197 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SSID_WHITE_LIST = 1, 3198 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2, 3199 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_LAZY_ROAM = 3, 3200 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PREFS = 4, 3201 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PARAMS = 5, 3202 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BLACKLIST_BSSID = 6, 3203 3204 /* keep last */ 3205 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_AFTER_LAST, 3206 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_MAX = 3207 QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_AFTER_LAST - 1, 3208 }; 3209 3210 enum qca_wlan_vendor_attr_gscan_config_params { 3211 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0, 3212 3213 /* Unsigned 32-bit value */ 3214 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1, 3215 3216 /* Attributes for data used by 3217 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command. 3218 */ 3219 /* Unsigned 32-bit value */ 3220 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND 3221 = 2, 3222 /* Unsigned 32-bit value */ 3223 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS 3224 = 3, 3225 3226 /* Attributes for input params used by 3227 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command. 3228 */ 3229 3230 /* Unsigned 32-bit value; channel frequency */ 3231 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4, 3232 /* Unsigned 32-bit value; dwell time in ms. */ 3233 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5, 3234 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */ 3235 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6, 3236 /* Unsigned 8-bit value; channel class */ 3237 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7, 3238 3239 /* Unsigned 8-bit value; bucket index, 0 based */ 3240 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8, 3241 /* Unsigned 8-bit value; band. */ 3242 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9, 3243 /* Unsigned 32-bit value; desired period, in ms. */ 3244 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10, 3245 /* Unsigned 8-bit value; report events semantics. */ 3246 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11, 3247 /* Unsigned 32-bit value. Followed by a nested array of 3248 * GSCAN_CHANNEL_SPEC_* attributes. 3249 */ 3250 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12, 3251 3252 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes. 3253 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS 3254 */ 3255 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13, 3256 3257 /* Unsigned 32-bit value; base timer period in ms. */ 3258 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14, 3259 /* Unsigned 32-bit value; number of APs to store in each scan in the 3260 * BSSID/RSSI history buffer (keep the highest RSSI APs). 3261 */ 3262 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15, 3263 /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake 3264 * up AP. 3265 */ 3266 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT 3267 = 16, 3268 3269 /* Unsigned 8-bit value; number of scan bucket specs; followed by a 3270 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size 3271 * of the array is determined by NUM_BUCKETS. 3272 */ 3273 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17, 3274 3275 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes. 3276 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS 3277 */ 3278 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18, 3279 3280 /* Unsigned 8-bit value */ 3281 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH 3282 = 19, 3283 /* Unsigned 32-bit value; maximum number of results to be returned. */ 3284 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX 3285 = 20, 3286 3287 /* An array of 6 x unsigned 8-bit value */ 3288 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21, 3289 /* Signed 32-bit value */ 3290 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22, 3291 /* Signed 32-bit value */ 3292 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23, 3293 /* Unsigned 32-bit value */ 3294 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24, 3295 3296 /* Number of hotlist APs as unsigned 32-bit value, followed by a nested 3297 * array of AP_THRESHOLD_PARAM attributes and values. The size of the 3298 * array is determined by NUM_AP. 3299 */ 3300 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25, 3301 3302 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes. 3303 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS 3304 */ 3305 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26, 3306 3307 /* Unsigned 32-bit value; number of samples for averaging RSSI. */ 3308 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE 3309 = 27, 3310 /* Unsigned 32-bit value; number of samples to confirm AP loss. */ 3311 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE 3312 = 28, 3313 /* Unsigned 32-bit value; number of APs breaching threshold. */ 3314 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29, 3315 /* Unsigned 32-bit value; number of APs. Followed by an array of 3316 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP. 3317 */ 3318 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30, 3319 /* Unsigned 32-bit value; number of samples to confirm AP loss. */ 3320 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE 3321 = 31, 3322 /* Unsigned 32-bit value. If max_period is non zero or different than 3323 * period, then this bucket is an exponential backoff bucket. 3324 */ 3325 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32, 3326 /* Unsigned 32-bit value. */ 3327 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33, 3328 /* Unsigned 32-bit value. For exponential back off bucket, number of 3329 * scans to perform for a given period. 3330 */ 3331 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34, 3332 /* Unsigned 8-bit value; in number of scans, wake up AP after these 3333 * many scans. 3334 */ 3335 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS 3336 = 35, 3337 3338 /* Attributes for data used by 3339 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command. 3340 */ 3341 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */ 3342 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE 3343 = 36, 3344 /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a 3345 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The 3346 * size of the array is determined by NUM_SSID. 3347 */ 3348 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37, 3349 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_* 3350 * attributes. 3351 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID 3352 */ 3353 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38, 3354 3355 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */ 3356 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39, 3357 /* Unsigned 8-bit value */ 3358 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40, 3359 /* Signed 32-bit value */ 3360 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41, 3361 /* Signed 32-bit value */ 3362 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42, 3363 /* Unsigned 32-bit value; a bitmask with additional gscan config flag. 3364 */ 3365 QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43, 3366 3367 /* keep last */ 3368 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST, 3369 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX = 3370 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1, 3371 }; 3372 3373 enum qca_wlan_vendor_attr_gscan_results { 3374 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0, 3375 3376 /* Unsigned 32-bit value; must match the request Id supplied by 3377 * Wi-Fi HAL in the corresponding subcmd NL msg. 3378 */ 3379 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1, 3380 3381 /* Unsigned 32-bit value; used to indicate the status response from 3382 * firmware/driver for the vendor sub-command. 3383 */ 3384 QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2, 3385 3386 /* GSCAN Valid Channels attributes */ 3387 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */ 3388 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3, 3389 /* An array of NUM_CHANNELS x unsigned 32-bit value integers 3390 * representing channel numbers. 3391 */ 3392 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4, 3393 3394 /* GSCAN Capabilities attributes */ 3395 /* Unsigned 32-bit value */ 3396 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5, 3397 /* Unsigned 32-bit value */ 3398 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6, 3399 /* Unsigned 32-bit value */ 3400 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN 3401 = 7, 3402 /* Unsigned 32-bit value */ 3403 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE 3404 = 8, 3405 /* Signed 32-bit value */ 3406 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD 3407 = 9, 3408 /* Unsigned 32-bit value */ 3409 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10, 3410 /* Unsigned 32-bit value */ 3411 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS 3412 = 11, 3413 /* Unsigned 32-bit value */ 3414 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES 3415 = 12, 3416 3417 /* GSCAN Attributes used with 3418 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command. 3419 */ 3420 3421 /* Unsigned 32-bit value */ 3422 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13, 3423 3424 /* GSCAN attributes used with 3425 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command. 3426 */ 3427 3428 /* An array of NUM_RESULTS_AVAILABLE x 3429 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_* 3430 */ 3431 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14, 3432 3433 /* Unsigned 64-bit value; age of sample at the time of retrieval */ 3434 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15, 3435 /* 33 x unsigned 8-bit value; NULL terminated SSID */ 3436 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16, 3437 /* An array of 6 x unsigned 8-bit value */ 3438 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17, 3439 /* Unsigned 32-bit value; channel frequency in MHz */ 3440 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18, 3441 /* Signed 32-bit value */ 3442 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19, 3443 /* Unsigned 32-bit value */ 3444 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20, 3445 /* Unsigned 32-bit value */ 3446 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21, 3447 /* Unsigned 16-bit value */ 3448 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22, 3449 /* Unsigned 16-bit value */ 3450 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23, 3451 /* Unsigned 32-bit value; size of the IE DATA blob */ 3452 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24, 3453 /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the 3454 * information elements found in the beacon; this data should be a 3455 * packed list of wifi_information_element objects, one after the 3456 * other. 3457 */ 3458 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25, 3459 3460 /* Unsigned 8-bit value; set by driver to indicate more scan results are 3461 * available. 3462 */ 3463 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26, 3464 3465 /* GSCAN attributes for 3466 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command. 3467 */ 3468 /* Unsigned 8-bit value */ 3469 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27, 3470 /* Unsigned 32-bit value */ 3471 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28, 3472 3473 /* GSCAN attributes for 3474 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command. 3475 */ 3476 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE 3477 * to indicate number of results. 3478 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the 3479 * list of results. 3480 */ 3481 3482 /* GSCAN attributes for 3483 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command. 3484 */ 3485 /* An array of 6 x unsigned 8-bit value */ 3486 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29, 3487 /* Unsigned 32-bit value */ 3488 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL 3489 = 30, 3490 /* Unsigned 32-bit value. */ 3491 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI 3492 = 31, 3493 /* A nested array of signed 32-bit RSSI values. Size of the array is 3494 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI. 3495 */ 3496 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST 3497 = 32, 3498 3499 /* GSCAN attributes used with 3500 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command. 3501 */ 3502 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE 3503 * to indicate number of gscan cached results returned. 3504 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate 3505 * the list of gscan cached results. 3506 */ 3507 3508 /* An array of NUM_RESULTS_AVAILABLE x 3509 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_* 3510 */ 3511 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33, 3512 /* Unsigned 32-bit value; a unique identifier for the scan unit. */ 3513 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34, 3514 /* Unsigned 32-bit value; a bitmask w/additional information about scan. 3515 */ 3516 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35, 3517 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE 3518 * to indicate number of wifi scan results/bssids retrieved by the scan. 3519 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the 3520 * list of wifi scan results returned for each cached result block. 3521 */ 3522 3523 /* GSCAN attributes for 3524 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command. 3525 */ 3526 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for 3527 * number of results. 3528 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested 3529 * list of wifi scan results returned for each 3530 * wifi_passpoint_match_result block. 3531 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE. 3532 */ 3533 3534 /* GSCAN attributes for 3535 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command. 3536 */ 3537 /* Unsigned 32-bit value */ 3538 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES 3539 = 36, 3540 /* A nested array of 3541 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_* 3542 * attributes. Array size = 3543 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES. 3544 */ 3545 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37, 3546 3547 /* Unsigned 32-bit value; network block id for the matched network */ 3548 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38, 3549 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested 3550 * list of wifi scan results returned for each 3551 * wifi_passpoint_match_result block. 3552 */ 3553 /* Unsigned 32-bit value */ 3554 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39, 3555 /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values; 3556 * ANQP data in the information_element format. 3557 */ 3558 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40, 3559 3560 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */ 3561 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41, 3562 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */ 3563 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42, 3564 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */ 3565 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID 3566 = 43, 3567 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */ 3568 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID 3569 = 44, 3570 3571 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45, 3572 3573 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. 3574 * This is used to limit the maximum number of BSSIDs while sending 3575 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with attributes 3576 * QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BLACKLIST_BSSID and 3577 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID. 3578 */ 3579 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID = 46, 3580 3581 /* keep last */ 3582 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST, 3583 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX = 3584 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1, 3585 }; 3586 3587 enum qca_wlan_vendor_attr_pno_config_params { 3588 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0, 3589 /* Attributes for data used by 3590 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command. 3591 */ 3592 /* Unsigned 32-bit value */ 3593 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1, 3594 /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_* 3595 * attributes. Array size = 3596 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM. 3597 */ 3598 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2, 3599 3600 /* Unsigned 32-bit value */ 3601 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3, 3602 /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded 3603 * realm, 0 if unspecified. 3604 */ 3605 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4, 3606 /* An array of 16 x unsigned 32-bit value; roaming consortium ids to 3607 * match, 0 if unspecified. 3608 */ 3609 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5, 3610 /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if 3611 * unspecified. 3612 */ 3613 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6, 3614 3615 /* Attributes for data used by 3616 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command. 3617 */ 3618 /* Unsigned 32-bit value */ 3619 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7, 3620 /* Array of nested 3621 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_* 3622 * attributes. Array size = 3623 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS. 3624 */ 3625 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8, 3626 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */ 3627 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9, 3628 /* Signed 8-bit value; threshold for considering this SSID as found, 3629 * required granularity for this threshold is 4 dBm to 8 dBm. 3630 */ 3631 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD 3632 = 10, 3633 /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */ 3634 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11, 3635 /* Unsigned 8-bit value; auth bit field for matching WPA IE */ 3636 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12, 3637 /* Unsigned 8-bit to indicate ePNO type; 3638 * It takes values from qca_wlan_epno_type 3639 */ 3640 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13, 3641 3642 /* Nested attribute to send the channel list */ 3643 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14, 3644 3645 /* Unsigned 32-bit value; indicates the interval between PNO scan 3646 * cycles in msec. 3647 */ 3648 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15, 3649 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16, 3650 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17, 3651 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18, 3652 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19, 3653 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20, 3654 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21, 3655 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22, 3656 /* Unsigned 32-bit value, representing the PNO Request ID */ 3657 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23, 3658 3659 /* keep last */ 3660 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST, 3661 QCA_WLAN_VENDOR_ATTR_PNO_MAX = 3662 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1, 3663 }; 3664 3665 /** 3666 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why 3667 * the ACS has to be triggered. These values are used by 3668 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and 3669 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON 3670 */ 3671 enum qca_wlan_vendor_acs_select_reason { 3672 /* Represents the reason that the ACS triggered during the AP start */ 3673 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT, 3674 /* Represents the reason that DFS found with the current channel */ 3675 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS, 3676 /* Represents the reason that LTE co-exist in the current band. */ 3677 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX, 3678 }; 3679 3680 /** 3681 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for 3682 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd 3683 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the 3684 * external ACS policies to select the channels w.r.t. the PCL weights. 3685 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and 3686 * their PCL weights.) 3687 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to 3688 * select a channel with non-zero PCL weight. 3689 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a 3690 * channel with non-zero PCL weight. 3691 * 3692 */ 3693 enum qca_wlan_vendor_attr_external_acs_policy { 3694 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED, 3695 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY, 3696 }; 3697 3698 /** 3699 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel. 3700 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS. 3701 */ 3702 enum qca_wlan_vendor_channel_prop_flags { 3703 /* Bits 0, 1, 2, and 3 are reserved */ 3704 3705 /* Turbo channel */ 3706 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4, 3707 /* CCK channel */ 3708 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5, 3709 /* OFDM channel */ 3710 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6, 3711 /* 2.4 GHz spectrum channel. */ 3712 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7, 3713 /* 5 GHz spectrum channel */ 3714 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8, 3715 /* Only passive scan allowed */ 3716 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9, 3717 /* Dynamic CCK-OFDM channel */ 3718 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10, 3719 /* GFSK channel (FHSS PHY) */ 3720 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11, 3721 /* Radar found on channel */ 3722 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12, 3723 /* 11a static turbo channel only */ 3724 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13, 3725 /* Half rate channel */ 3726 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14, 3727 /* Quarter rate channel */ 3728 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15, 3729 /* HT 20 channel */ 3730 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16, 3731 /* HT 40 with extension channel above */ 3732 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17, 3733 /* HT 40 with extension channel below */ 3734 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18, 3735 /* HT 40 intolerant */ 3736 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19, 3737 /* VHT 20 channel */ 3738 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20, 3739 /* VHT 40 with extension channel above */ 3740 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21, 3741 /* VHT 40 with extension channel below */ 3742 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22, 3743 /* VHT 80 channel */ 3744 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23, 3745 /* HT 40 intolerant mark bit for ACS use */ 3746 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24, 3747 /* Channel temporarily blocked due to noise */ 3748 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25, 3749 /* VHT 160 channel */ 3750 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26, 3751 /* VHT 80+80 channel */ 3752 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27, 3753 /* HE 20 channel */ 3754 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28, 3755 /* HE 40 with extension channel above */ 3756 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29, 3757 /* HE 40 with extension channel below */ 3758 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30, 3759 /* HE 40 intolerant */ 3760 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1 << 31, 3761 }; 3762 3763 /** 3764 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a 3765 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is 3766 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2. 3767 */ 3768 enum qca_wlan_vendor_channel_prop_flags_2 { 3769 /* HE 40 intolerant mark bit for ACS use */ 3770 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0, 3771 /* HE 80 channel */ 3772 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1, 3773 /* HE 160 channel */ 3774 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2, 3775 /* HE 80+80 channel */ 3776 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3, 3777 }; 3778 3779 /** 3780 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for 3781 * each channel. This is used by 3782 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT. 3783 */ 3784 enum qca_wlan_vendor_channel_prop_flags_ext { 3785 /* Radar found on channel */ 3786 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0, 3787 /* DFS required on channel */ 3788 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1, 3789 /* DFS required on channel for 2nd band of 80+80 */ 3790 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2, 3791 /* If channel has been checked for DFS */ 3792 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3, 3793 /* Excluded in 802.11d */ 3794 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4, 3795 /* Channel Switch Announcement received on this channel */ 3796 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5, 3797 /* Ad-hoc is not allowed */ 3798 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6, 3799 /* Station only channel */ 3800 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7, 3801 /* DFS radar history for slave device (STA mode) */ 3802 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8, 3803 /* DFS CAC valid for slave device (STA mode) */ 3804 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9, 3805 }; 3806 3807 /** 3808 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel 3809 * information. These attributes are sent as part of 3810 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following 3811 * attributes correspond to a single channel. 3812 */ 3813 enum qca_wlan_vendor_external_acs_event_chan_info_attr { 3814 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0, 3815 3816 /* A bitmask (u32) with flags specified in 3817 * enum qca_wlan_vendor_channel_prop_flags. 3818 */ 3819 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1, 3820 /* A bitmask (u32) with flags specified in 3821 * enum qca_wlan_vendor_channel_prop_flags_ext. 3822 */ 3823 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2, 3824 /* frequency in MHz (u32) */ 3825 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3, 3826 /* maximum regulatory transmission power (u32) */ 3827 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4, 3828 /* maximum transmission power (u32) */ 3829 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5, 3830 /* minimum transmission power (u32) */ 3831 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6, 3832 /* regulatory class id (u8) */ 3833 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7, 3834 /* maximum antenna gain in (u8) */ 3835 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8, 3836 /* VHT segment 0 (u8) */ 3837 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9, 3838 /* VHT segment 1 (u8) */ 3839 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10, 3840 /* A bitmask (u32) with flags specified in 3841 * enum qca_wlan_vendor_channel_prop_flags_2. 3842 */ 3843 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11, 3844 3845 /* keep last */ 3846 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST, 3847 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX = 3848 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1, 3849 }; 3850 3851 /** 3852 * qca_wlan_vendor_attr_pcl: Represents attributes for 3853 * preferred channel list (PCL). These attributes are sent as part of 3854 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and 3855 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST. 3856 */ 3857 enum qca_wlan_vendor_attr_pcl { 3858 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0, 3859 3860 /* Channel number (u8) */ 3861 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1, 3862 /* Channel weightage (u8) */ 3863 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2, 3864 /* Channel frequency (u32) in MHz */ 3865 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3, 3866 /* Channel flags (u32) 3867 * bit 0 set: channel to be used for GO role, 3868 * bit 1 set: channel to be used on CLI role, 3869 * bit 2 set: channel must be considered for operating channel 3870 * selection & peer chosen operating channel should be 3871 * one of the channels with this flag set, 3872 * bit 3 set: channel should be excluded in GO negotiation 3873 */ 3874 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4, 3875 }; 3876 3877 /** 3878 * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command 3879 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by 3880 * host driver. 3881 */ 3882 enum qca_wlan_vendor_attr_external_acs_event { 3883 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0, 3884 3885 /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason. 3886 * This helps ACS module to understand why ACS needs to be started. 3887 */ 3888 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1, 3889 /* Flag attribute to indicate if driver supports spectral scanning */ 3890 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2, 3891 /* Flag attribute to indicate if 11ac is offloaded to firmware */ 3892 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3, 3893 /* Flag attribute to indicate if driver provides additional channel 3894 * capability as part of scan operation 3895 */ 3896 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4, 3897 /* Flag attribute to indicate interface status is UP */ 3898 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5, 3899 /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype 3900 * values. 3901 */ 3902 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6, 3903 /* Channel width (u8). It takes one of enum nl80211_chan_width values. 3904 * This is the upper bound of channel width. ACS logic should try to get 3905 * a channel with the specified width and if not found, look for lower 3906 * values. 3907 */ 3908 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7, 3909 /* This (u8) will hold values of one of enum nl80211_bands */ 3910 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8, 3911 /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode 3912 * values 3913 */ 3914 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9, 3915 /* Array of (u32) supported frequency list among which ACS should choose 3916 * best frequency. 3917 */ 3918 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10, 3919 /* Preferred channel list by the driver which will have array of nested 3920 * values as per enum qca_wlan_vendor_attr_pcl attribute. 3921 */ 3922 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11, 3923 /* Array of nested attribute for each channel. It takes attr as defined 3924 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr. 3925 */ 3926 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12, 3927 /* External ACS policy such as PCL mandatory, PCL preferred, etc. 3928 * It uses values defined in enum 3929 * qca_wlan_vendor_attr_external_acs_policy. 3930 */ 3931 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13, 3932 /* Reference RF Operating Parameter (RROP) availability information 3933 * (u16). It uses values defined in enum 3934 * qca_wlan_vendor_attr_rropavail_info. 3935 */ 3936 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14, 3937 3938 /* keep last */ 3939 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST, 3940 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX = 3941 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1, 3942 }; 3943 3944 /** 3945 * qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd 3946 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels 3947 * in priority order as decided after ACS operation in userspace. 3948 */ 3949 enum qca_wlan_vendor_attr_external_acs_channels { 3950 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0, 3951 3952 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason 3953 */ 3954 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1, 3955 3956 /* Array of nested values for each channel with following attributes: 3957 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND, 3958 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY, 3959 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY, 3960 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0, 3961 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1, 3962 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 3963 */ 3964 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2, 3965 /* This (u8) will hold values of one of enum nl80211_bands */ 3966 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3, 3967 /* Primary channel (u8) */ 3968 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4, 3969 /* Secondary channel (u8) used for HT 40 MHz channels */ 3970 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5, 3971 /* VHT seg0 channel (u8) */ 3972 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6, 3973 /* VHT seg1 channel (u8) */ 3974 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7, 3975 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */ 3976 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8, 3977 3978 /* keep last */ 3979 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST, 3980 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX = 3981 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1 3982 }; 3983 3984 enum qca_chip_power_save_failure_reason { 3985 /* Indicates if the reason for the failure is due to a protocol 3986 * layer/module. 3987 */ 3988 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0, 3989 /* Indicates if the reason for the failure is due to a hardware issue. 3990 */ 3991 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1, 3992 }; 3993 3994 /** 3995 * qca_attr_chip_power_save_failure: Attributes to vendor subcmd 3996 * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite 3997 * information leading to the power save failure. 3998 */ 3999 enum qca_attr_chip_power_save_failure { 4000 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0, 4001 /* Reason to cause the power save failure. 4002 * These reasons are represented by 4003 * enum qca_chip_power_save_failure_reason. 4004 */ 4005 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1, 4006 4007 /* keep last */ 4008 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST, 4009 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX = 4010 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1, 4011 }; 4012 4013 /** 4014 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various 4015 * data types for which the stats have to get collected. 4016 */ 4017 enum qca_wlan_vendor_nud_stats_data_pkt_flags { 4018 QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0, 4019 QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1, 4020 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2, 4021 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3, 4022 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4, 4023 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get 4024 * to represent the stats of respective data type. 4025 */ 4026 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5, 4027 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6, 4028 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7, 4029 }; 4030 4031 enum qca_wlan_vendor_nud_stats_set_data_pkt_info { 4032 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0, 4033 /* Represents the data packet type to be monitored (u32). 4034 * Host driver tracks the stats corresponding to each data frame 4035 * represented by these flags. 4036 * These data packets are represented by 4037 * enum qca_wlan_vendor_nud_stats_data_pkt_flags 4038 */ 4039 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1, 4040 /* Name corresponding to the DNS frame for which the respective DNS 4041 * stats have to get monitored (string). Max string length 255. 4042 */ 4043 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2, 4044 /* source port on which the respective proto stats have to get 4045 * collected (u32). 4046 */ 4047 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3, 4048 /* destination port on which the respective proto stats have to get 4049 * collected (u32). 4050 */ 4051 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4, 4052 /* IPv4 address for which the destined data packets have to be 4053 * monitored. (in network byte order), u32. 4054 */ 4055 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5, 4056 /* IPv6 address for which the destined data packets have to be 4057 * monitored. (in network byte order), 16 bytes array. 4058 */ 4059 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6, 4060 4061 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST, 4062 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX = 4063 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1, 4064 }; 4065 4066 /** 4067 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd 4068 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite 4069 * information to start/stop the NUD statistics collection. 4070 */ 4071 enum qca_attr_nud_stats_set { 4072 QCA_ATTR_NUD_STATS_SET_INVALID = 0, 4073 4074 /* Flag to start/stop the NUD statistics collection. 4075 * Start - If included, Stop - If not included 4076 */ 4077 QCA_ATTR_NUD_STATS_SET_START = 1, 4078 /* IPv4 address of the default gateway (in network byte order), u32 */ 4079 QCA_ATTR_NUD_STATS_GW_IPV4 = 2, 4080 /* Represents the list of data packet types to be monitored. 4081 * Host driver tracks the stats corresponding to each data frame 4082 * represented by these flags. 4083 * These data packets are represented by 4084 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info 4085 */ 4086 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3, 4087 4088 /* keep last */ 4089 QCA_ATTR_NUD_STATS_SET_LAST, 4090 QCA_ATTR_NUD_STATS_SET_MAX = 4091 QCA_ATTR_NUD_STATS_SET_LAST - 1, 4092 }; 4093 4094 enum qca_attr_nud_data_stats { 4095 QCA_ATTR_NUD_DATA_STATS_INVALID = 0, 4096 /* Data packet type for which the stats are collected (u32). 4097 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags 4098 */ 4099 QCA_ATTR_NUD_STATS_PKT_TYPE = 1, 4100 /* Name corresponding to the DNS frame for which the respective DNS 4101 * stats are monitored (string). Max string length 255. 4102 */ 4103 QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2, 4104 /* source port on which the respective proto stats are collected (u32). 4105 */ 4106 QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3, 4107 /* destination port on which the respective proto stats are collected 4108 * (u32). 4109 */ 4110 QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4, 4111 /* IPv4 address for which the destined data packets have to be 4112 * monitored. (in network byte order), u32. 4113 */ 4114 QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5, 4115 /* IPv6 address for which the destined data packets have to be 4116 * monitored. (in network byte order), 16 bytes array. 4117 */ 4118 QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6, 4119 /* Data packet Request count received from netdev (u32). */ 4120 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7, 4121 /* Data packet Request count sent to lower MAC from upper MAC (u32). */ 4122 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8, 4123 /* Data packet Request count received by lower MAC from upper MAC 4124 * (u32) 4125 */ 4126 QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9, 4127 /* Data packet Request count successfully transmitted by the device 4128 * (u32) 4129 */ 4130 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10, 4131 /* Data packet Response count received by lower MAC (u32) */ 4132 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11, 4133 /* Data packet Response count received by upper MAC (u32) */ 4134 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12, 4135 /* Data packet Response count delivered to netdev (u32) */ 4136 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13, 4137 /* Data Packet Response count that are dropped out of order (u32) */ 4138 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14, 4139 4140 /* keep last */ 4141 QCA_ATTR_NUD_DATA_STATS_LAST, 4142 QCA_ATTR_NUD_DATA_STATS_MAX = 4143 QCA_ATTR_NUD_DATA_STATS_LAST - 1, 4144 }; 4145 4146 /** 4147 * qca_attr_nud_stats_get: Attributes to vendor subcmd 4148 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite 4149 * NUD statistics collected when queried. 4150 */ 4151 enum qca_attr_nud_stats_get { 4152 QCA_ATTR_NUD_STATS_GET_INVALID = 0, 4153 /* ARP Request count from netdev (u32) */ 4154 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1, 4155 /* ARP Request count sent to lower MAC from upper MAC (u32) */ 4156 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2, 4157 /* ARP Request count received by lower MAC from upper MAC (u32) */ 4158 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3, 4159 /* ARP Request count successfully transmitted by the device (u32) */ 4160 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4, 4161 /* ARP Response count received by lower MAC (u32) */ 4162 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5, 4163 /* ARP Response count received by upper MAC (u32) */ 4164 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6, 4165 /* ARP Response count delivered to netdev (u32) */ 4166 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7, 4167 /* ARP Response count dropped due to out of order reception (u32) */ 4168 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8, 4169 /* Flag indicating if the station's link to the AP is active. 4170 * Active Link - If included, Inactive link - If not included 4171 */ 4172 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9, 4173 /* Flag indicating if there is any duplicate address detected (DAD). 4174 * Yes - If detected, No - If not detected. 4175 */ 4176 QCA_ATTR_NUD_STATS_IS_DAD = 10, 4177 /* List of Data packet types for which the stats are requested. 4178 * This list does not carry ARP stats as they are done by the 4179 * above attributes. Represented by enum qca_attr_nud_data_stats. 4180 */ 4181 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11, 4182 4183 /* keep last */ 4184 QCA_ATTR_NUD_STATS_GET_LAST, 4185 QCA_ATTR_NUD_STATS_GET_MAX = 4186 QCA_ATTR_NUD_STATS_GET_LAST - 1, 4187 }; 4188 4189 enum qca_wlan_btm_candidate_status { 4190 QCA_STATUS_ACCEPT = 0, 4191 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1, 4192 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2, 4193 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3, 4194 QCA_STATUS_REJECT_LOW_RSSI = 4, 4195 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5, 4196 QCA_STATUS_REJECT_UNKNOWN = 6, 4197 }; 4198 4199 enum qca_wlan_vendor_attr_btm_candidate_info { 4200 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0, 4201 4202 /* 6-byte MAC address representing the BSSID of transition candidate */ 4203 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1, 4204 /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status 4205 * returned by the driver. It says whether the BSSID provided in 4206 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by 4207 * the driver, if not it specifies the reason for rejection. 4208 * Note that the user-space can overwrite the transition reject reason 4209 * codes provided by driver based on more information. 4210 */ 4211 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2, 4212 4213 /* keep last */ 4214 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST, 4215 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX = 4216 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1, 4217 }; 4218 4219 enum qca_attr_trace_level { 4220 QCA_ATTR_TRACE_LEVEL_INVALID = 0, 4221 /* 4222 * Nested array of the following attributes: 4223 * QCA_ATTR_TRACE_LEVEL_MODULE, 4224 * QCA_ATTR_TRACE_LEVEL_MASK. 4225 */ 4226 QCA_ATTR_TRACE_LEVEL_PARAM = 1, 4227 /* 4228 * Specific QCA host driver module. Please refer to the QCA host 4229 * driver implementation to get the specific module ID. 4230 */ 4231 QCA_ATTR_TRACE_LEVEL_MODULE = 2, 4232 /* Different trace level masks represented in the QCA host driver. */ 4233 QCA_ATTR_TRACE_LEVEL_MASK = 3, 4234 4235 /* keep last */ 4236 QCA_ATTR_TRACE_LEVEL_AFTER_LAST, 4237 QCA_ATTR_TRACE_LEVEL_MAX = 4238 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1, 4239 }; 4240 4241 /** 4242 * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities 4243 */ 4244 enum qca_wlan_vendor_attr_get_he_capabilities { 4245 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0, 4246 /* Whether HE capabilities is supported 4247 * (u8 attribute: 0 = not supported, 1 = supported) 4248 */ 4249 QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1, 4250 /* HE PHY capabilities, array of 3 u32 values */ 4251 QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2, 4252 /* HE MAC capabilities (u32 attribute) */ 4253 QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3, 4254 /* HE MCS map (u32 attribute) */ 4255 QCA_WLAN_VENDOR_ATTR_HE_MCS = 4, 4256 /* Number of SS (u32 attribute) */ 4257 QCA_WLAN_VENDOR_ATTR_NUM_SS = 5, 4258 /* RU count (u32 attribute) */ 4259 QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6, 4260 /* PPE threshold data, array of 8 u32 values */ 4261 QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7, 4262 4263 /* keep last */ 4264 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST, 4265 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX = 4266 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1, 4267 }; 4268 4269 /** 4270 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters 4271 */ 4272 enum qca_wlan_vendor_attr_spectral_scan { 4273 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0, 4274 /* Number of times the chip enters spectral scan mode before 4275 * deactivating spectral scans. When set to 0, chip will enter spectral 4276 * scan mode continuously. u32 attribute. 4277 */ 4278 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1, 4279 /* Spectral scan period. Period increment resolution is 256*Tclk, 4280 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute. 4281 */ 4282 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2, 4283 /* Spectral scan priority. u32 attribute. */ 4284 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3, 4285 /* Number of FFT data points to compute. u32 attribute. */ 4286 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4, 4287 /* Enable targeted gain change before starting the spectral scan FFT. 4288 * u32 attribute. 4289 */ 4290 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5, 4291 /* Restart a queued spectral scan. u32 attribute. */ 4292 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6, 4293 /* Noise floor reference number for the calculation of bin power. 4294 * u32 attribute. 4295 */ 4296 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7, 4297 /* Disallow spectral scan triggers after TX/RX packets by setting 4298 * this delay value to roughly SIFS time period or greater. 4299 * u32 attribute. 4300 */ 4301 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8, 4302 /* Number of strong bins (inclusive) per sub-channel, below 4303 * which a signal is declared a narrow band tone. u32 attribute. 4304 */ 4305 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9, 4306 /* Specify the threshold over which a bin is declared strong (for 4307 * scan bandwidth analysis). u32 attribute. 4308 */ 4309 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10, 4310 /* Spectral scan report mode. u32 attribute. */ 4311 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11, 4312 /* RSSI report mode, if the ADC RSSI is below 4313 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR, 4314 * then FFTs will not trigger, but timestamps and summaries get 4315 * reported. u32 attribute. 4316 */ 4317 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12, 4318 /* ADC RSSI must be greater than or equal to this threshold (signed dB) 4319 * to ensure spectral scan reporting with normal error code. 4320 * u32 attribute. 4321 */ 4322 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13, 4323 /* Format of frequency bin magnitude for spectral scan triggered FFTs: 4324 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)). 4325 * u32 attribute. 4326 */ 4327 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14, 4328 /* Format of FFT report to software for spectral scan triggered FFTs. 4329 * 0: No FFT report (only spectral scan summary report) 4330 * 1: 2-dword summary of metrics for each completed FFT + spectral scan 4331 * report 4332 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled 4333 * bins (in-band) per FFT + spectral scan summary report 4334 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled 4335 * bins (all) per FFT + spectral scan summary report 4336 * u32 attribute. 4337 */ 4338 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15, 4339 /* Number of LSBs to shift out in order to scale the FFT bins. 4340 * u32 attribute. 4341 */ 4342 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16, 4343 /* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes 4344 * in dBm power. u32 attribute. 4345 */ 4346 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17, 4347 /* Per chain enable mask to select input ADC for search FFT. 4348 * u32 attribute. 4349 */ 4350 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18, 4351 /* An unsigned 64-bit integer provided by host driver to identify the 4352 * spectral scan request. This attribute is included in the scan 4353 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START 4354 * and used as an attribute in 4355 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the 4356 * specific scan to be stopped. 4357 */ 4358 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19, 4359 /* Skip interval for FFT reports. u32 attribute */ 4360 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20, 4361 /* Set to report only one set of FFT results. 4362 * u32 attribute. 4363 */ 4364 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21, 4365 /* Debug level for spectral module in driver. 4366 * 0 : Verbosity level 0 4367 * 1 : Verbosity level 1 4368 * 2 : Verbosity level 2 4369 * 3 : Matched filterID display 4370 * 4 : One time dump of FFT report 4371 * u32 attribute. 4372 */ 4373 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22, 4374 /* Type of spectral scan request. u32 attribute. 4375 * It uses values defined in enum 4376 * qca_wlan_vendor_attr_spectral_scan_request_type. 4377 */ 4378 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23, 4379 4380 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST, 4381 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX = 4382 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1, 4383 }; 4384 4385 /** 4386 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command 4387 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS. 4388 */ 4389 enum qca_wlan_vendor_attr_spectral_diag_stats { 4390 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0, 4391 /* Number of spectral TLV signature mismatches. 4392 * u64 attribute. 4393 */ 4394 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1, 4395 /* Number of spectral phyerror events with insufficient length when 4396 * parsing for secondary 80 search FFT report. u64 attribute. 4397 */ 4398 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2, 4399 /* Number of spectral phyerror events without secondary 80 4400 * search FFT report. u64 attribute. 4401 */ 4402 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3, 4403 /* Number of spectral phyerror events with vht operation segment 1 id 4404 * mismatches in search fft report. u64 attribute. 4405 */ 4406 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4, 4407 /* Number of spectral phyerror events with vht operation segment 2 id 4408 * mismatches in search fft report. u64 attribute. 4409 */ 4410 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5, 4411 4412 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST, 4413 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX = 4414 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1, 4415 }; 4416 4417 /** 4418 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command 4419 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. 4420 */ 4421 enum qca_wlan_vendor_attr_spectral_cap { 4422 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0, 4423 /* Flag attribute to indicate phydiag capability */ 4424 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1, 4425 /* Flag attribute to indicate radar detection capability */ 4426 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2, 4427 /* Flag attribute to indicate spectral capability */ 4428 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3, 4429 /* Flag attribute to indicate advanced spectral capability */ 4430 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4, 4431 /* Spectral hardware generation. u32 attribute. 4432 * It uses values defined in enum 4433 * qca_wlan_vendor_spectral_scan_cap_hw_gen. 4434 */ 4435 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5, 4436 4437 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST, 4438 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX = 4439 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1, 4440 }; 4441 4442 /** 4443 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command 4444 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. 4445 */ 4446 enum qca_wlan_vendor_attr_spectral_scan_status { 4447 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0, 4448 /* Flag attribute to indicate whether spectral scan is enabled */ 4449 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1, 4450 /* Flag attribute to indicate whether spectral scan is in progress*/ 4451 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2, 4452 4453 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST, 4454 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX = 4455 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1, 4456 }; 4457 4458 /** 4459 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for 4460 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd 4461 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the 4462 * spectral scan request types. 4463 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to 4464 * set the spectral parameters and start scan. 4465 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to 4466 * only set the spectral parameters. 4467 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to 4468 * only start the spectral scan. 4469 */ 4470 enum qca_wlan_vendor_attr_spectral_scan_request_type { 4471 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG, 4472 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN, 4473 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG, 4474 }; 4475 4476 /** 4477 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for 4478 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd 4479 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the 4480 * spectral hardware generation. 4481 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1 4482 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2 4483 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3 4484 */ 4485 enum qca_wlan_vendor_spectral_scan_cap_hw_gen { 4486 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0, 4487 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1, 4488 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2, 4489 }; 4490 4491 enum qca_wlan_vendor_tos { 4492 QCA_WLAN_VENDOR_TOS_BK = 0, 4493 QCA_WLAN_VENDOR_TOS_BE = 1, 4494 QCA_WLAN_VENDOR_TOS_VI = 2, 4495 QCA_WLAN_VENDOR_TOS_VO = 3, 4496 }; 4497 4498 /** 4499 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command 4500 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS. 4501 */ 4502 enum qca_wlan_vendor_attr_active_tos { 4503 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0, 4504 /* Type Of Service - Represented by qca_wlan_vendor_tos */ 4505 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1, 4506 /* Flag attribute representing the start (attribute included) or stop 4507 * (attribute not included) of the respective TOS. 4508 */ 4509 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2, 4510 }; 4511 4512 enum qca_wlan_vendor_hang_reason { 4513 /* Unspecified reason */ 4514 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0, 4515 /* No Map for the MAC entry for the received frame */ 4516 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1, 4517 /* Peer deletion timeout happened */ 4518 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2, 4519 /* Peer unmap timeout */ 4520 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3, 4521 /* Scan request timed out */ 4522 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4, 4523 /* Consecutive Scan attempt failures */ 4524 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5, 4525 /* Unable to get the message buffer */ 4526 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6, 4527 /* Current command processing is timedout */ 4528 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7, 4529 /* Timeout for an ACK from FW for suspend request */ 4530 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8, 4531 /* Timeout for an ACK from FW for resume request */ 4532 QCA_WLAN_HANG_RESUME_TIMEOUT = 9, 4533 /* Transmission timeout for consecutive data frames */ 4534 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10, 4535 /* Timeout for the TX completion status of data frame */ 4536 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11, 4537 /* DXE failure for TX/RX, DXE resource unavailability */ 4538 QCA_WLAN_HANG_DXE_FAILURE = 12, 4539 /* WMI pending commands exceed the maximum count */ 4540 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13, 4541 }; 4542 4543 /** 4544 * enum qca_wlan_vendor_attr_hang - Used by the vendor command 4545 * QCA_NL80211_VENDOR_SUBCMD_HANG. 4546 */ 4547 enum qca_wlan_vendor_attr_hang { 4548 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0, 4549 /* Reason for the hang - u32 attribute with a value from enum 4550 * qca_wlan_vendor_hang_reason. 4551 */ 4552 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1, 4553 4554 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST, 4555 QCA_WLAN_VENDOR_ATTR_HANG_MAX = 4556 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1, 4557 }; 4558 4559 /** 4560 * enum qca_wlan_vendor_attr_flush_pending - Attributes for 4561 * flushing pending traffic in firmware. 4562 * 4563 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address. 4564 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending 4565 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK, 4566 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to 4567 * flush packets with access category. 4568 */ 4569 enum qca_wlan_vendor_attr_flush_pending { 4570 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0, 4571 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1, 4572 QCA_WLAN_VENDOR_ATTR_AC = 2, 4573 4574 /* keep last */ 4575 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST, 4576 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX = 4577 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1, 4578 }; 4579 4580 /** 4581 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative 4582 * RF Operating Parameter (RROP) information is available, and if so, at which 4583 * point in the application-driver interaction sequence it can be retrieved by 4584 * the application from the driver. This point may vary by architecture and 4585 * other factors. This is a u16 value. 4586 */ 4587 enum qca_wlan_vendor_attr_rropavail_info { 4588 /* RROP information is unavailable. */ 4589 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE, 4590 /* RROP information is available and the application can retrieve the 4591 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS 4592 * event from the driver. 4593 */ 4594 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START, 4595 /* RROP information is available only after a vendor specific scan 4596 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has 4597 * successfully completed. The application can retrieve the information 4598 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from 4599 * the driver. 4600 */ 4601 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END, 4602 }; 4603 4604 /** 4605 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific 4606 * Representative RF Operating Parameter (RROP) information. It is sent for the 4607 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is 4608 * intended for use by external Auto Channel Selection applications. It provides 4609 * guidance values for some RF parameters that are used by the system during 4610 * operation. These values could vary by channel, band, radio, and so on. 4611 */ 4612 enum qca_wlan_vendor_attr_rrop_info { 4613 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0, 4614 4615 /* Representative Tx Power List (RTPL) which has an array of nested 4616 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst. 4617 */ 4618 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1, 4619 4620 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST, 4621 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX = 4622 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1 4623 }; 4624 4625 /** 4626 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list 4627 * entry instances in the Representative Tx Power List (RTPL). It provides 4628 * simplified power values intended for helping external Auto channel Selection 4629 * applications compare potential Tx power performance between channels, other 4630 * operating conditions remaining identical. These values are not necessarily 4631 * the actual Tx power values that will be used by the system. They are also not 4632 * necessarily the max or average values that will be used. Instead, they are 4633 * relative, summarized keys for algorithmic use computed by the driver or 4634 * underlying firmware considering a number of vendor specific factors. 4635 */ 4636 enum qca_wlan_vendor_attr_rtplinst { 4637 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0, 4638 4639 /* Primary channel number (u8) */ 4640 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1, 4641 /* Representative Tx power in dBm (s32) with emphasis on throughput. */ 4642 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2, 4643 /* Representative Tx power in dBm (s32) with emphasis on range. */ 4644 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3, 4645 4646 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST, 4647 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX = 4648 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1, 4649 }; 4650 4651 /** 4652 * enum qca_wlan_vendor_attr_config_latency_level - Level for 4653 * wlan latency module. 4654 * 4655 * There will be various of Wi-Fi functionality like scan/roaming/adaptive 4656 * power saving which would causing data exchange out of service, this 4657 * would be a big impact on latency. For latency sensitive applications over 4658 * Wi-Fi are intolerant to such operations and thus would configure them 4659 * to meet their respective needs. It is well understood by such applications 4660 * that altering the default behavior would degrade the Wi-Fi functionality 4661 * w.r.t the above pointed WLAN operations. 4662 * 4663 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL: 4664 * Default WLAN operation level which throughput orientated. 4665 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE: 4666 * Use moderate level to improve latency by limit scan duration. 4667 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW: 4668 * Use low latency level to benifit application like concurrent 4669 * downloading or video streaming via constraint scan/adaptive PS. 4670 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW: 4671 * Use ultra low latency level to benefit for gaming/voice 4672 * application via constraint scan/roaming/adaptive PS. 4673 */ 4674 enum qca_wlan_vendor_attr_config_latency_level { 4675 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0, 4676 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1, 4677 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 2, 4678 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3, 4679 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4, 4680 4681 /* keep last */ 4682 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST, 4683 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX = 4684 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1, 4685 }; 4686 4687 /** 4688 * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command 4689 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO. 4690 */ 4691 enum qca_wlan_vendor_attr_mac { 4692 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0, 4693 4694 /* MAC mode info list which has an array of nested values as 4695 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info. 4696 */ 4697 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1, 4698 4699 /* keep last */ 4700 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST, 4701 QCA_WLAN_VENDOR_ATTR_MAC_MAX = 4702 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1, 4703 }; 4704 4705 /** 4706 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected 4707 * Wi-Fi netdev interface on a respective MAC. 4708 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO. 4709 */ 4710 enum qca_wlan_vendor_attr_mac_iface_info { 4711 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0, 4712 /* Wi-Fi netdev's interface index (u32) */ 4713 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1, 4714 /* Associated frequency in MHz of the connected Wi-Fi interface (u32) */ 4715 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2, 4716 4717 /* keep last */ 4718 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST, 4719 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX = 4720 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1, 4721 }; 4722 4723 /** 4724 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information. 4725 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the 4726 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO. 4727 */ 4728 enum qca_wlan_vendor_attr_mac_info { 4729 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0, 4730 /* Hardware MAC ID associated for the MAC (u32) */ 4731 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1, 4732 /* Band supported by the MAC at a given point. 4733 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum 4734 * nl80211_band. 4735 */ 4736 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2, 4737 /* Refers to list of WLAN netdev interfaces associated with this MAC. 4738 * Represented by enum qca_wlan_vendor_attr_mac_iface_info. 4739 */ 4740 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3, 4741 4742 /* keep last */ 4743 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST, 4744 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX = 4745 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1, 4746 }; 4747 4748 /** 4749 * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command 4750 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET. 4751 */ 4752 enum qca_wlan_vendor_attr_get_logger_features { 4753 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0, 4754 /* Unsigned 32-bit enum value of wifi_logger_supported_features */ 4755 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1, 4756 /* keep last */ 4757 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST, 4758 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX = 4759 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1, 4760 }; 4761 4762 /** 4763 * enum wifi_logger_supported_features - Values for supported logger features 4764 */ 4765 enum wifi_logger_supported_features { 4766 WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)), 4767 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)), 4768 WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)), 4769 WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)), 4770 WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)), 4771 WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)), 4772 WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)), 4773 WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)), 4774 WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)), 4775 }; 4776 4777 /** 4778 * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get 4779 * capabilities features 4780 */ 4781 enum qca_wlan_tdls_caps_features_supported { 4782 WIFI_TDLS_SUPPORT = (1 << (0)), 4783 WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)), 4784 WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2)) 4785 }; 4786 4787 /** 4788 * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command 4789 * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES. 4790 */ 4791 enum qca_wlan_vendor_attr_tdls_get_capabilities { 4792 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0, 4793 /* Indicates the max concurrent sessions */ 4794 /* Unsigned 32-bit value */ 4795 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS, 4796 /* Indicates the support for features */ 4797 /* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported 4798 */ 4799 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED, 4800 4801 /* keep last */ 4802 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST, 4803 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX = 4804 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1, 4805 }; 4806 4807 /** 4808 * enum qca_wlan_offloaded_packets_sending_control - Offload packets control 4809 * command used as value for the attribute 4810 * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL. 4811 */ 4812 enum qca_wlan_offloaded_packets_sending_control { 4813 QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0, 4814 QCA_WLAN_OFFLOADED_PACKETS_SENDING_START, 4815 QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP 4816 }; 4817 4818 /** 4819 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command 4820 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS. 4821 */ 4822 enum qca_wlan_vendor_attr_offloaded_packets { 4823 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0, 4824 /* Takes valid value from the enum 4825 * qca_wlan_offloaded_packets_sending_control 4826 * Unsigned 32-bit value 4827 */ 4828 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL, 4829 /* Unsigned 32-bit value */ 4830 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID, 4831 /* array of u8 len: Max packet size */ 4832 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA, 4833 /* 6-byte MAC address used to represent source MAC address */ 4834 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR, 4835 /* 6-byte MAC address used to represent destination MAC address */ 4836 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR, 4837 /* Unsigned 32-bit value, in milli seconds */ 4838 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD, 4839 4840 /* keep last */ 4841 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST, 4842 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX = 4843 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1, 4844 }; 4845 4846 /** 4847 * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values 4848 * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL. 4849 */ 4850 enum qca_wlan_rssi_monitoring_control { 4851 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0, 4852 QCA_WLAN_RSSI_MONITORING_START, 4853 QCA_WLAN_RSSI_MONITORING_STOP, 4854 }; 4855 4856 /** 4857 * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command 4858 * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI. 4859 */ 4860 enum qca_wlan_vendor_attr_rssi_monitoring { 4861 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0, 4862 /* Takes valid value from the enum 4863 * qca_wlan_rssi_monitoring_control 4864 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control 4865 */ 4866 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL, 4867 /* Unsigned 32-bit value */ 4868 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID, 4869 /* Signed 8-bit value in dBm */ 4870 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI, 4871 /* Signed 8-bit value in dBm */ 4872 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI, 4873 /* attributes to be used/received in callback */ 4874 /* 6-byte MAC address used to represent current BSSID MAC address */ 4875 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID, 4876 /* Signed 8-bit value indicating the current RSSI */ 4877 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI, 4878 /* keep last */ 4879 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST, 4880 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX = 4881 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1, 4882 }; 4883 4884 /** 4885 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command 4886 * QCA_NL80211_VENDOR_SUBCMD_NDP. 4887 */ 4888 enum qca_wlan_vendor_attr_ndp_params { 4889 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0, 4890 /* Unsigned 32-bit value 4891 * enum of sub commands values in qca_wlan_ndp_sub_cmd 4892 */ 4893 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD, 4894 /* Unsigned 16-bit value */ 4895 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID, 4896 /* NL attributes for data used NDP SUB cmds */ 4897 /* Unsigned 32-bit value indicating a service info */ 4898 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID, 4899 /* Unsigned 32-bit value; channel frequency in MHz */ 4900 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL, 4901 /* Interface Discovery MAC address. An array of 6 Unsigned int8 */ 4902 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR, 4903 /* Interface name on which NDP is being created */ 4904 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR, 4905 /* Unsigned 32-bit value for security */ 4906 /* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */ 4907 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY, 4908 /* Unsigned 32-bit value for QoS */ 4909 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS, 4910 /* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */ 4911 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO, 4912 /* Unsigned 32-bit value for NDP instance Id */ 4913 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID, 4914 /* Array of instance Ids */ 4915 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY, 4916 /* Unsigned 32-bit value for initiator/responder NDP response code 4917 * accept/reject 4918 */ 4919 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE, 4920 /* NDI MAC address. An array of 6 Unsigned int8 */ 4921 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR, 4922 /* Unsigned 32-bit value errors types returned by driver 4923 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy 4924 * NanStatusType includes these values. 4925 */ 4926 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE, 4927 /* Unsigned 32-bit value error values returned by driver 4928 * The nan_i.h in AOSP project platform/hardware/qcom/wlan 4929 * NanInternalStatusType includes these values. 4930 */ 4931 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE, 4932 /* Unsigned 32-bit value for Channel setup configuration 4933 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy 4934 * NanDataPathChannelCfg includes these values. 4935 */ 4936 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG, 4937 /* Unsigned 32-bit value for Cipher Suite Shared Key Type */ 4938 QCA_WLAN_VENDOR_ATTR_NDP_CSID, 4939 /* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */ 4940 QCA_WLAN_VENDOR_ATTR_NDP_PMK, 4941 /* Security Context Identifier that contains the PMKID 4942 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes 4943 */ 4944 QCA_WLAN_VENDOR_ATTR_NDP_SCID, 4945 /* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */ 4946 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE, 4947 /* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */ 4948 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME, 4949 /* Unsigned 32-bit bitmap indicating schedule update 4950 * BIT_0: NSS Update 4951 * BIT_1: Channel list update 4952 */ 4953 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON, 4954 /* Unsigned 32-bit value for NSS */ 4955 QCA_WLAN_VENDOR_ATTR_NDP_NSS, 4956 /* Unsigned 32-bit value for NUMBER NDP CHANNEL */ 4957 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS, 4958 /* Unsigned 32-bit value for CHANNEL BANDWIDTH 4959 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz 4960 */ 4961 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH, 4962 /* Array of channel/band width */ 4963 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO, 4964 /* IPv6 address used by NDP (in network byte order), 16 bytes array. 4965 * This attribute is used and optional for ndp request, ndp response, 4966 * ndp indication, and ndp confirm. 4967 */ 4968 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27, 4969 /* Unsigned 16-bit value indicating transport port used by NDP. 4970 * This attribute is used and optional for ndp response, ndp indication, 4971 * and ndp confirm. 4972 */ 4973 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28, 4974 /* Unsigned 8-bit value indicating protocol used by NDP and assigned by 4975 * the Internet Assigned Numbers Authority (IANA) as per: 4976 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml 4977 * This attribute is used and optional for ndp response, ndp indication, 4978 * and ndp confirm. 4979 */ 4980 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29, 4981 /* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE. 4982 * 1:support 0:not support 4983 */ 4984 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30, 4985 4986 /* keep last */ 4987 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST, 4988 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX = 4989 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1, 4990 }; 4991 4992 enum qca_wlan_ndp_sub_cmd { 4993 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0, 4994 /* Command to create a NAN data path interface */ 4995 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1, 4996 /* Command to delete a NAN data path interface */ 4997 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2, 4998 /* Command to initiate a NAN data path session */ 4999 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3, 5000 /* Command to notify if the NAN data path session was sent */ 5001 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4, 5002 /* Command to respond to NAN data path session */ 5003 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5, 5004 /* Command to notify on the responder about the response */ 5005 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6, 5006 /* Command to initiate a NAN data path end */ 5007 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7, 5008 /* Command to notify the if end request was sent */ 5009 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8, 5010 /* Command to notify the peer about the end request */ 5011 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9, 5012 /* Command to confirm the NAN data path session is complete */ 5013 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10, 5014 /* Command to indicate the peer about the end request being received */ 5015 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11, 5016 /* Command to indicate the peer of schedule update */ 5017 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12 5018 }; 5019 5020 /** 5021 * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command 5022 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD. 5023 */ 5024 enum qca_wlan_vendor_attr_nd_offload { 5025 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0, 5026 /* Flag to set Neighbour Discovery offload */ 5027 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG, 5028 /* Keep last */ 5029 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST, 5030 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX = 5031 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1, 5032 }; 5033 5034 /** 5035 * enum packet_filter_sub_cmd - Packet filter sub commands 5036 */ 5037 enum packet_filter_sub_cmd { 5038 /** 5039 * Write packet filter program and/or data. The driver/firmware should 5040 * disable APF before writing into local buffer and re-enable APF after 5041 * writing is done. 5042 */ 5043 QCA_WLAN_SET_PACKET_FILTER = 1, 5044 /* Get packet filter feature capabilities from driver */ 5045 QCA_WLAN_GET_PACKET_FILTER = 2, 5046 /** 5047 * Write packet filter program and/or data. User space will send the 5048 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command 5049 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key 5050 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over 5051 * enable/disable is given to user space with this command. Also, 5052 * user space sends the length of program portion in the buffer within 5053 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH. 5054 */ 5055 QCA_WLAN_WRITE_PACKET_FILTER = 3, 5056 /* Read packet filter program and/or data */ 5057 QCA_WLAN_READ_PACKET_FILTER = 4, 5058 /* Enable APF feature */ 5059 QCA_WLAN_ENABLE_PACKET_FILTER = 5, 5060 /* Disable APF feature */ 5061 QCA_WLAN_DISABLE_PACKET_FILTER = 6, 5062 }; 5063 5064 /** 5065 * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by 5066 * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER. 5067 */ 5068 enum qca_wlan_vendor_attr_packet_filter { 5069 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0, 5070 /* Unsigned 32-bit enum passed using packet_filter_sub_cmd */ 5071 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD, 5072 /* Unsigned 32-bit value indicating the packet filter version */ 5073 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION, 5074 /* Unsigned 32-bit value indicating the packet filter id */ 5075 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID, 5076 /** 5077 * Unsigned 32-bit value indicating the packet filter size including 5078 * program + data. 5079 */ 5080 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE, 5081 /* Unsigned 32-bit value indicating the packet filter current offset */ 5082 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET, 5083 /* Program and/or data in bytes */ 5084 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM, 5085 /* Unsigned 32-bit value of the length of the program section in packet 5086 * filter buffer. 5087 */ 5088 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7, 5089 5090 /* keep last */ 5091 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST, 5092 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX = 5093 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1, 5094 }; 5095 5096 /** 5097 * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command 5098 * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE. 5099 */ 5100 enum qca_wlan_vendor_drv_info { 5101 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0, 5102 /* Maximum Message size info between firmware & HOST 5103 * Unsigned 32-bit value 5104 */ 5105 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE, 5106 /* keep last */ 5107 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST, 5108 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX = 5109 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1, 5110 }; 5111 5112 /** 5113 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor 5114 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS. 5115 */ 5116 enum qca_wlan_vendor_attr_wake_stats { 5117 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0, 5118 /* Unsigned 32-bit value indicating the total count of wake event */ 5119 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE, 5120 /* Array of individual wake count, each index representing wake reason 5121 */ 5122 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR, 5123 /* Unsigned 32-bit value representing wake count array */ 5124 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ, 5125 /* Unsigned 32-bit total wake count value of driver/fw */ 5126 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE, 5127 /* Array of wake stats of driver/fw */ 5128 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR, 5129 /* Unsigned 32-bit total wake count value of driver/fw */ 5130 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ, 5131 /* Unsigned 32-bit total wake count value of packets received */ 5132 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE, 5133 /* Unsigned 32-bit wake count value unicast packets received */ 5134 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT, 5135 /* Unsigned 32-bit wake count value multicast packets received */ 5136 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT, 5137 /* Unsigned 32-bit wake count value broadcast packets received */ 5138 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT, 5139 /* Unsigned 32-bit wake count value of ICMP packets */ 5140 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT, 5141 /* Unsigned 32-bit wake count value of ICMP6 packets */ 5142 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT, 5143 /* Unsigned 32-bit value ICMP6 router advertisement */ 5144 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA, 5145 /* Unsigned 32-bit value ICMP6 neighbor advertisement */ 5146 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA, 5147 /* Unsigned 32-bit value ICMP6 neighbor solicitation */ 5148 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS, 5149 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */ 5150 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT, 5151 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */ 5152 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT, 5153 /* Unsigned 32-bit wake count value of receive side multicast */ 5154 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT, 5155 /* Unsigned 32-bit wake count value of a given RSSI breach */ 5156 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT, 5157 /* Unsigned 32-bit wake count value of low RSSI */ 5158 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT, 5159 /* Unsigned 32-bit value GSCAN count */ 5160 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT, 5161 /* Unsigned 32-bit value PNO complete count */ 5162 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT, 5163 /* Unsigned 32-bit value PNO match count */ 5164 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT, 5165 /* keep last */ 5166 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST, 5167 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX = 5168 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1, 5169 }; 5170 5171 /** 5172 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set 5173 * cmd value. Used for NL attributes for data used by 5174 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 5175 */ 5176 enum qca_wlan_vendor_attr_thermal_cmd { 5177 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0, 5178 /* The value of command, driver will implement different operations 5179 * according to this value. It uses values defined in 5180 * enum qca_wlan_vendor_attr_thermal_cmd_type. 5181 * u32 attribute. 5182 */ 5183 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1, 5184 5185 /* keep last */ 5186 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST, 5187 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX = 5188 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1 5189 }; 5190 5191 /** 5192 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for 5193 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd 5194 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the 5195 * thermal command types sent to driver. 5196 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to 5197 * get thermal shutdown configuration parameters for display. Parameters 5198 * responded from driver are defined in 5199 * enum qca_wlan_vendor_attr_get_thermal_params_rsp. 5200 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to 5201 * get temperature. Host should respond with a temperature data. It is defined 5202 * in enum qca_wlan_vendor_attr_thermal_get_temperature. 5203 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal 5204 * suspend action. 5205 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal 5206 * resume action. 5207 */ 5208 enum qca_wlan_vendor_attr_thermal_cmd_type { 5209 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS, 5210 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE, 5211 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND, 5212 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME, 5213 }; 5214 5215 /** 5216 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes 5217 * to get chip temperature by user. 5218 * enum values are used for NL attributes for data used by 5219 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used 5220 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 5221 */ 5222 enum qca_wlan_vendor_attr_thermal_get_temperature { 5223 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0, 5224 /* Temperature value (degree Celsius) from driver. 5225 * u32 attribute. 5226 */ 5227 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA, 5228 5229 /* keep last */ 5230 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST, 5231 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX = 5232 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1, 5233 }; 5234 5235 /** 5236 * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes 5237 * to get configuration parameters of thermal shutdown feature. Enum values are 5238 * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data 5239 * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 5240 */ 5241 enum qca_wlan_vendor_attr_get_thermal_params_rsp { 5242 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0, 5243 /* Indicate if the thermal shutdown feature is enabled. 5244 * NLA_FLAG attribute. 5245 */ 5246 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN, 5247 /* Indicate if the auto mode is enabled. 5248 * Enable: Driver triggers the suspend/resume action. 5249 * Disable: User space triggers the suspend/resume action. 5250 * NLA_FLAG attribute. 5251 */ 5252 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN, 5253 /* Thermal resume threshold (degree Celsius). Issue the resume command 5254 * if the temperature value is lower than this threshold. 5255 * u16 attribute. 5256 */ 5257 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH, 5258 /* Thermal warning threshold (degree Celsius). FW reports temperature 5259 * to driver if it's higher than this threshold. 5260 * u16 attribute. 5261 */ 5262 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH, 5263 /* Thermal suspend threshold (degree Celsius). Issue the suspend command 5264 * if the temperature value is higher than this threshold. 5265 * u16 attribute. 5266 */ 5267 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH, 5268 /* FW reports temperature data periodically at this interval (ms). 5269 * u16 attribute. 5270 */ 5271 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE, 5272 5273 /* keep last */ 5274 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST, 5275 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX = 5276 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1, 5277 }; 5278 5279 /** 5280 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to 5281 * report thermal events from driver to user space. 5282 * enum values are used for NL attributes for data used by 5283 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command. 5284 */ 5285 enum qca_wlan_vendor_attr_thermal_event { 5286 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0, 5287 /* Temperature value (degree Celsius) from driver. 5288 * u32 attribute. 5289 */ 5290 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE, 5291 /* Indication of resume completion from power save mode. 5292 * NLA_FLAG attribute. 5293 */ 5294 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE, 5295 5296 /* keep last */ 5297 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST, 5298 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX = 5299 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1, 5300 }; 5301 5302 /** 5303 * enum he_fragmentation_val - HE fragmentation support values 5304 * Indicates level of dynamic fragmentation that is supported by 5305 * a STA as a recipient. 5306 * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2 5307 * (HE MAC Capabilities Information field) and are used in HE Capabilities 5308 * element to advertise the support. These values are validated in the driver 5309 * to check the device capability and advertised in the HE Capabilities 5310 * element. These values are used to configure testbed device to allow the 5311 * advertised hardware capabilities to be downgraded for testing purposes. 5312 * 5313 * @HE_FRAG_DISABLE: no support for dynamic fragmentation 5314 * @HE_FRAG_LEVEL1: support for dynamic fragments that are 5315 * contained within an MPDU or S-MPDU, no support for dynamic fragments 5316 * within an A-MPDU that is not an S-MPDU. 5317 * @HE_FRAG_LEVEL2: support for dynamic fragments that are 5318 * contained within an MPDU or S-MPDU and support for up to one dynamic 5319 * fragment for each MSDU, each A-MSDU if supported by the recipient, and 5320 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an 5321 * MPDU or S-MPDU. 5322 * @HE_FRAG_LEVEL3: support for dynamic fragments that are 5323 * contained within an MPDU or S-MPDU and support for multiple dynamic 5324 * fragments for each MSDU and for each A-MSDU if supported by the 5325 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic 5326 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU. 5327 */ 5328 enum he_fragmentation_val { 5329 HE_FRAG_DISABLE, 5330 HE_FRAG_LEVEL1, 5331 HE_FRAG_LEVEL2, 5332 HE_FRAG_LEVEL3, 5333 }; 5334 5335 /** 5336 * enum he_mcs_config - HE MCS support configuration 5337 * 5338 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth. 5339 * These values are used in driver to configure the HE MCS map to advertise 5340 * Tx/Rx MCS map in HE capability and these values are applied for all the 5341 * streams supported by the device. To configure MCS for different bandwidths, 5342 * vendor command needs to be sent using this attribute with appropriate value. 5343 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS 5344 * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11 5345 * send this command using HE MCS config attribute with value HE_160_MCS0_11. 5346 * These values are used to configure testbed device to allow the advertised 5347 * hardware capabilities to be downgraded for testing purposes. The enum values 5348 * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and 5349 * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map. 5350 * These values are validated in the driver before setting the MCS map and 5351 * driver returns error if the input is other than these enum values. 5352 * 5353 * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7 5354 * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9 5355 * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11 5356 * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7 5357 * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9 5358 * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11 5359 * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7 5360 * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9 5361 * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11 5362 */ 5363 enum he_mcs_config { 5364 HE_80_MCS0_7 = 0, 5365 HE_80_MCS0_9 = 1, 5366 HE_80_MCS0_11 = 2, 5367 HE_160_MCS0_7 = 4, 5368 HE_160_MCS0_9 = 5, 5369 HE_160_MCS0_11 = 6, 5370 HE_80P80_MCS0_7 = 8, 5371 HE_80P80_MCS0_9 = 9, 5372 HE_80P80_MCS0_11 = 10, 5373 }; 5374 5375 /** 5376 * enum qca_wlan_ba_session_config - BA session configuration 5377 * 5378 * Indicates the configuration values for BA session configuration attribute. 5379 * 5380 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration. 5381 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID. 5382 */ 5383 enum qca_wlan_ba_session_config { 5384 QCA_WLAN_ADD_BA = 1, 5385 QCA_WLAN_DELETE_BA = 2, 5386 }; 5387 5388 /** 5389 * enum qca_wlan_ac_type - Access category type 5390 * 5391 * Indicates the access category type value. 5392 * 5393 * @QCA_WLAN_AC_BE: BE access category 5394 * @QCA_WLAN_AC_BK: BK access category 5395 * @QCA_WLAN_AC_VI: VI access category 5396 * @QCA_WLAN_AC_VO: VO access category 5397 * @QCA_WLAN_AC_ALL: All ACs 5398 */ 5399 enum qca_wlan_ac_type { 5400 QCA_WLAN_AC_BE = 0, 5401 QCA_WLAN_AC_BK = 1, 5402 QCA_WLAN_AC_VI = 2, 5403 QCA_WLAN_AC_VO = 3, 5404 QCA_WLAN_AC_ALL = 4, 5405 }; 5406 5407 /** 5408 * enum qca_wlan_he_ltf_cfg - HE LTF configuration 5409 * 5410 * Indicates the HE LTF configuration value. 5411 * 5412 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF, 5413 * based on the GI setting 5414 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF 5415 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF 5416 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF 5417 */ 5418 enum qca_wlan_he_ltf_cfg { 5419 QCA_WLAN_HE_LTF_AUTO = 0, 5420 QCA_WLAN_HE_LTF_1X = 1, 5421 QCA_WLAN_HE_LTF_2X = 2, 5422 QCA_WLAN_HE_LTF_4X = 3, 5423 }; 5424 5425 /** 5426 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration 5427 * 5428 * Indicates the HE trigger frame MAC padding duration value. 5429 * 5430 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to 5431 * process the trigger frame. 5432 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for 5433 * trigger frame. 5434 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for 5435 * trigger frame. 5436 */ 5437 enum qca_wlan_he_mac_padding_dur { 5438 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0, 5439 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1, 5440 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2, 5441 }; 5442 5443 /** 5444 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration 5445 * 5446 * Indicates the HE Operating mode control channel width setting value. 5447 * 5448 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz 5449 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz 5450 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz 5451 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz 5452 */ 5453 enum qca_wlan_he_om_ctrl_ch_bw { 5454 QCA_WLAN_HE_OM_CTRL_BW_20M = 0, 5455 QCA_WLAN_HE_OM_CTRL_BW_40M = 1, 5456 QCA_WLAN_HE_OM_CTRL_BW_80M = 2, 5457 QCA_WLAN_HE_OM_CTRL_BW_160M = 3, 5458 }; 5459 5460 /* Attributes for data used by 5461 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION 5462 */ 5463 enum qca_wlan_vendor_attr_wifi_test_config { 5464 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0, 5465 /* 8-bit unsigned value to configure the driver to enable/disable 5466 * WMM feature. This attribute is used to configure testbed device. 5467 * 1-enable, 0-disable 5468 */ 5469 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1, 5470 5471 /* 8-bit unsigned value to configure the driver to accept/reject 5472 * the addba request from peer. This attribute is used to configure 5473 * the testbed device. 5474 * 1-accept addba, 0-reject addba 5475 */ 5476 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2, 5477 5478 /* 8-bit unsigned value to configure the driver to send or not to 5479 * send the addba request to peer. 5480 * This attribute is used to configure the testbed device. 5481 * 1-send addba, 0-do not send addba 5482 */ 5483 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3, 5484 5485 /* 8-bit unsigned value to indicate the HE fragmentation support. 5486 * Uses enum he_fragmentation_val values. 5487 * This attribute is used to configure the testbed device to 5488 * allow the advertised hardware capabilities to be downgraded 5489 * for testing purposes. 5490 */ 5491 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4, 5492 5493 /* 8-bit unsigned value to indicate the HE MCS support. 5494 * Uses enum he_mcs_config values. 5495 * This attribute is used to configure the testbed device to 5496 * allow the advertised hardware capabilities to be downgraded 5497 * for testing purposes. 5498 */ 5499 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5, 5500 5501 /* 8-bit unsigned value to configure the driver to allow or not to 5502 * allow the connection with WEP/TKIP in HT/VHT/HE modes. 5503 * This attribute is used to configure the testbed device. 5504 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP. 5505 */ 5506 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6, 5507 5508 /* 8-bit unsigned value to configure the driver to add a 5509 * new BA session or delete the existing BA session for 5510 * given TID. ADDBA command uses the buffer size and TID 5511 * configuration if user specifies the values else default 5512 * value for buffer size is used for all TIDs if the TID 5513 * also not specified. For DEL_BA command TID value is 5514 * required to process the command. 5515 * Uses enum qca_wlan_ba_session_config values. 5516 * This attribute is used to configure the testbed device. 5517 */ 5518 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7, 5519 5520 /* 16-bit unsigned value to configure the buffer size in addba 5521 * request and response frames. 5522 * This attribute is used to configure the testbed device. 5523 * The range of the value is 0 to 256. 5524 */ 5525 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8, 5526 5527 /* 8-bit unsigned value to configure the buffer size in addba 5528 * request and response frames. 5529 * This attribute is used to configure the testbed device. 5530 */ 5531 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9, 5532 5533 /* 8-bit unsigned value to configure the no ack policy. 5534 * To configure no ack policy, access category value is 5535 * required to process the command. 5536 * This attribute is used to configure the testbed device. 5537 * 1 - enable no ack, 0 - disable no ack. 5538 */ 5539 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10, 5540 5541 /* 8-bit unsigned value to configure the AC for no ack policy 5542 * This attribute is used to configure the testbed device. 5543 * Uses the enum qca_wlan_ac_type values. 5544 */ 5545 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11, 5546 5547 /* 8-bit unsigned value to configure the HE LTF 5548 * This attribute is used to configure the testbed device. 5549 * Uses the enum qca_wlan_he_ltf_cfg values. 5550 */ 5551 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12, 5552 5553 /* 8-bit unsigned value to configure the tx beamformee. 5554 * This attribute is used to configure the testbed device. 5555 * 1-enable, 0-disable. 5556 */ 5557 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13, 5558 5559 /* 8-bit unsigned value to configure the tx beamformee number 5560 * of space-time streams. 5561 * This attribute is used to configure the testbed device. 5562 * The range of the value is 0 to 8. 5563 */ 5564 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14, 5565 5566 /* 8-bit unsigned value to configure the MU EDCA params for given AC 5567 * This attribute is used to configure the testbed device. 5568 * Uses the enum qca_wlan_ac_type values. 5569 */ 5570 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15, 5571 5572 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC 5573 * To configure MU EDCA AIFSN value, MU EDCA access category value 5574 * is required to process the command. 5575 * This attribute is used to configure the testbed device. 5576 */ 5577 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16, 5578 5579 /* 8-bit unsigned value to configure the MU EDCA ECW min value for 5580 * given AC. 5581 * To configure MU EDCA ECW min value, MU EDCA access category value 5582 * is required to process the command. 5583 * This attribute is used to configure the testbed device. 5584 */ 5585 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17, 5586 5587 /* 8-bit unsigned value to configure the MU EDCA ECW max value for 5588 * given AC. 5589 * To configure MU EDCA ECW max value, MU EDCA access category value 5590 * is required to process the command. 5591 * This attribute is used to configure the testbed device. 5592 */ 5593 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18, 5594 5595 /* 8-bit unsigned value to configure the MU EDCA timer for given AC 5596 * To configure MU EDCA timer value, MU EDCA access category value 5597 * is required to process the command. 5598 * This attribute is used to configure the testbed device. 5599 */ 5600 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19, 5601 5602 /* 8-bit unsigned value to configure the HE trigger frame MAC padding 5603 * duration. 5604 * This attribute is used to configure the testbed device. 5605 * Uses the enum qca_wlan_he_mac_padding_dur values. 5606 */ 5607 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20, 5608 5609 /* 8-bit unsigned value to override the MU EDCA params to defaults 5610 * regardless of the AP beacon MU EDCA params. If it is enabled use 5611 * the default values else use the MU EDCA params from AP beacon. 5612 * This attribute is used to configure the testbed device. 5613 * 1-enable, 0-disable. 5614 */ 5615 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21, 5616 5617 /* 8-bit unsigned value to configure the support for receiving 5618 * an MPDU that contains an operating mode control subfield. 5619 * This attribute is used to configure the testbed device. 5620 * 1-enable, 0-disable. 5621 */ 5622 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22, 5623 5624 /* Nested attribute values required to setup the TWT session. 5625 * enum qca_wlan_vendor_attr_twt_setup provides the necessary 5626 * information to set up the session. It contains broadcast flags, 5627 * set_up flags, trigger value, flow type, flow ID, wake interval 5628 * exponent, protection, target wake time, wake duration, wake interval 5629 * mantissa. These nested attributes are used to setup a host triggered 5630 * TWT session. 5631 */ 5632 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23, 5633 5634 /* This nested attribute is used to terminate the current TWT session. 5635 * It does not currently carry any attributes. 5636 */ 5637 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24, 5638 5639 /* This nested attribute is used to suspend the current TWT session. 5640 * It does not currently carry any attributes. 5641 */ 5642 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25, 5643 5644 /* Nested attribute values to indicate the request for resume. 5645 * This attribute is used to resume the TWT session. 5646 * enum qca_wlan_vendor_attr_twt_resume provides the necessary 5647 * parameters required to resume the TWT session. 5648 */ 5649 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26, 5650 5651 /* 8-bit unsigned value to set the HE operating mode control 5652 * (OM CTRL) Channel Width subfield. 5653 * The Channel Width subfield indicates the operating channel width 5654 * supported by the STA for both reception and transmission. 5655 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values. 5656 * This setting is cleared with the 5657 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 5658 * flag attribute to reset defaults. 5659 * This attribute is used to configure the testbed device. 5660 */ 5661 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27, 5662 5663 /* 8-bit unsigned value to configure the number of spatial 5664 * streams in HE operating mode control field. 5665 * This setting is cleared with the 5666 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 5667 * flag attribute to reset defaults. 5668 * This attribute is used to configure the testbed device. 5669 */ 5670 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28, 5671 5672 /* Flag attribute to configure the UL MU disable bit in 5673 * HE operating mode control field. 5674 * This setting is cleared with the 5675 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 5676 * flag attribute to reset defaults. 5677 * This attribute is used to configure the testbed device. 5678 */ 5679 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29, 5680 5681 /* Flag attribute to clear the previously set HE operating mode 5682 * control field configuration. 5683 * This attribute is used to configure the testbed device to reset 5684 * defaults to clear any previously set HE operating mode control 5685 * field configuration. 5686 */ 5687 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30, 5688 5689 /* 8-bit unsigned value to configure HE single user PPDU 5690 * transmission. By default this setting is disabled and it 5691 * is disabled in the reset defaults of the device configuration. 5692 * This attribute is used to configure the testbed device. 5693 * 1-enable, 0-disable 5694 */ 5695 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31, 5696 5697 /* 8-bit unsigned value to configure action frame transmission 5698 * in HE trigger based PPDU transmission. 5699 * By default this setting is disabled and it is disabled in 5700 * the reset defaults of the device configuration. 5701 * This attribute is used to configure the testbed device. 5702 * 1-enable, 0-disable 5703 */ 5704 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32, 5705 5706 /* keep last */ 5707 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST, 5708 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX = 5709 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1, 5710 }; 5711 5712 /** 5713 * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command 5714 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER. 5715 * The user can add/delete the filter by specifying the BSSID/STA MAC address in 5716 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in 5717 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in 5718 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the 5719 * statistics of an unassociated station by specifying the MAC address in 5720 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in 5721 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in 5722 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get 5723 * the statistics of all unassociated stations by specifying the Broadcast MAC 5724 * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with 5725 * above procedure. In the response, driver shall specify statistics 5726 * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS. 5727 */ 5728 enum qca_wlan_vendor_attr_bss_filter { 5729 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0, 5730 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1, 5731 /* Other BSS filter type, unsigned 8 bit value. One of the values 5732 * in enum qca_wlan_vendor_bss_filter_type. 5733 */ 5734 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2, 5735 /* Other BSS filter action, unsigned 8 bit value. One of the values 5736 * in enum qca_wlan_vendor_bss_filter_action. 5737 */ 5738 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3, 5739 /* Array of nested attributes where each entry is the statistics 5740 * information of the specified station that belong to another BSS. 5741 * Attributes for each entry are taken from enum 5742 * qca_wlan_vendor_bss_filter_sta_stats. 5743 * Other BSS station configured in 5744 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type 5745 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA. 5746 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER 5747 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET. 5748 */ 5749 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4, 5750 5751 /* keep last */ 5752 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST, 5753 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX = 5754 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1, 5755 }; 5756 5757 /** 5758 * enum qca_wlan_vendor_bss_filter_type - Type of 5759 * filter used in other BSS filter operations. Used by the vendor command 5760 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER. 5761 * 5762 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter 5763 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter 5764 */ 5765 enum qca_wlan_vendor_bss_filter_type { 5766 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID, 5767 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA, 5768 }; 5769 5770 /** 5771 * enum qca_wlan_vendor_bss_filter_action - Type of 5772 * action in other BSS filter operations. Used by the vendor command 5773 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER. 5774 * 5775 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter 5776 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter 5777 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics 5778 */ 5779 enum qca_wlan_vendor_bss_filter_action { 5780 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD, 5781 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL, 5782 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET, 5783 }; 5784 5785 /** 5786 * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for 5787 * the statistics of a specific unassociated station belonging to another BSS. 5788 * The statistics provides information of the unassociated station 5789 * filtered by other BSS operation - such as MAC, signal value. 5790 * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER. 5791 * 5792 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station. 5793 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength 5794 * of the station. Unsigned 8 bit number containing RSSI. 5795 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host 5796 * driver for the last received RSSI. Unsigned 64 bit number containing 5797 * nanoseconds from the boottime. 5798 */ 5799 enum qca_wlan_vendor_bss_filter_sta_stats { 5800 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0, 5801 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1, 5802 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2, 5803 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3, 5804 5805 /* keep last */ 5806 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST, 5807 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX = 5808 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1 5809 }; 5810 5811 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute 5812 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command 5813 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. 5814 */ 5815 enum qca_wlan_nan_ext_subcmd_type { 5816 /* Subcmd of type NAN Enable Request */ 5817 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1, 5818 /* Subcmd of type NAN Disable Request */ 5819 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2, 5820 }; 5821 5822 /** 5823 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command 5824 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. 5825 */ 5826 enum qca_wlan_vendor_attr_nan_params { 5827 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0, 5828 /* Carries NAN command for firmware component. Every vendor command 5829 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a 5830 * payload containing the NAN command. NLA_BINARY attribute. 5831 */ 5832 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1, 5833 /* Indicates the type of NAN command sent with 5834 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type 5835 * describes the possible range of values. This attribute is mandatory 5836 * if the command being issued is either 5837 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or 5838 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute. 5839 */ 5840 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2, 5841 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz 5842 * band. This attribute is mandatory when command type is 5843 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute. 5844 */ 5845 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3, 5846 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz 5847 * band. This attribute is optional and should be included when command 5848 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery 5849 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute. 5850 */ 5851 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4, 5852 5853 /* keep last */ 5854 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST, 5855 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX = 5856 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1 5857 }; 5858 5859 /** 5860 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for 5861 * TWT (Target Wake Time) setup request. These attributes are sent as part of 5862 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and 5863 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. 5864 * 5865 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute. 5866 * Disable (flag attribute not present) - Individual TWT 5867 * Enable (flag attribute present) - Broadcast TWT. 5868 * Individual means the session is between the STA and the AP. 5869 * This session is established using a separate negotiation between 5870 * STA and AP. 5871 * Broadcast means the session is across multiple STAs and an AP. The 5872 * configuration parameters are announced in Beacon frames by the AP. 5873 * 5874 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8). 5875 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to 5876 * specify the TWT request type 5877 * 5878 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute 5879 * Enable (flag attribute present) - TWT with trigger support. 5880 * Disable (flag attribute not present) - TWT without trigger support. 5881 * Trigger means the AP will send the trigger frame to allow STA to send data. 5882 * Without trigger, the STA will wait for the MU EDCA timer before 5883 * transmitting the data. 5884 * 5885 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8) 5886 * 0 - Announced TWT - In this mode, STA may skip few service periods to 5887 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS 5888 * NULL frame to AP. 5889 * 1 - Unannounced TWT - The STA will wakeup during every SP. 5890 * 5891 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8) 5892 * Flow ID is the unique identifier for each TWT session. 5893 * Currently this is not required and dialog ID will be set to zero. 5894 * 5895 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8) 5896 * This attribute (exp) is used along with the mantissa to derive the 5897 * wake interval using the following formula: 5898 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis 5899 * Wake interval is the interval between 2 successive SP. 5900 * 5901 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute 5902 * Enable (flag attribute present) - Protection required. 5903 * Disable (flag attribute not present) - Protection not required. 5904 * If protection is enabled, then the AP will use protection 5905 * mechanism using RTS/CTS to self to reserve the airtime. 5906 * 5907 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32) 5908 * This attribute is used as the SP offset which is the offset from 5909 * TSF after which the wake happens. The units are in microseconds. If 5910 * this attribute is not provided, then the value will be set to zero. 5911 * 5912 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32) 5913 * This is the duration of the service period. The units are in TU. 5914 * 5915 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32) 5916 * This attribute is used to configure wake interval mantissa. 5917 * The units are in TU. 5918 */ 5919 enum qca_wlan_vendor_attr_twt_setup { 5920 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0, 5921 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1, 5922 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2, 5923 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3, 5924 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4, 5925 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5, 5926 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6, 5927 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7, 5928 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8, 5929 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9, 5930 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10, 5931 5932 /* keep last */ 5933 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST, 5934 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX = 5935 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1, 5936 }; 5937 5938 /** 5939 * enum qca_wlan_vendor_attr_twt_resume: Represents attributes for 5940 * TWT (Target Wake Time) resume request. These attributes are sent as part of 5941 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and 5942 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. 5943 * 5944 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8) 5945 * This attribute is used as the SP offset which is the offset from 5946 * TSF after which the wake happens. The units are in microseconds. 5947 * If this attribute is not provided, then the value will be set to 5948 * zero. 5949 * 5950 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32) 5951 * This attribute represents the next TWT subfield size. 5952 */ 5953 enum qca_wlan_vendor_attr_twt_resume { 5954 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0, 5955 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1, 5956 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2, 5957 5958 /* keep last */ 5959 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST, 5960 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX = 5961 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1, 5962 }; 5963 5964 /** 5965 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8) 5966 * Represents the setup type being requested for TWT. 5967 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT 5968 * parameters but relying on AP to fill the parameters during the negotiation. 5969 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested 5970 * values which the AP may accept or AP may provide alternative parameters 5971 * which the STA may accept. 5972 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any 5973 * alternate parameters than the requested ones. 5974 */ 5975 enum qca_wlan_vendor_twt_setup_req_type { 5976 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1, 5977 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2, 5978 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3, 5979 }; 5980 5981 /** 5982 * enum qca_wlan_roam_scan_event_type - Type of roam scan event 5983 * 5984 * Indicates the type of roam scan event sent by firmware/driver. 5985 * 5986 * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type. 5987 * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type. 5988 */ 5989 enum qca_wlan_roam_scan_event_type { 5990 QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0, 5991 QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1, 5992 }; 5993 5994 /** 5995 * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason 5996 * 5997 * Indicates the reason for triggering roam scan by firmware/driver. 5998 * 5999 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP. 6000 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate. 6001 */ 6002 enum qca_wlan_roam_scan_trigger_reason { 6003 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0, 6004 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1, 6005 }; 6006 6007 /** 6008 * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report 6009 * roam scan related details from driver/firmware to user space. enum values 6010 * are used for NL attributes sent with 6011 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command. 6012 */ 6013 enum qca_wlan_vendor_attr_roam_scan { 6014 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0, 6015 /* Encapsulates type of roam scan event being reported. enum 6016 * qca_wlan_roam_scan_event_type describes the possible range of 6017 * values. u32 attribute. 6018 */ 6019 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1, 6020 /* Encapsulates reason for triggering roam scan. enum 6021 * qca_wlan_roam_scan_trigger_reason describes the possible range of 6022 * values. u32 attribute. 6023 */ 6024 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2, 6025 6026 /* keep last */ 6027 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST, 6028 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX = 6029 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1, 6030 }; 6031 6032 /** 6033 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by 6034 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor 6035 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG. 6036 */ 6037 enum qca_wlan_vendor_cfr_method { 6038 /* CFR method using QOS Null frame */ 6039 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0, 6040 }; 6041 6042 /** 6043 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command 6044 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer 6045 * Channel Frequency Response capture parameters and enable periodic CFR 6046 * capture. 6047 */ 6048 enum qca_wlan_vendor_peer_cfr_capture_attr { 6049 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0, 6050 /* 6-byte MAC address of the peer. 6051 * This attribute is mandatory. 6052 */ 6053 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1, 6054 /* Enable peer CFR Capture, flag attribute. 6055 * This attribute is mandatory to enable peer CFR capture. 6056 * If this attribute is not present, peer CFR capture is disabled. 6057 */ 6058 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2, 6059 /* BW of measurement, attribute uses the values in enum nl80211_chan_width 6060 * Supported values: 20, 40, 80, 80+80, 160. 6061 * Note that all targets may not support all bandwidths. 6062 * u8 attribute. This attribute is mandatory if attribute 6063 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 6064 */ 6065 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3, 6066 /* Periodicity of CFR measurement in msec. 6067 * Periodicity should be a multiple of Base timer. 6068 * Current Base timer value supported is 10 msecs (default). 6069 * 0 for one shot capture. u32 attribute. 6070 * This attribute is mandatory if attribute 6071 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 6072 */ 6073 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4, 6074 /* Method used to capture Channel Frequency Response. 6075 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method. 6076 * u8 attribute. This attribute is mandatory if attribute 6077 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 6078 */ 6079 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5, 6080 /* Enable periodic CFR capture, flag attribute. 6081 * This attribute is mandatory to enable Periodic CFR capture. 6082 * If this attribute is not present, periodic CFR capture is disabled. 6083 */ 6084 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6, 6085 6086 /* Keep last */ 6087 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST, 6088 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX = 6089 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1, 6090 }; 6091 6092 /** 6093 * enum qca_wlan_throughput_level - Current throughput level 6094 * 6095 * Indicates the current level of throughput calculated by the driver. The 6096 * driver may choose different thresholds to decide whether the throughput level 6097 * is low or medium or high based on variety of parameters like physical link 6098 * capacity of the current connection, the number of packets being dispatched 6099 * per second, etc. The throughput level events might not be consistent with the 6100 * actual current throughput value being observed. 6101 * 6102 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput 6103 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput 6104 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput 6105 */ 6106 enum qca_wlan_throughput_level { 6107 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0, 6108 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1, 6109 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2, 6110 }; 6111 6112 /** 6113 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to 6114 * report throughput changes from the driver to user space. enum values are used 6115 * for netlink attributes sent with 6116 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command. 6117 */ 6118 enum qca_wlan_vendor_attr_throughput_change { 6119 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0, 6120 /* Indicates the direction of throughput in which the change is being 6121 * reported. u8 attribute. Value is 0 for TX and 1 for RX. 6122 */ 6123 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1, 6124 /* Indicates the newly observed throughput level. enum 6125 * qca_wlan_throughput_level describes the possible range of values. 6126 * u8 attribute. 6127 */ 6128 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2, 6129 /* Indicates the driver's guidance on the new value to be set to 6130 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The 6131 * driver may optionally include this attribute. 6132 */ 6133 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3, 6134 /* Indicates the driver's guidance on the new value to be set to 6135 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible 6136 * values are from -31 to 31. The driver may optionally include this 6137 * attribute. 6138 */ 6139 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4, 6140 /* Indicates the driver's guidance on the new value to be set to 6141 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may 6142 * optionally include this attribute. 6143 */ 6144 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5, 6145 6146 /* keep last */ 6147 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST, 6148 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX = 6149 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1, 6150 }; 6151 6152 /** 6153 * enum qca_coex_config_profiles - This enum defines different types of 6154 * traffic streams that can be prioritized one over the other during coex 6155 * scenarios. 6156 * The types defined in this enum are categorized in the below manner. 6157 * 0 - 31 values corresponds to WLAN 6158 * 32 - 63 values corresponds to BT 6159 * 64 - 95 values corresponds to Zigbee 6160 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA 6161 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA 6162 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA 6163 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA 6164 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA 6165 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP 6166 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP 6167 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP 6168 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP 6169 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP 6170 * @QCA_BT_A2DP: Prioritize BT A2DP 6171 * @QCA_BT_BLE: Prioritize BT BLE 6172 * @QCA_BT_SCO: Prioritize BT SCO 6173 * @QCA_ZB_LOW: Prioritize Zigbee Low 6174 * @QCA_ZB_HIGH: Prioritize Zigbee High 6175 */ 6176 enum qca_coex_config_profiles { 6177 /* 0 - 31 corresponds to WLAN */ 6178 QCA_WIFI_STA_DISCOVERY = 0, 6179 QCA_WIFI_STA_CONNECTION = 1, 6180 QCA_WIFI_STA_CLASS_3_MGMT = 2, 6181 QCA_WIFI_STA_DATA = 3, 6182 QCA_WIFI_STA_ALL = 4, 6183 QCA_WIFI_SAP_DISCOVERY = 5, 6184 QCA_WIFI_SAP_CONNECTION = 6, 6185 QCA_WIFI_SAP_CLASS_3_MGMT = 7, 6186 QCA_WIFI_SAP_DATA = 8, 6187 QCA_WIFI_SAP_ALL = 9, 6188 /* 32 - 63 corresponds to BT */ 6189 QCA_BT_A2DP = 32, 6190 QCA_BT_BLE = 33, 6191 QCA_BT_SCO = 34, 6192 /* 64 - 95 corresponds to Zigbee */ 6193 QCA_ZB_LOW = 64, 6194 QCA_ZB_HIGH = 65 6195 }; 6196 6197 /** 6198 * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes 6199 * 6200 * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable 6201 * length array of 8-bit values from enum qca_coex_config_profiles. 6202 * FW will prioritize the profiles in the order given in the array encapsulated 6203 * in this attribute. 6204 * For example: 6205 * ----------------------------------------------------------------------- 6206 * | 1 | 34 | 32 | 65 | 6207 * ----------------------------------------------------------------------- 6208 * If the attribute contains the values defined in above array then it means 6209 * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH. 6210 * 2) BT_SCO has priority over BT_A2DP. 6211 * 3) BT_A2DP has priority over ZIGBEE HIGH. 6212 * Profiles which are not listed in this array shall not be preferred over the 6213 * profiles which are listed in the array as a part of this attribute. 6214 */ 6215 enum qca_vendor_attr_coex_config { 6216 QCA_VENDOR_ATTR_COEX_CONFIG_INVALID = 0, 6217 QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES = 1, 6218 6219 /* Keep last */ 6220 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST, 6221 QCA_VENDOR_ATTR_COEX_CONFIG_MAX = 6222 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1, 6223 }; 6224 6225 /** 6226 * enum qca_wlan_vendor_attr_link_properties - Represent the link properties. 6227 * 6228 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer 6229 * (STA/AP) for the connected link. 6230 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a 6231 * &struct nl80211_sta_flag_update for the respective connected link. MAC 6232 * address of the peer represented by 6233 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR. 6234 */ 6235 enum qca_wlan_vendor_attr_link_properties { 6236 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0, 6237 /* 1 - 3 are reserved */ 6238 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4, 6239 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5, 6240 6241 /* Keep last */ 6242 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST, 6243 QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX = 6244 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1, 6245 }; 6246 6247 #endif /* QCA_VENDOR_H */ 6248