1 /* 2 * Qualcomm Atheros OUI and vendor specific assignments 3 * Copyright (c) 2014-2017, Qualcomm Atheros, Inc. 4 * Copyright (c) 2018-2020, 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 #ifndef BIT 23 #define BIT(x) (1U << (x)) 24 #endif 25 26 /** 27 * enum qca_radiotap_vendor_ids - QCA radiotap vendor namespace IDs 28 */ 29 enum qca_radiotap_vendor_ids { 30 QCA_RADIOTAP_VID_WLANTEST = 0, 31 }; 32 33 /** 34 * enum qca_nl80211_vendor_subcmds - QCA nl80211 vendor command identifiers 35 * 36 * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Reserved value 0 37 * 38 * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test command/event 39 * 40 * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Set roaming policy for drivers that use 41 * internal BSS-selection. This command uses 42 * @QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY to specify the new roaming policy 43 * for the current connection (i.e., changes policy set by the nl80211 44 * Connect command). @QCA_WLAN_VENDOR_ATTR_MAC_ADDR may optionally be 45 * included to indicate which BSS to use in case roaming is disabled. 46 * 47 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Recommendation of frequency 48 * ranges to avoid to reduce issues due to interference or internal 49 * co-existence information in the driver. These frequencies aim to 50 * minimize the traffic but not to totally avoid the traffic. That said 51 * for a P2P use case, these frequencies are allowed for the P2P 52 * discovery/negotiation but avoid the group to get formed on these 53 * frequencies. The event data structure is defined in 54 * struct qca_avoid_freq_list. 55 * 56 * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support 57 * for DFS offloading. 58 * 59 * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass 60 * NAN Request/Response and NAN Indication messages. These messages are 61 * interpreted between the framework and the firmware component. While 62 * sending the command from userspace to the driver, payload is not 63 * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN 64 * is used when receiving vendor events in userspace from the driver. 65 * 66 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Set key operation that can be 67 * used to configure PMK to the driver even when not connected. This can 68 * be used to request offloading of key management operations. Only used 69 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD. 70 * 71 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: An extended version of 72 * NL80211_CMD_ROAM event with optional attributes including information 73 * from offloaded key management operation. Uses 74 * enum qca_wlan_vendor_attr_roam_auth attributes. Only used 75 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD. 76 * 77 * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to 78 * invoke the ACS function in device and pass selected channels to 79 * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes. 80 * 81 * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Command to get the features 82 * supported by the driver. enum qca_wlan_vendor_features defines 83 * the possible features. 84 * 85 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver, 86 * which supports DFS offloading, to indicate a channel availability check 87 * start. 88 * 89 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver, 90 * which supports DFS offloading, to indicate a channel availability check 91 * completion. 92 * 93 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver, 94 * which supports DFS offloading, to indicate that the channel availability 95 * check aborted, no change to the channel status. 96 * 97 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by 98 * driver, which supports DFS offloading, to indicate that the 99 * Non-Occupancy Period for this channel is over, channel becomes usable. 100 * 101 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver, 102 * which supports DFS offloading, to indicate a radar pattern has been 103 * detected. The channel is now unusable. 104 * 105 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: Get information from the driver. 106 * Attributes defined in enum qca_wlan_vendor_attr_get_wifi_info. 107 * 108 * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: Get the feature bitmap 109 * based on enum wifi_logger_supported_features. Attributes defined in 110 * enum qca_wlan_vendor_attr_get_logger_features. 111 * 112 * @QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA: Get the ring data from a particular 113 * logger ring, QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID is passed as the 114 * attribute for this command. Attributes defined in 115 * enum qca_wlan_vendor_attr_wifi_logger_start. 116 * 117 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES: Get the supported TDLS 118 * capabilities of the driver, parameters includes the attributes defined 119 * in enum qca_wlan_vendor_attr_tdls_get_capabilities. 120 * 121 * @QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS: Vendor command used to offload 122 * sending of certain periodic IP packet to firmware, attributes defined in 123 * enum qca_wlan_vendor_attr_offloaded_packets. 124 * 125 * @QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI: Command used to configure RSSI 126 * monitoring, defines min and max RSSI which are configured for RSSI 127 * monitoring. Also used to notify the RSSI breach and provides the BSSID 128 * and RSSI value that was breached. Attributes defined in 129 * enum qca_wlan_vendor_attr_rssi_monitoring. 130 * 131 * @QCA_NL80211_VENDOR_SUBCMD_NDP: Command used for performing various NAN 132 * Data Path (NDP) related operations, attributes defined in 133 * enum qca_wlan_vendor_attr_ndp_params. 134 * 135 * @QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD: Command used to enable/disable 136 * Neighbour Discovery offload, attributes defined in 137 * enum qca_wlan_vendor_attr_nd_offload. 138 * 139 * @QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER: Used to set/get the various 140 * configuration parameter for BPF packet filter, attributes defined in 141 * enum qca_wlan_vendor_attr_packet_filter. 142 * 143 * @QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE: Gets the driver-firmware 144 * maximum supported size, attributes defined in 145 * enum qca_wlan_vendor_drv_info. 146 * 147 * @QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS: Command to get various 148 * data about wake reasons and datapath IP statistics, attributes defined 149 * in enum qca_wlan_vendor_attr_wake_stats. 150 * 151 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG: Command used to set configuration 152 * for IEEE 802.11 communicating outside the context of a basic service 153 * set, called OCB command. Uses the attributes defines in 154 * enum qca_wlan_vendor_attr_ocb_set_config. 155 * 156 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME: Command used to set OCB 157 * UTC time. Use the attributes defines in 158 * enum qca_wlan_vendor_attr_ocb_set_utc_time. 159 * 160 * @QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT: Command used to start 161 * sending OCB timing advert frames. Uses the attributes defines in 162 * enum qca_wlan_vendor_attr_ocb_start_timing_advert. 163 * 164 * @QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT: Command used to stop 165 * OCB timing advert. Uses the attributes defines in 166 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert. 167 * 168 * @QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER: Command used to get TSF 169 * timer value. Uses the attributes defines in 170 * enum qca_wlan_vendor_attr_ocb_get_tsf_resp. 171 * 172 * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: Command/event to update the 173 * link properties of the respective interface. As an event, is used 174 * to notify the connected station's status. The attributes for this 175 * command are defined in enum qca_wlan_vendor_attr_link_properties. 176 * 177 * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the enabled band(s) 178 * to the driver. This command sets the band(s) through either the 179 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or 180 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK (or both). 181 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE refers enum qca_set_band as unsigned 182 * integer values and QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 183 * bit unsigned bitmask values. The allowed values for 184 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are limited to QCA_SETBAND_AUTO, 185 * QCA_SETBAND_5G, and QCA_SETBAND_2G. Other values/bitmasks are valid for 186 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The attribute 187 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the recommendation 188 * is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the both attributes 189 * are included for backwards compatibility, the configurations through 190 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK will take the precedence with drivers 191 * that support both attributes. 192 * 193 * @QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY: This command is used to configure 194 * DFS policy and channel hint for ACS operation. This command uses the 195 * attributes defined in enum qca_wlan_vendor_attr_acs_config and 196 * enum qca_acs_dfs_mode. 197 * 198 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to 199 * start the P2P Listen offload function in device and pass the listen 200 * channel, period, interval, count, device types, and vendor specific 201 * information elements to the device driver and firmware. 202 * Uses the attributes defines in 203 * enum qca_wlan_vendor_attr_p2p_listen_offload. 204 * 205 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to 206 * indicate stop request/response of the P2P Listen offload function in 207 * device. As an event, it indicates either the feature stopped after it 208 * was already running or feature has actually failed to start. Uses the 209 * attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload. 210 * 211 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts 212 * beaconing, this sub command provides the driver, the frequencies on the 213 * 5 GHz band to check for any radar activity. Driver selects one channel 214 * from this priority list provided through 215 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts 216 * to check for radar activity on it. If no radar activity is detected 217 * during the channel availability check period, driver internally switches 218 * to the selected frequency of operation. If the frequency is zero, driver 219 * internally selects a channel. The status of this conditional switch is 220 * indicated through an event using the same sub command through 221 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are 222 * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch. 223 * 224 * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the 225 * attributes defined in enum qca_wlan_gpio_attr. 226 * 227 * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities. 228 * This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which 229 * capabilities are to be fetched and other 230 * enum qca_wlan_vendor_attr_get_hw_capability attributes to return the 231 * requested capabilities. 232 * 233 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension. 234 * enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this 235 * command and event. 236 * 237 * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for 238 * indoor location features. Capabilities are reported in 239 * QCA_WLAN_VENDOR_ATTR_LOC_CAPA. 240 * 241 * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM 242 * (fine timing measurement) session with one or more peers. 243 * Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and 244 * peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS. 245 * On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT 246 * events will be reported, followed by 247 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate 248 * end of session. 249 * Refer to IEEE P802.11-REVmc/D7.0, 11.24.6 250 * 251 * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session. 252 * A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with 253 * status code indicating session was aborted. 254 * 255 * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement 256 * results for one peer. Results are reported in 257 * QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS. 258 * 259 * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when 260 * FTM session is finished, either successfully or aborted by 261 * request. 262 * 263 * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder 264 * mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether 265 * to enable or disable the responder. LCI/LCR reports can be 266 * configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and 267 * QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple 268 * times to update the LCI/LCR reports. 269 * 270 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of 271 * arrival) measurement with a single peer. Specify peer MAC address in 272 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in 273 * QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel 274 * scan results cache and use the frequency from there). 275 * Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE. 276 * Measurement result is reported in 277 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event. 278 * 279 * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify 280 * peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR. 281 * 282 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports 283 * the AOA measurement result. 284 * Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR. 285 * success/failure status is reported in 286 * QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS. 287 * Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT. 288 * The antenna array(s) used in the measurement are reported in 289 * QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK. 290 * 291 * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given 292 * data as per the given parameters. 293 * 294 * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a 295 * specific chain. 296 * 297 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level 298 * configuration for a DMG RF sector. Specify sector index in 299 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in 300 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules 301 * to return sector information for in 302 * QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration 303 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the 304 * exact time where information was captured in 305 * QCA_WLAN_VENDOR_ATTR_TSF. 306 * 307 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level 308 * configuration for a DMG RF sector. Specify sector index in 309 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in 310 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration 311 * for one or more DMG RF modules in 312 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. 313 * 314 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected 315 * DMG RF sector for a station. This is the sector that the HW 316 * will use to communicate with the station. Specify the MAC address 317 * of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not 318 * needed for unassociated station). Specify sector type to return in 319 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected 320 * sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX. 321 * Also return the exact time where the information was captured 322 * in QCA_WLAN_VENDOR_ATTR_TSF. 323 * 324 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the 325 * selected DMG RF sector for a station. This is the sector that 326 * the HW will use to communicate with the station. 327 * Specify the MAC address of associated station/AP/PCP in 328 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in 329 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index 330 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX. 331 * The selected sector will be locked such that it will not be 332 * modified like it normally does (for example when station 333 * moves around). To unlock the selected sector for a station 334 * pass the special value 0xFFFF in the sector index. To unlock 335 * all connected stations also pass a broadcast MAC address. 336 * 337 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior 338 * in the host driver. The different TDLS configurations are defined 339 * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration. 340 * 341 * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Query device IEEE 802.11ax HE 342 * capabilities. The response uses the attributes defined in 343 * enum qca_wlan_vendor_attr_get_he_capabilities. 344 * 345 * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was 346 * started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command 347 * carries the scan cookie of the corresponding scan request. The scan 348 * cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE. 349 * 350 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific 351 * Absorption Rate (SAR) power limits. A critical regulation for 352 * FCC compliance, OEMs require methods to set SAR limits on TX 353 * power of WLAN/WWAN. enum qca_vendor_attr_sar_limits 354 * attributes are used with this command. 355 * 356 * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the 357 * host driver for offloading the implementation of Auto Channel Selection 358 * (ACS) to an external user space entity. This interface is used as the 359 * event from the host driver to the user space entity and also as the 360 * request from the user space entity to the host driver. The event from 361 * the host driver is used by the user space entity as an indication to 362 * start the ACS functionality. The attributes used by this event are 363 * represented by the enum qca_wlan_vendor_attr_external_acs_event. 364 * User space entity uses the same interface to inform the host driver with 365 * selected channels after the ACS operation using the attributes defined 366 * by enum qca_wlan_vendor_attr_external_acs_channels. 367 * 368 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the 369 * requisite information leading to a power save failure. The information 370 * carried as part of this event is represented by the 371 * enum qca_attr_chip_power_save_failure attributes. 372 * 373 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics 374 * collection. Uses attributes defined in enum qca_attr_nud_stats_set. 375 * 376 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These 377 * statistics are represented by the enum qca_attr_nud_stats_get 378 * attributes. 379 * 380 * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch 381 * the BSS transition status, whether accept or reject, for a list of 382 * candidate BSSIDs provided by the userspace. This uses the vendor 383 * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and 384 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify 385 * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an 386 * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in 387 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response 388 * the driver shall specify array of 389 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and 390 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in 391 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. 392 * 393 * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a 394 * specific QCA module. The trace levels are represented by 395 * enum qca_attr_trace_level attributes. 396 * 397 * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement 398 * Protocol antenna limit in different modes. See enum 399 * qca_wlan_vendor_attr_brp_ant_limit_mode. 400 * 401 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan 402 * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan. 403 * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) 404 * identifying the operation in success case. In failure cases an 405 * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE) 406 * describing the reason for the failure is returned. 407 * 408 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses 409 * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from 410 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to 411 * be stopped. 412 * 413 * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the 414 * specific interface. This can be used to modify some of the low level 415 * scan parameters (off channel dwell time, home channel time) in the 416 * driver/firmware. These parameters are maintained within the host driver. 417 * This command is valid only when the interface is in the connected state. 418 * These scan parameters shall be reset by the driver/firmware once 419 * disconnected. The attributes used with this command are defined in 420 * enum qca_wlan_vendor_attr_active_tos. 421 * 422 * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the 423 * driver has detected an internal failure. This event carries the 424 * information indicating the reason that triggered this detection. The 425 * attributes for this command are defined in 426 * enum qca_wlan_vendor_attr_hang. 427 * 428 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values 429 * of spectral parameters used. The spectral scan parameters are specified 430 * by enum qca_wlan_vendor_attr_spectral_scan. 431 * 432 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats 433 * for spectral scan functionality. The debug stats are specified by 434 * enum qca_wlan_vendor_attr_spectral_diag_stats. 435 * 436 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral 437 * scan system capabilities. The capabilities are specified 438 * by enum qca_wlan_vendor_attr_spectral_cap. 439 * 440 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current 441 * status of spectral scan. The status values are specified 442 * by enum qca_wlan_vendor_attr_spectral_scan_status. 443 * 444 * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush 445 * peer pending packets. Specify the peer MAC address in 446 * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets 447 * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed 448 * in enum qca_wlan_vendor_attr_flush_pending. 449 * 450 * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative 451 * RF Operating Parameter (RROP) information. The attributes for this 452 * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is 453 * intended for use by external Auto Channel Selection applications. 454 * 455 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate 456 * (SAR) power limits. This is a companion to the command 457 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the 458 * settings currently in use. The attributes returned by this command are 459 * defined by enum qca_vendor_attr_sar_limits. 460 * 461 * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behavior of 462 * the WLAN hardware MAC. Also, provides the WLAN netdev interface 463 * information attached to the respective MAC. 464 * This works both as a query (user space asks the current mode) or event 465 * interface (driver advertising the current mode to the user space). 466 * Driver does not trigger this event for temporary hardware mode changes. 467 * Mode changes w.r.t Wi-Fi connection update (VIZ creation / deletion, 468 * channel change, etc.) are updated with this event. Attributes for this 469 * interface are defined in enum qca_wlan_vendor_attr_mac. 470 * 471 * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold 472 * per peer per TID. Attributes for this command are define in 473 * enum qca_wlan_set_qdepth_thresh_attr. 474 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action 475 * guide for WLAN driver. Request to suspend of driver and FW if the 476 * temperature is higher than the suspend threshold; resume action is 477 * requested to driver if the temperature is lower than the resume 478 * threshold. In user poll mode, request temperature data by user. For test 479 * purpose, getting thermal shutdown configuration parameters is needed. 480 * Attributes for this interface are defined in 481 * enum qca_wlan_vendor_attr_thermal_cmd. 482 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from 483 * driver. Thermal temperature and indication of resume completion are 484 * reported as thermal events. The attributes for this command are defined 485 * in enum qca_wlan_vendor_attr_thermal_event. 486 * 487 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi 488 * test configuration. Attributes for this command are defined in 489 * enum qca_wlan_vendor_attr_wifi_test_config. 490 * 491 * @QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER: This command is used to configure an 492 * RX filter to receive frames from stations that are active on the 493 * operating channel, but not associated with the local device (e.g., STAs 494 * associated with other APs). Filtering is done based on a list of BSSIDs 495 * and STA MAC addresses added by the user. This command is also used to 496 * fetch the statistics of unassociated stations. The attributes used with 497 * this command are defined in enum qca_wlan_vendor_attr_bss_filter. 498 * 499 * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor 500 * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN, 501 * carried a payload which was a binary blob of data. The command was not 502 * extendable to send more information. The newer version carries the 503 * legacy blob encapsulated within an attribute and can be extended with 504 * additional vendor attributes that can enhance the NAN command interface. 505 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT: Event to indicate scan triggered 506 * or stopped within driver/firmware in order to initiate roaming. The 507 * attributes used with this event are defined in enum 508 * qca_wlan_vendor_attr_roam_scan. Some drivers may not send these events 509 * in few cases, e.g., if the host processor is sleeping when this event 510 * is generated in firmware. 511 * 512 * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to 513 * configure parameters per peer to capture Channel Frequency Response 514 * (CFR) and enable Periodic CFR capture. The attributes for this command 515 * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command 516 * can also be used to send CFR data from the driver to userspace when 517 * netlink events are used to send CFR data. 518 * 519 * @QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT: Event to indicate changes 520 * in throughput dynamically. The driver estimates the throughput based on 521 * number of packets being transmitted/received per second and indicates 522 * the changes in throughput to user space. Userspace tools can use this 523 * information to configure kernel's TCP parameters in order to achieve 524 * peak throughput. Optionally, the driver will also send guidance on 525 * modifications to kernel's TCP parameters which can be referred by 526 * userspace tools. The attributes used with this event are defined in enum 527 * qca_wlan_vendor_attr_throughput_change. 528 * 529 * @QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG: This command is used to set 530 * priorities among different types of traffic during coex scenarios. 531 * Current supported prioritization is among WLAN/BT/ZIGBEE with different 532 * profiles mentioned in enum qca_coex_config_profiles. The associated 533 * attributes used with this command are defined in enum 534 * qca_vendor_attr_coex_config. 535 * 536 * Based on the config provided, FW will boost the weight and prioritize 537 * the traffic for that subsystem (WLAN/BT/Zigbee). 538 * 539 * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS: This command is used to query 540 * the supported AKM suite selectorss from the driver. It returns the list 541 * of supported AKMs in the attribute NL80211_ATTR_AKM_SUITES. 542 * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: This command is used to get firmware 543 * state from the driver. It returns the firmware state in the attribute 544 * QCA_WLAN_VENDOR_ATTR_FW_STATE. 545 * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand 546 * is used by the driver to flush per-peer cached statistics to user space 547 * application. This interface is used as an event from the driver to 548 * user space application. Attributes for this event are specified in 549 * enum qca_wlan_vendor_attr_peer_stats_cache_params. 550 * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be 551 * sent in the event. 552 * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to 553 * improve the success rate of Zigbee joining network. 554 * Due to PTA master limitation, Zigbee joining network success rate is 555 * low while WLAN is working. The WLAN driver needs to configure some 556 * parameters including Zigbee state and specific WLAN periods to enhance 557 * PTA master. All these parameters are delivered by the attributes 558 * defined in enum qca_mpta_helper_vendor_attr. 559 * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to 560 * implement Beacon frame reporting feature. 561 * 562 * Userspace can request the driver/firmware to periodically report 563 * received Beacon frames whose BSSID is same as the current connected 564 * BSS's MAC address. 565 * 566 * In case the STA seamlessly (without sending disconnect indication to 567 * userspace) roams to a different BSS, Beacon frame reporting will be 568 * automatically enabled for the Beacon frames whose BSSID is same as the 569 * MAC address of the new BSS. Beacon reporting will be stopped when the 570 * STA is disconnected (when the disconnect indication is sent to 571 * userspace) and need to be explicitly enabled by userspace for next 572 * connection. 573 * 574 * When a Beacon frame matching configured conditions is received, and if 575 * userspace has requested to send asynchronous beacon reports, the 576 * driver/firmware will encapsulate the details of the Beacon frame in an 577 * event and send it to userspace along with updating the BSS information 578 * in cfg80211 scan cache, otherwise driver will only update the cfg80211 579 * scan cache with the information from the received Beacon frame but will 580 * not send any active report to userspace. 581 * 582 * The userspace can request the driver/firmware to stop reporting Beacon 583 * frames. If the driver/firmware is not able to receive Beacon frames due 584 * to other Wi-Fi operations such as off-channel activities, etc., the 585 * driver/firmware will send a pause event to userspace and stop reporting 586 * Beacon frames. Whether the beacon reporting will be automatically 587 * resumed or not by the driver/firmware later will be reported to 588 * userspace using the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES 589 * flag. The beacon reporting shall be resumed for all the cases except 590 * either when userspace sets 591 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag in the command 592 * which triggered the current beacon reporting or during any disconnection 593 * case as indicated by setting 594 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to 595 * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the 596 * driver. 597 * 598 * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received 599 * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES 600 * flag not set, the next first 601 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver 602 * shall be considered as un-pause event. 603 * 604 * All the attributes used with this command are defined in 605 * enum qca_wlan_vendor_attr_beacon_reporting_params. 606 * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some APs have 607 * interop issues with the DUT. This sub command is used to transfer the 608 * AP info between the driver and user space. This works both as a command 609 * and an event. As a command, it configures the stored list of APs from 610 * user space to firmware; as an event, it indicates the AP info detected 611 * by the firmware to user space for persistent storage. The attributes 612 * defined in enum qca_vendor_attr_interop_issues_ap are used to deliver 613 * the parameters. 614 * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command/event is used to 615 * send/receive OEM data binary blobs to/from application/service to/from 616 * firmware. The attributes defined in enum 617 * qca_wlan_vendor_attr_oem_data_params are used to deliver the 618 * parameters. 619 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used 620 * to send/receive avoid frequency data using 621 * enum qca_wlan_vendor_attr_avoid_frequency_ext. 622 * This new command is alternative to existing command 623 * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event 624 * is using stream of bytes instead of structured data using vendor 625 * attributes. User space sends unsafe frequency ranges to the driver using 626 * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On 627 * reception of this command, the driver shall check if an interface is 628 * operating on an unsafe frequency and the driver shall try to move to a 629 * safe channel when needed. If the driver is not able to find a safe 630 * channel the interface can keep operating on an unsafe channel with the 631 * TX power limit derived based on internal configurations like 632 * regulatory/SAR rules. 633 * 634 * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to 635 * add the STA node details in driver/firmware. Attributes for this event 636 * are specified in enum qca_wlan_vendor_attr_add_sta_node_params. 637 * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT 638 * coex chain mode from application/service. 639 * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used 640 * to deliver the parameters. 641 * 642 * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to 643 * get information of a station from driver to userspace. This command can 644 * be used in both STA and AP modes. For STA mode, it provides information 645 * of the current association when in connected state or the last 646 * association when in disconnected state. For AP mode, only information 647 * of the currently connected stations is available. This command uses 648 * attributes defined in enum qca_wlan_vendor_attr_get_sta_info. 649 * 650 * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event. 651 * Host drivers can request the user space entity to set the SAR power 652 * limits with this event. Accordingly, the user space entity is expected 653 * to set the SAR power limits. Host drivers can retry this event to the 654 * user space for the SAR power limits configuration from user space. If 655 * the driver does not get the SAR power limits from user space for all 656 * the retried attempts, it can configure a default SAR power limit. 657 * 658 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and 659 * is used to update the information about the station from the driver to 660 * userspace. Uses attributes from enum 661 * qca_wlan_vendor_attr_update_sta_info. 662 * 663 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event. 664 * The host driver initiates the disconnection for scenarios such as beacon 665 * miss, NUD failure, peer kick out, etc. The disconnection indication 666 * through cfg80211_disconnected() expects the reason codes from enum 667 * ieee80211_reasoncode which does not signify these various reasons why 668 * the driver has triggered the disconnection. This event will be used to 669 * send the driver specific reason codes by the host driver to userspace. 670 * Host drivers should trigger this event and pass the respective reason 671 * code immediately prior to triggering cfg80211_disconnected(). The 672 * attributes used with this event are defined in enum 673 * qca_wlan_vendor_attr_driver_disconnect_reason. 674 * 675 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to 676 * add/delete TSPEC for each AC. One command is for one specific AC only. 677 * This command can only be used in STA mode and the STA must be 678 * associated with an AP when the command is issued. Uses attributes 679 * defined in enum qca_wlan_vendor_attr_config_tspec. 680 * 681 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT. 682 * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt. 683 * 684 * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the enabled band(s) from 685 * the driver. The band configurations obtained are referred through 686 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. 687 * 688 * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium 689 * assessment. 690 * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess. 691 * 692 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is 693 * used to update SSID information in hostapd when it is updated in the 694 * driver. Uses the attribute NL80211_ATTR_SSID. 695 * 696 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by 697 * the driver to send opaque data from the firmware to userspace. The 698 * driver sends an event to userspace whenever such data is received from 699 * the firmware. 700 * 701 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to 702 * send this opaque data for this event. 703 * 704 * The format of the opaque data is specific to the particular firmware 705 * version and there is no guarantee of the format remaining same. 706 * 707 * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event. 708 * The host driver selects Tx VDEV, and notifies user. The attributes 709 * used with this event are defined in enum 710 * qca_wlan_vendor_attr_mbssid_tx_vdev_status. 711 * This event contains Tx VDEV group information, other VDEVs 712 * interface index, and status information. 713 * 714 * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY: Vendor command to 715 * configure the concurrent session policies when multiple STA interfaces 716 * are (getting) active. The attributes used by this command are defined 717 * in enum qca_wlan_vendor_attr_concurrent_sta_policy. 718 * 719 * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command 720 * to query usable channels for different interface types such as STA, 721 * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable 722 * channels in the response based on country code, different static 723 * configurations, concurrency combinations, etc. The attributes used 724 * with this command are defined in 725 * enum qca_wlan_vendor_attr_usable_channels. 726 * 727 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used 728 * to get DFS radar history from the driver to userspace. The driver 729 * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an 730 * array of nested entries. 731 * 732 * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to 733 * enable/disable mDNS offload to the firmware. The attributes used with 734 * this command are defined in enum qca_wlan_vendor_attr_mdns_offload. 735 * 736 * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used 737 * to set packet monitor mode that aims to send the specified set of TX and 738 * RX frames on the current client interface to an active monitor 739 * interface. If this monitor mode is set, the driver will send the 740 * configured frames, from the interface on which the command is issued, to 741 * an active monitor interface. The attributes used with this command are 742 * defined in enum qca_wlan_vendor_attr_set_monitor_mode. 743 * 744 * Though the monitor mode is configured for the respective 745 * Data/Management/Control frames, it is up to the respective WLAN 746 * driver/firmware/hardware designs to consider the possibility of sending 747 * these frames over the monitor interface. For example, the Control frames 748 * are handled within the hardware and thus passing such frames over the 749 * monitor interface is left to the respective designs. 750 * 751 * Also, this monitor mode is governed to behave accordingly in 752 * suspend/resume states. If the firmware handles any of such frames in 753 * suspend state without waking up the host and if the monitor mode is 754 * configured to notify all such frames, the firmware is expected to resume 755 * the host and forward the respective frames to the monitor interface. 756 * Please note that such a request to get the frames over the monitor 757 * interface will have a definite power implication. 758 * 759 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both 760 * as a request to set the driver/firmware with the parameters to trigger 761 * the roaming events, and also used by the driver/firmware to pass on the 762 * various roam events to userspace. 763 * Applicable only for the STA mode. The attributes used with this command 764 * are defined in enum qca_wlan_vendor_attr_roam_events. 765 * 766 * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Subcommand to set or reset the 767 * rate mask config for a list of PHY types. Userspace shall provide an 768 * array of the vendor attributes defined in 769 * enum qca_wlan_vendor_attr_ratemask_params. 770 * 771 * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs 772 * when two interfaces are active on the same band, using two different 773 * home channels, and only supported by a single radio. In this scenario 774 * the device must split the use of the radio between the two interfaces. 775 * The percentage of time allocated to a given interface is the quota. 776 * Depending on the configuration, the quota can either be fixed or 777 * dynamic. 778 * 779 * When used as an event, the device will report the quota type, and for 780 * all interfaces operating in MCC it will report the current quota. 781 * When used as a command, the device can be configured for a specific 782 * quota type, and in the case of a fixed quota, the quota to apply to one 783 * of the interfaces. 784 * 785 * Applications can use the event to do TX bitrate control based on the 786 * information, and can use the command to explicitly set the quota to 787 * enhance performance in specific scenarios. 788 * 789 * The attributes used with this command are defined in 790 * enum qca_wlan_vendor_attr_mcc_quota. 791 */ 792 enum qca_nl80211_vendor_subcmds { 793 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0, 794 QCA_NL80211_VENDOR_SUBCMD_TEST = 1, 795 /* subcmds 2..8 not yet allocated */ 796 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9, 797 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10, 798 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11, 799 QCA_NL80211_VENDOR_SUBCMD_NAN = 12, 800 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13, 801 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14, 802 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15, 803 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16, 804 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17, 805 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18, 806 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19, 807 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20, 808 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21, 809 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22, 810 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23, 811 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24, 812 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25, 813 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26, 814 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27, 815 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28, 816 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29, 817 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30, 818 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31, 819 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32, 820 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33, 821 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34, 822 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35, 823 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36, 824 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37, 825 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38, 826 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39, 827 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40, 828 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41, 829 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42, 830 /* 43..49 - reserved for QCA */ 831 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50, 832 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51, 833 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52, 834 /* 53 - reserved - was used by QCA, but not in use anymore */ 835 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54, 836 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55, 837 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56, 838 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57, 839 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58, 840 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59, 841 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60, 842 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61, 843 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62, 844 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63, 845 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64, 846 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65, 847 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66, 848 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67, 849 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68, 850 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69, 851 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70, 852 QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71, 853 QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72, 854 QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73, 855 /* Wi-Fi configuration subcommands */ 856 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74, 857 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75, 858 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76, 859 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77, 860 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78, 861 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79, 862 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80, 863 QCA_NL80211_VENDOR_SUBCMD_NDP = 81, 864 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82, 865 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83, 866 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84, 867 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85, 868 /* 86-90 - reserved for QCA */ 869 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91, 870 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92, 871 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93, 872 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94, 873 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95, 874 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96, 875 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97, 876 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98, 877 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99, 878 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100, 879 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101, 880 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102, 881 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103, 882 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104, 883 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105, 884 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106, 885 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107, 886 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108, 887 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109, 888 /* 110..114 - reserved for QCA */ 889 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115, 890 QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116, 891 /* 117 - reserved for QCA */ 892 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118, 893 QCA_NL80211_VENDOR_SUBCMD_TSF = 119, 894 QCA_NL80211_VENDOR_SUBCMD_WISA = 120, 895 /* 121 - reserved for QCA */ 896 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122, 897 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123, 898 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124, 899 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125, 900 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126, 901 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127, 902 /* FTM/indoor location subcommands */ 903 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128, 904 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129, 905 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130, 906 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131, 907 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132, 908 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133, 909 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134, 910 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135, 911 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136, 912 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137, 913 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138, 914 /* DMG low level RF sector operations */ 915 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139, 916 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140, 917 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141, 918 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142, 919 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143, 920 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144, 921 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145, 922 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146, 923 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147, 924 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148, 925 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149, 926 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150, 927 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151, 928 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152, 929 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153, 930 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154, 931 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155, 932 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156, 933 QCA_NL80211_VENDOR_SUBCMD_HANG = 157, 934 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158, 935 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159, 936 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160, 937 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161, 938 /* Flush peer pending data */ 939 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162, 940 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163, 941 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164, 942 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165, 943 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166, 944 /* Thermal shutdown commands to protect wifi chip */ 945 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167, 946 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168, 947 /* Wi-Fi test configuration subcommand */ 948 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169, 949 /* Frame filter operations for other BSSs/unassociated STAs */ 950 QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170, 951 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171, 952 QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172, 953 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173, 954 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174, 955 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175, 956 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS = 176, 957 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177, 958 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178, 959 QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179, 960 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180, 961 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181, 962 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182, 963 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183, 964 QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184, 965 QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185, 966 QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186, 967 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187, 968 QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188, 969 QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189, 970 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190, 971 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191, 972 QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192, 973 QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193, 974 QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194, 975 QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195, 976 QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196, 977 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY = 197, 978 QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198, 979 QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199, 980 QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200, 981 /* 201 - reserved for QCA */ 982 QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202, 983 QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203, 984 QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204, 985 QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205, 986 }; 987 988 enum qca_wlan_vendor_attr { 989 QCA_WLAN_VENDOR_ATTR_INVALID = 0, 990 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */ 991 QCA_WLAN_VENDOR_ATTR_DFS = 1, 992 /* Used only when driver sends vendor events to the userspace under the 993 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends 994 * commands to the driver. 995 */ 996 QCA_WLAN_VENDOR_ATTR_NAN = 2, 997 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ 998 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3, 999 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ 1000 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4, 1001 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined 1002 * by enum qca_roaming_policy. 1003 */ 1004 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5, 1005 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6, 1006 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */ 1007 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7, 1008 QCA_WLAN_VENDOR_ATTR_TEST = 8, 1009 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */ 1010 /* Unsigned 32-bit value. */ 1011 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9, 1012 /* Unsigned 32-bit value */ 1013 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10, 1014 /* Unsigned 32-bit value */ 1015 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11, 1016 /* Unsigned 32-bit value from enum qca_set_band. The allowed values for 1017 * this attribute are limited to QCA_SETBAND_AUTO, QCA_SETBAND_5G, and 1018 * QCA_SETBAND_2G. This attribute is deprecated. Recommendation is to 1019 * use QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. 1020 */ 1021 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12, 1022 /* Dummy (NOP) attribute for 64 bit padding */ 1023 QCA_WLAN_VENDOR_ATTR_PAD = 13, 1024 /* Unique FTM session cookie (Unsigned 64 bit). Specified in 1025 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in 1026 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and 1027 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE. 1028 */ 1029 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14, 1030 /* Indoor location capabilities, returned by 1031 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA. 1032 * see enum qca_wlan_vendor_attr_loc_capa. 1033 */ 1034 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15, 1035 /* Array of nested attributes containing information about each peer 1036 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info 1037 * for supported attributes for each peer. 1038 */ 1039 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16, 1040 /* Array of nested attributes containing measurement results for 1041 * one or more peers, reported by the 1042 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event. 1043 * See enum qca_wlan_vendor_attr_peer_result for list of supported 1044 * attributes. 1045 */ 1046 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17, 1047 /* Flag attribute for enabling or disabling responder functionality. */ 1048 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18, 1049 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 1050 * command to specify the LCI report that will be sent by 1051 * the responder during a measurement exchange. The format is 1052 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10. 1053 */ 1054 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19, 1055 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 1056 * command to specify the location civic report that will 1057 * be sent by the responder during a measurement exchange. 1058 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13. 1059 */ 1060 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20, 1061 /* Session/measurement completion status code, 1062 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and 1063 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT 1064 * see enum qca_vendor_attr_loc_session_status. 1065 */ 1066 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21, 1067 /* Initial dialog token used by responder (0 if not specified), 1068 * unsigned 8 bit value. 1069 */ 1070 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22, 1071 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS 1072 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if 1073 * AOA measurements are needed as part of an FTM session. 1074 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See 1075 * enum qca_wlan_vendor_attr_aoa_type. 1076 */ 1077 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23, 1078 /* A bit mask (unsigned 32 bit value) of antenna arrays used 1079 * by indoor location measurements. Refers to the antenna 1080 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS. 1081 */ 1082 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24, 1083 /* AOA measurement data. Its contents depends on the AOA measurement 1084 * type and antenna array mask: 1085 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values, 1086 * phase of the strongest CIR path for each antenna in the measured 1087 * array(s). 1088 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16 1089 * values, phase and amplitude of the strongest CIR path for each 1090 * antenna in the measured array(s). 1091 */ 1092 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25, 1093 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1094 * to specify the chain number (unsigned 32 bit value) to inquire 1095 * the corresponding antenna RSSI value 1096 */ 1097 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26, 1098 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1099 * to report the specific antenna RSSI value (unsigned 32 bit value) 1100 */ 1101 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27, 1102 /* Frequency in MHz, various uses. Unsigned 32 bit value */ 1103 QCA_WLAN_VENDOR_ATTR_FREQ = 28, 1104 /* TSF timer value, unsigned 64 bit value. 1105 * May be returned by various commands. 1106 */ 1107 QCA_WLAN_VENDOR_ATTR_TSF = 29, 1108 /* DMG RF sector index, unsigned 16 bit number. Valid values are 1109 * 0..127 for sector indices or 65535 as special value used to 1110 * unlock sector selection in 1111 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR. 1112 */ 1113 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30, 1114 /* DMG RF sector type, unsigned 8 bit value. One of the values 1115 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type. 1116 */ 1117 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31, 1118 /* Bitmask of DMG RF modules for which information is requested. Each 1119 * bit corresponds to an RF module with the same index as the bit 1120 * number. Unsigned 32 bit number but only low 8 bits can be set since 1121 * all DMG chips currently have up to 8 RF modules. 1122 */ 1123 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32, 1124 /* Array of nested attributes where each entry is DMG RF sector 1125 * configuration for a single RF module. 1126 * Attributes for each entry are taken from enum 1127 * qca_wlan_vendor_attr_dmg_rf_sector_cfg. 1128 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG 1129 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG. 1130 */ 1131 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33, 1132 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command 1133 * to report frame aggregation statistics to userspace. 1134 */ 1135 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34, 1136 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35, 1137 /* Unsigned 8-bit value representing MBO transition reason code as 1138 * provided by the AP used by subcommand 1139 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is 1140 * specified by the userspace in the request to the driver. 1141 */ 1142 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36, 1143 /* Array of nested attributes, BSSID and status code, used by subcommand 1144 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each 1145 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info. 1146 * The userspace space specifies the list/array of candidate BSSIDs in 1147 * the order of preference in the request. The driver specifies the 1148 * status code, for each BSSID in the list, in the response. The 1149 * acceptable candidates are listed in the order preferred by the 1150 * driver. 1151 */ 1152 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37, 1153 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command 1154 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode. 1155 */ 1156 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38, 1157 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command 1158 * to define the number of antennas to use for BRP. 1159 * different purpose in each ANT_LIMIT_MODE: 1160 * DISABLE - ignored 1161 * EFFECTIVE - upper limit to number of antennas to be used 1162 * FORCE - exact number of antennas to be used 1163 * unsigned 8 bit value 1164 */ 1165 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39, 1166 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1167 * to report the corresponding antenna index to the chain RSSI value 1168 */ 1169 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40, 1170 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command to report 1171 * the specific antenna EVM value (unsigned 32 bit value). With a 1172 * determinate group of antennas, the driver specifies the EVM value 1173 * for each antenna ID, and application extract them in user space. 1174 */ 1175 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41, 1176 /* 1177 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report 1178 * wlan firmware current state. FW state is an unsigned 8 bit value, 1179 * one of the values in enum qca_wlan_vendor_attr_fw_state. 1180 */ 1181 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42, 1182 1183 /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the 1184 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only a subset 1185 * of single values from enum qca_set_band are valid. This attribute 1186 * uses bitmask combinations to define the respective allowed band 1187 * combinations and this attributes takes precedence over 1188 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE if both attributes are included. 1189 */ 1190 QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43, 1191 1192 /* keep last */ 1193 QCA_WLAN_VENDOR_ATTR_AFTER_LAST, 1194 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1, 1195 }; 1196 1197 enum qca_roaming_policy { 1198 QCA_ROAMING_NOT_ALLOWED, 1199 QCA_ROAMING_ALLOWED_WITHIN_ESS, 1200 }; 1201 1202 /** 1203 * enum qca_roam_reason - Represents the reason codes for roaming. Used by 1204 * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON. 1205 * 1206 * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below 1207 * reasons. 1208 * 1209 * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates (PER) breached 1210 * the configured threshold. 1211 * 1212 * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured 1213 * beacon misses from the then connected AP. 1214 * 1215 * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported 1216 * by the connected AP. 1217 * 1218 * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSS with a better 1219 * RSSI than the connected BSS. Here the RSSI of the current BSS is not poor. 1220 * 1221 * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel 1222 * or environment being very noisy or congested. 1223 * 1224 * @QCA_ROAM_REASON_USER_TRIGGER: Roam triggered due to an explicit request 1225 * from the user (user space). 1226 * 1227 * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM Request frame received from 1228 * the connected AP. 1229 * 1230 * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization 1231 * breaching out the configured threshold. 1232 * 1233 * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS 1234 * transition request. 1235 * 1236 * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended, there is no 1237 * data activity with the AP and the current RSSI falls below a certain 1238 * threshold. 1239 * 1240 * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to Deauthentication or 1241 * Disassociation frames received from the connected AP. 1242 * 1243 * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic scan 1244 * that happens when there is no candidate AP found during the poor RSSI scan 1245 * trigger. 1246 * 1247 * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan results 1248 * obtained from an external scan (not aimed at roaming). 1249 * 1250 * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to Bluetooth connection is 1251 * established when the station is connected in the 2.4 GHz band. 1252 */ 1253 enum qca_roam_reason { 1254 QCA_ROAM_REASON_UNKNOWN, 1255 QCA_ROAM_REASON_PER, 1256 QCA_ROAM_REASON_BEACON_MISS, 1257 QCA_ROAM_REASON_POOR_RSSI, 1258 QCA_ROAM_REASON_BETTER_RSSI, 1259 QCA_ROAM_REASON_CONGESTION, 1260 QCA_ROAM_REASON_USER_TRIGGER, 1261 QCA_ROAM_REASON_BTM, 1262 QCA_ROAM_REASON_BSS_LOAD, 1263 QCA_ROAM_REASON_WTC, 1264 QCA_ROAM_REASON_IDLE, 1265 QCA_ROAM_REASON_DISCONNECTION, 1266 QCA_ROAM_REASON_PERIODIC_TIMER, 1267 QCA_ROAM_REASON_BACKGROUND_SCAN, 1268 QCA_ROAM_REASON_BT_ACTIVITY, 1269 }; 1270 1271 enum qca_wlan_vendor_attr_roam_auth { 1272 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0, 1273 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID, 1274 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE, 1275 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE, 1276 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED, 1277 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR, 1278 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK, 1279 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK, 1280 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS, 1281 /* Indicates the status of re-association requested by user space for 1282 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID. 1283 * Type u16. 1284 * Represents the status code from AP. Use 1285 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the 1286 * real status code for failures. 1287 */ 1288 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS, 1289 /* This attribute indicates that the old association was maintained when 1290 * a re-association is requested by user space and that re-association 1291 * attempt fails (i.e., cannot connect to the requested BSS, but can 1292 * remain associated with the BSS with which the association was in 1293 * place when being requested to roam). Used along with 1294 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current 1295 * re-association status. Type flag. 1296 * This attribute is applicable only for re-association failure cases. 1297 */ 1298 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION, 1299 /* This attribute specifies the PMK if one was newly generated during 1300 * FILS roaming. This is added to the PMKSA cache and is used in 1301 * subsequent connections with PMKSA caching. 1302 */ 1303 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11, 1304 /* This attribute specifies the PMKID used/generated for the current 1305 * FILS roam. This is used in subsequent connections with PMKSA caching. 1306 */ 1307 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12, 1308 /* A 16-bit unsigned value specifying the next sequence number to use 1309 * in ERP message in the currently associated realm. This is used in 1310 * doing subsequent ERP based connections in the same realm. 1311 */ 1312 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13, 1313 /* A 16-bit unsigned value representing the reasons for the roaming. 1314 * Defined by enum qca_roam_reason. 1315 */ 1316 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON = 14, 1317 1318 /* keep last */ 1319 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST, 1320 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX = 1321 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1 1322 }; 1323 1324 enum qca_wlan_vendor_attr_p2p_listen_offload { 1325 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0, 1326 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one 1327 * of the social channels. 1328 */ 1329 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL, 1330 /* A 32-bit unsigned value; the P2P listen offload period (ms). 1331 */ 1332 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD, 1333 /* A 32-bit unsigned value; the P2P listen interval duration (ms). 1334 */ 1335 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL, 1336 /* A 32-bit unsigned value; number of interval times the firmware needs 1337 * to run the offloaded P2P listen operation before it stops. 1338 */ 1339 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT, 1340 /* An array of arbitrary binary data with one or more 8-byte values. 1341 * The device types include both primary and secondary device types. 1342 */ 1343 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES, 1344 /* An array of unsigned 8-bit characters; vendor information elements. 1345 */ 1346 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE, 1347 /* A 32-bit unsigned value; a control flag to indicate whether listen 1348 * results need to be flushed to wpa_supplicant. 1349 */ 1350 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG, 1351 /* A 8-bit unsigned value; reason code for P2P listen offload stop 1352 * event. 1353 */ 1354 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON, 1355 /* keep last */ 1356 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST, 1357 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX = 1358 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1 1359 }; 1360 1361 /** 1362 * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with 1363 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS. 1364 * 1365 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8). 1366 * Used with event to notify the primary channel number selected in ACS 1367 * operation. 1368 * Note: If both the driver and user-space application supports the 6 GHz band, 1369 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use 1370 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead. 1371 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL 1372 * is still used if either of the driver or user space application doesn't 1373 * support the 6 GHz band. 1374 * 1375 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8). 1376 * Used with event to notify the secondary channel number selected in ACS 1377 * operation. 1378 * Note: If both the driver and user-space application supports the 6 GHz band, 1379 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use 1380 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead. 1381 * To maintain backward compatibility, 1382 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of 1383 * the driver or user space application doesn't support 6 GHz band. 1384 * 1385 * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8). 1386 * (a) Used with command to configure hw_mode from 1387 * enum qca_wlan_vendor_acs_hw_mode for ACS operation. 1388 * (b) Also used with event to notify the hw_mode of selected primary channel 1389 * in ACS operation. 1390 * 1391 * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute. 1392 * Used with command to configure ACS operation for HT mode. 1393 * Disable (flag attribute not present) - HT disabled and 1394 * Enable (flag attribute present) - HT enabled. 1395 * 1396 * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute. 1397 * Used with command to configure ACS operation for HT40 mode. 1398 * Disable (flag attribute not present) - HT40 disabled and 1399 * Enable (flag attribute present) - HT40 enabled. 1400 * 1401 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute. 1402 * Used with command to configure ACS operation for VHT mode. 1403 * Disable (flag attribute not present) - VHT disabled and 1404 * Enable (flag attribute present) - VHT enabled. 1405 * 1406 * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and 1407 * mandatory with event. 1408 * If specified in command path, ACS operation is configured with the given 1409 * channel width (in MHz). 1410 * In event path, specifies the channel width of the primary channel selected. 1411 * 1412 * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC. 1413 * Used with command to configure channel list using an array of 1414 * channel numbers (u8). 1415 * Note: If both the driver and user-space application supports the 6 GHz band, 1416 * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas 1417 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional. 1418 * 1419 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8). 1420 * Used with event to notify the VHT segment 0 center channel number selected in 1421 * ACS operation. The value is the index of the channel center frequency for 1422 * 20 MHz, 40 MHz, and 80 MHz channels. The value is the center frequency index 1423 * of the primary 80 MHz segment for 160 MHz and 80+80 MHz channels. 1424 * Note: If both the driver and user-space application supports the 6 GHz band, 1425 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use 1426 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead. 1427 * To maintain backward compatibility, 1428 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of 1429 * the driver or user space application doesn't support the 6 GHz band. 1430 * 1431 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8). 1432 * Used with event to notify the VHT segment 1 center channel number selected in 1433 * ACS operation. The value is zero for 20 MHz, 40 MHz, and 80 MHz channels. 1434 * The value is the index of the channel center frequency for 160 MHz channels 1435 * and the center frequency index of the secondary 80 MHz segment for 80+80 MHz 1436 * channels. 1437 * Note: If both the driver and user-space application supports the 6 GHz band, 1438 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use 1439 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead. 1440 * To maintain backward compatibility, 1441 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of 1442 * the driver or user space application doesn't support the 6 GHz band. 1443 * 1444 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC. 1445 * Used with command to configure the channel list using an array of channel 1446 * center frequencies in MHz (u32). 1447 * Note: If both the driver and user-space application supports the 6 GHz band, 1448 * the driver first parses the frequency list and if it fails to get a frequency 1449 * list, parses the channel list specified using 1450 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in 1451 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST). 1452 * 1453 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32). 1454 * Used with event to notify the primary channel center frequency (MHz) selected 1455 * in ACS operation. 1456 * Note: If the driver supports the 6 GHz band, the event sent from the driver 1457 * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL. 1458 * 1459 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32). 1460 * Used with event to notify the secondary channel center frequency (MHz) 1461 * selected in ACS operation. 1462 * Note: If the driver supports the 6 GHz band, the event sent from the driver 1463 * includes this attribute along with 1464 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL. 1465 * 1466 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32). 1467 * Used with event to notify the VHT segment 0 center channel frequency (MHz) 1468 * selected in ACS operation. 1469 * Note: If the driver supports the 6 GHz band, the event sent from the driver 1470 * includes this attribute along with 1471 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL. 1472 * 1473 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32). 1474 * Used with event to notify the VHT segment 1 center channel frequency (MHz) 1475 * selected in ACS operation. 1476 * Note: If the driver supports the 6 GHz band, the event sent from the driver 1477 * includes this attribute along with 1478 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL. 1479 * 1480 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute. 1481 * Used with command to notify the driver of EDMG request for ACS 1482 * operation. 1483 * 1484 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8). 1485 * Used with event to notify the EDMG channel number selected in ACS 1486 * operation. 1487 * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL 1488 * 1489 * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16). 1490 * Used with event to notify the puncture pattern selected in ACS operation. 1491 * Encoding for this attribute will follow the convention used in the Disabled 1492 * Subchannel Bitmap field of the EHT Operation IE. 1493 * 1494 * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute. 1495 * Used with command to configure ACS operation for EHT mode. 1496 * Disable (flag attribute not present) - EHT disabled and 1497 * Enable (flag attribute present) - EHT enabled. 1498 */ 1499 enum qca_wlan_vendor_attr_acs_offload { 1500 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0, 1501 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1, 1502 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2, 1503 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3, 1504 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4, 1505 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5, 1506 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6, 1507 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7, 1508 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8, 1509 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9, 1510 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10, 1511 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11, 1512 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12, 1513 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13, 1514 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14, 1515 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15, 1516 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16, 1517 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17, 1518 QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18, 1519 QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19, 1520 1521 /* keep last */ 1522 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST, 1523 QCA_WLAN_VENDOR_ATTR_ACS_MAX = 1524 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1 1525 }; 1526 1527 /** 1528 * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the 1529 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS. 1530 * 1531 * @QCA_ACS_MODE_IEEE80211B: 802.11b mode 1532 * @QCA_ACS_MODE_IEEE80211G: 802.11g mode 1533 * @QCA_ACS_MODE_IEEE80211A: 802.11a mode 1534 * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode 1535 * @QCA_ACS_MODE_IEEE80211ANY: all modes 1536 * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode 1537 */ 1538 enum qca_wlan_vendor_acs_hw_mode { 1539 QCA_ACS_MODE_IEEE80211B, 1540 QCA_ACS_MODE_IEEE80211G, 1541 QCA_ACS_MODE_IEEE80211A, 1542 QCA_ACS_MODE_IEEE80211AD, 1543 QCA_ACS_MODE_IEEE80211ANY, 1544 QCA_ACS_MODE_IEEE80211AX, 1545 }; 1546 1547 /** 1548 * enum qca_wlan_vendor_features - Vendor device/driver feature flags 1549 * 1550 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key 1551 * management offload, a mechanism where the station's firmware 1552 * does the exchange with the AP to establish the temporal keys 1553 * after roaming, rather than having the user space wpa_supplicant do it. 1554 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic 1555 * band selection based on channel selection results. 1556 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports 1557 * simultaneous off-channel operations. 1558 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P 1559 * Listen offload; a mechanism where the station's firmware takes care of 1560 * responding to incoming Probe Request frames received from other P2P 1561 * Devices whilst in Listen state, rather than having the user space 1562 * wpa_supplicant do it. Information from received P2P requests are 1563 * forwarded from firmware to host whenever the host processor wakes up. 1564 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA 1565 * specific features. 1566 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific 1567 * features. 1568 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON 1569 * specific features only. If a Device sets this bit but not the 1570 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that 1571 * this Device may not support all OCE AP functionalities but can support 1572 * only OCE STA-CFON functionalities. 1573 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self 1574 * managed regulatory. 1575 * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time). 1576 * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE) 1577 * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation 1578 * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving 1579 * and applying thermal configuration through 1580 * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and 1581 * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from 1582 * userspace. 1583 * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r. 1584 * With Adaptive 11r feature, access points advertise the vendor 1585 * specific IEs and MDE but do not include FT AKM in the RSNE. 1586 * The Adaptive 11r supported stations are expected to identify 1587 * such vendor specific IEs and connect to the AP in FT mode though 1588 * the profile is configured in non-FT mode. 1589 * The driver-based SME cases also need to have this support for 1590 * Adaptive 11r to handle the connection and roaming scenarios. 1591 * This flag indicates the support for the same to the user space. 1592 * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports 1593 * concurrent network sessions on different Wi-Fi bands. This feature 1594 * capability is attributed to the hardware's capability to support 1595 * the same (e.g., DBS). 1596 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the 1597 * responses for the respective TWT operations are asynchronous (separate 1598 * event message) from the driver. If not specified, the responses are 1599 * synchronous (in vendor command reply) to the request. Each TWT 1600 * operation is specifically mentioned (against its respective 1601 * documentation) to support either of these or both modes. 1602 * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates 1603 * that the driver requires add/del virtual interface path using the 1604 * generic nl80211 commands for NDP interface create/delete and to 1605 * register/unregister the netdev instead of creating/deleting the NDP 1606 * interface using the vendor commands 1607 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and 1608 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel 1609 * (5.12 version onward), interface creation/deletion is not allowed using 1610 * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK 1611 * during the register/unregister of netdev. Create and delete NDP 1612 * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE 1613 * commands respectively if the driver advertises this capability set. 1614 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits 1615 */ 1616 enum qca_wlan_vendor_features { 1617 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0, 1618 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1, 1619 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2, 1620 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3, 1621 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4, 1622 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5, 1623 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6, 1624 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7, 1625 QCA_WLAN_VENDOR_FEATURE_TWT = 8, 1626 QCA_WLAN_VENDOR_FEATURE_11AX = 9, 1627 QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10, 1628 QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11, 1629 QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12, 1630 QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13, 1631 QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14, 1632 QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15, 1633 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */ 1634 }; 1635 1636 /** 1637 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication 1638 * 1639 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to 1640 * the offloaded data. 1641 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded 1642 * data. 1643 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload 1644 * indication. 1645 */ 1646 enum qca_wlan_vendor_attr_data_offload_ind { 1647 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0, 1648 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION, 1649 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL, 1650 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT, 1651 1652 /* keep last */ 1653 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST, 1654 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX = 1655 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1 1656 }; 1657 1658 /** 1659 * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set 1660 * OCB config 1661 * 1662 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the 1663 * configuration 1664 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule 1665 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels 1666 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be 1667 * scheduled 1668 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel 1669 * information 1670 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL 1671 * active state configuration 1672 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as 1673 * OCB_CONFIG_FLAG_80211_FRAME_MODE 1674 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to 1675 * use in the case that a packet is sent without a TX control header 1676 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the 1677 * last TA received that the local time set by TA is synchronous to other 1678 * communicating OCB STAs. 1679 */ 1680 enum qca_wlan_vendor_attr_ocb_set_config { 1681 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0, 1682 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1, 1683 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2, 1684 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3, 1685 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4, 1686 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5, 1687 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6, 1688 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7, 1689 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8, 1690 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9, 1691 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST, 1692 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX = 1693 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1 1694 }; 1695 1696 /** 1697 * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set 1698 * UTC time 1699 * 1700 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of 1701 * 10 bytes 1702 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of 1703 * 5 bytes 1704 */ 1705 enum qca_wlan_vendor_attr_ocb_set_utc_time { 1706 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0, 1707 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1, 1708 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2, 1709 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST, 1710 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX = 1711 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1 1712 }; 1713 1714 /** 1715 * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes 1716 * to start sending timing advert frames 1717 * 1718 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency 1719 * on which to send the frames 1720 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times 1721 * the frame is sent in 5 seconds 1722 */ 1723 enum qca_wlan_vendor_attr_ocb_start_timing_advert { 1724 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0, 1725 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1, 1726 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2, 1727 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST, 1728 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX = 1729 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1 1730 }; 1731 1732 /** 1733 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes 1734 * to stop timing advert 1735 * 1736 * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel 1737 * frequency on which to stop the timing advert 1738 */ 1739 enum qca_wlan_vendor_attr_ocb_stop_timing_advert { 1740 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0, 1741 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1, 1742 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST, 1743 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX = 1744 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1 1745 }; 1746 1747 /** 1748 * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to 1749 * get TSF timer value 1750 * 1751 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the 1752 * timer 1753 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer 1754 */ 1755 enum qca_wlan_vendor_attr_ocb_get_tsf_resp { 1756 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0, 1757 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1, 1758 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2, 1759 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST, 1760 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX = 1761 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1 1762 }; 1763 1764 enum qca_vendor_attr_get_preferred_freq_list { 1765 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID, 1766 /* A 32-unsigned value; the interface type/mode for which the preferred 1767 * frequency list is requested (see enum qca_iface_type for possible 1768 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to 1769 * kernel and in the kernel response back to user-space. 1770 */ 1771 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE, 1772 /* An array of 32-unsigned values; values are frequency (MHz); sent 1773 * from kernel space to user space. 1774 */ 1775 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST, 1776 /* An array of nested values as per enum qca_wlan_vendor_attr_pcl 1777 * attribute. Each element contains frequency (MHz), weight, and flag 1778 * bit mask indicating how the frequency should be used in P2P 1779 * negotiation; sent from kernel space to user space. 1780 */ 1781 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL, 1782 /* keep last */ 1783 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST, 1784 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX = 1785 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1 1786 }; 1787 1788 enum qca_vendor_attr_probable_oper_channel { 1789 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID, 1790 /* 32-bit unsigned value; indicates the connection/iface type likely to 1791 * come on this channel (see enum qca_iface_type). 1792 */ 1793 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE, 1794 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */ 1795 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ, 1796 /* keep last */ 1797 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST, 1798 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX = 1799 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1 1800 }; 1801 1802 enum qca_iface_type { 1803 QCA_IFACE_TYPE_STA, 1804 QCA_IFACE_TYPE_AP, 1805 QCA_IFACE_TYPE_P2P_CLIENT, 1806 QCA_IFACE_TYPE_P2P_GO, 1807 QCA_IFACE_TYPE_IBSS, 1808 QCA_IFACE_TYPE_TDLS, 1809 }; 1810 1811 enum qca_set_band { 1812 QCA_SETBAND_AUTO = 0, 1813 QCA_SETBAND_5G = BIT(0), 1814 QCA_SETBAND_2G = BIT(1), 1815 QCA_SETBAND_6G = BIT(2), 1816 }; 1817 1818 /** 1819 * enum qca_access_policy - Access control policy 1820 * 1821 * Access control policy is applied on the configured IE 1822 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE). 1823 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY. 1824 * 1825 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match 1826 * the specific configuration (IE) set, i.e., allow all the 1827 * connections which do not match the configuration. 1828 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match 1829 * the specific configuration (IE) set, i.e., deny all the 1830 * connections which do not match the configuration. 1831 */ 1832 enum qca_access_policy { 1833 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED, 1834 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED, 1835 }; 1836 1837 /** 1838 * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture 1839 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32) 1840 * Specify the TSF command. Possible values are defined in 1841 * &enum qca_tsf_cmd. 1842 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64) 1843 * This attribute contains TSF timer value. This attribute is only available 1844 * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response. 1845 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64) 1846 * This attribute contains SOC timer value at TSF capture. This attribute is 1847 * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response. 1848 * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32) 1849 * This attribute is used to provide TSF sync interval and only applicable when 1850 * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the 1851 * driver will use the default value. Time unit is in milliseconds. 1852 */ 1853 enum qca_vendor_attr_tsf_cmd { 1854 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0, 1855 QCA_WLAN_VENDOR_ATTR_TSF_CMD, 1856 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE, 1857 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE, 1858 QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL, 1859 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST, 1860 QCA_WLAN_VENDOR_ATTR_TSF_MAX = 1861 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1 1862 }; 1863 1864 /** 1865 * enum qca_tsf_cmd: TSF driver commands 1866 * @QCA_TSF_CAPTURE: Initiate TSF Capture 1867 * @QCA_TSF_GET: Get TSF capture value 1868 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value 1869 * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target 1870 * will automatically send TSF report to the host. To query 1871 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be 1872 * initiated first. 1873 * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target 1874 * will not automatically send TSF report to the host. If 1875 * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and 1876 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this 1877 * operation needs to be initiated. 1878 * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically 1879 * fetches TSF and host time mapping from the firmware with interval configured 1880 * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the 1881 * interval value is not provided the driver will use the default value. The 1882 * userspace can query the TSF and host time mapping via the %QCA_TSF_GET 1883 * command. 1884 * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature. 1885 */ 1886 enum qca_tsf_cmd { 1887 QCA_TSF_CAPTURE, 1888 QCA_TSF_GET, 1889 QCA_TSF_SYNC_GET, 1890 QCA_TSF_AUTO_REPORT_ENABLE, 1891 QCA_TSF_AUTO_REPORT_DISABLE, 1892 QCA_TSF_SYNC_START, 1893 QCA_TSF_SYNC_STOP, 1894 }; 1895 1896 /** 1897 * enum qca_vendor_attr_wisa_cmd 1898 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32) 1899 * WISA setup vendor commands 1900 */ 1901 enum qca_vendor_attr_wisa_cmd { 1902 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0, 1903 QCA_WLAN_VENDOR_ATTR_WISA_MODE, 1904 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST, 1905 QCA_WLAN_VENDOR_ATTR_WISA_MAX = 1906 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1 1907 }; 1908 1909 /* IEEE 802.11 Vendor Specific elements */ 1910 1911 /** 1912 * enum qca_vendor_element_id - QCA Vendor Specific element types 1913 * 1914 * These values are used to identify QCA Vendor Specific elements. The 1915 * payload of the element starts with the three octet OUI (OUI_QCA) and 1916 * is followed by a single octet type which is defined by this enum. 1917 * 1918 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list. 1919 * This element can be used to specify preference order for supported 1920 * channels. The channels in this list are in preference order (the first 1921 * one has the highest preference) and are described as a pair of 1922 * (global) Operating Class and Channel Number (each one octet) fields. 1923 * 1924 * This extends the standard P2P functionality by providing option to have 1925 * more than one preferred operating channel. When this element is present, 1926 * it replaces the preference indicated in the Operating Channel attribute. 1927 * For supporting other implementations, the Operating Channel attribute is 1928 * expected to be used with the highest preference channel. Similarly, all 1929 * the channels included in this Preferred channel list element are 1930 * expected to be included in the Channel List attribute. 1931 * 1932 * This vendor element may be included in GO Negotiation Request, P2P 1933 * Invitation Request, and Provision Discovery Request frames. 1934 * 1935 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element. 1936 * This element can be used for pre-standard publication testing of HE 1937 * before P802.11ax draft assigns the element ID. The payload of this 1938 * vendor specific element is defined by the latest P802.11ax draft. 1939 * Please note that the draft is still work in progress and this element 1940 * payload is subject to change. 1941 * 1942 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element. 1943 * This element can be used for pre-standard publication testing of HE 1944 * before P802.11ax draft assigns the element ID. The payload of this 1945 * vendor specific element is defined by the latest P802.11ax draft. 1946 * Please note that the draft is still work in progress and this element 1947 * payload is subject to change. 1948 * 1949 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set 1950 * element). 1951 * This element can be used for pre-standard publication testing of HE 1952 * before P802.11ax draft assigns the element ID extension. The payload of 1953 * this vendor specific element is defined by the latest P802.11ax draft 1954 * (not including the Element ID Extension field). Please note that the 1955 * draft is still work in progress and this element payload is subject to 1956 * change. 1957 * 1958 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element. 1959 * This element can be used for pre-standard publication testing of HE 1960 * before P802.11ax draft assigns the element ID extension. The payload of 1961 * this vendor specific element is defined by the latest P802.11ax draft 1962 * (not including the Element ID Extension field). Please note that the 1963 * draft is still work in progress and this element payload is subject to 1964 * change. 1965 * 1966 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element. 1967 * This element can be used for pre-standard publication testing of HE 1968 * before P802.11ax draft assigns the element ID extension. The payload of 1969 * this vendor specific element is defined by the latest P802.11ax draft 1970 * (not including the Element ID Extension field). Please note that the 1971 * draft is still work in progress and this element payload is subject to 1972 * change. 1973 * 1974 * @QCA_VENDOR_ELEM_ALLPLAY: Allplay element 1975 */ 1976 enum qca_vendor_element_id { 1977 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0, 1978 QCA_VENDOR_ELEM_HE_CAPAB = 1, 1979 QCA_VENDOR_ELEM_HE_OPER = 2, 1980 QCA_VENDOR_ELEM_RAPS = 3, 1981 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4, 1982 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5, 1983 QCA_VENDOR_ELEM_ALLPLAY = 6, 1984 }; 1985 1986 /** 1987 * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the 1988 * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take. 1989 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority 1990 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority 1991 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority 1992 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority 1993 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority 1994 */ 1995 enum qca_wlan_vendor_scan_priority { 1996 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0, 1997 QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1, 1998 QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2, 1999 QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3, 2000 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4, 2001 }; 2002 2003 /** 2004 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes 2005 * 2006 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan 2007 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes 2008 * with frequencies to be scanned (in MHz) 2009 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned 2010 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported 2011 * rates to be included 2012 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests 2013 * at non CCK rate in 2GHz band 2014 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags 2015 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the 2016 * driver for the specific scan request 2017 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan 2018 * request decoded as in enum scan_status 2019 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation 2020 * scan flag is set 2021 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with 2022 * randomisation 2023 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the 2024 * specific BSSID to scan for. 2025 * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in 2026 * microseconds. This is a common value which applies across all 2027 * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES. 2028 * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to 2029 * other scan requests. It is a u32 attribute and takes values from enum 2030 * qca_wlan_vendor_scan_priority. This is an optional attribute. 2031 * If this attribute is not configured, the driver shall use 2032 * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan. 2033 */ 2034 enum qca_wlan_vendor_attr_scan { 2035 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0, 2036 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1, 2037 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2, 2038 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3, 2039 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4, 2040 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5, 2041 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6, 2042 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7, 2043 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8, 2044 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9, 2045 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10, 2046 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11, 2047 QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12, 2048 QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13, 2049 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST, 2050 QCA_WLAN_VENDOR_ATTR_SCAN_MAX = 2051 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1 2052 }; 2053 2054 /** 2055 * enum scan_status - Specifies the valid values the vendor scan attribute 2056 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take 2057 * 2058 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with 2059 * new scan results 2060 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between 2061 */ 2062 enum scan_status { 2063 VENDOR_SCAN_STATUS_NEW_RESULTS, 2064 VENDOR_SCAN_STATUS_ABORTED, 2065 VENDOR_SCAN_STATUS_MAX, 2066 }; 2067 2068 /** 2069 * enum qca_vendor_attr_ota_test - Specifies the values for vendor 2070 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST 2071 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test 2072 */ 2073 enum qca_vendor_attr_ota_test { 2074 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID, 2075 /* 8-bit unsigned value to indicate if OTA test is enabled */ 2076 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE, 2077 /* keep last */ 2078 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST, 2079 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX = 2080 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1 2081 }; 2082 2083 /** 2084 * enum qca_vendor_attr_txpower_scale - vendor sub commands index 2085 * 2086 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value 2087 */ 2088 enum qca_vendor_attr_txpower_scale { 2089 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID, 2090 /* 8-bit unsigned value to indicate the scaling of tx power */ 2091 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE, 2092 /* keep last */ 2093 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST, 2094 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX = 2095 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1 2096 }; 2097 2098 /** 2099 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease 2100 * 2101 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB. 2102 */ 2103 enum qca_vendor_attr_txpower_decr_db { 2104 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID, 2105 /* 8-bit unsigned value to indicate the reduction of TX power in dB for 2106 * a virtual interface. 2107 */ 2108 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB, 2109 /* keep last */ 2110 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST, 2111 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX = 2112 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1 2113 }; 2114 2115 /* Attributes for data used by 2116 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and 2117 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands. 2118 */ 2119 enum qca_wlan_vendor_attr_config { 2120 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0, 2121 /* Unsigned 32-bit value to set the DTIM period. 2122 * Whether the wifi chipset wakes at every dtim beacon or a multiple of 2123 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3 2124 * DTIM beacons. 2125 */ 2126 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1, 2127 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor 2128 * used to calculate statistics like average the TSF offset or average 2129 * number of frame leaked. 2130 * For instance, upon Beacon frame reception: 2131 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000 2132 * For instance, when evaluating leaky APs: 2133 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000 2134 */ 2135 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2, 2136 /* Unsigned 32-bit value to configure guard time, i.e., when 2137 * implementing IEEE power management based on frame control PM bit, how 2138 * long the driver waits before shutting down the radio and after 2139 * receiving an ACK frame for a Data frame with PM bit set. 2140 */ 2141 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3, 2142 /* Unsigned 32-bit value to change the FTM capability dynamically */ 2143 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4, 2144 /* Unsigned 16-bit value to configure maximum TX rate dynamically */ 2145 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5, 2146 /* Unsigned 32-bit value to configure the number of continuous 2147 * Beacon Miss which shall be used by the firmware to penalize 2148 * the RSSI. 2149 */ 2150 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6, 2151 /* Unsigned 8-bit value to configure the channel avoidance indication 2152 * behavior. Firmware to send only one indication and ignore duplicate 2153 * indications when set to avoid multiple Apps wakeups. 2154 */ 2155 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7, 2156 /* 8-bit unsigned value to configure the maximum TX MPDU for 2157 * aggregation. 2158 */ 2159 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8, 2160 /* 8-bit unsigned value to configure the maximum RX MPDU for 2161 * aggregation. 2162 */ 2163 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9, 2164 /* 8-bit unsigned value to configure the Non aggregrate/11g sw 2165 * retry threshold (0 disable, 31 max). 2166 */ 2167 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10, 2168 /* 8-bit unsigned value to configure the aggregrate sw 2169 * retry threshold (0 disable, 31 max). 2170 */ 2171 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11, 2172 /* 8-bit unsigned value to configure the MGMT frame 2173 * retry threshold (0 disable, 31 max). 2174 */ 2175 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12, 2176 /* 8-bit unsigned value to configure the CTRL frame 2177 * retry threshold (0 disable, 31 max). 2178 */ 2179 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13, 2180 /* 8-bit unsigned value to configure the propagation delay for 2181 * 2G/5G band (0~63, units in us) 2182 */ 2183 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14, 2184 /* Unsigned 32-bit value to configure the number of unicast TX fail 2185 * packet count. The peer is disconnected once this threshold is 2186 * reached. 2187 */ 2188 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15, 2189 /* Attribute used to set scan default IEs to the driver. 2190 * 2191 * These IEs can be used by scan operations that will be initiated by 2192 * the driver/firmware. 2193 * 2194 * For further scan requests coming to the driver, these IEs should be 2195 * merged with the IEs received along with scan request coming to the 2196 * driver. If a particular IE is present in the scan default IEs but not 2197 * present in the scan request, then that IE should be added to the IEs 2198 * sent in the Probe Request frames for that scan request. 2199 */ 2200 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16, 2201 /* Unsigned 32-bit attribute for generic commands */ 2202 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17, 2203 /* Unsigned 32-bit value attribute for generic commands */ 2204 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18, 2205 /* Unsigned 32-bit data attribute for generic command response */ 2206 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19, 2207 /* Unsigned 32-bit length attribute for 2208 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA 2209 */ 2210 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20, 2211 /* Unsigned 32-bit flags attribute for 2212 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA 2213 */ 2214 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21, 2215 /* Unsigned 32-bit, defining the access policy. 2216 * See enum qca_access_policy. Used with 2217 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST. 2218 */ 2219 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22, 2220 /* Sets the list of full set of IEs for which a specific access policy 2221 * has to be applied. Used along with 2222 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access. 2223 * Zero length payload can be used to clear this access constraint. 2224 */ 2225 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23, 2226 /* Unsigned 32-bit, specifies the interface index (netdev) for which the 2227 * corresponding configurations are applied. If the interface index is 2228 * not specified, the configurations are attributed to the respective 2229 * wiphy. 2230 */ 2231 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24, 2232 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */ 2233 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25, 2234 /* 8-bit unsigned value to configure the driver and below layers to 2235 * ignore the assoc disallowed set by APs while connecting 2236 * 1-Ignore, 0-Don't ignore 2237 */ 2238 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26, 2239 /* 32-bit unsigned value to trigger antenna diversity features: 2240 * 1-Enable, 0-Disable 2241 */ 2242 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27, 2243 /* 32-bit unsigned value to configure specific chain antenna */ 2244 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28, 2245 /* 32-bit unsigned value to trigger cycle selftest 2246 * 1-Enable, 0-Disable 2247 */ 2248 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29, 2249 /* 32-bit unsigned to configure the cycle time of selftest 2250 * the unit is micro-second 2251 */ 2252 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30, 2253 /* 32-bit unsigned value to set reorder timeout for AC_VO */ 2254 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31, 2255 /* 32-bit unsigned value to set reorder timeout for AC_VI */ 2256 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32, 2257 /* 32-bit unsigned value to set reorder timeout for AC_BE */ 2258 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33, 2259 /* 32-bit unsigned value to set reorder timeout for AC_BK */ 2260 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34, 2261 /* 6-byte MAC address to point out the specific peer */ 2262 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35, 2263 /* 32-bit unsigned value to set window size for specific peer */ 2264 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36, 2265 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */ 2266 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37, 2267 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */ 2268 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38, 2269 /* 32-bit unsigned value to configure 5 or 10 MHz channel width for 2270 * station device while in disconnect state. The attribute use the 2271 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz, 2272 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or 2273 * 10 MHz channel width, the station will not connect to a BSS using 20 2274 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to 2275 * clear this constraint. 2276 */ 2277 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39, 2278 /* 32-bit unsigned value to configure the propagation absolute delay 2279 * for 2G/5G band (units in us) 2280 */ 2281 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40, 2282 /* 32-bit unsigned value to set probe period */ 2283 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41, 2284 /* 32-bit unsigned value to set stay period */ 2285 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42, 2286 /* 32-bit unsigned value to set snr diff */ 2287 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43, 2288 /* 32-bit unsigned value to set probe dwell time */ 2289 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44, 2290 /* 32-bit unsigned value to set mgmt snr weight */ 2291 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45, 2292 /* 32-bit unsigned value to set data snr weight */ 2293 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46, 2294 /* 32-bit unsigned value to set ack snr weight */ 2295 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47, 2296 /* 32-bit unsigned value to configure the listen interval. 2297 * This is in units of beacon intervals. This configuration alters 2298 * the negotiated listen interval with the AP during the connection. 2299 * It is highly recommended to configure a value less than or equal to 2300 * the one negotiated during the association. Configuring any greater 2301 * value can have adverse effects (frame loss, AP disassociating STA, 2302 * etc.). 2303 */ 2304 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48, 2305 /* 2306 * 8 bit unsigned value that is set on an AP/GO virtual interface to 2307 * disable operations that would cause the AP/GO to leave its operating 2308 * channel. 2309 * 2310 * This will restrict the scans to the AP/GO operating channel and the 2311 * channels of the other band, if DBS is supported.A STA/CLI interface 2312 * brought up after this setting is enabled, will be restricted to 2313 * connecting to devices only on the AP/GO interface's operating channel 2314 * or on the other band in DBS case. P2P supported channel list is 2315 * modified, to only include AP interface's operating-channel and the 2316 * channels of the other band if DBS is supported. 2317 * 2318 * These restrictions are only applicable as long as the AP/GO interface 2319 * is alive. If the AP/GO interface is brought down then this 2320 * setting/restriction is forgotten. 2321 * 2322 * If this variable is set on an AP/GO interface while a multi-channel 2323 * concurrent session is active, it has no effect on the operation of 2324 * the current interfaces, other than restricting the scan to the AP/GO 2325 * operating channel and the other band channels if DBS is supported. 2326 * However, if the STA is brought down and restarted then the new STA 2327 * connection will either be formed on the AP/GO channel or on the 2328 * other band in a DBS case. This is because of the scan being 2329 * restricted on these channels as mentioned above. 2330 * 2331 * 1-Restrict / 0-Don't restrict offchannel operations. 2332 */ 2333 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49, 2334 /* 2335 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload) 2336 * on an interface. 2337 * 1 - Enable, 0 - Disable. 2338 */ 2339 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50, 2340 2341 /* 2342 * 8 bit unsigned value to globally enable/disable scan 2343 * 1 - Enable, 0 - Disable. 2344 */ 2345 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51, 2346 2347 /* 8-bit unsigned value to set the total beacon miss count 2348 * This parameter will set the total beacon miss count. 2349 */ 2350 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52, 2351 2352 /* Unsigned 32-bit value to configure the number of continuous 2353 * Beacon Miss which shall be used by the firmware to penalize 2354 * the RSSI for BTC. 2355 */ 2356 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53, 2357 2358 /* 8-bit unsigned value to configure the driver and below layers to 2359 * enable/disable all FILS features. 2360 * 0-enable, 1-disable 2361 */ 2362 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54, 2363 2364 /* 16-bit unsigned value to configure the level of WLAN latency 2365 * module. See enum qca_wlan_vendor_attr_config_latency_level. 2366 */ 2367 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55, 2368 2369 /* 8-bit unsigned value indicating the driver to use the RSNE as-is from 2370 * the connect interface. Exclusively used for the scenarios where the 2371 * device is used as a test bed device with special functionality and 2372 * not recommended for production. This helps driver to not validate the 2373 * RSNE passed from user space and thus allow arbitrary IE data to be 2374 * used for testing purposes. 2375 * 1-enable, 0-disable. 2376 * Applications set/reset this configuration. If not reset, this 2377 * parameter remains in use until the driver is unloaded. 2378 */ 2379 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56, 2380 2381 /* 8-bit unsigned value to trigger green Tx power saving. 2382 * 1-Enable, 0-Disable 2383 */ 2384 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57, 2385 2386 /* Attribute to configure disconnect IEs to the driver. 2387 * This carries an array of unsigned 8-bit characters. 2388 * 2389 * If this is configured, driver shall fill the IEs in disassoc/deauth 2390 * frame. 2391 * These IEs are expected to be considered only for the next 2392 * immediate disconnection (disassoc/deauth frame) originated by 2393 * the DUT, irrespective of the entity (user space/driver/firmware) 2394 * triggering the disconnection. 2395 * The host drivers are not expected to use the IEs set through 2396 * this interface for further disconnections after the first immediate 2397 * disconnection initiated post the configuration. 2398 * If the IEs are also updated through cfg80211 interface (after the 2399 * enhancement to cfg80211_disconnect), host driver is expected to 2400 * take the union of IEs from both of these interfaces and send in 2401 * further disassoc/deauth frames. 2402 */ 2403 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58, 2404 2405 /* 8-bit unsigned value for ELNA bypass. 2406 * 0 - Disable eLNA bypass. 2407 * 1 - Enable eLNA bypass. 2408 * 2 - Reset eLNA bypass configuration, the driver should 2409 * revert to the default configuration of eLNA bypass. 2410 */ 2411 QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59, 2412 2413 /* 8-bit unsigned value. This attribute enables/disables the host driver 2414 * to send the Beacon Report Response with failure reason for the 2415 * scenarios where STA cannot honor the Beacon Report Request from AP. 2416 * 1-Enable, 0-Disable. 2417 */ 2418 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60, 2419 2420 /* 8-bit unsigned value. This attribute enables/disables the host driver 2421 * to send roam reason information in the Reassociation Request frame to 2422 * the target AP when roaming within the same ESS. 2423 * 1-Enable, 0-Disable. 2424 */ 2425 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61, 2426 2427 /* 32-bit unsigned value to configure different PHY modes to the 2428 * driver/firmware. The possible values are defined in 2429 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to 2430 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting 2431 * the driver. 2432 */ 2433 QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62, 2434 2435 /* 8-bit unsigned value to configure the maximum supported channel width 2436 * for STA mode. If this value is configured when STA is in connected 2437 * state, it should not exceed the negotiated channel width. If it is 2438 * configured when STA is in disconnected state, the configured value 2439 * will take effect for the next immediate connection. 2440 * Possible values are: 2441 * NL80211_CHAN_WIDTH_20 2442 * NL80211_CHAN_WIDTH_40 2443 * NL80211_CHAN_WIDTH_80 2444 * NL80211_CHAN_WIDTH_80P80 2445 * NL80211_CHAN_WIDTH_160 2446 */ 2447 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63, 2448 2449 /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment. 2450 * This attribute is only applicable for STA mode. When dynamic 2451 * bandwidth adjustment is disabled, STA will use static channel width 2452 * the value of which is negotiated during connection. 2453 * 1-enable (default), 0-disable 2454 */ 2455 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64, 2456 2457 /* 8-bit unsigned value to configure the maximum number of subframes of 2458 * TX MSDU for aggregation. Possible values are 0-31. When set to 0, 2459 * it is decided by the hardware. 2460 */ 2461 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65, 2462 2463 /* 8-bit unsigned value to configure the maximum number of subframes of 2464 * RX MSDU for aggregation. Possible values are 0-31. When set to 0, 2465 * it is decided by the hardware. 2466 */ 2467 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66, 2468 2469 /* 8-bit unsigned value. This attribute is used to dynamically 2470 * enable/disable the LDPC capability of the device. When configured in 2471 * the disconnected state, the updated configuration will be considered 2472 * for the immediately following connection attempt. If this 2473 * configuration is modified while the device is in the connected state, 2474 * the LDPC TX will be updated with this configuration immediately, 2475 * while the LDPC RX configuration update will take place starting from 2476 * the subsequent association attempt. 2477 * 1-Enable, 0-Disable. 2478 */ 2479 QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67, 2480 2481 /* 8-bit unsigned value. This attribute is used to dynamically 2482 * enable/disable the TX STBC capability of the device. When configured 2483 * in the disconnected state, the updated configuration will be 2484 * considered for the immediately following connection attempt. If the 2485 * connection is formed with TX STBC enabled and if this configuration 2486 * is disabled during that association, the TX will be impacted 2487 * immediately. Further connection attempts will disable TX STBC. 2488 * However, enabling the TX STBC for a connected session with disabled 2489 * capability is not allowed and will fail. 2490 * 1-Enable, 0-Disable. 2491 */ 2492 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68, 2493 2494 /* 8-bit unsigned value. This attribute is used to dynamically 2495 * enable/disable the RX STBC capability of the device. When configured 2496 * in the disconnected state, the updated configuration will be 2497 * considered for the immediately following connection attempt. If the 2498 * configuration is modified in the connected state, there will be no 2499 * impact for the current association, but further connection attempts 2500 * will use the updated configuration. 2501 * 1-Enable, 0-Disable. 2502 */ 2503 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69, 2504 2505 /* 8-bit unsigned value. This attribute is used to dynamically configure 2506 * the number of spatial streams. When configured in the disconnected 2507 * state, the updated configuration will be considered for the 2508 * immediately following connection attempt. If the NSS is updated after 2509 * the connection, the updated NSS value is notified to the peer using 2510 * the Operating Mode Notification/Spatial Multiplexing Power Save 2511 * frame. The updated NSS value after the connection shall not be 2512 * greater than the one negotiated during the connection. Any such 2513 * higher value configuration shall be returned with a failure. 2514 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done 2515 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and 2516 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to 2517 * configure the asymmetric NSS configuration (such as 1X2). 2518 */ 2519 QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70, 2520 /* 8-bit unsigned value to trigger Optimized Power Management: 2521 * 1-Enable, 0-Disable 2522 */ 2523 QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71, 2524 2525 /* 8-bit unsigned value. This attribute takes the QoS/access category 2526 * value represented by the enum qca_wlan_ac_type and expects the driver 2527 * to upgrade the UDP frames to this access category. The value of 2528 * QCA_WLAN_AC_ALL is invalid for this attribute. This will override the 2529 * DSCP value configured in the frame with the intention to only upgrade 2530 * the access category. That said, it is not intended to downgrade the 2531 * access category for the frames. 2532 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be 2533 * disabled, as BK is of the lowest priority and an upgrade to it does 2534 * not result in any changes for the frames. 2535 */ 2536 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72, 2537 2538 /* 8-bit unsigned value. This attribute is used to dynamically configure 2539 * the number of chains to be used for transmitting data. This 2540 * configuration is allowed only when in connected state and will be 2541 * effective until disconnected. The driver rejects this configuration 2542 * if the number of spatial streams being used in the current connection 2543 * cannot be supported by this configuration. 2544 */ 2545 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73, 2546 /* 8-bit unsigned value. This attribute is used to dynamically configure 2547 * the number of chains to be used for receiving data. This 2548 * configuration is allowed only when in connected state and will be 2549 * effective until disconnected. The driver rejects this configuration 2550 * if the number of spatial streams being used in the current connection 2551 * cannot be supported by this configuration. 2552 */ 2553 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74, 2554 2555 /* 8-bit unsigned value to configure ANI setting type. 2556 * See &enum qca_wlan_ani_setting for possible values. 2557 */ 2558 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75, 2559 /* 32-bit signed value to configure ANI level. This is used when 2560 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED. 2561 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO 2562 * is invalid, the driver will return a failure. 2563 */ 2564 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76, 2565 2566 /* 8-bit unsigned value. This attribute is used to dynamically configure 2567 * the number of spatial streams used for transmitting the data. When 2568 * configured in the disconnected state, the configured value will 2569 * be considered for the following connection attempt. 2570 * If the NSS is updated after the connection, the updated NSS value 2571 * is notified to the peer using the Operating Mode Notification/Spatial 2572 * Multiplexing Power Save frame. 2573 * The TX NSS value configured after the connection shall not be greater 2574 * than the value negotiated during the connection. Any such higher 2575 * value configuration shall be treated as invalid configuration by 2576 * the driver. This attribute shall be configured along with 2577 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric 2578 * configuration (such as 2X2 or 1X1) or the asymmetric 2579 * configuration (such as 1X2). 2580 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along 2581 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver 2582 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS. 2583 */ 2584 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77, 2585 2586 /* 8-bit unsigned value. This attribute is used to dynamically configure 2587 * the number of spatial streams used for receiving the data. When 2588 * configured in the disconnected state, the configured value will 2589 * be considered for the following connection attempt. 2590 * If the NSS is updated after the connection, the updated NSS value 2591 * is notified to the peer using the Operating Mode Notification/Spatial 2592 * Multiplexing Power Save frame. 2593 * The RX NSS value configured after the connection shall not be greater 2594 * than the value negotiated during the connection. Any such higher 2595 * value configuration shall be treated as invalid configuration by 2596 * the driver. This attribute shall be configured along with 2597 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric 2598 * configuration (such as 2X2 or 1X1) or the asymmetric 2599 * configuration (such as 1X2). 2600 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along 2601 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver 2602 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS. 2603 */ 2604 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78, 2605 2606 /* 2607 * 8-bit unsigned value. This attribute, when set, indicates whether the 2608 * specified interface is the primary STA interface when there are more 2609 * than one STA interfaces concurrently active. 2610 * 2611 * This configuration helps the firmware/hardware to support certain 2612 * features (e.g., roaming) on this primary interface, if the same 2613 * cannot be supported on the concurrent STA interfaces simultaneously. 2614 * 2615 * This configuration is only applicable for a single STA interface on 2616 * a device and gives the priority for it only over other concurrent STA 2617 * interfaces. 2618 * 2619 * If the device is a multi wiphy/soc, this configuration applies to a 2620 * single STA interface across the wiphys. 2621 * 2622 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA) 2623 */ 2624 QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79, 2625 2626 /* 2627 * 8-bit unsigned value. This attribute can be used to configure the 2628 * driver to enable/disable FT-over-DS feature. Possible values for 2629 * this attribute are 1-Enable and 0-Disable. 2630 */ 2631 QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80, 2632 2633 /* 2634 * 8-bit unsigned value. This attribute can be used to configure the 2635 * firmware to enable/disable ARP/NS offload feature. Possible values 2636 * for this attribute are 0-Disable and 1-Enable. 2637 * 2638 * This attribute is only applicable for STA/P2P-Client interface, 2639 * and is optional, default behavior is ARP/NS offload enabled. 2640 * 2641 * This attribute can be set in disconnected and connected state, and 2642 * will restore to the default behavior if the interface is closed. 2643 */ 2644 QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81, 2645 2646 /* keep last */ 2647 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST, 2648 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX = 2649 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1, 2650 }; 2651 2652 /* Compatibility defines for previously used incorrect enum 2653 * qca_wlan_vendor_attr_config names. These values should not be used in any 2654 * new implementation. */ 2655 #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES \ 2656 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES 2657 #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL \ 2658 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL 2659 2660 /** 2661 * enum qca_wlan_ani_setting - ANI setting type 2662 * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level 2663 * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter 2664 */ 2665 enum qca_wlan_ani_setting { 2666 QCA_WLAN_ANI_SETTING_AUTO = 0, 2667 QCA_WLAN_ANI_SETTING_FIXED = 1, 2668 }; 2669 2670 /** 2671 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration 2672 * 2673 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8) 2674 * Channel number on which Access Point should restart. 2675 * Note: If both the driver and user space application supports the 6 GHz band, 2676 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY 2677 * should be used. 2678 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL 2679 * is still used if either of the driver or user space application doesn't 2680 * support the 6 GHz band. 2681 * 2682 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32) 2683 * Channel center frequency (MHz) on which the access point should restart. 2684 */ 2685 enum qca_wlan_vendor_attr_sap_config { 2686 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0, 2687 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1, 2688 2689 /* List of frequencies on which AP is expected to operate. 2690 * This is irrespective of ACS configuration. This list is a priority 2691 * based one and is looked for before the AP is created to ensure the 2692 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in 2693 * the system. 2694 */ 2695 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2, 2696 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3, 2697 2698 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST, 2699 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX = 2700 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1, 2701 }; 2702 2703 /** 2704 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP 2705 * conditional channel switch 2706 */ 2707 enum qca_wlan_vendor_attr_sap_conditional_chan_switch { 2708 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0, 2709 /* Priority based frequency list (an array of u32 values in host byte 2710 * order) 2711 */ 2712 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1, 2713 /* Status of the conditional switch (u32). 2714 * 0: Success, Non-zero: Failure 2715 */ 2716 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2, 2717 2718 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST, 2719 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX = 2720 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1, 2721 }; 2722 2723 /** 2724 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration 2725 * 2726 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32) 2727 * value to specify the GPIO command. Please refer to enum qca_gpio_cmd_type 2728 * for the available values. 2729 * 2730 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32) 2731 * value to specify the GPIO number. 2732 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 2733 * %QCA_WLAN_VENDOR_GPIO_CONFIG or %QCA_WLAN_VENDOR_GPIO_OUTPUT. 2734 * 2735 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32) 2736 * value to specify the GPIO output level. Please refer to enum qca_gpio_value 2737 * for the available values. 2738 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 2739 * %QCA_WLAN_VENDOR_GPIO_OUTPUT. 2740 * 2741 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32) 2742 * value to specify the GPIO pull type. Please refer to enum qca_gpio_pull_type 2743 * for the available values. 2744 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 2745 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 2746 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 2747 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 2748 * attribute is present. 2749 * 2750 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32) 2751 * value to specify the GPIO interrupt mode. Please refer to enum 2752 * qca_gpio_interrupt_mode for the available values. 2753 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 2754 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 2755 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 2756 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 2757 * attribute is present. 2758 * 2759 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32) 2760 * value to specify the GPIO direction. Please refer to enum qca_gpio_direction 2761 * for the available values. 2762 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 2763 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 2764 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 2765 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 2766 * attribute is present. 2767 * 2768 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32) 2769 * Value to specify the mux config. Meaning of a given value is dependent 2770 * on the target chipset and GPIO pin. Must be of the range 0-15. 2771 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 2772 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0. 2773 * 2774 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32) 2775 * Value to specify the drive, refer to enum qca_gpio_drive. 2776 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 2777 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0). 2778 * 2779 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag) 2780 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 2781 * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all 2782 * other parameters for the given GPIO will be obtained from internal 2783 * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be 2784 * specified to indicate the GPIO pin being configured. 2785 */ 2786 enum qca_wlan_gpio_attr { 2787 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0, 2788 /* Unsigned 32-bit attribute for GPIO command */ 2789 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1, 2790 /* Unsigned 32-bit attribute for GPIO PIN number to configure */ 2791 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2, 2792 /* Unsigned 32-bit attribute for GPIO value to configure */ 2793 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3, 2794 /* Unsigned 32-bit attribute for GPIO pull type */ 2795 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4, 2796 /* Unsigned 32-bit attribute for GPIO interrupt mode */ 2797 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5, 2798 /* Unsigned 32-bit attribute for GPIO direction to configure */ 2799 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6, 2800 /* Unsigned 32-bit attribute for GPIO mux config */ 2801 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7, 2802 /* Unsigned 32-bit attribute for GPIO drive */ 2803 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8, 2804 /* Flag attribute for using internal GPIO configuration */ 2805 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9, 2806 2807 /* keep last */ 2808 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST, 2809 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX = 2810 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1 2811 }; 2812 2813 /** 2814 * enum gpio_cmd_type - GPIO configuration command type 2815 * @QCA_WLAN_VENDOR_GPIO_CONFIG: Set GPIO configuration info 2816 * @QCA_WLAN_VENDOR_GPIO_OUTPUT: Set GPIO output level 2817 */ 2818 enum qca_gpio_cmd_type { 2819 QCA_WLAN_VENDOR_GPIO_CONFIG = 0, 2820 QCA_WLAN_VENDOR_GPIO_OUTPUT = 1, 2821 }; 2822 2823 /** 2824 * enum qca_gpio_pull_type - GPIO pull type 2825 * @QCA_WLAN_GPIO_PULL_NONE: Set GPIO pull type to none 2826 * @QCA_WLAN_GPIO_PULL_UP: Set GPIO pull up 2827 * @QCA_WLAN_GPIO_PULL_DOWN: Set GPIO pull down 2828 */ 2829 enum qca_gpio_pull_type { 2830 QCA_WLAN_GPIO_PULL_NONE = 0, 2831 QCA_WLAN_GPIO_PULL_UP = 1, 2832 QCA_WLAN_GPIO_PULL_DOWN = 2, 2833 QCA_WLAN_GPIO_PULL_MAX, 2834 }; 2835 2836 /** 2837 * enum qca_gpio_direction - GPIO direction 2838 * @QCA_WLAN_GPIO_INPUT: Set GPIO as input mode 2839 * @QCA_WLAN_GPIO_OUTPUT: Set GPIO as output mode 2840 * @QCA_WLAN_GPIO_VALUE_MAX: Invalid value 2841 */ 2842 enum qca_gpio_direction { 2843 QCA_WLAN_GPIO_INPUT = 0, 2844 QCA_WLAN_GPIO_OUTPUT = 1, 2845 QCA_WLAN_GPIO_DIR_MAX, 2846 }; 2847 2848 /** 2849 * enum qca_gpio_value - GPIO Value 2850 * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low 2851 * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high 2852 * @QCA_WLAN_GPIO_LEVEL_MAX: Invalid value 2853 */ 2854 enum qca_gpio_value { 2855 QCA_WLAN_GPIO_LEVEL_LOW = 0, 2856 QCA_WLAN_GPIO_LEVEL_HIGH = 1, 2857 QCA_WLAN_GPIO_LEVEL_MAX, 2858 }; 2859 2860 /** 2861 * enum gpio_interrupt_mode - GPIO interrupt mode 2862 * @QCA_WLAN_GPIO_INTMODE_DISABLE: Disable interrupt trigger 2863 * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: Interrupt with GPIO rising edge trigger 2864 * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: Interrupt with GPIO falling edge trigger 2865 * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: Interrupt with GPIO both edge trigger 2866 * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: Interrupt with GPIO level low trigger 2867 * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: Interrupt with GPIO level high trigger 2868 * @QCA_WLAN_GPIO_INTMODE_MAX: Invalid value 2869 */ 2870 enum qca_gpio_interrupt_mode { 2871 QCA_WLAN_GPIO_INTMODE_DISABLE = 0, 2872 QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1, 2873 QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2, 2874 QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3, 2875 QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4, 2876 QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5, 2877 QCA_WLAN_GPIO_INTMODE_MAX, 2878 }; 2879 2880 /** 2881 * enum qca_gpio_drive - GPIO drive 2882 * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA 2883 * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA 2884 * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA 2885 * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA 2886 * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA 2887 * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA 2888 * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA 2889 * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA 2890 * @QCA_WLAN_GPIO_DRIVE_MAX: invalid GPIO drive 2891 */ 2892 enum qca_gpio_drive { 2893 QCA_WLAN_GPIO_DRIVE_2MA = 0, 2894 QCA_WLAN_GPIO_DRIVE_4MA = 1, 2895 QCA_WLAN_GPIO_DRIVE_6MA = 2, 2896 QCA_WLAN_GPIO_DRIVE_8MA = 3, 2897 QCA_WLAN_GPIO_DRIVE_10MA = 4, 2898 QCA_WLAN_GPIO_DRIVE_12MA = 5, 2899 QCA_WLAN_GPIO_DRIVE_14MA = 6, 2900 QCA_WLAN_GPIO_DRIVE_16MA = 7, 2901 QCA_WLAN_GPIO_DRIVE_MAX, 2902 }; 2903 2904 /** 2905 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting 2906 * MSDUQ depth threshold per peer per tid in the target 2907 * 2908 * Associated Vendor Command: 2909 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH 2910 */ 2911 enum qca_wlan_set_qdepth_thresh_attr { 2912 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0, 2913 /* 6-byte MAC address */ 2914 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR, 2915 /* Unsigned 32-bit attribute for holding the TID */ 2916 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID, 2917 /* Unsigned 32-bit attribute for holding the update mask 2918 * bit 0 - Update high priority msdu qdepth threshold 2919 * bit 1 - Update low priority msdu qdepth threshold 2920 * bit 2 - Update UDP msdu qdepth threshold 2921 * bit 3 - Update Non UDP msdu qdepth threshold 2922 * rest of bits are reserved 2923 */ 2924 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK, 2925 /* Unsigned 32-bit attribute for holding the threshold value */ 2926 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE, 2927 2928 /* keep last */ 2929 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST, 2930 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX = 2931 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1, 2932 }; 2933 2934 /** 2935 * enum qca_acs_dfs_mode - Defines different types of DFS channel 2936 * configurations for ACS operation. 2937 * 2938 * @QCA_ACS_DFS_MODE_NONE: Refer to invalid DFS mode 2939 * @QCA_ACS_DFS_MODE_ENABLE: Consider DFS channels in ACS operation 2940 * @QCA_ACS_DFS_MODE_DISABLE: Do not consider DFS channels in ACS operation 2941 * @QCA_ACS_DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in ACS operation 2942 */ 2943 enum qca_acs_dfs_mode { 2944 QCA_ACS_DFS_MODE_NONE = 0, 2945 QCA_ACS_DFS_MODE_ENABLE = 1, 2946 QCA_ACS_DFS_MODE_DISABLE = 2, 2947 QCA_ACS_DFS_MODE_DEPRIORITIZE = 3, 2948 }; 2949 2950 /** 2951 * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes 2952 * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY. 2953 * 2954 * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8) 2955 * DFS mode for ACS operation from enum qca_acs_dfs_mode. 2956 * 2957 * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8) 2958 * channel number hint for ACS operation, if valid channel is specified then 2959 * ACS operation gives priority to this channel. 2960 * Note: If both the driver and user space application supports the 6 GHz band, 2961 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT 2962 * should be used. 2963 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT 2964 * is still used if either of the driver or user space application doesn't 2965 * support the 6 GHz band. 2966 * 2967 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32). 2968 * Channel center frequency (MHz) hint for ACS operation, if a valid center 2969 * frequency is specified, ACS operation gives priority to this channel. 2970 */ 2971 enum qca_wlan_vendor_attr_acs_config { 2972 QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0, 2973 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1, 2974 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2, 2975 QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3, 2976 2977 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST, 2978 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX = 2979 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1, 2980 }; 2981 2982 /** 2983 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability 2984 */ 2985 enum qca_wlan_vendor_attr_get_hw_capability { 2986 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID, 2987 /* Antenna isolation 2988 * An attribute used in the response. 2989 * The content of this attribute is encoded in a byte array. Each byte 2990 * value is an antenna isolation value. The array length is the number 2991 * of antennas. 2992 */ 2993 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION, 2994 /* Request HW capability 2995 * An attribute used in the request. 2996 * The content of this attribute is a u32 array for one or more of 2997 * hardware capabilities (attribute IDs) that are being requested. Each 2998 * u32 value has a value from this 2999 * enum qca_wlan_vendor_attr_get_hw_capability 3000 * identifying which capabilities are requested. 3001 */ 3002 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY, 3003 3004 /* keep last */ 3005 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST, 3006 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX = 3007 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1, 3008 }; 3009 3010 /** 3011 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring 3012 * offload which is an extension for LL_STATS. 3013 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms. 3014 * If MAC counters do not exceed the threshold, FW will report monitored 3015 * link layer counters periodically as this setting. The first report is 3016 * always triggered by this timer. 3017 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99). 3018 * For each MAC layer counter, FW holds two copies. One is the current value. 3019 * The other is the last report. Once a current counter's increment is larger 3020 * than the threshold, FW will indicate that counter to host even if the 3021 * monitoring timer does not expire. 3022 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change 3023 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU 3024 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same 3025 * failure code. 3026 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code 3027 * 1: TX packet discarded 3028 * 2: No ACK 3029 * 3: Postpone 3030 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address 3031 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state 3032 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold. 3033 * Threshold for all monitored parameters. If per counter dedicated threshold 3034 * is not enabled, this threshold will take effect. 3035 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this 3036 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0. 3037 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID 3038 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID 3039 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters 3040 * Bit0: TX counter unit in MSDU 3041 * Bit1: TX counter unit in MPDU 3042 * Bit2: TX counter unit in PPDU 3043 * Bit3: TX counter unit in byte 3044 * Bit4: Dropped MSDUs 3045 * Bit5: Dropped Bytes 3046 * Bit6: MPDU retry counter 3047 * Bit7: MPDU failure counter 3048 * Bit8: PPDU failure counter 3049 * Bit9: MPDU aggregation counter 3050 * Bit10: MCS counter for ACKed MPDUs 3051 * Bit11: MCS counter for Failed MPDUs 3052 * Bit12: TX Delay counter 3053 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters 3054 * Bit0: MAC RX counter unit in MPDU 3055 * Bit1: MAC RX counter unit in byte 3056 * Bit2: PHY RX counter unit in PPDU 3057 * Bit3: PHY RX counter unit in byte 3058 * Bit4: Disorder counter 3059 * Bit5: Retry counter 3060 * Bit6: Duplication counter 3061 * Bit7: Discard counter 3062 * Bit8: MPDU aggregation size counter 3063 * Bit9: MCS counter 3064 * Bit10: Peer STA power state change (wake to sleep) counter 3065 * Bit11: Peer STA power save counter, total time in PS mode 3066 * Bit12: Probe request counter 3067 * Bit13: Other management frames counter 3068 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA 3069 * Bit0: Idle time 3070 * Bit1: TX time 3071 * Bit2: time RX in current bss 3072 * Bit3: Out of current bss time 3073 * Bit4: Wireless medium busy time 3074 * Bit5: RX in bad condition time 3075 * Bit6: TX in bad condition time 3076 * Bit7: time wlan card not available 3077 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal 3078 * Bit0: Per channel SNR counter 3079 * Bit1: Per channel noise floor counter 3080 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers 3081 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels 3082 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats 3083 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats 3084 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats 3085 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs 3086 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs 3087 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs 3088 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data 3089 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets 3090 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped 3091 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK 3092 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed 3093 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed 3094 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM: 3095 * aggregation stats buffer length 3096 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats 3097 * buffer for ACKed MPDUs. 3098 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats 3099 * buffer for failed MPDUs. 3100 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE: 3101 * length of delay stats array. 3102 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats 3103 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs 3104 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs 3105 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats 3106 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received 3107 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received 3108 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received 3109 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received 3110 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost 3111 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets 3112 * flagged as retransmissions 3113 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets 3114 * flagged as duplicated 3115 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX 3116 * packets discarded 3117 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation 3118 * stats buffer. 3119 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs 3120 * stats buffer. 3121 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer 3122 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer 3123 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep 3124 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time 3125 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe 3126 * requests received 3127 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt 3128 * frames received 3129 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time 3130 * there is no TX, nor RX, nor interference. 3131 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time 3132 * transmitting packets. 3133 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time 3134 * for receiving. 3135 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time 3136 * interference detected. 3137 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time 3138 * receiving packets with errors. 3139 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time 3140 * TX no-ACK. 3141 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time 3142 * the chip is unable to work in normal conditions. 3143 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time 3144 * receiving packets in current BSS. 3145 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time 3146 * receiving packets not in current BSS. 3147 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas 3148 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL: 3149 * This is a container for per antenna signal stats. 3150 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value 3151 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value 3152 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon 3153 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon 3154 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64 3155 * Absolute timestamp from 1970/1/1, unit in ms. After receiving the 3156 * message, user layer APP could call gettimeofday to get another 3157 * timestamp and calculate transfer delay for the message. 3158 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32 3159 * Real period for this measurement, unit in us. 3160 */ 3161 enum qca_wlan_vendor_attr_ll_stats_ext { 3162 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0, 3163 3164 /* Attributes for configurations */ 3165 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD, 3166 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD, 3167 3168 /* Peer STA power state change */ 3169 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG, 3170 3171 /* TX failure event */ 3172 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID, 3173 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU, 3174 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS, 3175 3176 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE, 3177 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS, 3178 3179 /* MAC counters */ 3180 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL, 3181 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE, 3182 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID, 3183 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID, 3184 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP, 3185 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP, 3186 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP, 3187 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP, 3188 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM, 3189 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM, 3190 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS, 3191 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER, 3192 3193 /* Sub-attributes for PEER_AC_TX */ 3194 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU, 3195 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU, 3196 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU, 3197 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES, 3198 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP, 3199 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES, 3200 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY, 3201 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK, 3202 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK, 3203 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM, 3204 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM, 3205 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM, 3206 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR, 3207 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS, 3208 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS, 3209 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE, 3210 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY, 3211 3212 /* Sub-attributes for PEER_AC_RX */ 3213 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU, 3214 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES, 3215 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU, 3216 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES, 3217 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST, 3218 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY, 3219 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP, 3220 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD, 3221 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM, 3222 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM, 3223 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS, 3224 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR, 3225 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES, 3226 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION, 3227 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ, 3228 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT, 3229 3230 /* Sub-attributes for CCA_BSS */ 3231 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME, 3232 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME, 3233 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME, 3234 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY, 3235 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD, 3236 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD, 3237 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL, 3238 3239 /* sub-attribute for BSS_RX_TIME */ 3240 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME, 3241 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME, 3242 3243 /* Sub-attributes for PEER_SIGNAL */ 3244 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM, 3245 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL, 3246 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR, 3247 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF, 3248 3249 /* Sub-attributes for IFACE_BSS */ 3250 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON, 3251 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON, 3252 3253 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME, 3254 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME, 3255 3256 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST, 3257 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX = 3258 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1 3259 }; 3260 3261 /* Attributes for FTM commands and events */ 3262 3263 /** 3264 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities 3265 * 3266 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See 3267 * enum qca_wlan_vendor_attr_loc_capa_flags. 3268 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number 3269 * of measurement sessions that can run concurrently. 3270 * Default is one session (no session concurrency). 3271 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique 3272 * peers that are supported in running sessions. For example, 3273 * if the value is 8 and maximum number of sessions is 2, you can 3274 * have one session with 8 unique peers, or 2 sessions with 4 unique 3275 * peers each, and so on. 3276 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number 3277 * of bursts per peer, as an exponent (2^value). Default is 0, 3278 * meaning no multi-burst support. 3279 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number 3280 * of measurement exchanges allowed in a single burst. 3281 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement 3282 * types. A bit mask (unsigned 32 bit value), each bit corresponds 3283 * to an AOA type as defined by enum qca_vendor_attr_aoa_type. 3284 */ 3285 enum qca_wlan_vendor_attr_loc_capa { 3286 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID, 3287 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS, 3288 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS, 3289 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS, 3290 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP, 3291 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST, 3292 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES, 3293 /* keep last */ 3294 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST, 3295 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX = 3296 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1, 3297 }; 3298 3299 /** 3300 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags 3301 * 3302 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver 3303 * can be configured as an FTM responder (for example, an AP that 3304 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 3305 * will be supported if set. 3306 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver 3307 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION 3308 * will be supported if set. 3309 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder 3310 * supports immediate (ASAP) response. 3311 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone 3312 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS. 3313 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports 3314 * requesting AOA measurements as part of an FTM session. 3315 */ 3316 enum qca_wlan_vendor_attr_loc_capa_flags { 3317 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0, 3318 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1, 3319 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2, 3320 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3, 3321 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4, 3322 }; 3323 3324 /** 3325 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about 3326 * a single peer in a measurement session. 3327 * 3328 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer. 3329 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related 3330 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags. 3331 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of 3332 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0 3333 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for 3334 * list of supported attributes. 3335 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for 3336 * secure measurement. 3337 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA 3338 * measurement every <value> bursts. If 0 or not specified, 3339 * AOA measurements will be disabled for this peer. 3340 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where 3341 * the measurement frames are exchanged. Optional; if not 3342 * specified, try to locate the peer in the kernel scan 3343 * results cache and use frequency from there. 3344 */ 3345 enum qca_wlan_vendor_attr_ftm_peer_info { 3346 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID, 3347 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR, 3348 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS, 3349 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS, 3350 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID, 3351 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD, 3352 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ, 3353 /* keep last */ 3354 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST, 3355 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX = 3356 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1, 3357 }; 3358 3359 /** 3360 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags, 3361 * per-peer 3362 * 3363 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request 3364 * immediate (ASAP) response from peer. 3365 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request 3366 * LCI report from peer. The LCI report includes the absolute 3367 * location of the peer in "official" coordinates (similar to GPS). 3368 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information. 3369 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request 3370 * Location civic report from peer. The LCR includes the location 3371 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0, 3372 * 11.24.6.7 for more information. 3373 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set, 3374 * request a secure measurement. 3375 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided. 3376 */ 3377 enum qca_wlan_vendor_attr_ftm_peer_meas_flags { 3378 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0, 3379 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1, 3380 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2, 3381 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3, 3382 }; 3383 3384 /** 3385 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters 3386 * 3387 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements 3388 * to perform in a single burst. 3389 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to 3390 * perform, specified as an exponent (2^value). 3391 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst 3392 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. 3393 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts, 3394 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must 3395 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION. 3396 */ 3397 enum qca_wlan_vendor_attr_ftm_meas_param { 3398 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID, 3399 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST, 3400 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP, 3401 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION, 3402 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD, 3403 /* keep last */ 3404 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST, 3405 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX = 3406 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1, 3407 }; 3408 3409 /** 3410 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results 3411 * 3412 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported 3413 * peer. 3414 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement 3415 * request for this peer. 3416 * See enum qca_wlan_vendor_attr_ftm_peer_result_status. 3417 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related 3418 * to measurement results for this peer. 3419 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags. 3420 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when 3421 * request failed and peer requested not to send an additional request 3422 * for this number of seconds. 3423 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received 3424 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0, 3425 * 9.4.2.22.10. 3426 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when 3427 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0, 3428 * 9.4.2.22.13. 3429 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer 3430 * overridden some measurement request parameters. See 3431 * enum qca_wlan_vendor_attr_ftm_meas_param. 3432 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement 3433 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT. 3434 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement 3435 * results. Each entry is a nested attribute defined 3436 * by enum qca_wlan_vendor_attr_ftm_meas. 3437 */ 3438 enum qca_wlan_vendor_attr_ftm_peer_result { 3439 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID, 3440 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR, 3441 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS, 3442 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS, 3443 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS, 3444 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI, 3445 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR, 3446 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS, 3447 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS, 3448 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS, 3449 /* keep last */ 3450 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST, 3451 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX = 3452 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1, 3453 }; 3454 3455 /** 3456 * enum qca_wlan_vendor_attr_ftm_peer_result_status 3457 * 3458 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results 3459 * will be provided. Peer may have overridden some measurement parameters, 3460 * in which case overridden parameters will be report by 3461 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute. 3462 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable 3463 * of performing the measurement request. No more results will be sent 3464 * for this peer in this session. 3465 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request 3466 * failed, and requested not to send an additional request for number 3467 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS 3468 * attribute. 3469 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation 3470 * failed. Request was not sent over the air. 3471 */ 3472 enum qca_wlan_vendor_attr_ftm_peer_result_status { 3473 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK, 3474 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE, 3475 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED, 3476 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID, 3477 }; 3478 3479 /** 3480 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags 3481 * for measurement result, per-peer 3482 * 3483 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set, 3484 * measurement completed for this peer. No more results will be reported 3485 * for this peer in this session. 3486 */ 3487 enum qca_wlan_vendor_attr_ftm_peer_result_flags { 3488 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0, 3489 }; 3490 3491 /** 3492 * enum qca_vendor_attr_loc_session_status: Session completion status code 3493 * 3494 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed 3495 * successfully. 3496 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted 3497 * by request. 3498 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request 3499 * was invalid and was not started. 3500 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error 3501 * and did not complete normally (for example out of resources). 3502 */ 3503 enum qca_vendor_attr_loc_session_status { 3504 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK, 3505 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED, 3506 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID, 3507 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED, 3508 }; 3509 3510 /** 3511 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data 3512 * 3513 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as 3514 * recorded by responder, in picoseconds. 3515 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 3516 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at 3517 * initiator, in picoseconds. 3518 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 3519 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by 3520 * initiator, in picoseconds. 3521 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 3522 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at 3523 * responder, in picoseconds. 3524 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 3525 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded 3526 * during this measurement exchange. Optional and will be provided if 3527 * the hardware can measure it. 3528 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by 3529 * responder. Not always provided. 3530 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 3531 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by 3532 * responder. Not always provided. 3533 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 3534 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by 3535 * initiator. Not always provided. 3536 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 3537 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by 3538 * initiator. Not always provided. 3539 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 3540 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding. 3541 */ 3542 enum qca_wlan_vendor_attr_ftm_meas { 3543 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID, 3544 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1, 3545 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2, 3546 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3, 3547 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4, 3548 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI, 3549 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR, 3550 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR, 3551 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR, 3552 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR, 3553 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD, 3554 /* keep last */ 3555 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST, 3556 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX = 3557 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1, 3558 }; 3559 3560 /** 3561 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type 3562 * 3563 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest 3564 * CIR (channel impulse response) path for each antenna. 3565 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude 3566 * of the strongest CIR path for each antenna. 3567 */ 3568 enum qca_wlan_vendor_attr_aoa_type { 3569 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE, 3570 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP, 3571 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX 3572 }; 3573 3574 /** 3575 * enum qca_wlan_vendor_attr_encryption_test - Attributes to 3576 * validate encryption engine 3577 * 3578 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute. 3579 * This will be included if the request is for decryption; if not included, 3580 * the request is treated as a request for encryption by default. 3581 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value 3582 * indicating the key cipher suite. Takes same values as 3583 * NL80211_ATTR_KEY_CIPHER. 3584 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value 3585 * Key Id to be used for encryption 3586 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values. 3587 * Key (TK) to be used for encryption/decryption 3588 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values. 3589 * Packet number to be specified for encryption/decryption 3590 * 6 bytes for TKIP/CCMP/GCMP. 3591 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values 3592 * representing the 802.11 packet (header + payload + FCS) that 3593 * needs to be encrypted/decrypted. 3594 * Encrypted/decrypted response from the driver will also be sent 3595 * to userspace with the same attribute. 3596 */ 3597 enum qca_wlan_vendor_attr_encryption_test { 3598 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0, 3599 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION, 3600 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER, 3601 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID, 3602 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK, 3603 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN, 3604 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA, 3605 3606 /* keep last */ 3607 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST, 3608 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX = 3609 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1 3610 }; 3611 3612 /** 3613 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of 3614 * sector for DMG RF sector operations. 3615 * 3616 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector 3617 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector 3618 */ 3619 enum qca_wlan_vendor_attr_dmg_rf_sector_type { 3620 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX, 3621 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX, 3622 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX 3623 }; 3624 3625 /** 3626 * enum qca_wlan_vendor_attr_fw_state - State of firmware 3627 * 3628 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state 3629 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active 3630 */ 3631 enum qca_wlan_vendor_attr_fw_state { 3632 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR, 3633 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE, 3634 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX 3635 }; 3636 3637 /** 3638 * BRP antenna limit mode 3639 * 3640 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force 3641 * antenna limit, BRP will be performed as usual. 3642 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal 3643 * antennas limit. the hardware may use less antennas than the 3644 * maximum limit. 3645 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will 3646 * use exactly the specified number of antennas for BRP. 3647 */ 3648 enum qca_wlan_vendor_attr_brp_ant_limit_mode { 3649 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE, 3650 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE, 3651 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE, 3652 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX 3653 }; 3654 3655 /** 3656 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for 3657 * DMG RF sector configuration for a single RF module. 3658 * The values are defined in a compact way which closely matches 3659 * the way it is stored in HW registers. 3660 * The configuration provides values for 32 antennas and 8 distribution 3661 * amplifiers, and together describes the characteristics of the RF 3662 * sector - such as a beam in some direction with some gain. 3663 * 3664 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index 3665 * of RF module for this configuration. 3666 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge 3667 * amplifier gain index. Unsigned 32 bit number containing 3668 * bits for all 32 antennas. 3669 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge 3670 * amplifier gain index. Unsigned 32 bit number containing 3671 * bits for all 32 antennas. 3672 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge 3673 * amplifier gain index. Unsigned 32 bit number containing 3674 * bits for all 32 antennas. 3675 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values 3676 * for first 16 antennas, 2 bits per antenna. 3677 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values 3678 * for last 16 antennas, 2 bits per antenna. 3679 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains 3680 * DTYPE values (3 bits) for each distribution amplifier, followed 3681 * by X16 switch bits for each distribution amplifier. There are 3682 * total of 8 distribution amplifiers. 3683 */ 3684 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg { 3685 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0, 3686 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1, 3687 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2, 3688 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3, 3689 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4, 3690 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5, 3691 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6, 3692 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7, 3693 3694 /* keep last */ 3695 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST, 3696 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX = 3697 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1 3698 }; 3699 3700 enum qca_wlan_vendor_attr_ll_stats_set { 3701 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0, 3702 /* Unsigned 32-bit value */ 3703 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1, 3704 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2, 3705 /* keep last */ 3706 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST, 3707 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX = 3708 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1, 3709 }; 3710 3711 enum qca_wlan_vendor_attr_ll_stats_clr { 3712 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0, 3713 /* Unsigned 32bit bitmap for clearing statistics 3714 * All radio statistics 0x00000001 3715 * cca_busy_time (within radio statistics) 0x00000002 3716 * All channel stats (within radio statistics) 0x00000004 3717 * All scan statistics (within radio statistics) 0x00000008 3718 * All interface statistics 0x00000010 3719 * All tx rate statistics (within interface statistics) 0x00000020 3720 * All ac statistics (with in interface statistics) 0x00000040 3721 * All contention (min, max, avg) statistics (within ac statisctics) 3722 * 0x00000080. 3723 */ 3724 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1, 3725 /* Unsigned 8 bit value: Request to stop statistics collection */ 3726 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2, 3727 3728 /* Unsigned 32 bit bitmap: Response from the driver 3729 * for the cleared statistics 3730 */ 3731 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3, 3732 /* Unsigned 8 bit value: Response from driver/firmware 3733 * for the stop request 3734 */ 3735 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4, 3736 /* keep last */ 3737 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST, 3738 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX = 3739 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1, 3740 }; 3741 3742 enum qca_wlan_vendor_attr_ll_stats_get { 3743 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0, 3744 /* Unsigned 32 bit value provided by the caller issuing the GET stats 3745 * command. When reporting the stats results, the driver uses the same 3746 * value to indicate which GET request the results correspond to. 3747 */ 3748 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1, 3749 /* Unsigned 32 bit value - bit mask to identify what statistics are 3750 * requested for retrieval. 3751 * Radio Statistics 0x00000001 3752 * Interface Statistics 0x00000020 3753 * All Peer Statistics 0x00000040 3754 * Peer Statistics 0x00000080 3755 */ 3756 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2, 3757 /* keep last */ 3758 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST, 3759 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX = 3760 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1, 3761 }; 3762 3763 enum qca_wlan_vendor_attr_ll_stats_results { 3764 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0, 3765 /* Unsigned 32bit value. Used by the driver; must match the request id 3766 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command. 3767 */ 3768 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1, 3769 3770 /* Unsigned 32 bit value */ 3771 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2, 3772 /* Unsigned 32 bit value */ 3773 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3, 3774 /* Unsigned 32 bit value */ 3775 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4, 3776 /* Unsigned 32 bit value */ 3777 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5, 3778 /* Signed 32 bit value */ 3779 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6, 3780 /* Signed 32 bit value */ 3781 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7, 3782 /* Signed 32 bit value */ 3783 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8, 3784 3785 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are 3786 * nested within the interface stats. 3787 */ 3788 3789 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc. 3790 * Type = enum wifi_interface_mode. 3791 */ 3792 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9, 3793 /* Interface MAC address. An array of 6 Unsigned int8 */ 3794 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10, 3795 /* Type = enum wifi_connection_state, e.g., DISCONNECTED, 3796 * AUTHENTICATING, etc. valid for STA, CLI only. 3797 */ 3798 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11, 3799 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE 3800 */ 3801 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12, 3802 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */ 3803 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13, 3804 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */ 3805 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14, 3806 /* BSSID. An array of 6 unsigned 8 bit values */ 3807 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15, 3808 /* Country string advertised by AP. An array of 3 unsigned 8 bit 3809 * values. 3810 */ 3811 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16, 3812 /* Country string for this association. An array of 3 unsigned 8 bit 3813 * values. 3814 */ 3815 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17, 3816 3817 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could 3818 * be nested within the interface stats. 3819 */ 3820 3821 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */ 3822 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18, 3823 /* Unsigned int 32 value corresponding to respective AC */ 3824 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19, 3825 /* Unsigned int 32 value corresponding to respective AC */ 3826 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20, 3827 /* Unsigned int 32 value corresponding to respective AC */ 3828 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21, 3829 /* Unsigned int 32 value corresponding to respective AC */ 3830 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22, 3831 /* Unsigned int 32 value corresponding to respective AC */ 3832 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23, 3833 /* Unsigned int 32 value corresponding to respective AC */ 3834 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24, 3835 /* Unsigned int 32 value corresponding to respective AC */ 3836 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25, 3837 /* Unsigned int 32 value corresponding to respective AC */ 3838 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26, 3839 /* Unsigned int 32 value corresponding to respective AC */ 3840 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27, 3841 /* Unsigned int 32 values corresponding to respective AC */ 3842 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28, 3843 /* Unsigned int 32 values corresponding to respective AC */ 3844 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29, 3845 /* Unsigned int 32 values corresponding to respective AC */ 3846 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30, 3847 /* Unsigned int 32 values corresponding to respective AC */ 3848 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31, 3849 /* Unsigned int 32 values corresponding to respective AC */ 3850 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32, 3851 /* Unsigned 32 bit value. Number of peers */ 3852 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33, 3853 3854 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are 3855 * nested within the interface stats. 3856 */ 3857 3858 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */ 3859 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34, 3860 /* MAC addr corresponding to respective peer. An array of 6 unsigned 3861 * 8 bit values. 3862 */ 3863 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35, 3864 /* Unsigned int 32 bit value representing capabilities corresponding 3865 * to respective peer. 3866 */ 3867 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36, 3868 /* Unsigned 32 bit value. Number of rates */ 3869 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37, 3870 3871 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* 3872 * are nested within the rate stat. 3873 */ 3874 3875 /* Wi-Fi Rate - separate attributes defined for individual fields */ 3876 3877 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */ 3878 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38, 3879 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */ 3880 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39, 3881 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */ 3882 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40, 3883 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std 3884 * in the units of 0.5 Mbps HT/VHT it would be MCS index 3885 */ 3886 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41, 3887 3888 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */ 3889 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42, 3890 3891 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be 3892 * nested within the peer info stats. 3893 */ 3894 3895 /* Unsigned int 32 bit value. Number of successfully transmitted data 3896 * packets, i.e., with ACK received corresponding to the respective 3897 * rate. 3898 */ 3899 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43, 3900 /* Unsigned int 32 bit value. Number of received data packets 3901 * corresponding to the respective rate. 3902 */ 3903 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44, 3904 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK 3905 * received corresponding to the respective rate. 3906 */ 3907 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45, 3908 /* Unsigned int 32 bit value. Total number of data packet retries for 3909 * the respective rate. 3910 */ 3911 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46, 3912 /* Unsigned int 32 bit value. Total number of short data packet retries 3913 * for the respective rate. 3914 */ 3915 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47, 3916 /* Unsigned int 32 bit value. Total number of long data packet retries 3917 * for the respective rate. 3918 */ 3919 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48, 3920 3921 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49, 3922 /* Unsigned 32 bit value. Total number of msecs the radio is awake 3923 * accruing over time. 3924 */ 3925 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50, 3926 /* Unsigned 32 bit value. Total number of msecs the radio is 3927 * transmitting accruing over time. 3928 */ 3929 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51, 3930 /* Unsigned 32 bit value. Total number of msecs the radio is in active 3931 * receive accruing over time. 3932 */ 3933 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52, 3934 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 3935 * to all scan accruing over time. 3936 */ 3937 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53, 3938 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 3939 * to NAN accruing over time. 3940 */ 3941 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54, 3942 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 3943 * to GSCAN accruing over time. 3944 */ 3945 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55, 3946 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 3947 * to roam scan accruing over time. 3948 */ 3949 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56, 3950 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 3951 * to PNO scan accruing over time. 3952 */ 3953 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57, 3954 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 3955 * to Hotspot 2.0 scans and GAS exchange accruing over time. 3956 */ 3957 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58, 3958 /* Unsigned 32 bit value. Number of channels. */ 3959 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59, 3960 3961 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could 3962 * be nested within the channel stats. 3963 */ 3964 3965 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */ 3966 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60, 3967 /* Unsigned 32 bit value. Primary 20 MHz channel. */ 3968 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61, 3969 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */ 3970 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62, 3971 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */ 3972 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63, 3973 3974 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be 3975 * nested within the radio stats. 3976 */ 3977 3978 /* Unsigned int 32 bit value representing total number of msecs the 3979 * radio is awake on that channel accruing over time, corresponding to 3980 * the respective channel. 3981 */ 3982 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64, 3983 /* Unsigned int 32 bit value representing total number of msecs the CCA 3984 * register is busy accruing over time corresponding to the respective 3985 * channel. 3986 */ 3987 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65, 3988 3989 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66, 3990 3991 /* Signifies the nested list of channel attributes 3992 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* 3993 */ 3994 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67, 3995 3996 /* Signifies the nested list of peer info attributes 3997 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* 3998 */ 3999 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68, 4000 4001 /* Signifies the nested list of rate info attributes 4002 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* 4003 */ 4004 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69, 4005 4006 /* Signifies the nested list of wmm info attributes 4007 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* 4008 */ 4009 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70, 4010 4011 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates 4012 * that more stats, e.g., peers or radio, are to follow in the next 4013 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event. 4014 * Otherwise, it is set to 0. 4015 */ 4016 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71, 4017 4018 /* Unsigned 64 bit value */ 4019 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72, 4020 4021 /* Unsigned 32 bit value */ 4022 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73, 4023 4024 /* Unsigned 32 bit value */ 4025 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74, 4026 4027 /* Unsigned 32 bit value */ 4028 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75, 4029 4030 /* Unsigned 32 bit value */ 4031 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76, 4032 4033 /* Unsigned 32 bit value */ 4034 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77, 4035 4036 /* Number of msecs the radio spent in transmitting for each power level 4037 */ 4038 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78, 4039 4040 /* Unsigned 32 bit value */ 4041 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79, 4042 /* Unsigned 32 bit value */ 4043 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80, 4044 /* Unsigned 32 bit value */ 4045 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81, 4046 /* Unsigned 32 bit value */ 4047 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82, 4048 4049 /* Unsigned int 32 value. 4050 * Pending MSDUs corresponding to respective AC. 4051 */ 4052 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83, 4053 4054 /* u32 value representing total time in milliseconds for which the radio 4055 * is transmitting on this channel. This attribute will be nested 4056 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO. 4057 */ 4058 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84, 4059 /* u32 value representing total time in milliseconds for which the radio 4060 * is receiving all 802.11 frames intended for this device on this 4061 * channel. This attribute will be nested within 4062 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO. 4063 */ 4064 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85, 4065 /* u8 value representing the channel load percentage. Possible values 4066 * are 0-100. 4067 */ 4068 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86, 4069 /* u8 value representing the time slicing duty cycle percentage. 4070 * Possible values are 0-100. 4071 */ 4072 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87, 4073 /* keep last */ 4074 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST, 4075 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX = 4076 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1, 4077 }; 4078 4079 enum qca_wlan_vendor_attr_ll_stats_type { 4080 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0, 4081 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1, 4082 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2, 4083 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3, 4084 4085 /* keep last */ 4086 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST, 4087 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX = 4088 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1, 4089 }; 4090 4091 /** 4092 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for 4093 * TDLS configuration to the host driver. 4094 * 4095 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger 4096 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode 4097 * represents the different TDLS trigger modes. 4098 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within 4099 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number 4100 * of packets shall meet the criteria for implicit TDLS setup. 4101 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets 4102 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD 4103 * to initiate a TDLS setup. 4104 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate 4105 * a TDLS Discovery to the peer. 4106 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of 4107 * discovery attempts to know the TDLS capability of the peer. A peer is 4108 * marked as TDLS not capable if there is no response for all the attempts. 4109 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32) 4110 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD 4111 * number of TX / RX frames meet the criteria for TDLS teardown. 4112 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32) 4113 * of Tx/Rx packets within a duration 4114 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link. 4115 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold 4116 * corresponding to the RSSI of the peer below which a TDLS setup is 4117 * triggered. 4118 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold 4119 * corresponding to the RSSI of the peer above which a TDLS teardown is 4120 * triggered. 4121 */ 4122 enum qca_wlan_vendor_attr_tdls_configuration { 4123 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0, 4124 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1, 4125 4126 /* Attributes configuring the TDLS Implicit Trigger */ 4127 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2, 4128 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3, 4129 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4, 4130 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5, 4131 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6, 4132 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7, 4133 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8, 4134 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9, 4135 4136 /* keep last */ 4137 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST, 4138 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX = 4139 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1 4140 }; 4141 4142 /** 4143 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in 4144 * the driver 4145 * 4146 * The following are the different values for 4147 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE. 4148 * 4149 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown 4150 * the TDLS connection to a respective peer comes from the user space. 4151 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN, 4152 * TDLS_DISCOVER to do this. 4153 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS 4154 * setup/teardown to the eligible peer once the configured criteria 4155 * (such as TX/RX threshold, RSSI) is met. The attributes 4156 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to 4157 * the different configuration criteria for the TDLS trigger from the 4158 * host driver. 4159 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger 4160 * the TDLS setup / teardown through the implicit mode only to the 4161 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1, 4162 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands). 4163 * External mode works on top of the implicit mode. Thus the host driver 4164 * is expected to configure in TDLS Implicit mode too to operate in 4165 * External mode. 4166 * Configuring External mode alone without Implicit mode is invalid. 4167 * 4168 * All the above implementations work as expected only when the host driver 4169 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing 4170 * that the TDLS message exchange is not internal to the host driver, but 4171 * depends on wpa_supplicant to do the message exchange. 4172 */ 4173 enum qca_wlan_vendor_tdls_trigger_mode { 4174 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0, 4175 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1, 4176 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2, 4177 }; 4178 4179 /** 4180 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits 4181 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0 4182 * that is hard-coded in the Board Data File (BDF). 4183 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1 4184 * that is hard-coded in the Board Data File (BDF). 4185 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2 4186 * that is hard-coded in the Board Data File (BDF). 4187 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3 4188 * that is hard-coded in the Board Data File (BDF). 4189 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4 4190 * that is hard-coded in the Board Data File (BDF). 4191 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any 4192 * source of SAR power limits, thereby disabling the SAR power 4193 * limit feature. 4194 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power 4195 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR. 4196 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power 4197 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR. 4198 * 4199 * This enumerates the valid set of values that may be supplied for 4200 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of 4201 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in 4202 * the response to an instance of the 4203 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command. 4204 */ 4205 enum qca_vendor_attr_sar_limits_selections { 4206 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0, 4207 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1, 4208 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2, 4209 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3, 4210 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4, 4211 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5, 4212 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6, 4213 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7, 4214 }; 4215 4216 /** 4217 * enum qca_vendor_attr_sar_limits_spec_modulations - 4218 * SAR limits specification modulation 4219 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK - 4220 * CCK modulation 4221 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM - 4222 * OFDM modulation 4223 * 4224 * This enumerates the valid set of values that may be supplied for 4225 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an 4226 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an 4227 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor 4228 * command or in the response to an instance of the 4229 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command. 4230 */ 4231 enum qca_vendor_attr_sar_limits_spec_modulations { 4232 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0, 4233 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1, 4234 }; 4235 4236 /** 4237 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits 4238 * 4239 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to 4240 * select which SAR power limit table should be used. Valid 4241 * values are enumerated in enum 4242 * %qca_vendor_attr_sar_limits_selections. The existing SAR 4243 * power limit selection is unchanged if this attribute is not 4244 * present. 4245 * 4246 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value 4247 * which specifies the number of SAR power limit specifications 4248 * which will follow. 4249 * 4250 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power 4251 * limit specifications. The number of specifications is 4252 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each 4253 * specification contains a set of 4254 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A 4255 * specification is uniquely identified by the attributes 4256 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND, 4257 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and 4258 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always 4259 * contains as a payload the attribute 4260 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT, 4261 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX. 4262 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or 4263 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is 4264 * needed based upon the value of 4265 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE. 4266 * 4267 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to 4268 * indicate for which band this specification applies. Valid 4269 * values are enumerated in enum %nl80211_band (although not all 4270 * bands may be supported by a given device). If the attribute is 4271 * not supplied then the specification will be applied to all 4272 * supported bands. 4273 * 4274 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value 4275 * to indicate for which antenna chain this specification 4276 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the 4277 * attribute is not supplied then the specification will be 4278 * applied to all chains. 4279 * 4280 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32) 4281 * value to indicate for which modulation scheme this 4282 * specification applies. Valid values are enumerated in enum 4283 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute 4284 * is not supplied then the specification will be applied to all 4285 * modulation schemes. 4286 * 4287 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32) 4288 * value to specify the actual power limit value in units of 0.5 4289 * dBm (i.e., a value of 11 represents 5.5 dBm). 4290 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is 4291 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER. 4292 * 4293 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32) 4294 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles. 4295 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is 4296 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0. 4297 * 4298 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS 4299 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS. 4300 */ 4301 enum qca_vendor_attr_sar_limits { 4302 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0, 4303 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1, 4304 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2, 4305 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3, 4306 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4, 4307 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5, 4308 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6, 4309 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7, 4310 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8, 4311 4312 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST, 4313 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX = 4314 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1 4315 }; 4316 4317 /** 4318 * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by 4319 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command. 4320 * 4321 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: In a request this attribute 4322 * should be set to any U8 value to indicate that the driver version 4323 * should be returned. When enabled in this manner, in a response this 4324 * attribute will contain a string representation of the driver version. 4325 * 4326 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: In a request this attribute 4327 * should be set to any U8 value to indicate that the firmware version 4328 * should be returned. When enabled in this manner, in a response this 4329 * attribute will contain a string representation of the firmware version. 4330 * 4331 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX: In a request this attribute 4332 * should be set to any U32 value to indicate that the current radio 4333 * index should be returned. When enabled in this manner, in a response 4334 * this attribute will contain a U32 radio index value. 4335 * 4336 */ 4337 enum qca_wlan_vendor_attr_get_wifi_info { 4338 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0, 4339 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1, 4340 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2, 4341 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3, 4342 4343 /* keep last */ 4344 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST, 4345 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX = 4346 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1, 4347 }; 4348 4349 /* 4350 * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by 4351 * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command. 4352 */ 4353 enum qca_wlan_vendor_attr_wifi_logger_start { 4354 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0, 4355 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1, 4356 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2, 4357 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3, 4358 4359 /* keep last */ 4360 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST, 4361 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX = 4362 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1, 4363 }; 4364 4365 enum qca_wlan_vendor_attr_logger_results { 4366 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0, 4367 4368 /* Unsigned 32-bit value; must match the request Id supplied by 4369 * Wi-Fi HAL in the corresponding subcmd NL msg. 4370 */ 4371 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1, 4372 4373 /* Unsigned 32-bit value; used to indicate the size of memory 4374 * dump to be allocated. 4375 */ 4376 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2, 4377 4378 /* keep last */ 4379 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST, 4380 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX = 4381 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1, 4382 }; 4383 4384 /** 4385 * enum qca_scan_freq_list_type: Frequency list types 4386 * 4387 * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list 4388 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as 4389 * a preferred frequency list for roaming. 4390 * 4391 * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list 4392 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as 4393 * a specific frequency list for roaming. 4394 */ 4395 enum qca_scan_freq_list_type { 4396 QCA_PREFERRED_SCAN_FREQ_LIST = 1, 4397 QCA_SPECIFIC_SCAN_FREQ_LIST = 2, 4398 }; 4399 4400 /** 4401 * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme 4402 * 4403 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: Nested attribute of u32 values 4404 * List of frequencies in MHz to be considered for a roam scan. 4405 * 4406 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value. 4407 * Type of frequency list scheme being configured/gotten as defined by the 4408 * enum qca_scan_freq_list_type. 4409 */ 4410 enum qca_vendor_attr_scan_freq_list_scheme { 4411 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1, 4412 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2, 4413 4414 /* keep last */ 4415 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST, 4416 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX = 4417 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1, 4418 }; 4419 4420 /** 4421 * enum qca_roam_scan_scheme: Scan scheme 4422 * 4423 * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No frequencies specified to scan. 4424 * Indicates the driver to not scan on a Roam Trigger scenario, but 4425 * disconnect. E.g., on a BTM request from the AP the driver/firmware shall 4426 * disconnect from the current connected AP by notifying a failure 4427 * code in the BTM response. 4428 * 4429 * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to 4430 * trigger partial frequency scans. These frequencies are the ones learned 4431 * or maintained by the driver based on the probability of finding the 4432 * BSSIDs in the ESS for which the roaming is triggered. 4433 * 4434 * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to 4435 * trigger the scan on all the valid frequencies to find better 4436 * candidates to roam. 4437 */ 4438 enum qca_roam_scan_scheme { 4439 QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0, 4440 QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1, 4441 QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2, 4442 }; 4443 4444 /* 4445 * enum qca_vendor_roam_triggers: Bitmap of roaming triggers 4446 * 4447 * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on 4448 * a bad packet error rates (PER). 4449 * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered 4450 * based on beacon misses from the connected AP. 4451 * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered 4452 * due to poor RSSI of the connected AP. 4453 * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered 4454 * upon finding a BSSID with a better RSSI than the connected BSSID. 4455 * Here the RSSI of the current BSSID need not be poor. 4456 * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered 4457 * by triggering a periodic scan to find a better AP to roam. 4458 * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered 4459 * when the connected channel environment is too noisy/congested. 4460 * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered 4461 * when BTM Request frame is received from the connected AP. 4462 * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered 4463 * when the channel utilization is goes above the configured threshold. 4464 * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered 4465 * based on the request from the user (space). 4466 * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when 4467 * device receives Deauthentication/Disassociation frame from connected AP. 4468 * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the 4469 * device is in idle state (no TX/RX) and suspend mode, if the current RSSI 4470 * is determined to be a poor one. 4471 * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered 4472 * based on continuous TX Data frame failures to the connected AP. 4473 * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered 4474 * based on the scan results obtained from an external scan (not triggered 4475 * to aim roaming). 4476 * 4477 * Set the corresponding roam trigger reason bit to consider it for roam 4478 * trigger. 4479 * Userspace can set multiple bits and send to the driver. The driver shall 4480 * consider all of them to trigger/initiate a roam scan. 4481 */ 4482 enum qca_vendor_roam_triggers { 4483 QCA_ROAM_TRIGGER_REASON_PER = 1 << 0, 4484 QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1, 4485 QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2, 4486 QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3, 4487 QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4, 4488 QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5, 4489 QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6, 4490 QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7, 4491 QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8, 4492 QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9, 4493 QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10, 4494 QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11, 4495 QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12, 4496 }; 4497 4498 /* 4499 * enum qca_vendor_roam_fail_reasons: Defines the various roam 4500 * fail reasons. This enum value is used in 4501 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute. 4502 * 4503 * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not 4504 * able to trigger the scan. 4505 * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan. 4506 * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam 4507 * scan. 4508 * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host. 4509 * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame. 4510 * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error 4511 * status code. 4512 * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received. 4513 * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request 4514 * frame. 4515 * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame 4516 * with error status code. 4517 * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not 4518 * received. 4519 * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan. 4520 * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication 4521 * frame. 4522 * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped 4523 * internally before transmission. 4524 * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation 4525 * Request frame. 4526 * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is 4527 * dropped internally. 4528 * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and 4529 * times out. 4530 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame. 4531 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped 4532 * internally. 4533 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key 4534 * M2 frame. 4535 * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received. 4536 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame. 4537 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped 4538 * internally. 4539 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4 4540 * frame. 4541 * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not 4542 * started for final beacon miss case. 4543 * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame 4544 * received from the AP during roaming handoff. 4545 * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps 4546 * or host is suspended and gives the indication of the last roamed AP only 4547 * when the Apps is resumed. If the Apps is resumed while the roaming is in 4548 * progress, this ongoing roaming is aborted and the last roamed AP is 4549 * indicated to host. 4550 * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID. 4551 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times 4552 * out. 4553 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails. 4554 */ 4555 enum qca_vendor_roam_fail_reasons { 4556 QCA_ROAM_FAIL_REASON_NONE = 0, 4557 QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1, 4558 QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2, 4559 QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3, 4560 QCA_ROAM_FAIL_REASON_HOST = 4, 4561 QCA_ROAM_FAIL_REASON_AUTH_SEND = 5, 4562 QCA_ROAM_FAIL_REASON_AUTH_RECV = 6, 4563 QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7, 4564 QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8, 4565 QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9, 4566 QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10, 4567 QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11, 4568 QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12, 4569 QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13, 4570 QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14, 4571 QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15, 4572 QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16, 4573 QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17, 4574 QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18, 4575 QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19, 4576 QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20, 4577 QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21, 4578 QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22, 4579 QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23, 4580 QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24, 4581 QCA_ROAM_FAIL_REASON_DISCONNECT = 25, 4582 QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26, 4583 QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27, 4584 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28, 4585 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29, 4586 }; 4587 4588 /* 4589 * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam 4590 * invoke fail reasons. This enum value is used in 4591 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute. 4592 * 4593 * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed 4594 * in roam invoke command. 4595 * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not 4596 * enabled. 4597 * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID 4598 * length is invalid. 4599 * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already 4600 * in progress. 4601 * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response 4602 * of the AP in the roam invoke command to firmware. This reason is sent by the 4603 * firmware when the given AP is configured to be ignored or SSID/security 4604 * does not match. 4605 * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of 4606 * firmware internal reasons. 4607 * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled. 4608 * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke. 4609 * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail. 4610 * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid. 4611 * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to. 4612 * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed. 4613 */ 4614 enum qca_vendor_roam_invoke_fail_reasons { 4615 QCA_ROAM_INVOKE_STATUS_NONE = 0, 4616 QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1, 4617 QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2, 4618 QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3, 4619 QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4, 4620 QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5, 4621 QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6, 4622 QCA_ROAM_INVOKE_STATUS_DISALLOW = 7, 4623 QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8, 4624 QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9, 4625 QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10, 4626 QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11, 4627 QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12, 4628 4629 }; 4630 4631 /** 4632 * enum qca_vendor_attr_roam_candidate_selection_criteria: 4633 * 4634 * Each attribute carries a weightage in percentage (%). 4635 * 4636 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value. 4637 * Represents the weightage to be given for the RSSI selection 4638 * criteria among other parameters. 4639 * 4640 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value. 4641 * Represents the weightage to be given for the rate selection 4642 * criteria among other parameters. 4643 * 4644 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value. 4645 * Represents the weightage to be given for the band width selection 4646 * criteria among other parameters. 4647 * 4648 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value. 4649 * Represents the weightage to be given for the band selection 4650 * criteria among other parameters. 4651 * 4652 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value. 4653 * Represents the weightage to be given for the NSS selection 4654 * criteria among other parameters. 4655 * 4656 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value. 4657 * Represents the weightage to be given for the channel congestion 4658 * selection criteria among other parameters. 4659 * 4660 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value. 4661 * Represents the weightage to be given for the beamforming selection 4662 * criteria among other parameters. 4663 * 4664 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value. 4665 * Represents the weightage to be given for the OCE selection 4666 * criteria among other parameters. 4667 */ 4668 enum qca_vendor_attr_roam_candidate_selection_criteria { 4669 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1, 4670 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2, 4671 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3, 4672 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4, 4673 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5, 4674 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6, 4675 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7, 4676 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8, 4677 4678 /* keep last */ 4679 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST, 4680 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX = 4681 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1, 4682 }; 4683 4684 /** 4685 * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration 4686 * The following attributes are used to set/get/clear the respective 4687 * configurations to/from the driver. 4688 * For the get, the attribute for the configuration to be queried shall 4689 * carry any of its acceptable values to the driver. In return, the driver 4690 * shall send the configured values within the same attribute to the user 4691 * space. 4692 * 4693 * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value. 4694 * Signifies to enable/disable roam control in driver. 4695 * 1-enable, 0-disable 4696 * Enable: Mandates the driver to do the further roams using the 4697 * configuration parameters set through 4698 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. 4699 * Disable: Disables the driver/firmware roaming triggered through 4700 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is 4701 * expected to continue with the default configurations. 4702 * 4703 * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value. 4704 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET. 4705 * Roam control status is obtained through this attribute. 4706 * 4707 * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the 4708 * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET 4709 * is to be cleared in the driver. 4710 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR 4711 * and shall be ignored if used with other sub commands. 4712 * If this attribute is specified along with subcmd 4713 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore 4714 * all other attributes, if there are any. 4715 * If this attribute is not specified when the subcmd 4716 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall 4717 * clear the data corresponding to the attributes specified. 4718 * 4719 * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the 4720 * list of frequencies and its type, represented by 4721 * enum qca_vendor_attr_scan_freq_list_scheme. 4722 * Frequency list and its type are mandatory for this attribute to set 4723 * the frequencies. 4724 * Frequency type is mandatory for this attribute to get the frequencies 4725 * and the frequency list is obtained through 4726 * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST. 4727 * Frequency list type is mandatory for this attribute to clear the 4728 * frequencies. 4729 * 4730 * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value. 4731 * Carries the value of scan period in seconds to set. 4732 * The value of scan period is obtained with the same attribute for get. 4733 * Clears the scan period in the driver when specified with clear command. 4734 * Scan period is the idle time in seconds between each subsequent 4735 * channel scans. 4736 * 4737 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value. 4738 * Carries the value of full scan period in seconds to set. 4739 * The value of full scan period is obtained with the same attribute for 4740 * get. 4741 * Clears the full scan period in the driver when specified with clear 4742 * command. Full scan period is the idle period in seconds between two 4743 * successive full channel roam scans. 4744 * 4745 * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value. 4746 * Carries a bitmap of the roam triggers specified in 4747 * enum qca_vendor_roam_triggers. 4748 * The driver shall enable roaming by enabling corresponding roam triggers 4749 * based on the trigger bits sent with this attribute. 4750 * If this attribute is not configured, the driver shall proceed with 4751 * default behavior. 4752 * The bitmap configured is obtained with the same attribute for get. 4753 * Clears the bitmap configured in driver when specified with clear 4754 * command. 4755 * 4756 * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the 4757 * weightage in percentage (%) to be given for each selection criteria. 4758 * Different roam candidate selection criteria are represented by 4759 * enum qca_vendor_attr_roam_candidate_selection_criteria. 4760 * The driver shall select the roam candidate based on corresponding 4761 * candidate selection scores sent. 4762 * 4763 * An empty nested attribute is used to indicate that no specific 4764 * preference score/criteria is configured (i.e., to disable this mechanism 4765 * in the set case and to show that the mechanism is disabled in the get 4766 * case). 4767 * 4768 * Userspace can send multiple attributes out of this enum to the driver. 4769 * Since this attribute represents the weight/percentage of preference for 4770 * the respective selection criteria, it is preferred to configure 100% 4771 * total weightage. The value in each attribute or cumulative weight of the 4772 * values in all the nested attributes should not exceed 100%. The driver 4773 * shall reject such configuration. 4774 * 4775 * If the weights configured through this attribute are less than 100%, 4776 * the driver shall honor the weights (x%) passed for the corresponding 4777 * selection criteria and choose/distribute rest of the weight (100-x)% 4778 * for the other selection criteria, based on its internal logic. 4779 * 4780 * The selection criteria configured is obtained with the same 4781 * attribute for get. 4782 * 4783 * Clears the selection criteria configured in the driver when specified 4784 * with clear command. 4785 * 4786 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value. 4787 * Represents value of the scan frequency scheme from enum 4788 * qca_roam_scan_scheme. 4789 * It's an optional attribute. If this attribute is not configured, the 4790 * driver shall proceed with default behavior. 4791 * 4792 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm, 4793 * signifying the RSSI threshold of the current connected AP, indicating 4794 * the driver to trigger roam only when the current connected AP's RSSI 4795 * is less than this threshold. 4796 * 4797 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm, 4798 * signifying the RSSI threshold of the candidate AP, indicating 4799 * the driver to trigger roam only to the candidate AP with RSSI 4800 * better than this threshold. If RSSI thresholds for candidate APs found 4801 * in the 2.4 GHz, 5 GHz, and 6 GHz bands are configured separately using 4802 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ, 4803 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or 4804 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, those values will 4805 * take precedence over the value configured using the 4806 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute. 4807 * 4808 * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the 4809 * user defined reason code to be sent to the AP in response to AP's 4810 * request to trigger the roam if the roaming cannot be triggered. 4811 * Applies to all the scenarios of AP assisted roaming (e.g., BTM). 4812 * 4813 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value. 4814 * Carries a bitmap of the roam triggers specified in 4815 * enum qca_vendor_roam_triggers. 4816 * Represents the roam triggers for which the specific scan scheme from 4817 * enum qca_roam_scan_scheme has to be applied. 4818 * It's an optional attribute. If this attribute is not configured, but 4819 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, the scan scheme 4820 * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for 4821 * all the roams. 4822 * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and 4823 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the 4824 * driver shall proceed with the default behavior. 4825 * 4826 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value 4827 * in dBm, signifying the RSSI threshold of the candidate AP found in the 4828 * 2.4 GHz band. The driver/firmware shall trigger roaming to the candidate 4829 * AP found in the 2.4 GHz band only if its RSSI value is better than this 4830 * threshold. Optional attribute. If this attribute is not included, the 4831 * threshold value specified by the 4832 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 4833 * 4834 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in 4835 * dBm, signifying the RSSI threshold of the candidate AP found in the 5 4836 * GHz band. The driver/firmware shall trigger roaming to the candidate AP 4837 * found in the 5 GHz band only if its RSSI value is better than this 4838 * threshold. Optional attribute. If this attribute is not included, the 4839 * threshold value specified by tge 4840 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 4841 * 4842 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in 4843 * dBm, signifying the RSSI threshold of the candidate AP found in the 6 4844 * GHz band. The driver/firmware shall trigger roaming to the candidate AP 4845 * found in the 6 GHz band only if its RSSI value is better than this 4846 * threshold. Optional attribute. If this attribute is not included, the 4847 * threshold value specified by the 4848 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 4849 * 4850 * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value. 4851 * Carries bitmask value of bits from &enum qca_set_band and represents 4852 * all the bands in which roaming is allowed. The configuration is valid 4853 * until next disconnection. If this attribute is not present, the 4854 * existing configuration shall be used. By default, roaming is allowed on 4855 * all bands supported by the local device. When the value is set to 4856 * %QCA_SETBAND_AUTO, all supported bands shall be enabled. 4857 * 4858 * @QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME: u16 value in milliseconds. 4859 * Optional parameter. Scan dwell time for active channels in the 2.4/5 GHz 4860 * bands. If this attribute is not configured, the driver shall proceed 4861 * with default behavior. 4862 * 4863 * @QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME: u16 value in milliseconds. 4864 * Optional parameter. Scan dwell time for passive channels in the 5 GHz 4865 * band. If this attribute is not configured, the driver shall proceed with 4866 * default behavior. 4867 * 4868 * @QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME: u16 value in milliseconds. 4869 * Optional parameter. The minimum duration to stay on the connected AP 4870 * channel during the channel scanning. If this attribute is not 4871 * configured, the driver shall proceed with default behavior. 4872 * 4873 * @QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME: u16 value in milliseconds. 4874 * Optional parameter. The maximum duration for which the radio can scan 4875 * foreign channels consecutively without coming back to home channel. If 4876 * this attribute is not configured, the driver shall proceed with default 4877 * behavior. 4878 * 4879 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME: u16 value in milliseconds. 4880 * Optional parameter. Scan dwell time for 6G Preferred Scanning Channels. 4881 * If this attribute is not configured, the driver shall proceed with 4882 * default behavior. 4883 * 4884 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME: u16 value in milliseconds. 4885 * Optional parameter. Scan dwell time for 6G Non Preferred Scanning 4886 * Channels. If this attribute is not configured, the driver shall proceed 4887 * with default behavior. 4888 */ 4889 enum qca_vendor_attr_roam_control { 4890 QCA_ATTR_ROAM_CONTROL_ENABLE = 1, 4891 QCA_ATTR_ROAM_CONTROL_STATUS = 2, 4892 QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3, 4893 QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME= 4, 4894 QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5, 4895 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6, 4896 QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7, 4897 QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8, 4898 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9, 4899 QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10, 4900 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11, 4901 QCA_ATTR_ROAM_CONTROL_USER_REASON = 12, 4902 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13, 4903 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14, 4904 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15, 4905 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16, 4906 QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17, 4907 QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME = 18, 4908 QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME = 19, 4909 QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME = 20, 4910 QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME = 21, 4911 QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME = 22, 4912 QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME = 23, 4913 4914 /* keep last */ 4915 QCA_ATTR_ROAM_CONTROL_AFTER_LAST, 4916 QCA_ATTR_ROAM_CONTROL_MAX = 4917 QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1, 4918 }; 4919 4920 /* 4921 * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by 4922 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command. 4923 * 4924 * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value. 4925 * Represents the different roam sub commands referred by 4926 * enum qca_wlan_vendor_roaming_subcmd. 4927 * 4928 * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value. 4929 * Represents the Request ID for the specific set of commands. 4930 * This also helps to map specific set of commands to the respective 4931 * ID / client. e.g., helps to identify the user entity configuring the 4932 * ignored BSSIDs and accordingly clear the respective ones with the 4933 * matching ID. 4934 * 4935 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS: Unsigned 4936 * 32-bit value. Represents the number of allowlist SSIDs configured. 4937 * 4938 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST: Nested attribute 4939 * to carry the list of allowlist SSIDs. 4940 * 4941 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID: SSID (binary attribute, 4942 * 0..32 octets). Represents the allow list SSID. Allowlist SSIDs 4943 * represent the list of SSIDs to which the firmware/driver can consider 4944 * to roam to. 4945 * 4946 * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when 4947 * comparing with a 2.4GHz BSSID. They are not applied when comparing two 4948 * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD - 4949 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS. 4950 * 4951 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit 4952 * value, RSSI threshold above which 5GHz RSSI is favored. 4953 * 4954 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit 4955 * value, RSSI threshold below which 5GHz RSSI is penalized. 4956 * 4957 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit 4958 * value, factor by which 5GHz RSSI is boosted. 4959 * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor 4960 * 4961 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit 4962 * value, factor by which 5GHz RSSI is penalized. 4963 * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor 4964 * 4965 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit 4966 * value, maximum boost that can be applied to a 5GHz RSSI. 4967 * 4968 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit 4969 * value, boost applied to current BSSID to ensure the currently 4970 * associated BSSID is favored so as to prevent ping-pong situations. 4971 * 4972 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit 4973 * value, RSSI below which "Alert" roam is enabled. 4974 * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID 4975 * because the RSSI is low, or because many successive beacons have been 4976 * lost or other bad link conditions. 4977 * 4978 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit 4979 * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where 4980 * firmware is hunting for a better BSSID or allow listed SSID even though 4981 * the RSSI of the link is good. The parameters enabling the roaming are 4982 * configured through the PARAM_A_BAND_XX attrbutes. 4983 * 4984 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute, 4985 * represents the BSSIDs preferred over others while evaluating them 4986 * for the roaming. 4987 * 4988 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned 4989 * 32-bit value. Represents the number of preferred BSSIDs set. 4990 * 4991 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC 4992 * address representing the BSSID to be preferred. 4993 * 4994 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed 4995 * 32-bit value, representing the modifier to be applied to the RSSI of 4996 * the BSSID for the purpose of comparing it with other roam candidate. 4997 * 4998 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute, 4999 * represents the BSSIDs to get ignored for roaming. 5000 * 5001 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned 5002 * 32-bit value, represents the number of ignored BSSIDs. 5003 * 5004 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC 5005 * address representing the ignored BSSID. 5006 * 5007 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute, 5008 * indicates this request to ignore the BSSID as a hint to the driver. The 5009 * driver can select this BSSID in the worst case (when no other BSSIDs are 5010 * better). 5011 * 5012 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to 5013 * set/get/clear the roam control config as 5014 * defined @enum qca_vendor_attr_roam_control. 5015 */ 5016 enum qca_wlan_vendor_attr_roaming_config_params { 5017 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0, 5018 5019 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1, 5020 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2, 5021 5022 /* Attributes for wifi_set_ssid_allow_list */ 5023 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS = 3, 5024 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST = 4, 5025 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID = 5, 5026 5027 /* Attributes for set_roam_params */ 5028 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6, 5029 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7, 5030 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8, 5031 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9, 5032 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10, 5033 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11, 5034 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12, 5035 5036 /* Attribute for set_lazy_roam */ 5037 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13, 5038 5039 /* Attribute for set_lazy_roam with preferences */ 5040 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14, 5041 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15, 5042 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16, 5043 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17, 5044 5045 /* Attribute for setting ignored BSSID parameters */ 5046 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18, 5047 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19, 5048 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20, 5049 /* Flag attribute indicates this entry as a hint */ 5050 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21, 5051 5052 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22, 5053 5054 /* keep last */ 5055 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST, 5056 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX = 5057 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1, 5058 }; 5059 5060 /* old names for API compatibility */ 5061 #define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS \ 5062 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS 5063 #define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST \ 5064 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST 5065 #define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID \ 5066 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID 5067 5068 /* 5069 * enum qca_wlan_vendor_roaming_subcmd: Referred by 5070 * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD. 5071 * 5072 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST: Sub command to 5073 * configure the allow list SSIDs. These are configured through 5074 * the following attributes. 5075 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS, 5076 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST, 5077 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID 5078 * 5079 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS: Sub command to 5080 * configure the Roam params. These parameters are evaluated on the GScan 5081 * results. Refers the attributes PARAM_A_BAND_XX above to configure the 5082 * params. 5083 * 5084 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses 5085 * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE 5086 * to enable/disable Lazy roam. 5087 * 5088 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID 5089 * preference. Contains the attribute 5090 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID 5091 * preference. 5092 * 5093 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID: Sets the list of BSSIDs 5094 * to ignore in roaming decision. Uses 5095 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to set the list. 5096 * 5097 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the 5098 * roam control config to the driver with the attribute 5099 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 5100 * 5101 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the 5102 * roam control config from driver with the attribute 5103 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 5104 * For the get, the attribute for the configuration to be queried shall 5105 * carry any of its acceptable value to the driver. In return, the driver 5106 * shall send the configured values within the same attribute to the user 5107 * space. 5108 * 5109 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the 5110 * roam control config in the driver with the attribute 5111 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 5112 * The driver shall continue with its default roaming behavior when data 5113 * corresponding to an attribute is cleared. 5114 */ 5115 enum qca_wlan_vendor_roaming_subcmd { 5116 QCA_WLAN_VENDOR_ROAMING_SUBCMD_INVALID = 0, 5117 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST = 1, 5118 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2, 5119 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3, 5120 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4, 5121 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5, 5122 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID = 6, 5123 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7, 5124 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8, 5125 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9, 5126 }; 5127 5128 /* old names for API compatibility */ 5129 #define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST \ 5130 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST 5131 #define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID \ 5132 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID 5133 5134 enum qca_wlan_vendor_attr_gscan_config_params { 5135 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0, 5136 5137 /* Unsigned 32-bit value */ 5138 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1, 5139 5140 /* Attributes for data used by 5141 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command. 5142 */ 5143 /* Unsigned 32-bit value */ 5144 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND 5145 = 2, 5146 /* Unsigned 32-bit value */ 5147 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS 5148 = 3, 5149 5150 /* Attributes for input params used by 5151 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command. 5152 */ 5153 5154 /* Unsigned 32-bit value; channel frequency */ 5155 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4, 5156 /* Unsigned 32-bit value; dwell time in ms. */ 5157 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5, 5158 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */ 5159 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6, 5160 /* Unsigned 8-bit value; channel class */ 5161 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7, 5162 5163 /* Unsigned 8-bit value; bucket index, 0 based */ 5164 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8, 5165 /* Unsigned 8-bit value; band. */ 5166 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9, 5167 /* Unsigned 32-bit value; desired period, in ms. */ 5168 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10, 5169 /* Unsigned 8-bit value; report events semantics. */ 5170 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11, 5171 /* Unsigned 32-bit value. Followed by a nested array of 5172 * GSCAN_CHANNEL_SPEC_* attributes. 5173 */ 5174 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12, 5175 5176 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes. 5177 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS 5178 */ 5179 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13, 5180 5181 /* Unsigned 32-bit value; base timer period in ms. */ 5182 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14, 5183 /* Unsigned 32-bit value; number of APs to store in each scan in the 5184 * BSSID/RSSI history buffer (keep the highest RSSI APs). 5185 */ 5186 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15, 5187 /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake 5188 * up AP. 5189 */ 5190 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT 5191 = 16, 5192 5193 /* Unsigned 8-bit value; number of scan bucket specs; followed by a 5194 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size 5195 * of the array is determined by NUM_BUCKETS. 5196 */ 5197 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17, 5198 5199 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes. 5200 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS 5201 */ 5202 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18, 5203 5204 /* Unsigned 8-bit value */ 5205 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH 5206 = 19, 5207 /* Unsigned 32-bit value; maximum number of results to be returned. */ 5208 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX 5209 = 20, 5210 5211 /* An array of 6 x unsigned 8-bit value */ 5212 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21, 5213 /* Signed 32-bit value */ 5214 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22, 5215 /* Signed 32-bit value */ 5216 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23, 5217 /* Unsigned 32-bit value */ 5218 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24, 5219 5220 /* Number of hotlist APs as unsigned 32-bit value, followed by a nested 5221 * array of AP_THRESHOLD_PARAM attributes and values. The size of the 5222 * array is determined by NUM_AP. 5223 */ 5224 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25, 5225 5226 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes. 5227 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS 5228 */ 5229 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26, 5230 5231 /* Unsigned 32-bit value; number of samples for averaging RSSI. */ 5232 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE 5233 = 27, 5234 /* Unsigned 32-bit value; number of samples to confirm AP loss. */ 5235 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE 5236 = 28, 5237 /* Unsigned 32-bit value; number of APs breaching threshold. */ 5238 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29, 5239 /* Unsigned 32-bit value; number of APs. Followed by an array of 5240 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP. 5241 */ 5242 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30, 5243 /* Unsigned 32-bit value; number of samples to confirm AP loss. */ 5244 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE 5245 = 31, 5246 /* Unsigned 32-bit value. If max_period is non zero or different than 5247 * period, then this bucket is an exponential backoff bucket. 5248 */ 5249 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32, 5250 /* Unsigned 32-bit value. */ 5251 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33, 5252 /* Unsigned 32-bit value. For exponential back off bucket, number of 5253 * scans to perform for a given period. 5254 */ 5255 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34, 5256 /* Unsigned 8-bit value; in number of scans, wake up AP after these 5257 * many scans. 5258 */ 5259 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS 5260 = 35, 5261 5262 /* Attributes for data used by 5263 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command. 5264 */ 5265 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */ 5266 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE 5267 = 36, 5268 /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a 5269 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The 5270 * size of the array is determined by NUM_SSID. 5271 */ 5272 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37, 5273 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_* 5274 * attributes. 5275 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID 5276 */ 5277 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38, 5278 5279 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */ 5280 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39, 5281 /* Unsigned 8-bit value */ 5282 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40, 5283 /* Signed 32-bit value */ 5284 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41, 5285 /* Signed 32-bit value */ 5286 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42, 5287 /* Unsigned 32-bit value; a bitmask with additional gscan config flag. 5288 */ 5289 QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43, 5290 5291 /* keep last */ 5292 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST, 5293 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX = 5294 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1, 5295 }; 5296 5297 enum qca_wlan_vendor_attr_gscan_results { 5298 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0, 5299 5300 /* Unsigned 32-bit value; must match the request Id supplied by 5301 * Wi-Fi HAL in the corresponding subcmd NL msg. 5302 */ 5303 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1, 5304 5305 /* Unsigned 32-bit value; used to indicate the status response from 5306 * firmware/driver for the vendor sub-command. 5307 */ 5308 QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2, 5309 5310 /* GSCAN Valid Channels attributes */ 5311 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */ 5312 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3, 5313 /* An array of NUM_CHANNELS x unsigned 32-bit value integers 5314 * representing channel numbers. 5315 */ 5316 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4, 5317 5318 /* GSCAN Capabilities attributes */ 5319 /* Unsigned 32-bit value */ 5320 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5, 5321 /* Unsigned 32-bit value */ 5322 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6, 5323 /* Unsigned 32-bit value */ 5324 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN 5325 = 7, 5326 /* Unsigned 32-bit value */ 5327 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE 5328 = 8, 5329 /* Signed 32-bit value */ 5330 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD 5331 = 9, 5332 /* Unsigned 32-bit value */ 5333 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10, 5334 /* Unsigned 32-bit value */ 5335 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS 5336 = 11, 5337 /* Unsigned 32-bit value */ 5338 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES 5339 = 12, 5340 5341 /* GSCAN Attributes used with 5342 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command. 5343 */ 5344 5345 /* Unsigned 32-bit value */ 5346 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13, 5347 5348 /* GSCAN attributes used with 5349 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command. 5350 */ 5351 5352 /* An array of NUM_RESULTS_AVAILABLE x 5353 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_* 5354 */ 5355 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14, 5356 5357 /* Unsigned 64-bit value; age of sample at the time of retrieval */ 5358 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15, 5359 /* 33 x unsigned 8-bit value; NULL terminated SSID */ 5360 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16, 5361 /* An array of 6 x unsigned 8-bit value */ 5362 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17, 5363 /* Unsigned 32-bit value; channel frequency in MHz */ 5364 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18, 5365 /* Signed 32-bit value */ 5366 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19, 5367 /* Unsigned 32-bit value */ 5368 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20, 5369 /* Unsigned 32-bit value */ 5370 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21, 5371 /* Unsigned 16-bit value */ 5372 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22, 5373 /* Unsigned 16-bit value */ 5374 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23, 5375 /* Unsigned 32-bit value; size of the IE DATA blob */ 5376 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24, 5377 /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the 5378 * information elements found in the beacon; this data should be a 5379 * packed list of wifi_information_element objects, one after the 5380 * other. 5381 */ 5382 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25, 5383 5384 /* Unsigned 8-bit value; set by driver to indicate more scan results are 5385 * available. 5386 */ 5387 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26, 5388 5389 /* GSCAN attributes for 5390 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command. 5391 */ 5392 /* Unsigned 8-bit value */ 5393 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27, 5394 /* Unsigned 32-bit value */ 5395 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28, 5396 5397 /* GSCAN attributes for 5398 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command. 5399 */ 5400 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE 5401 * to indicate number of results. 5402 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the 5403 * list of results. 5404 */ 5405 5406 /* GSCAN attributes for 5407 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command. 5408 */ 5409 /* An array of 6 x unsigned 8-bit value */ 5410 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29, 5411 /* Unsigned 32-bit value */ 5412 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL 5413 = 30, 5414 /* Unsigned 32-bit value. */ 5415 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI 5416 = 31, 5417 /* A nested array of signed 32-bit RSSI values. Size of the array is 5418 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI. 5419 */ 5420 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST 5421 = 32, 5422 5423 /* GSCAN attributes used with 5424 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command. 5425 */ 5426 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE 5427 * to indicate number of gscan cached results returned. 5428 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate 5429 * the list of gscan cached results. 5430 */ 5431 5432 /* An array of NUM_RESULTS_AVAILABLE x 5433 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_* 5434 */ 5435 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33, 5436 /* Unsigned 32-bit value; a unique identifier for the scan unit. */ 5437 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34, 5438 /* Unsigned 32-bit value; a bitmask w/additional information about scan. 5439 */ 5440 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35, 5441 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE 5442 * to indicate number of wifi scan results/bssids retrieved by the scan. 5443 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the 5444 * list of wifi scan results returned for each cached result block. 5445 */ 5446 5447 /* GSCAN attributes for 5448 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command. 5449 */ 5450 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for 5451 * number of results. 5452 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested 5453 * list of wifi scan results returned for each 5454 * wifi_passpoint_match_result block. 5455 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE. 5456 */ 5457 5458 /* GSCAN attributes for 5459 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command. 5460 */ 5461 /* Unsigned 32-bit value */ 5462 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES 5463 = 36, 5464 /* A nested array of 5465 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_* 5466 * attributes. Array size = 5467 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES. 5468 */ 5469 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37, 5470 5471 /* Unsigned 32-bit value; network block id for the matched network */ 5472 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38, 5473 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested 5474 * list of wifi scan results returned for each 5475 * wifi_passpoint_match_result block. 5476 */ 5477 /* Unsigned 32-bit value */ 5478 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39, 5479 /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values; 5480 * ANQP data in the information_element format. 5481 */ 5482 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40, 5483 5484 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */ 5485 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41, 5486 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */ 5487 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42, 5488 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */ 5489 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID 5490 = 43, 5491 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */ 5492 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID 5493 = 44, 5494 5495 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45, 5496 5497 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. 5498 * This is used to limit the maximum number of BSSIDs while sending 5499 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with subcmd 5500 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID and attribute 5501 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID. 5502 */ 5503 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID = 46, 5504 5505 /* keep last */ 5506 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST, 5507 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX = 5508 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1, 5509 }; 5510 5511 /* old names for API compatibility */ 5512 #define QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID \ 5513 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID 5514 #define QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID \ 5515 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID 5516 5517 enum qca_wlan_vendor_attr_pno_config_params { 5518 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0, 5519 /* Attributes for data used by 5520 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command. 5521 */ 5522 /* Unsigned 32-bit value */ 5523 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1, 5524 /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_* 5525 * attributes. Array size = 5526 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM. 5527 */ 5528 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2, 5529 5530 /* Unsigned 32-bit value */ 5531 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3, 5532 /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded 5533 * realm, 0 if unspecified. 5534 */ 5535 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4, 5536 /* An array of 16 x unsigned 32-bit value; roaming consortium ids to 5537 * match, 0 if unspecified. 5538 */ 5539 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5, 5540 /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if 5541 * unspecified. 5542 */ 5543 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6, 5544 5545 /* Attributes for data used by 5546 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command. 5547 */ 5548 /* Unsigned 32-bit value */ 5549 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7, 5550 /* Array of nested 5551 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_* 5552 * attributes. Array size = 5553 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS. 5554 */ 5555 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8, 5556 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */ 5557 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9, 5558 /* Signed 8-bit value; threshold for considering this SSID as found, 5559 * required granularity for this threshold is 4 dBm to 8 dBm. 5560 */ 5561 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD 5562 = 10, 5563 /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */ 5564 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11, 5565 /* Unsigned 8-bit value; auth bit field for matching WPA IE */ 5566 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12, 5567 /* Unsigned 8-bit to indicate ePNO type; 5568 * It takes values from qca_wlan_epno_type 5569 */ 5570 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13, 5571 5572 /* Nested attribute to send the channel list */ 5573 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14, 5574 5575 /* Unsigned 32-bit value; indicates the interval between PNO scan 5576 * cycles in msec. 5577 */ 5578 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15, 5579 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16, 5580 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17, 5581 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18, 5582 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19, 5583 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20, 5584 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21, 5585 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22, 5586 /* Unsigned 32-bit value, representing the PNO Request ID */ 5587 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23, 5588 5589 /* keep last */ 5590 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST, 5591 QCA_WLAN_VENDOR_ATTR_PNO_MAX = 5592 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1, 5593 }; 5594 5595 /** 5596 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why 5597 * the ACS has to be triggered. These values are used by 5598 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and 5599 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON 5600 */ 5601 enum qca_wlan_vendor_acs_select_reason { 5602 /* Represents the reason that the ACS triggered during the AP start */ 5603 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT, 5604 /* Represents the reason that DFS found with the current channel */ 5605 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS, 5606 /* Represents the reason that LTE co-exist in the current band. */ 5607 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX, 5608 /* Represents the reason that generic, uncategorized interference has 5609 * been found in the current channel. 5610 */ 5611 QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE, 5612 /* Represents the reason that excessive 802.11 interference has been 5613 * found in the current channel. 5614 */ 5615 QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE, 5616 /* Represents the reason that generic Continuous Wave (CW) interference 5617 * has been found in the current channel. 5618 */ 5619 QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE, 5620 /* Represents the reason that Microwave Oven (MWO) interference has been 5621 * found in the current channel. 5622 */ 5623 QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE, 5624 /* Represents the reason that generic Frequency-Hopping Spread Spectrum 5625 * (FHSS) interference has been found in the current channel. This may 5626 * include 802.11 waveforms. 5627 */ 5628 QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE, 5629 /* Represents the reason that non-802.11 generic Frequency-Hopping 5630 * Spread Spectrum (FHSS) interference has been found in the current 5631 * channel. 5632 */ 5633 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE, 5634 /* Represents the reason that generic Wideband (WB) interference has 5635 * been found in the current channel. This may include 802.11 waveforms. 5636 */ 5637 QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE, 5638 /* Represents the reason that non-802.11 generic Wideband (WB) 5639 * interference has been found in the current channel. 5640 */ 5641 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE, 5642 /* Represents the reason that Jammer interference has been found in the 5643 * current channel. 5644 */ 5645 QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE, 5646 /* Represents the reason that ACS triggered by AFC */ 5647 QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER, 5648 }; 5649 5650 /** 5651 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for 5652 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd 5653 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the 5654 * external ACS policies to select the channels w.r.t. the PCL weights. 5655 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and 5656 * their PCL weights.) 5657 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to 5658 * select a channel with non-zero PCL weight. 5659 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a 5660 * channel with non-zero PCL weight. 5661 * 5662 */ 5663 enum qca_wlan_vendor_attr_external_acs_policy { 5664 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED, 5665 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY, 5666 }; 5667 5668 /** 5669 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel. 5670 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS. 5671 */ 5672 enum qca_wlan_vendor_channel_prop_flags { 5673 /* Bits 0, 1, 2, and 3 are reserved */ 5674 5675 /* Turbo channel */ 5676 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4, 5677 /* CCK channel */ 5678 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5, 5679 /* OFDM channel */ 5680 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6, 5681 /* 2.4 GHz spectrum channel. */ 5682 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7, 5683 /* 5 GHz spectrum channel */ 5684 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8, 5685 /* Only passive scan allowed */ 5686 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9, 5687 /* Dynamic CCK-OFDM channel */ 5688 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10, 5689 /* GFSK channel (FHSS PHY) */ 5690 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11, 5691 /* Radar found on channel */ 5692 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12, 5693 /* 11a static turbo channel only */ 5694 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13, 5695 /* Half rate channel */ 5696 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14, 5697 /* Quarter rate channel */ 5698 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15, 5699 /* HT 20 channel */ 5700 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16, 5701 /* HT 40 with extension channel above */ 5702 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17, 5703 /* HT 40 with extension channel below */ 5704 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18, 5705 /* HT 40 intolerant */ 5706 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19, 5707 /* VHT 20 channel */ 5708 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20, 5709 /* VHT 40 with extension channel above */ 5710 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21, 5711 /* VHT 40 with extension channel below */ 5712 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22, 5713 /* VHT 80 channel */ 5714 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23, 5715 /* HT 40 intolerant mark bit for ACS use */ 5716 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24, 5717 /* Channel temporarily blocked due to noise */ 5718 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25, 5719 /* VHT 160 channel */ 5720 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26, 5721 /* VHT 80+80 channel */ 5722 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27, 5723 /* HE 20 channel */ 5724 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28, 5725 /* HE 40 with extension channel above */ 5726 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29, 5727 /* HE 40 with extension channel below */ 5728 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30, 5729 /* HE 40 intolerant */ 5730 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1 << 31, 5731 }; 5732 5733 /** 5734 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a 5735 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is 5736 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2. 5737 */ 5738 enum qca_wlan_vendor_channel_prop_flags_2 { 5739 /* HE 40 intolerant mark bit for ACS use */ 5740 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0, 5741 /* HE 80 channel */ 5742 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1, 5743 /* HE 160 channel */ 5744 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2, 5745 /* HE 80+80 channel */ 5746 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3, 5747 }; 5748 5749 /** 5750 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for 5751 * each channel. This is used by 5752 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT. 5753 */ 5754 enum qca_wlan_vendor_channel_prop_flags_ext { 5755 /* Radar found on channel */ 5756 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0, 5757 /* DFS required on channel */ 5758 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1, 5759 /* DFS required on channel for 2nd band of 80+80 */ 5760 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2, 5761 /* If channel has been checked for DFS */ 5762 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3, 5763 /* Excluded in 802.11d */ 5764 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4, 5765 /* Channel Switch Announcement received on this channel */ 5766 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5, 5767 /* Ad-hoc is not allowed */ 5768 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6, 5769 /* Station only channel */ 5770 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7, 5771 /* DFS radar history for client device (STA mode) */ 5772 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8, 5773 /* DFS CAC valid for client device (STA mode) */ 5774 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9, 5775 }; 5776 5777 /** 5778 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel 5779 * information. These attributes are sent as part of 5780 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following 5781 * attributes correspond to a single channel. 5782 */ 5783 enum qca_wlan_vendor_external_acs_event_chan_info_attr { 5784 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0, 5785 5786 /* A bitmask (u32) with flags specified in 5787 * enum qca_wlan_vendor_channel_prop_flags. 5788 */ 5789 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1, 5790 /* A bitmask (u32) with flags specified in 5791 * enum qca_wlan_vendor_channel_prop_flags_ext. 5792 */ 5793 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2, 5794 /* frequency in MHz (u32) */ 5795 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3, 5796 /* maximum regulatory transmission power (u32) */ 5797 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4, 5798 /* maximum transmission power (u32) */ 5799 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5, 5800 /* minimum transmission power (u32) */ 5801 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6, 5802 /* regulatory class id (u8) */ 5803 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7, 5804 /* maximum antenna gain in (u8) */ 5805 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8, 5806 /* VHT segment 0 (u8) */ 5807 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9, 5808 /* VHT segment 1 (u8) */ 5809 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10, 5810 /* A bitmask (u32) with flags specified in 5811 * enum qca_wlan_vendor_channel_prop_flags_2. 5812 */ 5813 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11, 5814 5815 /* 5816 * VHT segment 0 in MHz (u32) and the attribute is mandatory. 5817 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes 5818 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 5819 * along with 5820 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0. 5821 * 5822 * If both the driver and user-space application supports the 6 GHz 5823 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 5824 * is deprecated and 5825 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 5826 * should be used. 5827 * 5828 * To maintain backward compatibility, 5829 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 5830 * is still used if either of the driver or user space application 5831 * doesn't support the 6 GHz band. 5832 */ 5833 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 12, 5834 5835 /* 5836 * VHT segment 1 in MHz (u32) and the attribute is mandatory. 5837 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes 5838 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 5839 * along with 5840 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1. 5841 * 5842 * If both the driver and user-space application supports the 6 GHz 5843 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 5844 * is deprecated and 5845 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 5846 * should be considered. 5847 * 5848 * To maintain backward compatibility, 5849 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 5850 * is still used if either of the driver or user space application 5851 * doesn't support the 6 GHz band. 5852 */ 5853 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 13, 5854 5855 /* 5856 * 16-bit attribute of bits indicating the AP power modes supported by 5857 * the channel (u16). 5858 * Note: Currently, only 3 bits are used in the attribute and each bit 5859 * corresponds to the power mode mentioned in enum 5860 * qca_wlan_vendor_external_acs_chan_power_mode and a given bit is 5861 * set if the associated mode is supported. 5862 */ 5863 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES 5864 = 14, 5865 /* Array of nested attributes for each power mode. It takes attr as 5866 * defined in enum 5867 * qca_wlan_vendor_external_acs_event_chan_power_info_attr. 5868 */ 5869 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15, 5870 /* keep last */ 5871 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST, 5872 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX = 5873 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1, 5874 }; 5875 5876 /** 5877 * qca_wlan_vendor_external_acs_chan_power_mode - Specifies the valid 5878 * values that the vendor external ACS channel power attribute 5879 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can 5880 * take. 5881 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode 5882 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode 5883 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode 5884 */ 5885 enum qca_wlan_vendor_external_acs_chan_power_level { 5886 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0, 5887 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1, 5888 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2, 5889 }; 5890 5891 /** 5892 * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested 5893 * attributes for power mode type and power values corresponding to that. 5894 * These attributes are sent as part of 5895 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR. 5896 */ 5897 enum qca_wlan_vendor_external_acs_event_chan_power_info_attr { 5898 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0, 5899 /* 5900 * Power mode (u8) takes the values defined in enum 5901 * qca_wlan_vendor_external_acs_chan_power_mode 5902 */ 5903 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE 5904 = 1, 5905 /* 5906 * Indicates if power value is a PSD/EIRP value (flag). If flag is 5907 * present, it indicates a PSD value. 5908 */ 5909 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2, 5910 /* 5911 * Power value (u32) PSD/EIRP as indicated by 5912 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG, 5913 * for power mode corresponding to the 5914 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE. 5915 * Units for PSD - dBm/MHz 5916 * Units for EIRP - dBm 5917 */ 5918 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE 5919 = 3, 5920 /* keep last */ 5921 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST, 5922 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX = 5923 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1, 5924 }; 5925 5926 /** 5927 * qca_wlan_vendor_attr_pcl: Represents attributes for 5928 * preferred channel list (PCL). These attributes are sent as part of 5929 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and 5930 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST. 5931 */ 5932 enum qca_wlan_vendor_attr_pcl { 5933 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0, 5934 5935 /* Channel number (u8) */ 5936 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1, 5937 /* Channel weightage (u8) */ 5938 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2, 5939 /* Channel frequency (u32) in MHz */ 5940 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3, 5941 /* Channel flags (u32) 5942 * bit 0 set: channel to be used for GO role, 5943 * bit 1 set: channel to be used on CLI role, 5944 * bit 2 set: channel must be considered for operating channel 5945 * selection & peer chosen operating channel should be 5946 * one of the channels with this flag set, 5947 * bit 3 set: channel should be excluded in GO negotiation 5948 */ 5949 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4, 5950 5951 /* Keep last */ 5952 QCA_WLAN_VENDOR_ATTR_PCL_LAST, 5953 QCA_WLAN_VENDOR_ATTR_PCL_MAX = QCA_WLAN_VENDOR_ATTR_PCL_LAST - 1 5954 }; 5955 5956 /** 5957 * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command 5958 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by 5959 * host driver. 5960 */ 5961 enum qca_wlan_vendor_attr_external_acs_event { 5962 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0, 5963 5964 /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason. 5965 * This helps ACS module to understand why ACS needs to be started. 5966 */ 5967 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1, 5968 /* Flag attribute to indicate if driver supports spectral scanning */ 5969 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2, 5970 /* Flag attribute to indicate if 11ac is offloaded to firmware */ 5971 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3, 5972 /* Flag attribute to indicate if driver provides additional channel 5973 * capability as part of scan operation 5974 */ 5975 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4, 5976 /* Flag attribute to indicate interface status is UP */ 5977 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5, 5978 /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype 5979 * values. 5980 */ 5981 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6, 5982 /* Channel width (u8). It takes one of enum nl80211_chan_width values. 5983 * This is the upper bound of channel width. ACS logic should try to get 5984 * a channel with the specified width and if not found, look for lower 5985 * values. 5986 */ 5987 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7, 5988 /* This (u8) will hold values of one of enum nl80211_bands */ 5989 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8, 5990 /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode 5991 * values 5992 */ 5993 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9, 5994 /* Array of (u32) supported frequency list among which ACS should choose 5995 * best frequency. 5996 */ 5997 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10, 5998 /* Preferred channel list by the driver which will have array of nested 5999 * values as per enum qca_wlan_vendor_attr_pcl attribute. 6000 */ 6001 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11, 6002 /* Array of nested attribute for each channel. It takes attr as defined 6003 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr. 6004 */ 6005 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12, 6006 /* External ACS policy such as PCL mandatory, PCL preferred, etc. 6007 * It uses values defined in enum 6008 * qca_wlan_vendor_attr_external_acs_policy. 6009 */ 6010 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13, 6011 /* Reference RF Operating Parameter (RROP) availability information 6012 * (u16). It uses values defined in enum 6013 * qca_wlan_vendor_attr_rropavail_info. 6014 */ 6015 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14, 6016 /* Flag attribute to indicate if driver supports 6 GHz AFC trigger 6017 * for External ACS 6018 */ 6019 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15, 6020 6021 /* keep last */ 6022 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST, 6023 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX = 6024 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1, 6025 }; 6026 6027 /** 6028 * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd 6029 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels 6030 * in priority order as decided after ACS operation in userspace. 6031 * 6032 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8). 6033 * One of reason code from enum qca_wlan_vendor_acs_select_reason. 6034 * 6035 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required 6036 * Array of nested values for each channel with following attributes: 6037 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY, 6038 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY, 6039 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0, 6040 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1, 6041 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 6042 * Note: If both the driver and user-space application supports the 6 GHz band, 6043 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use 6044 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST. 6045 * To maintain backward compatibility, 6046 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST 6047 * is still used if either of the driver or user space application doesn't 6048 * support the 6 GHz band. 6049 * 6050 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8). 6051 * Primary channel number 6052 * Note: If both the driver and user-space application supports the 6 GHz band, 6053 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use 6054 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY. 6055 * To maintain backward compatibility, 6056 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY 6057 * is still used if either of the driver or user space application doesn't 6058 * support the 6 GHz band. 6059 * 6060 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8). 6061 * Secondary channel number, required only for 160 and 80+80 MHz bandwidths. 6062 * Note: If both the driver and user-space application supports the 6 GHz band, 6063 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use 6064 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY. 6065 * To maintain backward compatibility, 6066 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY 6067 * is still used if either of the driver or user space application 6068 * doesn't support the 6 GHz band. 6069 * 6070 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8). 6071 * VHT seg0 channel number 6072 * Note: If both the driver and user-space application supports the 6 GHz band, 6073 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use 6074 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0. 6075 * To maintain backward compatibility, 6076 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 6077 * is still used if either of the driver or user space application 6078 * doesn't support the 6 GHz band. 6079 * 6080 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8). 6081 * VHT seg1 channel number 6082 * Note: If both the driver and user-space application supports the 6 GHz band, 6083 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use 6084 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1. 6085 * To maintain backward compatibility, 6086 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 6087 * is still used if either of the driver or user space application 6088 * doesn't support the 6 GHz band. 6089 * 6090 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8). 6091 * Takes one of enum nl80211_chan_width values. 6092 * 6093 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required 6094 * Array of nested values for each channel with following attributes: 6095 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32), 6096 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32), 6097 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32), 6098 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32), 6099 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 6100 * Note: If user-space application has no support of the 6 GHz band, this 6101 * attribute is optional. 6102 * 6103 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32) 6104 * Primary channel frequency in MHz 6105 * Note: If user-space application has no support of the 6 GHz band, this 6106 * attribute is optional. 6107 * 6108 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32) 6109 * Secondary channel frequency in MHz used for HT 40 MHz channels. 6110 * Note: If user-space application has no support of the 6 GHz band, this 6111 * attribute is optional. 6112 * 6113 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32) 6114 * VHT seg0 channel frequency in MHz 6115 * Note: If user-space application has no support of the 6GHz band, this 6116 * attribute is optional. 6117 * 6118 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32) 6119 * VHT seg1 channel frequency in MHz 6120 * Note: If user-space application has no support of the 6 GHz band, this 6121 * attribute is optional. 6122 */ 6123 enum qca_wlan_vendor_attr_external_acs_channels { 6124 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0, 6125 6126 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason 6127 */ 6128 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1, 6129 6130 /* Array of nested values for each channel with following attributes: 6131 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND, 6132 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY, 6133 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY, 6134 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0, 6135 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1, 6136 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 6137 */ 6138 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2, 6139 /* This (u8) will hold values of one of enum nl80211_bands */ 6140 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3, 6141 /* Primary channel (u8) */ 6142 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4, 6143 /* Secondary channel (u8) used for HT 40 MHz channels */ 6144 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5, 6145 /* VHT seg0 channel (u8) */ 6146 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6, 6147 /* VHT seg1 channel (u8) */ 6148 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7, 6149 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */ 6150 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8, 6151 6152 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9, 6153 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10, 6154 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11, 6155 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12, 6156 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13, 6157 6158 /* keep last */ 6159 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST, 6160 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX = 6161 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1 6162 }; 6163 6164 enum qca_chip_power_save_failure_reason { 6165 /* Indicates if the reason for the failure is due to a protocol 6166 * layer/module. 6167 */ 6168 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0, 6169 /* Indicates if the reason for the failure is due to a hardware issue. 6170 */ 6171 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1, 6172 }; 6173 6174 /** 6175 * qca_attr_chip_power_save_failure: Attributes to vendor subcmd 6176 * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite 6177 * information leading to the power save failure. 6178 */ 6179 enum qca_attr_chip_power_save_failure { 6180 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0, 6181 /* Reason to cause the power save failure. 6182 * These reasons are represented by 6183 * enum qca_chip_power_save_failure_reason. 6184 */ 6185 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1, 6186 6187 /* keep last */ 6188 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST, 6189 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX = 6190 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1, 6191 }; 6192 6193 /** 6194 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various 6195 * data types for which the stats have to get collected. 6196 */ 6197 enum qca_wlan_vendor_nud_stats_data_pkt_flags { 6198 QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0, 6199 QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1, 6200 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2, 6201 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3, 6202 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4, 6203 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get 6204 * to represent the stats of respective data type. 6205 */ 6206 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5, 6207 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6, 6208 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7, 6209 }; 6210 6211 enum qca_wlan_vendor_nud_stats_set_data_pkt_info { 6212 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0, 6213 /* Represents the data packet type to be monitored (u32). 6214 * Host driver tracks the stats corresponding to each data frame 6215 * represented by these flags. 6216 * These data packets are represented by 6217 * enum qca_wlan_vendor_nud_stats_data_pkt_flags 6218 */ 6219 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1, 6220 /* Name corresponding to the DNS frame for which the respective DNS 6221 * stats have to get monitored (string). Max string length 255. 6222 */ 6223 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2, 6224 /* source port on which the respective proto stats have to get 6225 * collected (u32). 6226 */ 6227 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3, 6228 /* destination port on which the respective proto stats have to get 6229 * collected (u32). 6230 */ 6231 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4, 6232 /* IPv4 address for which the destined data packets have to be 6233 * monitored. (in network byte order), u32. 6234 */ 6235 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5, 6236 /* IPv6 address for which the destined data packets have to be 6237 * monitored. (in network byte order), 16 bytes array. 6238 */ 6239 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6, 6240 6241 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST, 6242 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX = 6243 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1, 6244 }; 6245 6246 /** 6247 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd 6248 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite 6249 * information to start/stop the NUD statistics collection. 6250 */ 6251 enum qca_attr_nud_stats_set { 6252 QCA_ATTR_NUD_STATS_SET_INVALID = 0, 6253 6254 /* Flag to start/stop the NUD statistics collection. 6255 * Start - If included, Stop - If not included 6256 */ 6257 QCA_ATTR_NUD_STATS_SET_START = 1, 6258 /* IPv4 address of the default gateway (in network byte order), u32 */ 6259 QCA_ATTR_NUD_STATS_GW_IPV4 = 2, 6260 /* Represents the list of data packet types to be monitored. 6261 * Host driver tracks the stats corresponding to each data frame 6262 * represented by these flags. 6263 * These data packets are represented by 6264 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info 6265 */ 6266 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3, 6267 6268 /* keep last */ 6269 QCA_ATTR_NUD_STATS_SET_LAST, 6270 QCA_ATTR_NUD_STATS_SET_MAX = 6271 QCA_ATTR_NUD_STATS_SET_LAST - 1, 6272 }; 6273 6274 enum qca_attr_nud_data_stats { 6275 QCA_ATTR_NUD_DATA_STATS_INVALID = 0, 6276 /* Data packet type for which the stats are collected (u32). 6277 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags 6278 */ 6279 QCA_ATTR_NUD_STATS_PKT_TYPE = 1, 6280 /* Name corresponding to the DNS frame for which the respective DNS 6281 * stats are monitored (string). Max string length 255. 6282 */ 6283 QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2, 6284 /* source port on which the respective proto stats are collected (u32). 6285 */ 6286 QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3, 6287 /* destination port on which the respective proto stats are collected 6288 * (u32). 6289 */ 6290 QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4, 6291 /* IPv4 address for which the destined data packets have to be 6292 * monitored. (in network byte order), u32. 6293 */ 6294 QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5, 6295 /* IPv6 address for which the destined data packets have to be 6296 * monitored. (in network byte order), 16 bytes array. 6297 */ 6298 QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6, 6299 /* Data packet Request count received from netdev (u32). */ 6300 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7, 6301 /* Data packet Request count sent to lower MAC from upper MAC (u32). */ 6302 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8, 6303 /* Data packet Request count received by lower MAC from upper MAC 6304 * (u32) 6305 */ 6306 QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9, 6307 /* Data packet Request count successfully transmitted by the device 6308 * (u32) 6309 */ 6310 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10, 6311 /* Data packet Response count received by lower MAC (u32) */ 6312 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11, 6313 /* Data packet Response count received by upper MAC (u32) */ 6314 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12, 6315 /* Data packet Response count delivered to netdev (u32) */ 6316 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13, 6317 /* Data Packet Response count that are dropped out of order (u32) */ 6318 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14, 6319 6320 /* keep last */ 6321 QCA_ATTR_NUD_DATA_STATS_LAST, 6322 QCA_ATTR_NUD_DATA_STATS_MAX = 6323 QCA_ATTR_NUD_DATA_STATS_LAST - 1, 6324 }; 6325 6326 /** 6327 * qca_attr_nud_stats_get: Attributes to vendor subcmd 6328 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite 6329 * NUD statistics collected when queried. 6330 */ 6331 enum qca_attr_nud_stats_get { 6332 QCA_ATTR_NUD_STATS_GET_INVALID = 0, 6333 /* ARP Request count from netdev (u32) */ 6334 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1, 6335 /* ARP Request count sent to lower MAC from upper MAC (u32) */ 6336 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2, 6337 /* ARP Request count received by lower MAC from upper MAC (u32) */ 6338 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3, 6339 /* ARP Request count successfully transmitted by the device (u32) */ 6340 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4, 6341 /* ARP Response count received by lower MAC (u32) */ 6342 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5, 6343 /* ARP Response count received by upper MAC (u32) */ 6344 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6, 6345 /* ARP Response count delivered to netdev (u32) */ 6346 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7, 6347 /* ARP Response count dropped due to out of order reception (u32) */ 6348 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8, 6349 /* Flag indicating if the station's link to the AP is active. 6350 * Active Link - If included, Inactive link - If not included 6351 */ 6352 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9, 6353 /* Flag indicating if there is any duplicate address detected (DAD). 6354 * Yes - If detected, No - If not detected. 6355 */ 6356 QCA_ATTR_NUD_STATS_IS_DAD = 10, 6357 /* List of Data packet types for which the stats are requested. 6358 * This list does not carry ARP stats as they are done by the 6359 * above attributes. Represented by enum qca_attr_nud_data_stats. 6360 */ 6361 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11, 6362 6363 /* keep last */ 6364 QCA_ATTR_NUD_STATS_GET_LAST, 6365 QCA_ATTR_NUD_STATS_GET_MAX = 6366 QCA_ATTR_NUD_STATS_GET_LAST - 1, 6367 }; 6368 6369 enum qca_wlan_btm_candidate_status { 6370 QCA_STATUS_ACCEPT = 0, 6371 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1, 6372 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2, 6373 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3, 6374 QCA_STATUS_REJECT_LOW_RSSI = 4, 6375 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5, 6376 QCA_STATUS_REJECT_UNKNOWN = 6, 6377 }; 6378 6379 enum qca_wlan_vendor_attr_btm_candidate_info { 6380 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0, 6381 6382 /* 6-byte MAC address representing the BSSID of transition candidate */ 6383 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1, 6384 /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status 6385 * returned by the driver. It says whether the BSSID provided in 6386 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by 6387 * the driver, if not it specifies the reason for rejection. 6388 * Note that the user-space can overwrite the transition reject reason 6389 * codes provided by driver based on more information. 6390 */ 6391 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2, 6392 6393 /* keep last */ 6394 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST, 6395 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX = 6396 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1, 6397 }; 6398 6399 enum qca_attr_trace_level { 6400 QCA_ATTR_TRACE_LEVEL_INVALID = 0, 6401 /* 6402 * Nested array of the following attributes: 6403 * QCA_ATTR_TRACE_LEVEL_MODULE, 6404 * QCA_ATTR_TRACE_LEVEL_MASK. 6405 */ 6406 QCA_ATTR_TRACE_LEVEL_PARAM = 1, 6407 /* 6408 * Specific QCA host driver module. Please refer to the QCA host 6409 * driver implementation to get the specific module ID. 6410 */ 6411 QCA_ATTR_TRACE_LEVEL_MODULE = 2, 6412 /* Different trace level masks represented in the QCA host driver. */ 6413 QCA_ATTR_TRACE_LEVEL_MASK = 3, 6414 6415 /* keep last */ 6416 QCA_ATTR_TRACE_LEVEL_AFTER_LAST, 6417 QCA_ATTR_TRACE_LEVEL_MAX = 6418 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1, 6419 }; 6420 6421 /** 6422 * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities 6423 */ 6424 enum qca_wlan_vendor_attr_get_he_capabilities { 6425 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0, 6426 /* Whether HE capabilities is supported 6427 * (u8 attribute: 0 = not supported, 1 = supported) 6428 */ 6429 QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1, 6430 /* HE PHY capabilities, array of 3 u32 values */ 6431 QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2, 6432 /* HE MAC capabilities (u32 attribute) */ 6433 QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3, 6434 /* HE MCS map (u32 attribute) */ 6435 QCA_WLAN_VENDOR_ATTR_HE_MCS = 4, 6436 /* Number of SS (u32 attribute) */ 6437 QCA_WLAN_VENDOR_ATTR_NUM_SS = 5, 6438 /* RU count (u32 attribute) */ 6439 QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6, 6440 /* PPE threshold data, array of 8 u32 values */ 6441 QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7, 6442 6443 /* keep last */ 6444 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST, 6445 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX = 6446 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1, 6447 }; 6448 6449 /** 6450 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters 6451 */ 6452 enum qca_wlan_vendor_attr_spectral_scan { 6453 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0, 6454 /* Number of times the chip enters spectral scan mode before 6455 * deactivating spectral scans. When set to 0, chip will enter spectral 6456 * scan mode continuously. u32 attribute. 6457 */ 6458 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1, 6459 /* Spectral scan period. Period increment resolution is 256*Tclk, 6460 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute. 6461 */ 6462 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2, 6463 /* Spectral scan priority. u32 attribute. */ 6464 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3, 6465 /* Number of FFT data points to compute. u32 attribute. */ 6466 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4, 6467 /* Enable targeted gain change before starting the spectral scan FFT. 6468 * u32 attribute. 6469 */ 6470 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5, 6471 /* Restart a queued spectral scan. u32 attribute. */ 6472 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6, 6473 /* Noise floor reference number for the calculation of bin power. 6474 * u32 attribute. 6475 */ 6476 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7, 6477 /* Disallow spectral scan triggers after TX/RX packets by setting 6478 * this delay value to roughly SIFS time period or greater. 6479 * u32 attribute. 6480 */ 6481 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8, 6482 /* Number of strong bins (inclusive) per sub-channel, below 6483 * which a signal is declared a narrow band tone. u32 attribute. 6484 */ 6485 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9, 6486 /* Specify the threshold over which a bin is declared strong (for 6487 * scan bandwidth analysis). u32 attribute. 6488 */ 6489 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10, 6490 /* Spectral scan report mode. u32 attribute. */ 6491 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11, 6492 /* RSSI report mode, if the ADC RSSI is below 6493 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR, 6494 * then FFTs will not trigger, but timestamps and summaries get 6495 * reported. u32 attribute. 6496 */ 6497 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12, 6498 /* ADC RSSI must be greater than or equal to this threshold (signed dB) 6499 * to ensure spectral scan reporting with normal error code. 6500 * u32 attribute. 6501 */ 6502 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13, 6503 /* Format of frequency bin magnitude for spectral scan triggered FFTs: 6504 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)). 6505 * u32 attribute. 6506 */ 6507 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14, 6508 /* Format of FFT report to software for spectral scan triggered FFTs. 6509 * 0: No FFT report (only spectral scan summary report) 6510 * 1: 2-dword summary of metrics for each completed FFT + spectral scan 6511 * report 6512 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled 6513 * bins (in-band) per FFT + spectral scan summary report 6514 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled 6515 * bins (all) per FFT + spectral scan summary report 6516 * u32 attribute. 6517 */ 6518 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15, 6519 /* Number of LSBs to shift out in order to scale the FFT bins. 6520 * u32 attribute. 6521 */ 6522 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16, 6523 /* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes 6524 * in dBm power. u32 attribute. 6525 */ 6526 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17, 6527 /* Per chain enable mask to select input ADC for search FFT. 6528 * u32 attribute. 6529 */ 6530 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18, 6531 /* An unsigned 64-bit integer provided by host driver to identify the 6532 * spectral scan request. This attribute is included in the scan 6533 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START 6534 * and used as an attribute in 6535 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the 6536 * specific scan to be stopped. 6537 */ 6538 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19, 6539 /* Skip interval for FFT reports. u32 attribute */ 6540 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20, 6541 /* Set to report only one set of FFT results. 6542 * u32 attribute. 6543 */ 6544 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21, 6545 /* Debug level for spectral module in driver. 6546 * 0 : Verbosity level 0 6547 * 1 : Verbosity level 1 6548 * 2 : Verbosity level 2 6549 * 3 : Matched filterID display 6550 * 4 : One time dump of FFT report 6551 * u32 attribute. 6552 */ 6553 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22, 6554 /* Type of spectral scan request. u32 attribute. 6555 * It uses values defined in enum 6556 * qca_wlan_vendor_attr_spectral_scan_request_type. 6557 */ 6558 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23, 6559 /* This specifies the frequency span over which spectral 6560 * scan would be carried out. Its value depends on the 6561 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and 6562 * the relation is as follows. 6563 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL 6564 * Not applicable. Spectral scan would happen in the 6565 * operating span. 6566 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE 6567 * Center frequency (in MHz) of the span of interest or 6568 * for convenience, center frequency (in MHz) of any channel 6569 * in the span of interest. For 80+80 MHz agile spectral scan 6570 * request it represents center frequency (in MHz) of the primary 6571 * 80 MHz span or for convenience, center frequency (in MHz) of any 6572 * channel in the primary 80 MHz span. If agile spectral scan is 6573 * initiated without setting a valid frequency it returns the 6574 * error code 6575 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED). 6576 * u32 attribute. 6577 */ 6578 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24, 6579 /* Spectral scan mode. u32 attribute. 6580 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode. 6581 * If this attribute is not present, it is assumed to be 6582 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL). 6583 */ 6584 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25, 6585 /* Spectral scan error code. u32 attribute. 6586 * It uses values defined in enum 6587 * qca_wlan_vendor_spectral_scan_error_code. 6588 * This attribute is included only in failure scenarios. 6589 */ 6590 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26, 6591 /* 8-bit unsigned value to enable/disable debug of the 6592 * Spectral DMA ring. 6593 * 1-enable, 0-disable 6594 */ 6595 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27, 6596 /* 8-bit unsigned value to enable/disable debug of the 6597 * Spectral DMA buffers. 6598 * 1-enable, 0-disable 6599 */ 6600 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28, 6601 /* This specifies the frequency span over which spectral scan would be 6602 * carried out. Its value depends on the value of 6603 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as 6604 * follows. 6605 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL 6606 * Not applicable. Spectral scan would happen in the operating span. 6607 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE 6608 * This attribute is applicable only for agile spectral scan 6609 * requests in 80+80 MHz mode. It represents center frequency (in 6610 * MHz) of the secondary 80 MHz span or for convenience, center 6611 * frequency (in MHz) of any channel in the secondary 80 MHz span. 6612 * u32 attribute. 6613 */ 6614 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29, 6615 /* This attribute specifies the bandwidth to be used for spectral scan 6616 * operation. This is an u8 attribute and uses the values in enum 6617 * nl80211_chan_width. This is an optional attribute. 6618 * If this attribute is not populated, the driver should configure the 6619 * spectral scan bandwidth to the maximum value supported by the target 6620 * for the current operating bandwidth. 6621 */ 6622 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30, 6623 /* Spectral FFT recapture flag attribute, to enable FFT recapture. 6624 * Recapture can only be enabled for scan period greater than 52 us. 6625 * If this attribute is enabled, re-triggers will be enabled when AGC 6626 * gain changes. 6627 */ 6628 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31, 6629 6630 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST, 6631 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX = 6632 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1, 6633 }; 6634 6635 /** 6636 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command 6637 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS. 6638 */ 6639 enum qca_wlan_vendor_attr_spectral_diag_stats { 6640 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0, 6641 /* Number of spectral TLV signature mismatches. 6642 * u64 attribute. 6643 */ 6644 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1, 6645 /* Number of spectral phyerror events with insufficient length when 6646 * parsing for secondary 80 search FFT report. u64 attribute. 6647 */ 6648 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2, 6649 /* Number of spectral phyerror events without secondary 80 6650 * search FFT report. u64 attribute. 6651 */ 6652 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3, 6653 /* Number of spectral phyerror events with vht operation segment 1 id 6654 * mismatches in search fft report. u64 attribute. 6655 */ 6656 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4, 6657 /* Number of spectral phyerror events with vht operation segment 2 id 6658 * mismatches in search fft report. u64 attribute. 6659 */ 6660 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5, 6661 6662 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST, 6663 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX = 6664 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1, 6665 }; 6666 6667 /** 6668 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command 6669 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. 6670 */ 6671 enum qca_wlan_vendor_attr_spectral_cap { 6672 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0, 6673 /* Flag attribute to indicate phydiag capability */ 6674 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1, 6675 /* Flag attribute to indicate radar detection capability */ 6676 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2, 6677 /* Flag attribute to indicate spectral capability */ 6678 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3, 6679 /* Flag attribute to indicate advanced spectral capability */ 6680 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4, 6681 /* Spectral hardware generation. u32 attribute. 6682 * It uses values defined in enum 6683 * qca_wlan_vendor_spectral_scan_cap_hw_gen. 6684 */ 6685 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5, 6686 /* Spectral bin scaling formula ID. u16 attribute. 6687 * It uses values defined in enum 6688 * qca_wlan_vendor_spectral_scan_cap_formula_id. 6689 */ 6690 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6, 6691 /* Spectral bin scaling param - low level offset. 6692 * s16 attribute. 6693 */ 6694 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7, 6695 /* Spectral bin scaling param - high level offset. 6696 * s16 attribute. 6697 */ 6698 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8, 6699 /* Spectral bin scaling param - RSSI threshold. 6700 * s16 attribute. 6701 */ 6702 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9, 6703 /* Spectral bin scaling param - default AGC max gain. 6704 * u8 attribute. 6705 */ 6706 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10, 6707 /* Flag attribute to indicate agile spectral scan capability 6708 * for 20/40/80 MHz modes. 6709 */ 6710 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11, 6711 /* Flag attribute to indicate agile spectral scan capability 6712 * for 160 MHz mode. 6713 */ 6714 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12, 6715 /* Flag attribute to indicate agile spectral scan capability 6716 * for 80+80 MHz mode. 6717 */ 6718 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13, 6719 /* Number of spectral detectors used for scan in 20 MHz. 6720 * u32 attribute. 6721 */ 6722 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14, 6723 /* Number of spectral detectors used for scan in 40 MHz. 6724 * u32 attribute. 6725 */ 6726 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15, 6727 /* Number of spectral detectors used for scan in 80 MHz. 6728 * u32 attribute. 6729 */ 6730 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16, 6731 /* Number of spectral detectors used for scan in 160 MHz. 6732 * u32 attribute. 6733 */ 6734 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17, 6735 /* Number of spectral detectors used for scan in 80+80 MHz. 6736 * u32 attribute. 6737 */ 6738 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18, 6739 /* Flag attribute to indicate agile spectral scan capability 6740 * for 320 MHz mode. 6741 */ 6742 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19, 6743 /* Number of spectral detectors used for scan in 320 MHz. 6744 * u32 attribute. 6745 */ 6746 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20, 6747 6748 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST, 6749 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX = 6750 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1, 6751 }; 6752 6753 /** 6754 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command 6755 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. 6756 */ 6757 enum qca_wlan_vendor_attr_spectral_scan_status { 6758 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0, 6759 /* Flag attribute to indicate whether spectral scan is enabled */ 6760 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1, 6761 /* Flag attribute to indicate whether spectral scan is in progress*/ 6762 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2, 6763 /* Spectral scan mode. u32 attribute. 6764 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode. 6765 * If this attribute is not present, normal mode 6766 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be 6767 * requested. 6768 */ 6769 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3, 6770 6771 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST, 6772 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX = 6773 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1, 6774 }; 6775 6776 /** 6777 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for 6778 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd 6779 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the 6780 * spectral scan request types. 6781 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to 6782 * set the spectral parameters and start scan. 6783 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to 6784 * only set the spectral parameters. 6785 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to 6786 * only start the spectral scan. 6787 */ 6788 enum qca_wlan_vendor_attr_spectral_scan_request_type { 6789 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG, 6790 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN, 6791 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG, 6792 }; 6793 6794 /** 6795 * qca_wlan_vendor_spectral_scan_mode: Attribute values for 6796 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd 6797 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and 6798 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd 6799 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the 6800 * spectral scan modes. 6801 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan: 6802 * spectral scan in the current operating span. 6803 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan: 6804 * spectral scan in the configured agile span. 6805 */ 6806 enum qca_wlan_vendor_spectral_scan_mode { 6807 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0, 6808 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1, 6809 }; 6810 6811 /** 6812 * qca_wlan_vendor_spectral_scan_error_code: Attribute values for 6813 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd 6814 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. 6815 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value 6816 * of a parameter is not supported. 6817 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan 6818 * mode is not supported. 6819 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter 6820 * has invalid value. 6821 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter 6822 * is not initialized. 6823 */ 6824 enum qca_wlan_vendor_spectral_scan_error_code { 6825 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0, 6826 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1, 6827 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2, 6828 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3, 6829 }; 6830 6831 /** 6832 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for 6833 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd 6834 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the 6835 * spectral hardware generation. 6836 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1 6837 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2 6838 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3 6839 */ 6840 enum qca_wlan_vendor_spectral_scan_cap_hw_gen { 6841 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0, 6842 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1, 6843 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2, 6844 }; 6845 6846 enum qca_wlan_vendor_tos { 6847 QCA_WLAN_VENDOR_TOS_BK = 0, 6848 QCA_WLAN_VENDOR_TOS_BE = 1, 6849 QCA_WLAN_VENDOR_TOS_VI = 2, 6850 QCA_WLAN_VENDOR_TOS_VO = 3, 6851 }; 6852 6853 /** 6854 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command 6855 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS. 6856 */ 6857 enum qca_wlan_vendor_attr_active_tos { 6858 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0, 6859 /* Type Of Service - Represented by qca_wlan_vendor_tos */ 6860 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1, 6861 /* Flag attribute representing the start (attribute included) or stop 6862 * (attribute not included) of the respective TOS. 6863 */ 6864 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2, 6865 }; 6866 6867 enum qca_wlan_vendor_hang_reason { 6868 /* Unspecified reason */ 6869 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0, 6870 /* No Map for the MAC entry for the received frame */ 6871 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1, 6872 /* Peer deletion timeout happened */ 6873 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2, 6874 /* Peer unmap timeout */ 6875 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3, 6876 /* Scan request timed out */ 6877 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4, 6878 /* Consecutive Scan attempt failures */ 6879 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5, 6880 /* Unable to get the message buffer */ 6881 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6, 6882 /* Current command processing is timedout */ 6883 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7, 6884 /* Timeout for an ACK from FW for suspend request */ 6885 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8, 6886 /* Timeout for an ACK from FW for resume request */ 6887 QCA_WLAN_HANG_RESUME_TIMEOUT = 9, 6888 /* Transmission timeout for consecutive data frames */ 6889 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10, 6890 /* Timeout for the TX completion status of data frame */ 6891 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11, 6892 /* DXE failure for TX/RX, DXE resource unavailability */ 6893 QCA_WLAN_HANG_DXE_FAILURE = 12, 6894 /* WMI pending commands exceed the maximum count */ 6895 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13, 6896 /* Timeout for peer STA connection accept command's response from the 6897 * FW in AP mode. This command is triggered when a STA (peer) connects 6898 * to AP (DUT). 6899 */ 6900 QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14, 6901 /* Timeout for the AP connection accept command's response from the FW 6902 * in STA mode. This command is triggered when the STA (DUT) connects 6903 * to an AP (peer). 6904 */ 6905 QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15, 6906 /* Timeout waiting for the response to the MAC HW mode change command 6907 * sent to FW as a part of MAC mode switch among DBS (Dual Band 6908 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi 6909 * Channel Concurrency) mode. 6910 */ 6911 QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16, 6912 /* Timeout waiting for the response from FW to configure the MAC HW's 6913 * mode. This operation is to configure the single/two MACs in either 6914 * SCC/MCC/DBS mode. 6915 */ 6916 QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17, 6917 /* Timeout waiting for response of VDEV start command from the FW */ 6918 QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18, 6919 /* Timeout waiting for response of VDEV restart command from the FW */ 6920 QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19, 6921 /* Timeout waiting for response of VDEV stop command from the FW */ 6922 QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20, 6923 /* Timeout waiting for response of VDEV delete command from the FW */ 6924 QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21, 6925 /* Timeout waiting for response of peer all delete request command to 6926 * the FW on a specific VDEV. 6927 */ 6928 QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22, 6929 /* WMI sequence mismatch between WMI command and Tx completion */ 6930 QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23, 6931 /* Write to Device HAL register failed */ 6932 QCA_WLAN_HANG_REG_WRITE_FAILURE = 24, 6933 /* No credit left to send the wow_wakeup_from_sleep to firmware */ 6934 QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25, 6935 /* Bus failure */ 6936 QCA_WLAN_HANG_BUS_FAILURE = 26, 6937 /* tasklet/credit latency found */ 6938 QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27, 6939 }; 6940 6941 /** 6942 * enum qca_wlan_vendor_attr_hang - Used by the vendor command 6943 * QCA_NL80211_VENDOR_SUBCMD_HANG. 6944 */ 6945 enum qca_wlan_vendor_attr_hang { 6946 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0, 6947 /* Reason for the hang - u32 attribute with a value from enum 6948 * qca_wlan_vendor_hang_reason. 6949 */ 6950 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1, 6951 /* The binary blob data associated with the hang reason specified by 6952 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to 6953 * contain the required dump to analyze the reason for the hang. 6954 * NLA_BINARY attribute, the max size is 1024 bytes. 6955 */ 6956 QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2, 6957 6958 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST, 6959 QCA_WLAN_VENDOR_ATTR_HANG_MAX = 6960 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1, 6961 }; 6962 6963 /** 6964 * enum qca_wlan_vendor_flush_pending_policy: Represents values for 6965 * the policy to flush pending frames, configured via 6966 * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the 6967 * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY. 6968 * 6969 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all 6970 * the flush policy configured before. This command basically disables the 6971 * flush config set by the user. 6972 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures 6973 * the flush policy to be immediate. All pending packets for the peer/TID are 6974 * flushed when this command/policy is received. 6975 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures 6976 * the flush policy to the end of TWT SP. All pending packets for the peer/TID 6977 * are flushed when the end of TWT SP is reached. 6978 */ 6979 enum qca_wlan_vendor_flush_pending_policy { 6980 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0, 6981 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1, 6982 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2, 6983 }; 6984 6985 /** 6986 * enum qca_wlan_vendor_attr_flush_pending - Attributes for 6987 * flushing pending traffic in firmware. 6988 * 6989 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address. 6990 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending 6991 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK, 6992 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to 6993 * flush packets with access category. This is optional. See below. 6994 * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets. 6995 * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding 6996 * bit to 1 to act upon the TID. This is optional. Either this attribute or 6997 * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided, 6998 * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided 6999 * it is an error. 7000 * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending 7001 * packets corresponding to the peer/TID provided. It is a u32 value, 7002 * represented by %enum qca_wlan_vendor_flush_pending_policy. This 7003 * value is honored only when TID mask is provided. This is not honored when AC 7004 * mask is provided. 7005 */ 7006 enum qca_wlan_vendor_attr_flush_pending { 7007 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0, 7008 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1, 7009 QCA_WLAN_VENDOR_ATTR_AC = 2, 7010 QCA_WLAN_VENDOR_ATTR_TID_MASK = 3, 7011 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4, 7012 7013 /* keep last */ 7014 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST, 7015 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX = 7016 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1, 7017 }; 7018 7019 /** 7020 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for 7021 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd 7022 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the 7023 * Spectral bin scaling formula ID. 7024 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling 7025 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain 7026 * and RSSI threshold based formula. 7027 */ 7028 enum qca_wlan_vendor_spectral_scan_cap_formula_id { 7029 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0, 7030 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1, 7031 }; 7032 7033 /** 7034 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative 7035 * RF Operating Parameter (RROP) information is available, and if so, at which 7036 * point in the application-driver interaction sequence it can be retrieved by 7037 * the application from the driver. This point may vary by architecture and 7038 * other factors. This is a u16 value. 7039 */ 7040 enum qca_wlan_vendor_attr_rropavail_info { 7041 /* RROP information is unavailable. */ 7042 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE, 7043 /* RROP information is available and the application can retrieve the 7044 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS 7045 * event from the driver. 7046 */ 7047 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START, 7048 /* RROP information is available only after a vendor specific scan 7049 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has 7050 * successfully completed. The application can retrieve the information 7051 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from 7052 * the driver. 7053 */ 7054 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END, 7055 }; 7056 7057 /** 7058 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific 7059 * Representative RF Operating Parameter (RROP) information. It is sent for the 7060 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is 7061 * intended for use by external Auto Channel Selection applications. It provides 7062 * guidance values for some RF parameters that are used by the system during 7063 * operation. These values could vary by channel, band, radio, and so on. 7064 */ 7065 enum qca_wlan_vendor_attr_rrop_info { 7066 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0, 7067 7068 /* Representative Tx Power List (RTPL) which has an array of nested 7069 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst. 7070 */ 7071 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1, 7072 7073 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST, 7074 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX = 7075 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1 7076 }; 7077 7078 /** 7079 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list 7080 * entry instances in the Representative Tx Power List (RTPL). It provides 7081 * simplified power values intended for helping external Auto channel Selection 7082 * applications compare potential Tx power performance between channels, other 7083 * operating conditions remaining identical. These values are not necessarily 7084 * the actual Tx power values that will be used by the system. They are also not 7085 * necessarily the max or average values that will be used. Instead, they are 7086 * relative, summarized keys for algorithmic use computed by the driver or 7087 * underlying firmware considering a number of vendor specific factors. 7088 */ 7089 enum qca_wlan_vendor_attr_rtplinst { 7090 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0, 7091 7092 /* Primary channel number (u8). 7093 * Note: If both the driver and user space application support the 7094 * 6 GHz band, this attribute is deprecated and 7095 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To 7096 * maintain backward compatibility, 7097 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the 7098 * driver or user space application or both do not support the 6 GHz 7099 * band. 7100 */ 7101 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1, 7102 /* Representative Tx power in dBm (s32) with emphasis on throughput. */ 7103 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2, 7104 /* Representative Tx power in dBm (s32) with emphasis on range. */ 7105 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3, 7106 /* Primary channel center frequency (u32) in MHz */ 7107 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4, 7108 7109 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST, 7110 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX = 7111 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1, 7112 }; 7113 7114 /** 7115 * enum qca_wlan_vendor_attr_config_latency_level - Level for 7116 * wlan latency module. 7117 * 7118 * There will be various of Wi-Fi functionality like scan/roaming/adaptive 7119 * power saving which would causing data exchange out of service, this 7120 * would be a big impact on latency. For latency sensitive applications over 7121 * Wi-Fi are intolerant to such operations and thus would configure them 7122 * to meet their respective needs. It is well understood by such applications 7123 * that altering the default behavior would degrade the Wi-Fi functionality 7124 * w.r.t the above pointed WLAN operations. 7125 * 7126 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL: 7127 * Default WLAN operation level which throughput orientated. 7128 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR: 7129 * Use XR level to benefit XR (extended reality) application to achieve 7130 * latency and power by via constraint scan/roaming/adaptive PS. 7131 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW: 7132 * Use low latency level to benefit application like concurrent 7133 * downloading or video streaming via constraint scan/adaptive PS. 7134 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW: 7135 * Use ultra low latency level to benefit for gaming/voice 7136 * application via constraint scan/roaming/adaptive PS. 7137 */ 7138 enum qca_wlan_vendor_attr_config_latency_level { 7139 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0, 7140 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1, 7141 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2, 7142 /* legacy name */ 7143 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 7144 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR, 7145 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3, 7146 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4, 7147 7148 /* keep last */ 7149 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST, 7150 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX = 7151 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1, 7152 }; 7153 7154 /** 7155 * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command 7156 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO. 7157 */ 7158 enum qca_wlan_vendor_attr_mac { 7159 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0, 7160 7161 /* MAC mode info list which has an array of nested values as 7162 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info. 7163 */ 7164 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1, 7165 7166 /* keep last */ 7167 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST, 7168 QCA_WLAN_VENDOR_ATTR_MAC_MAX = 7169 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1, 7170 }; 7171 7172 /** 7173 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected 7174 * Wi-Fi netdev interface on a respective MAC. 7175 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO. 7176 */ 7177 enum qca_wlan_vendor_attr_mac_iface_info { 7178 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0, 7179 /* Wi-Fi netdev's interface index (u32) */ 7180 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1, 7181 /* Associated frequency in MHz of the connected Wi-Fi interface (u32) */ 7182 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2, 7183 7184 /* keep last */ 7185 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST, 7186 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX = 7187 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1, 7188 }; 7189 7190 /** 7191 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information. 7192 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the 7193 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO. 7194 */ 7195 enum qca_wlan_vendor_attr_mac_info { 7196 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0, 7197 /* Hardware MAC ID associated for the MAC (u32) */ 7198 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1, 7199 /* Band supported by the MAC at a given point. 7200 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum 7201 * nl80211_band. 7202 */ 7203 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2, 7204 /* Refers to list of WLAN netdev interfaces associated with this MAC. 7205 * Represented by enum qca_wlan_vendor_attr_mac_iface_info. 7206 */ 7207 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3, 7208 7209 /* keep last */ 7210 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST, 7211 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX = 7212 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1, 7213 }; 7214 7215 /** 7216 * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command 7217 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET. 7218 */ 7219 enum qca_wlan_vendor_attr_get_logger_features { 7220 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0, 7221 /* Unsigned 32-bit enum value of wifi_logger_supported_features */ 7222 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1, 7223 /* keep last */ 7224 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST, 7225 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX = 7226 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1, 7227 }; 7228 7229 /** 7230 * enum wifi_logger_supported_features - Values for supported logger features 7231 */ 7232 enum wifi_logger_supported_features { 7233 WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)), 7234 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)), 7235 WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)), 7236 WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)), 7237 WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)), 7238 WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)), 7239 WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)), 7240 WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)), 7241 WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)), 7242 }; 7243 7244 /** 7245 * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get 7246 * capabilities features 7247 */ 7248 enum qca_wlan_tdls_caps_features_supported { 7249 WIFI_TDLS_SUPPORT = (1 << (0)), 7250 WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)), 7251 WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2)) 7252 }; 7253 7254 /** 7255 * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command 7256 * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES. 7257 */ 7258 enum qca_wlan_vendor_attr_tdls_get_capabilities { 7259 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0, 7260 /* Indicates the max concurrent sessions */ 7261 /* Unsigned 32-bit value */ 7262 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS, 7263 /* Indicates the support for features */ 7264 /* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported 7265 */ 7266 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED, 7267 7268 /* keep last */ 7269 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST, 7270 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX = 7271 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1, 7272 }; 7273 7274 /** 7275 * enum qca_wlan_offloaded_packets_sending_control - Offload packets control 7276 * command used as value for the attribute 7277 * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL. 7278 */ 7279 enum qca_wlan_offloaded_packets_sending_control { 7280 QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0, 7281 QCA_WLAN_OFFLOADED_PACKETS_SENDING_START, 7282 QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP 7283 }; 7284 7285 /** 7286 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command 7287 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS. 7288 */ 7289 enum qca_wlan_vendor_attr_offloaded_packets { 7290 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0, 7291 /* Takes valid value from the enum 7292 * qca_wlan_offloaded_packets_sending_control 7293 * Unsigned 32-bit value 7294 */ 7295 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL, 7296 /* Unsigned 32-bit value */ 7297 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID, 7298 /* array of u8 len: Max packet size */ 7299 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA, 7300 /* 6-byte MAC address used to represent source MAC address */ 7301 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR, 7302 /* 6-byte MAC address used to represent destination MAC address */ 7303 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR, 7304 /* Unsigned 32-bit value, in milli seconds */ 7305 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD, 7306 /* This optional unsigned 16-bit attribute is used for specifying 7307 * ethernet protocol type. If not specified ethertype defaults to IPv4. 7308 */ 7309 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE, 7310 7311 /* keep last */ 7312 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST, 7313 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX = 7314 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1, 7315 }; 7316 7317 /** 7318 * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values 7319 * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL. 7320 */ 7321 enum qca_wlan_rssi_monitoring_control { 7322 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0, 7323 QCA_WLAN_RSSI_MONITORING_START, 7324 QCA_WLAN_RSSI_MONITORING_STOP, 7325 }; 7326 7327 /** 7328 * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command 7329 * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI. 7330 */ 7331 enum qca_wlan_vendor_attr_rssi_monitoring { 7332 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0, 7333 /* Takes valid value from the enum 7334 * qca_wlan_rssi_monitoring_control 7335 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control 7336 */ 7337 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL, 7338 /* Unsigned 32-bit value */ 7339 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID, 7340 /* Signed 8-bit value in dBm */ 7341 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI, 7342 /* Signed 8-bit value in dBm */ 7343 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI, 7344 /* attributes to be used/received in callback */ 7345 /* 6-byte MAC address used to represent current BSSID MAC address */ 7346 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID, 7347 /* Signed 8-bit value indicating the current RSSI */ 7348 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI, 7349 /* keep last */ 7350 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST, 7351 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX = 7352 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1, 7353 }; 7354 7355 /** 7356 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command 7357 * QCA_NL80211_VENDOR_SUBCMD_NDP. 7358 */ 7359 enum qca_wlan_vendor_attr_ndp_params { 7360 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0, 7361 /* Unsigned 32-bit value 7362 * enum of sub commands values in qca_wlan_ndp_sub_cmd 7363 */ 7364 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD, 7365 /* Unsigned 16-bit value */ 7366 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID, 7367 /* NL attributes for data used NDP SUB cmds */ 7368 /* Unsigned 32-bit value indicating a service info */ 7369 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID, 7370 /* Unsigned 32-bit value; channel frequency in MHz */ 7371 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL, 7372 /* Interface Discovery MAC address. An array of 6 Unsigned int8 */ 7373 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR, 7374 /* Interface name on which NDP is being created */ 7375 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR, 7376 /* Unsigned 32-bit value for security */ 7377 /* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */ 7378 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY, 7379 /* Unsigned 32-bit value for QoS */ 7380 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS, 7381 /* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */ 7382 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO, 7383 /* Unsigned 32-bit value for NDP instance Id */ 7384 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID, 7385 /* Array of instance Ids */ 7386 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY, 7387 /* Unsigned 32-bit value for initiator/responder NDP response code 7388 * accept/reject 7389 */ 7390 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE, 7391 /* NDI MAC address. An array of 6 Unsigned int8 */ 7392 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR, 7393 /* Unsigned 32-bit value errors types returned by driver 7394 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy 7395 * NanStatusType includes these values. 7396 */ 7397 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE, 7398 /* Unsigned 32-bit value error values returned by driver 7399 * The nan_i.h in AOSP project platform/hardware/qcom/wlan 7400 * NanInternalStatusType includes these values. 7401 */ 7402 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE, 7403 /* Unsigned 32-bit value for Channel setup configuration 7404 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy 7405 * NanDataPathChannelCfg includes these values. 7406 */ 7407 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG, 7408 /* Unsigned 32-bit value for Cipher Suite Shared Key Type */ 7409 QCA_WLAN_VENDOR_ATTR_NDP_CSID, 7410 /* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */ 7411 QCA_WLAN_VENDOR_ATTR_NDP_PMK, 7412 /* Security Context Identifier that contains the PMKID 7413 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes 7414 */ 7415 QCA_WLAN_VENDOR_ATTR_NDP_SCID, 7416 /* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */ 7417 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE, 7418 /* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */ 7419 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME, 7420 /* Unsigned 32-bit bitmap indicating schedule update 7421 * BIT_0: NSS Update 7422 * BIT_1: Channel list update 7423 */ 7424 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON, 7425 /* Unsigned 32-bit value for NSS */ 7426 QCA_WLAN_VENDOR_ATTR_NDP_NSS, 7427 /* Unsigned 32-bit value for NUMBER NDP CHANNEL */ 7428 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS, 7429 /* Unsigned 32-bit value for CHANNEL BANDWIDTH 7430 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz 7431 */ 7432 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH, 7433 /* Array of channel/band width */ 7434 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO, 7435 /* IPv6 address used by NDP (in network byte order), 16 bytes array. 7436 * This attribute is used and optional for ndp request, ndp response, 7437 * ndp indication, and ndp confirm. 7438 */ 7439 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27, 7440 /* Unsigned 16-bit value indicating transport port used by NDP. 7441 * This attribute is used and optional for ndp response, ndp indication, 7442 * and ndp confirm. 7443 */ 7444 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28, 7445 /* Unsigned 8-bit value indicating protocol used by NDP and assigned by 7446 * the Internet Assigned Numbers Authority (IANA) as per: 7447 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml 7448 * This attribute is used and optional for ndp response, ndp indication, 7449 * and ndp confirm. 7450 */ 7451 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29, 7452 /* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE. 7453 * 1:support 0:not support 7454 */ 7455 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30, 7456 /* As per Wi-Fi Aware Specification v3.2 Service Id is the first 7457 * 48 bits of the SHA-256 hash of the Service Name. 7458 * A lower-case representation of the Service Name shall be used to 7459 * calculate the Service ID. 7460 * Array of u8: length is 6 bytes 7461 * This attribute is used and optional for ndp indication. 7462 */ 7463 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31, 7464 7465 /* keep last */ 7466 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST, 7467 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX = 7468 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1, 7469 }; 7470 7471 enum qca_wlan_ndp_sub_cmd { 7472 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0, 7473 /* Command to create a NAN data path interface. 7474 * This command was initially designed to both create and start a NAN 7475 * data path interface. However, changes to Linux 5.12 no longer allow 7476 * interface creation via vendor commands. When the driver advertises 7477 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI 7478 * userspace must explicitly first create the interface using 7479 * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command 7480 * to start the interface. 7481 */ 7482 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1, 7483 /* Command to delete a NAN data path interface. 7484 * This command was initially designed to both stop and delete a NAN 7485 * data path interface. However, changes to Linux 5.12 no longer allow 7486 * interface deletion via vendor commands. When the driver advertises 7487 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI 7488 * userspace must explicitly delete the interface using 7489 * NL80211_CMD_DEL_INTERFACE after calling this command. 7490 */ 7491 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2, 7492 /* Command to initiate a NAN data path session */ 7493 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3, 7494 /* Command to notify if the NAN data path session was sent */ 7495 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4, 7496 /* Command to respond to NAN data path session */ 7497 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5, 7498 /* Command to notify on the responder about the response */ 7499 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6, 7500 /* Command to initiate a NAN data path end */ 7501 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7, 7502 /* Command to notify the if end request was sent */ 7503 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8, 7504 /* Command to notify the peer about the end request */ 7505 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9, 7506 /* Command to confirm the NAN data path session is complete */ 7507 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10, 7508 /* Command to indicate the peer about the end request being received */ 7509 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11, 7510 /* Command to indicate the peer of schedule update */ 7511 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12 7512 }; 7513 7514 /** 7515 * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command 7516 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD. 7517 */ 7518 enum qca_wlan_vendor_attr_nd_offload { 7519 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0, 7520 /* Flag to set Neighbour Discovery offload */ 7521 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG, 7522 /* Keep last */ 7523 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST, 7524 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX = 7525 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1, 7526 }; 7527 7528 /** 7529 * enum packet_filter_sub_cmd - Packet filter sub commands 7530 */ 7531 enum packet_filter_sub_cmd { 7532 /** 7533 * Write packet filter program and/or data. The driver/firmware should 7534 * disable APF before writing into local buffer and re-enable APF after 7535 * writing is done. 7536 */ 7537 QCA_WLAN_SET_PACKET_FILTER = 1, 7538 /* Get packet filter feature capabilities from driver */ 7539 QCA_WLAN_GET_PACKET_FILTER = 2, 7540 /** 7541 * Write packet filter program and/or data. User space will send the 7542 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command 7543 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key 7544 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over 7545 * enable/disable is given to user space with this command. Also, 7546 * user space sends the length of program portion in the buffer within 7547 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH. 7548 */ 7549 QCA_WLAN_WRITE_PACKET_FILTER = 3, 7550 /* Read packet filter program and/or data */ 7551 QCA_WLAN_READ_PACKET_FILTER = 4, 7552 /* Enable APF feature */ 7553 QCA_WLAN_ENABLE_PACKET_FILTER = 5, 7554 /* Disable APF feature */ 7555 QCA_WLAN_DISABLE_PACKET_FILTER = 6, 7556 }; 7557 7558 /** 7559 * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by 7560 * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER. 7561 */ 7562 enum qca_wlan_vendor_attr_packet_filter { 7563 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0, 7564 /* Unsigned 32-bit enum passed using packet_filter_sub_cmd */ 7565 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD, 7566 /* Unsigned 32-bit value indicating the packet filter version */ 7567 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION, 7568 /* Unsigned 32-bit value indicating the packet filter id */ 7569 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID, 7570 /** 7571 * Unsigned 32-bit value indicating the packet filter size including 7572 * program + data. 7573 */ 7574 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE, 7575 /* Unsigned 32-bit value indicating the packet filter current offset */ 7576 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET, 7577 /* Program and/or data in bytes */ 7578 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM, 7579 /* Unsigned 32-bit value of the length of the program section in packet 7580 * filter buffer. 7581 */ 7582 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7, 7583 7584 /* keep last */ 7585 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST, 7586 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX = 7587 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1, 7588 }; 7589 7590 /** 7591 * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command 7592 * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE. 7593 */ 7594 enum qca_wlan_vendor_drv_info { 7595 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0, 7596 /* Maximum Message size info between firmware & HOST 7597 * Unsigned 32-bit value 7598 */ 7599 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE, 7600 /* keep last */ 7601 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST, 7602 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX = 7603 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1, 7604 }; 7605 7606 /** 7607 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor 7608 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS. 7609 */ 7610 enum qca_wlan_vendor_attr_wake_stats { 7611 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0, 7612 /* Unsigned 32-bit value indicating the total count of wake event */ 7613 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE, 7614 /* Array of individual wake count, each index representing wake reason 7615 */ 7616 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR, 7617 /* Unsigned 32-bit value representing wake count array */ 7618 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ, 7619 /* Unsigned 32-bit total wake count value of driver/fw */ 7620 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE, 7621 /* Array of wake stats of driver/fw */ 7622 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR, 7623 /* Unsigned 32-bit total wake count value of driver/fw */ 7624 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ, 7625 /* Unsigned 32-bit total wake count value of packets received */ 7626 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE, 7627 /* Unsigned 32-bit wake count value unicast packets received */ 7628 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT, 7629 /* Unsigned 32-bit wake count value multicast packets received */ 7630 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT, 7631 /* Unsigned 32-bit wake count value broadcast packets received */ 7632 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT, 7633 /* Unsigned 32-bit wake count value of ICMP packets */ 7634 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT, 7635 /* Unsigned 32-bit wake count value of ICMP6 packets */ 7636 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT, 7637 /* Unsigned 32-bit value ICMP6 router advertisement */ 7638 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA, 7639 /* Unsigned 32-bit value ICMP6 neighbor advertisement */ 7640 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA, 7641 /* Unsigned 32-bit value ICMP6 neighbor solicitation */ 7642 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS, 7643 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */ 7644 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT, 7645 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */ 7646 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT, 7647 /* Unsigned 32-bit wake count value of receive side multicast */ 7648 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT, 7649 /* Unsigned 32-bit wake count value of a given RSSI breach */ 7650 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT, 7651 /* Unsigned 32-bit wake count value of low RSSI */ 7652 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT, 7653 /* Unsigned 32-bit value GSCAN count */ 7654 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT, 7655 /* Unsigned 32-bit value PNO complete count */ 7656 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT, 7657 /* Unsigned 32-bit value PNO match count */ 7658 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT, 7659 /* keep last */ 7660 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST, 7661 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX = 7662 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1, 7663 }; 7664 7665 /** 7666 * enum qca_wlan_vendor_thermal_level - Defines various thermal levels 7667 * configured by userspace to the driver/firmware. 7668 * The values can be encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL or 7669 * QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL attribute. 7670 * The driver/firmware takes actions requested by userspace such as throttling 7671 * wifi TX etc. in order to mitigate high temperature. 7672 * 7673 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions. 7674 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle TX lightly. 7675 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle TX moderately. 7676 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle TX severely. 7677 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached. 7678 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached. 7679 */ 7680 enum qca_wlan_vendor_thermal_level { 7681 QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0, 7682 QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1, 7683 QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2, 7684 QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3, 7685 QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4, 7686 QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5, 7687 }; 7688 7689 /** 7690 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set 7691 * cmd value. Used for NL attributes for data used by 7692 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 7693 */ 7694 enum qca_wlan_vendor_attr_thermal_cmd { 7695 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0, 7696 /* The value of command, driver will implement different operations 7697 * according to this value. It uses values defined in 7698 * enum qca_wlan_vendor_attr_thermal_cmd_type. 7699 * u32 attribute. 7700 */ 7701 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1, 7702 /* Userspace uses this attribute to configure thermal level to the 7703 * driver/firmware, or get thermal level from the driver/firmware. 7704 * Used in request or response, u32 attribute, 7705 * possible values are defined in enum qca_wlan_vendor_thermal_level. 7706 */ 7707 QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2, 7708 /* Userspace uses this attribute to configure the time in which the 7709 * driver/firmware should complete applying settings it received from 7710 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL 7711 * command type. Used in request, u32 attribute, value is in 7712 * milliseconds. A value of zero indicates to apply the settings 7713 * immediately. The driver/firmware can delay applying the configured 7714 * thermal settings within the time specified in this attribute if 7715 * there is any critical ongoing operation. 7716 */ 7717 QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3, 7718 /* Nested attribute, the driver/firmware uses this attribute to report 7719 * thermal statistics of different thermal levels to userspace when 7720 * requested using the 7721 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command 7722 * type. This attribute contains a nested array of records of thermal 7723 * statistics of multiple levels. The attributes used inside this nested 7724 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats. 7725 */ 7726 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4, 7727 7728 /* keep last */ 7729 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST, 7730 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX = 7731 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1 7732 }; 7733 7734 /** 7735 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for 7736 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd 7737 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the 7738 * thermal command types sent to driver. 7739 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to 7740 * get thermal shutdown configuration parameters for display. Parameters 7741 * responded from driver are defined in 7742 * enum qca_wlan_vendor_attr_get_thermal_params_rsp. 7743 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to 7744 * get temperature. Host should respond with a temperature data. It is defined 7745 * in enum qca_wlan_vendor_attr_thermal_get_temperature. 7746 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal 7747 * suspend action. 7748 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal 7749 * resume action. 7750 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to 7751 * the driver/firmware. 7752 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current 7753 * thermal level from the driver/firmware. The driver should respond with a 7754 * thermal level defined in enum qca_wlan_vendor_thermal_level. 7755 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the 7756 * current thermal statistics from the driver/firmware. The driver should 7757 * respond with statistics of all thermal levels encapsulated in the attribute 7758 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS. 7759 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear 7760 * the current thermal statistics for all thermal levels maintained in the 7761 * driver/firmware and start counting from zero again. 7762 */ 7763 enum qca_wlan_vendor_attr_thermal_cmd_type { 7764 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS, 7765 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE, 7766 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND, 7767 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME, 7768 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL, 7769 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL, 7770 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS, 7771 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS, 7772 }; 7773 7774 /** 7775 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes 7776 * to get chip temperature by user. 7777 * enum values are used for NL attributes for data used by 7778 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used 7779 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 7780 */ 7781 enum qca_wlan_vendor_attr_thermal_get_temperature { 7782 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0, 7783 /* Temperature value (degree Celsius) from driver. 7784 * u32 attribute. 7785 */ 7786 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA, 7787 7788 /* keep last */ 7789 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST, 7790 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX = 7791 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1, 7792 }; 7793 7794 /** 7795 * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes 7796 * to get configuration parameters of thermal shutdown feature. Enum values are 7797 * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data 7798 * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 7799 */ 7800 enum qca_wlan_vendor_attr_get_thermal_params_rsp { 7801 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0, 7802 /* Indicate if the thermal shutdown feature is enabled. 7803 * NLA_FLAG attribute. 7804 */ 7805 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN, 7806 /* Indicate if the auto mode is enabled. 7807 * Enable: Driver triggers the suspend/resume action. 7808 * Disable: User space triggers the suspend/resume action. 7809 * NLA_FLAG attribute. 7810 */ 7811 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN, 7812 /* Thermal resume threshold (degree Celsius). Issue the resume command 7813 * if the temperature value is lower than this threshold. 7814 * u16 attribute. 7815 */ 7816 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH, 7817 /* Thermal warning threshold (degree Celsius). FW reports temperature 7818 * to driver if it's higher than this threshold. 7819 * u16 attribute. 7820 */ 7821 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH, 7822 /* Thermal suspend threshold (degree Celsius). Issue the suspend command 7823 * if the temperature value is higher than this threshold. 7824 * u16 attribute. 7825 */ 7826 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH, 7827 /* FW reports temperature data periodically at this interval (ms). 7828 * u16 attribute. 7829 */ 7830 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE, 7831 7832 /* keep last */ 7833 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST, 7834 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX = 7835 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1, 7836 }; 7837 7838 /** 7839 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to 7840 * report thermal events from driver to user space. 7841 * enum values are used for NL attributes for data used by 7842 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command. 7843 */ 7844 enum qca_wlan_vendor_attr_thermal_event { 7845 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0, 7846 /* Temperature value (degree Celsius) from driver. 7847 * u32 attribute. 7848 */ 7849 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE, 7850 /* Indication of resume completion from power save mode. 7851 * NLA_FLAG attribute. 7852 */ 7853 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE, 7854 /* Thermal level from the driver. 7855 * u32 attribute. Possible values are defined in 7856 * enum qca_wlan_vendor_thermal_level. 7857 */ 7858 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3, 7859 7860 /* keep last */ 7861 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST, 7862 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX = 7863 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1, 7864 }; 7865 7866 /** 7867 * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes 7868 * to get thermal status from the driver/firmware. 7869 * enum values are used for NL attributes encapsulated inside the 7870 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute. 7871 * 7872 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature 7873 * of a thermal level in Celsius. u32 size. 7874 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature 7875 * of a thermal level in Celsius. u32 size. 7876 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each 7877 * thermal level in milliseconds. u32 size. 7878 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number 7879 * of times the temperature crossed into the temperature range defined by the 7880 * thermal level from both higher and lower directions. u32 size. 7881 */ 7882 enum qca_wlan_vendor_attr_thermal_stats { 7883 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0, 7884 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE, 7885 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE, 7886 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME, 7887 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER, 7888 7889 /* keep last */ 7890 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST, 7891 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX = 7892 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1, 7893 }; 7894 7895 /** 7896 * enum he_fragmentation_val - HE fragmentation support values 7897 * Indicates level of dynamic fragmentation that is supported by 7898 * a STA as a recipient. 7899 * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2 7900 * (HE MAC Capabilities Information field) and are used in HE Capabilities 7901 * element to advertise the support. These values are validated in the driver 7902 * to check the device capability and advertised in the HE Capabilities 7903 * element. These values are used to configure testbed device to allow the 7904 * advertised hardware capabilities to be downgraded for testing purposes. 7905 * 7906 * @HE_FRAG_DISABLE: no support for dynamic fragmentation 7907 * @HE_FRAG_LEVEL1: support for dynamic fragments that are 7908 * contained within an MPDU or S-MPDU, no support for dynamic fragments 7909 * within an A-MPDU that is not an S-MPDU. 7910 * @HE_FRAG_LEVEL2: support for dynamic fragments that are 7911 * contained within an MPDU or S-MPDU and support for up to one dynamic 7912 * fragment for each MSDU, each A-MSDU if supported by the recipient, and 7913 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an 7914 * MPDU or S-MPDU. 7915 * @HE_FRAG_LEVEL3: support for dynamic fragments that are 7916 * contained within an MPDU or S-MPDU and support for multiple dynamic 7917 * fragments for each MSDU and for each A-MSDU if supported by the 7918 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic 7919 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU. 7920 */ 7921 enum he_fragmentation_val { 7922 HE_FRAG_DISABLE, 7923 HE_FRAG_LEVEL1, 7924 HE_FRAG_LEVEL2, 7925 HE_FRAG_LEVEL3, 7926 }; 7927 7928 /** 7929 * enum he_mcs_config - HE MCS support configuration 7930 * 7931 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth. 7932 * These values are used in driver to configure the HE MCS map to advertise 7933 * Tx/Rx MCS map in HE capability and these values are applied for all the 7934 * streams supported by the device. To configure MCS for different bandwidths, 7935 * vendor command needs to be sent using this attribute with appropriate value. 7936 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS 7937 * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11 7938 * send this command using HE MCS config attribute with value HE_160_MCS0_11. 7939 * These values are used to configure testbed device to allow the advertised 7940 * hardware capabilities to be downgraded for testing purposes. The enum values 7941 * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and 7942 * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map. 7943 * These values are validated in the driver before setting the MCS map and 7944 * driver returns error if the input is other than these enum values. 7945 * 7946 * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7 7947 * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9 7948 * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11 7949 * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7 7950 * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9 7951 * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11 7952 * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7 7953 * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9 7954 * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11 7955 */ 7956 enum he_mcs_config { 7957 HE_80_MCS0_7 = 0, 7958 HE_80_MCS0_9 = 1, 7959 HE_80_MCS0_11 = 2, 7960 HE_160_MCS0_7 = 4, 7961 HE_160_MCS0_9 = 5, 7962 HE_160_MCS0_11 = 6, 7963 HE_80P80_MCS0_7 = 8, 7964 HE_80P80_MCS0_9 = 9, 7965 HE_80P80_MCS0_11 = 10, 7966 }; 7967 7968 /** 7969 * enum qca_wlan_ba_session_config - BA session configuration 7970 * 7971 * Indicates the configuration values for BA session configuration attribute. 7972 * 7973 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration. 7974 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID. 7975 */ 7976 enum qca_wlan_ba_session_config { 7977 QCA_WLAN_ADD_BA = 1, 7978 QCA_WLAN_DELETE_BA = 2, 7979 }; 7980 7981 /** 7982 * enum qca_wlan_ac_type - Access category type 7983 * 7984 * Indicates the access category type value. 7985 * 7986 * @QCA_WLAN_AC_BE: BE access category 7987 * @QCA_WLAN_AC_BK: BK access category 7988 * @QCA_WLAN_AC_VI: VI access category 7989 * @QCA_WLAN_AC_VO: VO access category 7990 * @QCA_WLAN_AC_ALL: All ACs 7991 */ 7992 enum qca_wlan_ac_type { 7993 QCA_WLAN_AC_BE = 0, 7994 QCA_WLAN_AC_BK = 1, 7995 QCA_WLAN_AC_VI = 2, 7996 QCA_WLAN_AC_VO = 3, 7997 QCA_WLAN_AC_ALL = 4, 7998 }; 7999 8000 /** 8001 * enum qca_wlan_he_ltf_cfg - HE LTF configuration 8002 * 8003 * Indicates the HE LTF configuration value. 8004 * 8005 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF, 8006 * based on the GI setting 8007 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF 8008 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF 8009 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF 8010 */ 8011 enum qca_wlan_he_ltf_cfg { 8012 QCA_WLAN_HE_LTF_AUTO = 0, 8013 QCA_WLAN_HE_LTF_1X = 1, 8014 QCA_WLAN_HE_LTF_2X = 2, 8015 QCA_WLAN_HE_LTF_4X = 3, 8016 }; 8017 8018 /** 8019 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration 8020 * 8021 * Indicates the HE trigger frame MAC padding duration value. 8022 * 8023 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to 8024 * process the trigger frame. 8025 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for 8026 * trigger frame. 8027 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for 8028 * trigger frame. 8029 */ 8030 enum qca_wlan_he_mac_padding_dur { 8031 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0, 8032 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1, 8033 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2, 8034 }; 8035 8036 /** 8037 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration 8038 * 8039 * Indicates the HE Operating mode control channel width setting value. 8040 * 8041 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz 8042 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz 8043 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz 8044 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz 8045 */ 8046 enum qca_wlan_he_om_ctrl_ch_bw { 8047 QCA_WLAN_HE_OM_CTRL_BW_20M = 0, 8048 QCA_WLAN_HE_OM_CTRL_BW_40M = 1, 8049 QCA_WLAN_HE_OM_CTRL_BW_80M = 2, 8050 QCA_WLAN_HE_OM_CTRL_BW_160M = 3, 8051 }; 8052 8053 /** 8054 * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration 8055 * 8056 * Indicates the frame types to use for keep alive data. 8057 * 8058 * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive. 8059 * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive. 8060 * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive. 8061 */ 8062 enum qca_wlan_keep_alive_data_type { 8063 QCA_WLAN_KEEP_ALIVE_DEFAULT = 0, 8064 QCA_WLAN_KEEP_ALIVE_DATA = 1, 8065 QCA_WLAN_KEEP_ALIVE_MGMT = 2, 8066 }; 8067 8068 /** 8069 * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for 8070 * HE operating mode control transmit request. These attributes are 8071 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and 8072 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. 8073 * 8074 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value 8075 * indicates the maximum number of spatial streams, NSS, that the STA 8076 * supports in reception for PPDU bandwidths less than or equal to 80 MHz 8077 * and is set to NSS - 1. 8078 * 8079 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value 8080 * indicates the operating channel width supported by the STA for both 8081 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values. 8082 * 8083 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value 8084 * indicates the all trigger based UL MU operations by the STA. 8085 * 0 - UL MU operations are enabled by the STA. 8086 * 1 - All triggered UL MU transmissions are suspended by the STA. 8087 * 8088 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value 8089 * indicates the maximum number of space-time streams, NSTS, that 8090 * the STA supports in transmission and is set to NSTS - 1. 8091 * 8092 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value 8093 * combined with the UL MU Disable subfield and the recipient's setting 8094 * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC 8095 * capabilities to determine which HE TB PPDUs are possible by the 8096 * STA to transmit. 8097 * 0 - UL MU data operations are enabled by the STA. 8098 * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable 8099 * bit is not set, else UL MU Tx is suspended. 8100 * 8101 */ 8102 enum qca_wlan_vendor_attr_he_omi_tx { 8103 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0, 8104 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1, 8105 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2, 8106 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3, 8107 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4, 8108 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5, 8109 8110 /* keep last */ 8111 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST, 8112 QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX = 8113 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1, 8114 }; 8115 8116 /** 8117 * enum qca_wlan_vendor_phy_mode - Different PHY modes 8118 * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE. 8119 * 8120 * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect 8121 * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect 8122 * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect 8123 * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM 8124 * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK 8125 * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM 8126 * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz 8127 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20 8128 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1) 8129 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1) 8130 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40 8131 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20 8132 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1) 8133 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1) 8134 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40 8135 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20 8136 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1) 8137 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1) 8138 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40 8139 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80 8140 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80 8141 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160 8142 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20 8143 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40 8144 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1) 8145 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1) 8146 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80 8147 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80 8148 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160 8149 */ 8150 enum qca_wlan_vendor_phy_mode { 8151 QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0, 8152 QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1, 8153 QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2, 8154 QCA_WLAN_VENDOR_PHY_MODE_11A = 3, 8155 QCA_WLAN_VENDOR_PHY_MODE_11B = 4, 8156 QCA_WLAN_VENDOR_PHY_MODE_11G = 5, 8157 QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6, 8158 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7, 8159 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8, 8160 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9, 8161 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10, 8162 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11, 8163 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12, 8164 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13, 8165 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14, 8166 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15, 8167 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16, 8168 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17, 8169 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18, 8170 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19, 8171 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20, 8172 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21, 8173 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22, 8174 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23, 8175 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24, 8176 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25, 8177 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26, 8178 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27, 8179 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28, 8180 }; 8181 8182 /* Attributes for data used by 8183 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION 8184 */ 8185 enum qca_wlan_vendor_attr_wifi_test_config { 8186 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0, 8187 /* 8-bit unsigned value to configure the driver to enable/disable 8188 * WMM feature. This attribute is used to configure testbed device. 8189 * 1-enable, 0-disable 8190 */ 8191 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1, 8192 8193 /* 8-bit unsigned value to configure the driver to accept/reject 8194 * the addba request from peer. This attribute is used to configure 8195 * the testbed device. 8196 * 1-accept addba, 0-reject addba 8197 */ 8198 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2, 8199 8200 /* 8-bit unsigned value to configure the driver to send or not to 8201 * send the addba request to peer. 8202 * This attribute is used to configure the testbed device. 8203 * 1-send addba, 0-do not send addba 8204 */ 8205 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3, 8206 8207 /* 8-bit unsigned value to indicate the HE fragmentation support. 8208 * Uses enum he_fragmentation_val values. 8209 * This attribute is used to configure the testbed device to 8210 * allow the advertised hardware capabilities to be downgraded 8211 * for testing purposes. 8212 */ 8213 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4, 8214 8215 /* 8-bit unsigned value to indicate the HE MCS support. 8216 * Uses enum he_mcs_config values. 8217 * This attribute is used to configure the testbed device to 8218 * allow the advertised hardware capabilities to be downgraded 8219 * for testing purposes. 8220 */ 8221 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5, 8222 8223 /* 8-bit unsigned value to configure the driver to allow or not to 8224 * allow the connection with WEP/TKIP in HT/VHT/HE modes. 8225 * This attribute is used to configure the testbed device. 8226 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP. 8227 */ 8228 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6, 8229 8230 /* 8-bit unsigned value to configure the driver to add a 8231 * new BA session or delete the existing BA session for 8232 * given TID. ADDBA command uses the buffer size and TID 8233 * configuration if user specifies the values else default 8234 * value for buffer size is used for all TIDs if the TID 8235 * also not specified. For DEL_BA command TID value is 8236 * required to process the command. 8237 * Uses enum qca_wlan_ba_session_config values. 8238 * This attribute is used to configure the testbed device. 8239 */ 8240 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7, 8241 8242 /* 16-bit unsigned value to configure the buffer size in addba 8243 * request and response frames. 8244 * This attribute is used to configure the testbed device. 8245 * The range of the value is 0 to 256. 8246 */ 8247 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8, 8248 8249 /* 8-bit unsigned value to configure the buffer size in addba 8250 * request and response frames. 8251 * This attribute is used to configure the testbed device. 8252 */ 8253 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9, 8254 8255 /* 8-bit unsigned value to configure the no ack policy. 8256 * To configure no ack policy, access category value is 8257 * required to process the command. 8258 * This attribute is used to configure the testbed device. 8259 * 1 - enable no ack, 0 - disable no ack. 8260 */ 8261 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10, 8262 8263 /* 8-bit unsigned value to configure the AC for no ack policy 8264 * This attribute is used to configure the testbed device. 8265 * Uses the enum qca_wlan_ac_type values. 8266 */ 8267 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11, 8268 8269 /* 8-bit unsigned value to configure the HE LTF 8270 * This attribute is used to configure the testbed device. 8271 * Uses the enum qca_wlan_he_ltf_cfg values. 8272 */ 8273 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12, 8274 8275 /* 8-bit unsigned value to configure the tx beamformee. 8276 * This attribute is used to configure the testbed device. 8277 * 1-enable, 0-disable. 8278 */ 8279 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13, 8280 8281 /* 8-bit unsigned value to configure the tx beamformee number 8282 * of space-time streams. 8283 * This attribute is used to configure the testbed device. 8284 * The range of the value is 0 to 8. 8285 */ 8286 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14, 8287 8288 /* 8-bit unsigned value to configure the MU EDCA params for given AC 8289 * This attribute is used to configure the testbed device. 8290 * Uses the enum qca_wlan_ac_type values. 8291 */ 8292 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15, 8293 8294 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC 8295 * To configure MU EDCA AIFSN value, MU EDCA access category value 8296 * is required to process the command. 8297 * This attribute is used to configure the testbed device. 8298 */ 8299 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16, 8300 8301 /* 8-bit unsigned value to configure the MU EDCA ECW min value for 8302 * given AC. 8303 * To configure MU EDCA ECW min value, MU EDCA access category value 8304 * is required to process the command. 8305 * This attribute is used to configure the testbed device. 8306 */ 8307 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17, 8308 8309 /* 8-bit unsigned value to configure the MU EDCA ECW max value for 8310 * given AC. 8311 * To configure MU EDCA ECW max value, MU EDCA access category value 8312 * is required to process the command. 8313 * This attribute is used to configure the testbed device. 8314 */ 8315 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18, 8316 8317 /* 8-bit unsigned value to configure the MU EDCA timer for given AC 8318 * To configure MU EDCA timer value, MU EDCA access category value 8319 * is required to process the command. 8320 * This attribute is used to configure the testbed device. 8321 */ 8322 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19, 8323 8324 /* 8-bit unsigned value to configure the HE trigger frame MAC padding 8325 * duration. 8326 * This attribute is used to configure the testbed device. 8327 * Uses the enum qca_wlan_he_mac_padding_dur values. 8328 */ 8329 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20, 8330 8331 /* 8-bit unsigned value to override the MU EDCA params to defaults 8332 * regardless of the AP beacon MU EDCA params. If it is enabled use 8333 * the default values else use the MU EDCA params from AP beacon. 8334 * This attribute is used to configure the testbed device. 8335 * 1-enable, 0-disable. 8336 */ 8337 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21, 8338 8339 /* 8-bit unsigned value to configure the support for receiving 8340 * an MPDU that contains an operating mode control subfield. 8341 * This attribute is used to configure the testbed device. 8342 * 1-enable, 0-disable. 8343 */ 8344 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22, 8345 8346 /* Nested attribute values required to setup the TWT session. 8347 * enum qca_wlan_vendor_attr_twt_setup provides the necessary 8348 * information to set up the session. It contains broadcast flags, 8349 * set_up flags, trigger value, flow type, flow ID, wake interval 8350 * exponent, protection, target wake time, wake duration, wake interval 8351 * mantissa. These nested attributes are used to setup a host triggered 8352 * TWT session. 8353 */ 8354 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23, 8355 8356 /* This nested attribute is used to terminate the current TWT session. 8357 * It does not currently carry any attributes. 8358 */ 8359 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24, 8360 8361 /* This nested attribute is used to suspend the current TWT session. 8362 * It does not currently carry any attributes. 8363 */ 8364 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25, 8365 8366 /* Nested attribute values to indicate the request for resume. 8367 * This attribute is used to resume the TWT session. 8368 * enum qca_wlan_vendor_attr_twt_resume provides the necessary 8369 * parameters required to resume the TWT session. 8370 */ 8371 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26, 8372 8373 /* 8-bit unsigned value to set the HE operating mode control 8374 * (OM CTRL) Channel Width subfield. 8375 * The Channel Width subfield indicates the operating channel width 8376 * supported by the STA for both reception and transmission. 8377 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values. 8378 * This setting is cleared with the 8379 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 8380 * flag attribute to reset defaults. 8381 * This attribute is used to configure the testbed device. 8382 */ 8383 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27, 8384 8385 /* 8-bit unsigned value to configure the number of spatial 8386 * streams in HE operating mode control field. 8387 * This setting is cleared with the 8388 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 8389 * flag attribute to reset defaults. 8390 * This attribute is used to configure the testbed device. 8391 */ 8392 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28, 8393 8394 /* Flag attribute to configure the UL MU disable bit in 8395 * HE operating mode control field. 8396 * This setting is cleared with the 8397 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 8398 * flag attribute to reset defaults. 8399 * This attribute is used to configure the testbed device. 8400 */ 8401 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29, 8402 8403 /* Flag attribute to clear the previously set HE operating mode 8404 * control field configuration. 8405 * This attribute is used to configure the testbed device to reset 8406 * defaults to clear any previously set HE operating mode control 8407 * field configuration. 8408 */ 8409 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30, 8410 8411 /* 8-bit unsigned value to configure HE single user PPDU 8412 * transmission. By default this setting is disabled and it 8413 * is disabled in the reset defaults of the device configuration. 8414 * This attribute is used to configure the testbed device. 8415 * 1-enable, 0-disable 8416 */ 8417 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31, 8418 8419 /* 8-bit unsigned value to configure action frame transmission 8420 * in HE trigger based PPDU transmission. 8421 * By default this setting is disabled and it is disabled in 8422 * the reset defaults of the device configuration. 8423 * This attribute is used to configure the testbed device. 8424 * 1-enable, 0-disable 8425 */ 8426 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32, 8427 8428 /* Nested attribute to indicate HE operating mode control field 8429 * transmission. It contains operating mode control field Nss, 8430 * channel bandwidth, Tx Nsts and UL MU disable attributes. 8431 * These nested attributes are used to send HE operating mode control 8432 * with configured values. 8433 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes. 8434 * This attribute is used to configure the testbed device. 8435 */ 8436 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33, 8437 8438 /* 8-bit unsigned value to configure +HTC_HE support to indicate the 8439 * support for the reception of a frame that carries an HE variant 8440 * HT Control field. 8441 * This attribute is used to configure the testbed device. 8442 * 1-enable, 0-disable 8443 */ 8444 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34, 8445 8446 /* 8-bit unsigned value to configure VHT support in 2.4G band. 8447 * This attribute is used to configure the testbed device. 8448 * 1-enable, 0-disable 8449 */ 8450 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35, 8451 8452 /* 8-bit unsigned value to configure HE testbed defaults. 8453 * This attribute is used to configure the testbed device. 8454 * 1-set the device HE capabilities to testbed defaults. 8455 * 0-reset the device HE capabilities to supported config. 8456 */ 8457 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36, 8458 8459 /* 8-bit unsigned value to configure TWT request support. 8460 * This attribute is used to configure the testbed device. 8461 * 1-enable, 0-disable. 8462 */ 8463 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37, 8464 8465 /* 8-bit unsigned value to configure protection for Management 8466 * frames when PMF is enabled for the association. 8467 * This attribute is used to configure the testbed device. 8468 * 0-use the correct key, 1-use an incorrect key, 2-disable protection. 8469 */ 8470 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38, 8471 8472 /* Flag attribute to inject Disassociation frame to the connected AP. 8473 * This attribute is used to configure the testbed device. 8474 */ 8475 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39, 8476 8477 /* 8-bit unsigned value to configure an override for the RSNXE Used 8478 * subfield in the MIC control field of the FTE in FT Reassociation 8479 * Request frame. 8480 * 0 - Default behavior, 1 - override with 1, 2 - override with 0. 8481 * This attribute is used to configure the testbed device. 8482 * This attribute can be configured only when STA is in associated state 8483 * and the configuration is valid until the disconnection. 8484 */ 8485 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40, 8486 8487 /* 8-bit unsigned value to configure the driver to ignore CSA (Channel 8488 * Switch Announcement) when STA is in connected state. 8489 * 0 - Default behavior, 1 - Ignore CSA. 8490 * This attribute is used to configure the testbed device. 8491 * This attribute can be configured only when STA is in associated state 8492 * and the configuration is valid until the disconnection. 8493 */ 8494 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41, 8495 8496 /* Nested attribute values required to configure OCI (Operating Channel 8497 * Information). Attributes defined in enum 8498 * qca_wlan_vendor_attr_oci_override are nested within this attribute. 8499 * This attribute is used to configure the testbed device. 8500 * This attribute can be configured only when STA is in associated state 8501 * and the configuration is valid until the disconnection. 8502 */ 8503 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42, 8504 8505 /* 8-bit unsigned value to configure the driver/firmware to ignore SA 8506 * Query timeout. If this configuration is enabled STA shall not send 8507 * Deauthentication frmae when SA Query times out (mainly, after a 8508 * channel switch when OCV is enabled). 8509 * 0 - Default behavior, 1 - Ignore SA Query timeout. 8510 * This attribute is used to configure the testbed device. 8511 * This attribute can be configured only when STA is in associated state 8512 * and the configuration is valid until the disconnection. 8513 */ 8514 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43, 8515 8516 /* 8-bit unsigned value to configure the driver/firmware to start or 8517 * stop transmitting FILS discovery frames. 8518 * 0 - Stop transmitting FILS discovery frames 8519 * 1 - Start transmitting FILS discovery frames 8520 * This attribute is used to configure the testbed device. 8521 * This attribute can be configured only in AP mode and the 8522 * configuration is valid until AP restart. 8523 */ 8524 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44, 8525 8526 /* 8-bit unsigned value to configure the driver/firmware to enable or 8527 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities 8528 * information field. 8529 * 0 - Disable full bandwidth UL MU-MIMO subfield 8530 * 1 - Enable full bandwidth UL MU-MIMO subfield 8531 * This attribute is used to configure the testbed device. 8532 */ 8533 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45, 8534 8535 /* 16-bit unsigned value to configure the driver with a specific BSS 8536 * max idle period to advertise in the BSS Max Idle Period element 8537 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames. 8538 * This attribute is used to configure the testbed device. 8539 */ 8540 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46, 8541 8542 /* 8-bit unsigned value to configure the driver to use only RU 242 tone 8543 * for data transmission. 8544 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx. 8545 * This attribute is used to configure the testbed device. 8546 */ 8547 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47, 8548 8549 /* 8-bit unsigned value to configure the driver to disable data and 8550 * management response frame transmission to test the BSS max idle 8551 * feature. 8552 * 0 - Default behavior, 1 - Disable data and management response Tx. 8553 * This attribute is used to configure the testbed device. 8554 */ 8555 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48, 8556 8557 /* 8-bit unsigned value to configure the driver/firmware to enable or 8558 * disable Punctured Preamble Rx subfield in the HE PHY capabilities 8559 * information field. 8560 * 0 - Disable Punctured Preamble Rx subfield 8561 * 1 - Enable Punctured Preamble Rx subfield 8562 * This attribute is used to configure the testbed device. 8563 */ 8564 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49, 8565 8566 /* 8-bit unsigned value to configure the driver to ignore the SAE H2E 8567 * requirement mismatch for 6 GHz connection. 8568 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch. 8569 * This attribute is used to configure the testbed device. 8570 */ 8571 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50, 8572 8573 /* 8-bit unsigned value to configure the driver to allow 6 GHz 8574 * connection with all security modes. 8575 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security 8576 * modes. 8577 * This attribute is used for testing purposes. 8578 */ 8579 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51, 8580 8581 /* 8-bit unsigned value to configure the driver to transmit data with 8582 * ER SU PPDU type. 8583 * 8584 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX. 8585 * This attribute is used for testing purposes. 8586 */ 8587 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52, 8588 8589 /* 8-bit unsigned value to configure the driver to use Data or 8590 * Management frame type for keep alive data. 8591 * Uses enum qca_wlan_keep_alive_data_type values. 8592 * 8593 * This attribute is used for testing purposes. 8594 */ 8595 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53, 8596 8597 /* 8-bit unsigned value to configure the driver to use scan request 8598 * BSSID value in Probe Request frame RA(A1) during the scan. The 8599 * driver saves this configuration and applies this setting to all user 8600 * space scan requests until the setting is cleared. If this 8601 * configuration is set, the driver uses the BSSID value from the scan 8602 * request to set the RA(A1) in the Probe Request frames during the 8603 * scan. 8604 * 8605 * 0 - Default behavior uses the broadcast RA in Probe Request frames. 8606 * 1 - Uses the scan request BSSID in RA in Probe Request frames. 8607 * This attribute is used for testing purposes. 8608 */ 8609 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54, 8610 8611 /* 8-bit unsigned value to configure the driver to enable/disable the 8612 * BSS max idle period support. 8613 * 8614 * 0 - Disable the BSS max idle support. 8615 * 1 - Enable the BSS max idle support. 8616 * This attribute is used for testing purposes. 8617 */ 8618 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55, 8619 8620 /* 8-bit unsigned value to configure the driver/firmware to enable or 8621 * disable Rx control frame to MultiBSS subfield in the HE MAC 8622 * capabilities information field. 8623 * 0 - Disable Rx control frame to MultiBSS subfield 8624 * 1 - Enable Rx control frame to MultiBSS subfield 8625 * This attribute is used to configure the testbed device. 8626 */ 8627 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56, 8628 8629 /* 8-bit unsigned value to configure the driver/firmware to enable or 8630 * disable Broadcast TWT support subfield in the HE MAC capabilities 8631 * information field. 8632 * 0 - Disable Broadcast TWT support subfield 8633 * 1 - Enable Broadcast TWT support subfield 8634 * This attribute is used to configure the testbed device. 8635 */ 8636 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57, 8637 8638 /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR 8639 * mode for IEEE 802.11be MLO capable devices. If the attribute is set 8640 * to 1, and if the firmware supports this capability too, the STA 8641 * advertises this capability to the AP over Association Request frame. 8642 * This attribute will not have any effect on legacy devices with no 8643 * IEEE 802.11be support. 8644 * 0 - Default behavior 8645 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode 8646 * This attribute is used to configure the testbed device. 8647 */ 8648 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58, 8649 8650 /* keep last */ 8651 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST, 8652 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX = 8653 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1, 8654 }; 8655 8656 /** 8657 * enum qca_wlan_twt_operation - Operation of the config TWT request 8658 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION. 8659 * The response for the respective operations can be either synchronous or 8660 * asynchronous (wherever specified). If synchronous, the response to this 8661 * operation is obtained in the corresponding vendor command reply to the user 8662 * space. For the asynchronous case the response is obtained as an event with 8663 * the same operation type. 8664 * 8665 * Drivers shall support either of these modes but not both simultaneously. 8666 * This support for asynchronous mode is advertised through the flag 8667 * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised, 8668 * the driver shall support synchronous mode. 8669 * 8670 * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured 8671 * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 8672 * qca_wlan_vendor_attr_twt_setup. Depending upon the 8673 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a 8674 * synchronous or asynchronous operation. 8675 * 8676 * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are 8677 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 8678 * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation. 8679 * 8680 * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are 8681 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 8682 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup. 8683 * This terminate can either get triggered by the user space or can as well be 8684 * a notification from the firmware if it initiates a terminate. 8685 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, 8686 * the request from user space can either be a synchronous or asynchronous 8687 * operation. 8688 * 8689 * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are 8690 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 8691 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup. 8692 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, 8693 * this is either a synchronous or asynchronous operation. 8694 * 8695 * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are 8696 * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 8697 * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup. 8698 * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE 8699 * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT 8700 * capability, this is either a synchronous or asynchronous operation. 8701 * 8702 * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a 8703 * combination of suspend and resume in a single request. Required parameters 8704 * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the 8705 * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is 8706 * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT 8707 * capability, this is either a synchronous or asynchronous operation. 8708 * 8709 * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information. 8710 * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT 8711 * session is setup. It's a synchronous operation. 8712 * 8713 * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information. 8714 * Valid only after the TWT session is setup. It's a synchronous operation. 8715 * 8716 * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its 8717 * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous 8718 * operation. 8719 * 8720 * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is 8721 * ready for a new TWT session setup after it issued a TWT teardown. 8722 * 8723 * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required 8724 * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer 8725 * the enum qca_wlan_vendor_attr_twt_set_param. 8726 * 8727 * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT 8728 * related information for example TWT required bit in AP capabilities etc. 8729 * The reason for the notification is sent using 8730 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS. 8731 */ 8732 enum qca_wlan_twt_operation { 8733 QCA_WLAN_TWT_SET = 0, 8734 QCA_WLAN_TWT_GET = 1, 8735 QCA_WLAN_TWT_TERMINATE = 2, 8736 QCA_WLAN_TWT_SUSPEND = 3, 8737 QCA_WLAN_TWT_RESUME = 4, 8738 QCA_WLAN_TWT_NUDGE = 5, 8739 QCA_WLAN_TWT_GET_STATS = 6, 8740 QCA_WLAN_TWT_CLEAR_STATS = 7, 8741 QCA_WLAN_TWT_GET_CAPABILITIES = 8, 8742 QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9, 8743 QCA_WLAN_TWT_SET_PARAM = 10, 8744 QCA_WLAN_TWT_NOTIFY = 11, 8745 }; 8746 8747 /** 8748 * enum qca_wlan_vendor_attr_config_twt: Defines attributes used by 8749 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 8750 * 8751 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION: u8 attribute. Specify the TWT 8752 * operation of this request. Possible values are defined in enum 8753 * qca_wlan_twt_operation. The parameters for the respective operation is 8754 * specified through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. 8755 * 8756 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the 8757 * parameters configured for TWT. These parameters are represented by 8758 * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume, 8759 * enum qca_wlan_vendor_attr_twt_set_param, or 8760 * enum qca_wlan_vendor_attr_twt_stats based on the operation. 8761 * 8762 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when 8763 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY. 8764 * The values used by this attribute are defined in 8765 * enum qca_wlan_vendor_twt_status. 8766 */ 8767 enum qca_wlan_vendor_attr_config_twt { 8768 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0, 8769 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1, 8770 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2, 8771 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3, 8772 8773 /* keep last */ 8774 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST, 8775 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX = 8776 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1, 8777 }; 8778 8779 /** 8780 * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command 8781 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER. 8782 * The user can add/delete the filter by specifying the BSSID/STA MAC address in 8783 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in 8784 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in 8785 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the 8786 * statistics of an unassociated station by specifying the MAC address in 8787 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in 8788 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in 8789 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get 8790 * the statistics of all unassociated stations by specifying the Broadcast MAC 8791 * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with 8792 * above procedure. In the response, driver shall specify statistics 8793 * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS. 8794 */ 8795 enum qca_wlan_vendor_attr_bss_filter { 8796 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0, 8797 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1, 8798 /* Other BSS filter type, unsigned 8 bit value. One of the values 8799 * in enum qca_wlan_vendor_bss_filter_type. 8800 */ 8801 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2, 8802 /* Other BSS filter action, unsigned 8 bit value. One of the values 8803 * in enum qca_wlan_vendor_bss_filter_action. 8804 */ 8805 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3, 8806 /* Array of nested attributes where each entry is the statistics 8807 * information of the specified station that belong to another BSS. 8808 * Attributes for each entry are taken from enum 8809 * qca_wlan_vendor_bss_filter_sta_stats. 8810 * Other BSS station configured in 8811 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type 8812 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA. 8813 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER 8814 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET. 8815 */ 8816 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4, 8817 8818 /* keep last */ 8819 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST, 8820 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX = 8821 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1, 8822 }; 8823 8824 /** 8825 * enum qca_wlan_vendor_bss_filter_type - Type of 8826 * filter used in other BSS filter operations. Used by the vendor command 8827 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER. 8828 * 8829 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter 8830 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter 8831 */ 8832 enum qca_wlan_vendor_bss_filter_type { 8833 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID, 8834 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA, 8835 }; 8836 8837 /** 8838 * enum qca_wlan_vendor_bss_filter_action - Type of 8839 * action in other BSS filter operations. Used by the vendor command 8840 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER. 8841 * 8842 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter 8843 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter 8844 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics 8845 */ 8846 enum qca_wlan_vendor_bss_filter_action { 8847 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD, 8848 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL, 8849 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET, 8850 }; 8851 8852 /** 8853 * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for 8854 * the statistics of a specific unassociated station belonging to another BSS. 8855 * The statistics provides information of the unassociated station 8856 * filtered by other BSS operation - such as MAC, signal value. 8857 * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER. 8858 * 8859 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station. 8860 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength 8861 * of the station. Unsigned 8 bit number containing RSSI. 8862 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host 8863 * driver for the last received RSSI. Unsigned 64 bit number containing 8864 * nanoseconds from the boottime. 8865 */ 8866 enum qca_wlan_vendor_bss_filter_sta_stats { 8867 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0, 8868 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1, 8869 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2, 8870 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3, 8871 8872 /* keep last */ 8873 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST, 8874 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX = 8875 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1 8876 }; 8877 8878 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute 8879 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command 8880 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. 8881 */ 8882 enum qca_wlan_nan_ext_subcmd_type { 8883 /* Subcmd of type NAN Enable Request */ 8884 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1, 8885 /* Subcmd of type NAN Disable Request */ 8886 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2, 8887 }; 8888 8889 /** 8890 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command 8891 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. 8892 */ 8893 enum qca_wlan_vendor_attr_nan_params { 8894 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0, 8895 /* Carries NAN command for firmware component. Every vendor command 8896 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a 8897 * payload containing the NAN command. NLA_BINARY attribute. 8898 */ 8899 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1, 8900 /* Indicates the type of NAN command sent with 8901 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type 8902 * describes the possible range of values. This attribute is mandatory 8903 * if the command being issued is either 8904 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or 8905 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute. 8906 */ 8907 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2, 8908 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz 8909 * band. This attribute is mandatory when command type is 8910 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute. 8911 */ 8912 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3, 8913 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz 8914 * band. This attribute is optional and should be included when command 8915 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery 8916 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute. 8917 */ 8918 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4, 8919 8920 /* keep last */ 8921 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST, 8922 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX = 8923 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1 8924 }; 8925 8926 /** 8927 * qca_wlan_twt_setup_state: Represents the TWT session states. 8928 * 8929 * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established. 8930 * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active. 8931 * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state. 8932 */ 8933 enum qca_wlan_twt_setup_state { 8934 QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0, 8935 QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1, 8936 QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2, 8937 }; 8938 8939 /** 8940 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for 8941 * TWT (Target Wake Time) setup request. These attributes are sent as part of 8942 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and 8943 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by 8944 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 8945 * 8946 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute. 8947 * Disable (flag attribute not present) - Individual TWT 8948 * Enable (flag attribute present) - Broadcast TWT. 8949 * Individual means the session is between the STA and the AP. 8950 * This session is established using a separate negotiation between 8951 * STA and AP. 8952 * Broadcast means the session is across multiple STAs and an AP. The 8953 * configuration parameters are announced in Beacon frames by the AP. 8954 * This is used in 8955 * 1. TWT SET Request and Response 8956 * 2. TWT GET Response 8957 * 8958 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8). 8959 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to 8960 * specify the TWT request type. This is used in TWT SET operation. 8961 * 8962 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute 8963 * Enable (flag attribute present) - TWT with trigger support. 8964 * Disable (flag attribute not present) - TWT without trigger support. 8965 * Trigger means the AP will send the trigger frame to allow STA to send data. 8966 * Without trigger, the STA will wait for the MU EDCA timer before 8967 * transmitting the data. 8968 * This is used in 8969 * 1. TWT SET Request and Response 8970 * 2. TWT GET Response 8971 * 8972 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8) 8973 * 0 - Announced TWT - In this mode, STA may skip few service periods to 8974 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS 8975 * NULL frame to AP. 8976 * 1 - Unannounced TWT - The STA will wakeup during every SP. 8977 * This is a required parameter for 8978 * 1. TWT SET Request and Response 8979 * 2. TWT GET Response 8980 * 8981 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8) 8982 * Flow ID is the unique identifier for each TWT session. 8983 * If not provided then dialog ID will be set to zero. 8984 * This is an optional parameter for 8985 * 1. TWT SET Request and Response 8986 * 2. TWT GET Request and Response 8987 * 3. TWT TERMINATE Request and Response 8988 * 4. TWT SUSPEND Request and Response 8989 * Flow ID values from 0 to 254 represent a single TWT session 8990 * Flow ID value of 255 represents all TWT sessions for the following 8991 * 1. TWT TERMINATE Request and Response 8992 * 2. TWT SUSPEND Request and Response 8993 * 4. TWT CLEAR STATISTICS request 8994 * 5. TWT GET STATISTICS request and response 8995 * If an invalid dialog ID is provided, status 8996 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 8997 * 8998 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8) 8999 * This attribute (exp) is used along with the mantissa to derive the 9000 * wake interval using the following formula: 9001 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis 9002 * Wake interval is the interval between 2 successive SP. 9003 * This is a required parameter for 9004 * 1. TWT SET Request and Response 9005 * 2. TWT GET Response 9006 * 9007 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute 9008 * Enable (flag attribute present) - Protection required. 9009 * Disable (flag attribute not present) - Protection not required. 9010 * If protection is enabled, then the AP will use protection 9011 * mechanism using RTS/CTS to self to reserve the airtime. 9012 * This is used in 9013 * 1. TWT SET Request and Response 9014 * 2. TWT GET Response 9015 * 9016 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32) 9017 * This attribute is used as the SP offset which is the offset from 9018 * TSF after which the wake happens. The units are in microseconds. If 9019 * this attribute is not provided, then the value will be set to zero. 9020 * This is an optional parameter for 9021 * 1. TWT SET Request and Response 9022 * 2. TWT GET Response 9023 * 9024 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32) 9025 * This is the duration of the service period. This is specified as 9026 * multiples of 256 microseconds. Valid values are 0x1 to 0xFF. 9027 * This is a required parameter for 9028 * 1. TWT SET Request and Response 9029 * 2. TWT GET Response 9030 * 9031 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32) 9032 * This attribute is used to configure wake interval mantissa. 9033 * The units are in TU. 9034 * This is a required parameter for 9035 * 1. TWT SET Request and Response 9036 * 2. TWT GET Response 9037 * 9038 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8) 9039 * This field is applicable for TWT response only. 9040 * This contains status values in enum qca_wlan_vendor_twt_status 9041 * and is passed to the userspace. This is used in TWT SET operation. 9042 * This is a required parameter for 9043 * 1. TWT SET Response 9044 * 2. TWT TERMINATE Response 9045 * 3. TWT SUSPEND Response 9046 * 4. TWT RESUME Response 9047 * 5. TWT NUDGE Response 9048 * 9049 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8) 9050 * This field is applicable for TWT response only. 9051 * This field contains response type from the TWT responder and is 9052 * passed to the userspace. The values for this field are defined in 9053 * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET 9054 * response. 9055 * 9056 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64) 9057 * In TWT setup command this field contains absolute TSF that will 9058 * be used by TWT requester during setup. 9059 * In TWT response this field contains absolute TSF value of the 9060 * wake time received from the TWT responder and is passed to 9061 * the userspace. 9062 * This is an optional parameter for 9063 * 1. TWT SET Request 9064 * This is a required parameter for 9065 * 1. TWT SET Response 9066 * 2. TWT GET Response 9067 * 9068 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute. 9069 * Enable (flag attribute present) - Indicates that the TWT responder 9070 * supports reception of TWT information frame from the TWT requestor. 9071 * Disable (flag attribute not present) - Indicates that the responder 9072 * doesn't support reception of TWT information frame from requestor. 9073 * This is used in 9074 * 1. TWT SET Response 9075 * 2. TWT GET Response 9076 * 9077 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address 9078 * Represents the MAC address of the peer for which the TWT session 9079 * is being configured. This is used in AP mode to represent the respective 9080 * client. 9081 * In AP mode, this is a required parameter in response for 9082 * 1. TWT SET 9083 * 2. TWT GET 9084 * 3. TWT TERMINATE 9085 * 4. TWT SUSPEND 9086 * In STA mode, this is an optional parameter in request and response for 9087 * the above four TWT operations. 9088 * In AP mode, this is a required parameter in request for 9089 * 1. TWT GET 9090 * 2. TWT TERMINATE 9091 * 9092 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32) 9093 * Minimum tolerance limit of wake interval parameter in microseconds. 9094 * 9095 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32) 9096 * Maximum tolerance limit of wake interval parameter in microseconds. 9097 * 9098 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32) 9099 * Minimum tolerance limit of wake duration parameter in microseconds. 9100 * 9101 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32) 9102 * Maximum tolerance limit of wake duration parameter in microseconds. 9103 * 9104 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32) 9105 * TWT state for the given dialog id. The values for this are represented 9106 * by enum qca_wlan_twt_setup_state. 9107 * This is obtained through TWT GET operation. 9108 * 9109 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32) 9110 * This attribute is used to configure wake interval mantissa. 9111 * The unit is microseconds. This attribute, when specified, takes 9112 * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA. 9113 * This parameter is used for 9114 * 1. TWT SET Request and Response 9115 * 2. TWT GET Response 9116 * 9117 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8) 9118 * This attribute is used to configure Broadcast TWT ID. 9119 * The Broadcast TWT ID indicates a specific Broadcast TWT for which the 9120 * transmitting STA is providing TWT parameters. The allowed values are 0 to 31. 9121 * This parameter is used for 9122 * 1. TWT SET Request 9123 * 2. TWT TERMINATE Request 9124 * 9125 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8) 9126 * This attribute is used to configure Broadcast TWT recommendation. 9127 * The Broadcast TWT Recommendation subfield contains a value that indicates 9128 * recommendations on the types of frames that are transmitted by TWT 9129 * scheduled STAs and scheduling AP during the broadcast TWT SP. 9130 * The allowed values are 0 - 3. 9131 * This parameter is used for 9132 * 1. TWT SET Request 9133 * 9134 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8) 9135 * This attribute is used to configure Broadcast TWT Persistence. 9136 * The Broadcast TWT Persistence subfield indicates the number of 9137 * TBTTs during which the Broadcast TWT SPs corresponding to this 9138 * broadcast TWT Parameter set are present. The number of beacon intervals 9139 * during which the Broadcast TWT SPs are present is equal to the value in the 9140 * Broadcast TWT Persistence subfield plus 1 except that the value 255 9141 * indicates that the Broadcast TWT SPs are present until explicitly terminated. 9142 * This parameter is used for 9143 * 1. TWT SET Request 9144 * 9145 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8) 9146 * This attribute contains the value of the Responder PM Mode subfield (0 or 1) 9147 * from TWT response frame. 9148 * This parameter is used for 9149 * 1. TWT SET Response 9150 * 2. TWT GET Response 9151 * 9152 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32) 9153 * This attribute is used to configure the announce timeout value (in us) in 9154 * the firmware. This timeout value is only applicable for the announced TWT. If 9155 * the timeout value is non-zero the firmware waits up to the timeout value to 9156 * use Data frame as an announcement frame. If the timeout value is 0 the 9157 * firmware sends an explicit QoS NULL frame as the announcement frame on SP 9158 * start. The default value in the firmware is 0. 9159 * This parameter is used for 9160 * 1. TWT SET Request 9161 */ 9162 enum qca_wlan_vendor_attr_twt_setup { 9163 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0, 9164 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1, 9165 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2, 9166 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3, 9167 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4, 9168 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5, 9169 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6, 9170 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7, 9171 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8, 9172 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9, 9173 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10, 9174 9175 /* TWT Response only attributes */ 9176 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11, 9177 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12, 9178 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13, 9179 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14, 9180 9181 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15, 9182 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16, 9183 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17, 9184 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18, 9185 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19, 9186 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20, 9187 9188 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21, 9189 9190 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22, 9191 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23, 9192 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24, 9193 9194 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25, 9195 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26, 9196 9197 /* keep last */ 9198 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST, 9199 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX = 9200 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1, 9201 }; 9202 9203 /** 9204 * enum qca_wlan_vendor_twt_status - Represents the status of the requested 9205 * TWT operation 9206 * 9207 * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed 9208 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled 9209 * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used 9210 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy 9211 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist 9212 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state 9213 * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters 9214 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready 9215 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted 9216 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the 9217 * request/response frame 9218 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response 9219 * frame 9220 * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request 9221 * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an 9222 * unknown reason 9223 * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in 9224 * suspend state 9225 * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to 9226 * invalid IE in the received TWT frame 9227 * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from 9228 * the responder are not in the specified range 9229 * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT 9230 * session due to request from the responder. Used on the TWT_TERMINATE 9231 * notification from the firmware. 9232 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT 9233 * session due to roaming. Used on the TWT_TERMINATE notification from the 9234 * firmware. 9235 * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the 9236 * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel 9237 * Concurrency). Used on the TWT_TERMINATE notification from the firmware. 9238 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup 9239 * request due to roaming in progress. 9240 * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT 9241 * setup request due to channel switch in progress. 9242 * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup 9243 * request due to scan in progress. 9244 * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to 9245 * terminate an existing TWT session on power save exit request from userspace. 9246 * Used on the TWT_TERMINATE notification from the driver/firmware. 9247 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT 9248 * required bit in its capabilities. 9249 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared 9250 * the TWT required bit(1->0) in its capabilities. 9251 */ 9252 enum qca_wlan_vendor_twt_status { 9253 QCA_WLAN_VENDOR_TWT_STATUS_OK = 0, 9254 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1, 9255 QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2, 9256 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3, 9257 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4, 9258 QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5, 9259 QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6, 9260 QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7, 9261 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8, 9262 QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9, 9263 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10, 9264 QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11, 9265 QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12, 9266 QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13, 9267 QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14, 9268 QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15, 9269 QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16, 9270 QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17, 9271 QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18, 9272 QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19, 9273 QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20, 9274 QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21, 9275 QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22, 9276 QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23, 9277 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24, 9278 }; 9279 9280 /** 9281 * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for 9282 * TWT (Target Wake Time) resume request. These attributes are sent as part of 9283 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and 9284 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by 9285 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 9286 * 9287 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8) 9288 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32) 9289 * These attributes are used as the SP offset which is the offset from TSF after 9290 * which the wake happens. The units are in microseconds. Please note that 9291 * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data. 9292 * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation 9293 * is to use _NEXT2_TWT. If neither of these attributes is provided, the value 9294 * will be set to zero. 9295 * 9296 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32) 9297 * This attribute represents the next TWT subfield size. 9298 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits, 9299 * and 4 for 64 bits. 9300 * 9301 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8). 9302 * Flow ID is the unique identifier for each TWT session. This attribute 9303 * represents the respective TWT session to resume. 9304 * Flow ID values from 0 to 254 represent a single TWT session 9305 * Flow ID value of 255 represents all TWT sessions. 9306 * If an invalid dialog id is provided, status 9307 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 9308 * 9309 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address 9310 * Represents the MAC address of the peer to which TWT Resume is 9311 * being sent. This is used in AP mode to represent the respective 9312 * client and is a required parameter. In STA mode, this is an optional 9313 * parameter 9314 */ 9315 enum qca_wlan_vendor_attr_twt_resume { 9316 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0, 9317 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1, 9318 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2, 9319 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3, 9320 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4, 9321 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5, 9322 9323 /* keep last */ 9324 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST, 9325 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX = 9326 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1, 9327 }; 9328 9329 /** 9330 * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for 9331 * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend 9332 * and resume in a single request. These attributes are sent as part of 9333 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 9334 * 9335 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8) 9336 * Flow ID is the unique identifier for each TWT session. This attribute 9337 * represents the respective TWT session to suspend and resume. 9338 * Flow ID values from 0 to 254 represent a single TWT session 9339 * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request 9340 * and response. 9341 * If an invalid dialog id is provided, status 9342 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 9343 * 9344 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32) 9345 * This attribute is used as the SP offset which is the offset from 9346 * TSF after which the wake happens. The units are in microseconds. 9347 * 9348 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32) 9349 * This attribute represents the next TWT subfield size. 9350 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits, 9351 * and 4 for 64 bits. 9352 * 9353 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address 9354 * Represents the MAC address of the peer to which TWT Suspend and Resume is 9355 * being sent. This is used in AP mode to represent the respective 9356 * client and is a required parameter. In STA mode, this is an optional 9357 * parameter. 9358 * 9359 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64) 9360 * This field contains absolute TSF value of the time at which the TWT 9361 * session will be resumed. 9362 */ 9363 enum qca_wlan_vendor_attr_twt_nudge { 9364 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0, 9365 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1, 9366 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2, 9367 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3, 9368 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4, 9369 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5, 9370 9371 /* keep last */ 9372 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST, 9373 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX = 9374 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1, 9375 }; 9376 9377 /** 9378 * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for 9379 * TWT (Target Wake Time) get statistics and clear statistics request. 9380 * These attributes are sent as part of 9381 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 9382 * 9383 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8) 9384 * Flow ID is the unique identifier for each TWT session. This attribute 9385 * represents the respective TWT session for get and clear TWT statistics. 9386 * Flow ID values from 0 to 254 represent a single TWT session 9387 * Flow ID value of 255 represents all TWT sessions in 9388 * 1) TWT GET STATISTICS request and response 9389 * 2) TWT CLEAR STATISTICS request 9390 * 9391 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address 9392 * Represents the MAC address of the peer for which TWT Statistics 9393 * is required. 9394 * In AP mode this is used to represent the respective 9395 * client and is a required parameter for 9396 * 1) TWT GET STATISTICS request and response 9397 * 2) TWT CLEAR STATISTICS request and response 9398 * In STA mode, this is an optional parameter. 9399 * 9400 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32) 9401 * This is the duration of the service period in microseconds. 9402 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 9403 * 9404 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32) 9405 * Average of the actual wake duration observed so far. Unit is microseconds. 9406 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 9407 * 9408 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32) 9409 * The number of TWT service periods elapsed so far. 9410 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 9411 * 9412 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32) 9413 * This is the minimum value of the wake duration observed across 9414 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is 9415 * microseconds. 9416 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 9417 * 9418 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION: Required (u32) 9419 * This is the maximum value of wake duration observed across 9420 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is 9421 * microseconds. 9422 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 9423 * 9424 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32) 9425 * Average number of MPDUs transmitted successfully across 9426 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 9427 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 9428 * 9429 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32) 9430 * Average number of MPDUs received successfully across 9431 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 9432 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 9433 * 9434 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32) 9435 * Average number of bytes transmitted successfully across 9436 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 9437 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 9438 * 9439 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE: Required (u32) 9440 * Average number of bytes received successfully across 9441 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 9442 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 9443 * 9444 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32) 9445 * Status of the TWT GET STATISTICS request. 9446 * This contains status values in enum qca_wlan_vendor_twt_status 9447 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 9448 */ 9449 enum qca_wlan_vendor_attr_twt_stats { 9450 QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0, 9451 QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1, 9452 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2, 9453 QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3, 9454 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4, 9455 QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5, 9456 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6, 9457 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7, 9458 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8, 9459 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9, 9460 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10, 9461 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11, 9462 QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12, 9463 9464 /* keep last */ 9465 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST, 9466 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX = 9467 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1, 9468 }; 9469 9470 /** 9471 * qca_wlan_twt_get_capa - Represents the bitmap of TWT capabilities 9472 * supported by the device and the peer. 9473 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES 9474 * 9475 * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by 9476 * TWT non-scheduling STA. This capability is advertised in the HE 9477 * Capability/Extended Capabilities information element in the 9478 * Association Request frame by the device. 9479 * 9480 * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised by 9481 * the TWT scheduling AP. This capability is advertised in the Extended 9482 * Capabilities/HE Capabilities information element. 9483 * 9484 * @QCA_WLAN_TWT_CAPA_BROADCAST: On the requestor side, this indicates support 9485 * for the broadcast TWT functionality. On the responder side, this indicates 9486 * support for the role of broadcast TWT scheduling functionality. This 9487 * capability is advertised in the HE Capabilities information element. 9488 * 9489 * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: The device supports flexible TWT schedule. 9490 * This capability is advertised in the HE Capabilities information element. 9491 * 9492 * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate 9493 * that it mandates the associated HE STAs to support TWT. This capability is 9494 * advertised by AP in the HE Operation Parameters field of the HE Operation 9495 * information element. 9496 */ 9497 enum qca_wlan_twt_capa { 9498 QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0), 9499 QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1), 9500 QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2), 9501 QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3), 9502 QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4), 9503 }; 9504 9505 /** 9506 * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT 9507 * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT 9508 * operation. 9509 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address 9510 * Represents the MAC address of the peer for which the TWT capabilities 9511 * are being queried. This is used in AP mode to represent the respective 9512 * client. In STA mode, this is an optional parameter. 9513 * 9514 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16). 9515 * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in 9516 * enum qca_wlan_twt_capa. 9517 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16). 9518 * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in 9519 * enum qca_wlan_twt_capa. 9520 */ 9521 enum qca_wlan_vendor_attr_twt_capability { 9522 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0, 9523 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1, 9524 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2, 9525 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3, 9526 9527 /* keep last */ 9528 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST, 9529 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX = 9530 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1, 9531 }; 9532 9533 /** 9534 * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for 9535 * TWT (Target Wake Time) related parameters. It is used when 9536 * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM. 9537 * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 9538 * 9539 * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8) 9540 * This attribute configures AC parameters to be used for all TWT 9541 * sessions in AP mode. 9542 * Uses the enum qca_wlan_ac_type values. 9543 */ 9544 enum qca_wlan_vendor_attr_twt_set_param { 9545 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0, 9546 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1, 9547 9548 /* keep last */ 9549 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST, 9550 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX = 9551 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1, 9552 }; 9553 9554 /** 9555 * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by 9556 * the TWT responder 9557 * 9558 * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT 9559 * parameters that are different from TWT requesting STA suggested 9560 * or demanded TWT parameters 9561 * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT 9562 * parameters that are different from TWT requesting STA TWT suggested 9563 * or demanded parameters 9564 * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT 9565 * setup 9566 * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT 9567 * setup. 9568 */ 9569 enum qca_wlan_vendor_twt_setup_resp_type { 9570 QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1, 9571 QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2, 9572 QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3, 9573 QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4, 9574 }; 9575 9576 /** 9577 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8) 9578 * Represents the setup type being requested for TWT. 9579 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT 9580 * parameters but relying on AP to fill the parameters during the negotiation. 9581 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested 9582 * values which the AP may accept or AP may provide alternative parameters 9583 * which the STA may accept. 9584 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any 9585 * alternate parameters than the requested ones. 9586 */ 9587 enum qca_wlan_vendor_twt_setup_req_type { 9588 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1, 9589 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2, 9590 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3, 9591 }; 9592 9593 /** 9594 * enum qca_wlan_roam_scan_event_type - Type of roam scan event 9595 * 9596 * Indicates the type of roam scan event sent by firmware/driver. 9597 * 9598 * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type. 9599 * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type. 9600 */ 9601 enum qca_wlan_roam_scan_event_type { 9602 QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0, 9603 QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1, 9604 }; 9605 9606 /** 9607 * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason 9608 * 9609 * Indicates the reason for triggering roam scan by firmware/driver. 9610 * 9611 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP. 9612 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate. 9613 */ 9614 enum qca_wlan_roam_scan_trigger_reason { 9615 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0, 9616 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1, 9617 }; 9618 9619 /** 9620 * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report 9621 * roam scan related details from driver/firmware to user space. enum values 9622 * are used for NL attributes sent with 9623 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command. 9624 */ 9625 enum qca_wlan_vendor_attr_roam_scan { 9626 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0, 9627 /* Encapsulates type of roam scan event being reported. enum 9628 * qca_wlan_roam_scan_event_type describes the possible range of 9629 * values. u32 attribute. 9630 */ 9631 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1, 9632 /* Encapsulates reason for triggering roam scan. enum 9633 * qca_wlan_roam_scan_trigger_reason describes the possible range of 9634 * values. u32 attribute. 9635 */ 9636 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2, 9637 9638 /* keep last */ 9639 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST, 9640 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX = 9641 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1, 9642 }; 9643 9644 /** 9645 * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data 9646 * transport modes and is used by the attribute 9647 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as a part of the vendor 9648 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG. 9649 * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use relayfs to send CFR data. 9650 * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR 9651 * data. The data shall be encapsulated within 9652 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with the vendor sub command 9653 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event. 9654 */ 9655 enum qca_wlan_vendor_cfr_data_transport_modes { 9656 QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0, 9657 QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1, 9658 }; 9659 9660 /** 9661 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by 9662 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor 9663 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG. 9664 * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QoS Null frame 9665 * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QoS Null frame 9666 * with phase 9667 * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using Probe Response frame 9668 */ 9669 enum qca_wlan_vendor_cfr_method { 9670 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0, 9671 QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1, 9672 QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2, 9673 }; 9674 9675 /** 9676 * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by 9677 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE. 9678 * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames. 9679 * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames. 9680 * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames. 9681 * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which 9682 * is provided by one or more of below attributes: 9683 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA 9684 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA 9685 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK 9686 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK 9687 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER 9688 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER 9689 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER 9690 * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets. 9691 * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames. 9692 */ 9693 enum qca_wlan_vendor_cfr_capture_type { 9694 QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0, 9695 QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1, 9696 QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2, 9697 QCA_WLAN_VENDOR_CFR_TA_RA = 3, 9698 QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4, 9699 QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5, 9700 }; 9701 9702 /** 9703 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command 9704 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer 9705 * Channel Frequency Response capture parameters and enable periodic CFR 9706 * capture. 9707 * 9708 * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address) 9709 * MAC address of peer. This is for CFR version 1 only. 9710 * 9711 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag) 9712 * Enable peer CFR capture. This attribute is mandatory to enable peer CFR 9713 * capture. If this attribute is not present, peer CFR capture is disabled. 9714 * 9715 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8) 9716 * BW of measurement, attribute uses the values in enum nl80211_chan_width 9717 * Supported values: 20, 40, 80, 80+80, 160. 9718 * Note that all targets may not support all bandwidths. 9719 * This attribute is mandatory for version 1 if attribute 9720 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 9721 * 9722 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32) 9723 * Periodicity of CFR measurement in milliseconds. 9724 * Periodicity should be a multiple of Base timer. 9725 * Current Base timer value supported is 10 milliseconds (default). 9726 * 0 for one shot capture. 9727 * This attribute is mandatory for version 1 if attribute 9728 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 9729 * 9730 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8) 9731 * Method used to capture Channel Frequency Response. 9732 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method. 9733 * This attribute is mandatory for version 1 if attribute 9734 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 9735 * 9736 * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag) 9737 * Enable periodic CFR capture. 9738 * This attribute is mandatory for version 1 to enable Periodic CFR capture. 9739 * If this attribute is not present, periodic CFR capture is disabled. 9740 * 9741 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION: Optional (u8) 9742 * Value is 1 or 2 since there are two versions of CFR capture. Two versions 9743 * can't be enabled at same time. This attribute is mandatory if target 9744 * support both versions and use one of them. 9745 * 9746 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP: Optional (u32) 9747 * This attribute is mandatory for version 2 if 9748 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used. 9749 * Bits 15:0 bitfield indicates which group is to be enabled. 9750 * Bits 31:16 Reserved for future use. 9751 * 9752 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32) 9753 * CFR capture duration in microsecond. This attribute is mandatory for 9754 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used. 9755 * 9756 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32) 9757 * CFR capture interval in microsecond. This attribute is mandatory for 9758 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used. 9759 * 9760 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32) 9761 * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type. 9762 * This attribute is mandatory for version 2. 9763 * 9764 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64) 9765 * Bitfield indicating which user in the current UL MU transmissions are 9766 * enabled for CFR capture. Bits 36 to 0 indicate user indexes for 37 users in 9767 * a UL MU transmission. If bit 0 is set, the CFR capture will happen for user 9768 * index 0 in the current UL MU transmission. If bits 0 and 2 are set, CFR 9769 * capture for UL MU TX corresponds to user indices 0 and 2. Bits 63:37 are 9770 * reserved for future use. This is for CFR version 2 only. 9771 * 9772 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32) 9773 * Indicates the number of consecutive RX frames to be skipped before CFR 9774 * capture is enabled again. This is for CFR version 2 only. 9775 * 9776 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing 9777 * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes. 9778 * 9779 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing 9780 * the following group attributes: 9781 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER, 9782 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA, 9783 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA, 9784 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK, 9785 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK, 9786 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS, 9787 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW, 9788 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER, 9789 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER, 9790 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER 9791 * 9792 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32) 9793 * Target supports multiple groups for some configurations. The group number 9794 * can be any value between 0 and 15. This is for CFR version 2 only. 9795 * 9796 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address) 9797 * Transmitter address which is used to filter frames. This MAC address takes 9798 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK. This is for CFR 9799 * version 2 only. 9800 * 9801 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address) 9802 * Receiver address which is used to filter frames. This MAC address takes 9803 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK. This is for CFR 9804 * version 2 only. 9805 * 9806 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address) 9807 * Mask of transmitter address which is used to filter frames. This is for CFR 9808 * version 2 only. 9809 * 9810 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address) 9811 * Mask of receiver address which is used to filter frames. This is for CFR 9812 * version 2 only. 9813 * 9814 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32) 9815 * Indicates frames with a specific NSS will be filtered for CFR capture. 9816 * This is for CFR version 2 only. This is a bitmask. Bits 7:0 request CFR 9817 * capture to be done for frames matching the NSS specified within this bitmask. 9818 * Bits 31:8 are reserved for future use. Bits 7:0 map to NSS: 9819 * bit 0 : NSS 1 9820 * bit 1 : NSS 2 9821 * ... 9822 * bit 7 : NSS 8 9823 * 9824 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32) 9825 * Indicates frames with a specific bandwidth will be filtered for CFR capture. 9826 * This is for CFR version 2 only. This is a bitmask. Bits 4:0 request CFR 9827 * capture to be done for frames matching the bandwidths specified within this 9828 * bitmask. Bits 31:5 are reserved for future use. Bits 4:0 map to bandwidth 9829 * numerated in enum nl80211_band (although not all bands may be supported 9830 * by a given device). 9831 * 9832 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32) 9833 * Management frames matching the subtype filter categories will be filtered in 9834 * by MAC for CFR capture. This is a bitmask in which each bit represents the 9835 * corresponding Management frame subtype value per IEEE Std 802.11-2016, 9836 * 9.2.4.1.3 Type and Subtype subfields. For example, Beacon frame control type 9837 * is 8 and its value is 1 << 8 = 0x100. This is for CFR version 2 only. 9838 * 9839 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32) 9840 * Control frames matching the subtype filter categories will be filtered in by 9841 * MAC for CFR capture. This is a bitmask in which each bit represents the 9842 * corresponding Control frame subtype value per IEEE Std 802.11-2016, 9843 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only. 9844 * 9845 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32) 9846 * Data frames matching the subtype filter categories will be filtered in by 9847 * MAC for CFR capture. This is a bitmask in which each bit represents the 9848 * corresponding Data frame subtype value per IEEE Std 802.11-2016, 9849 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only. 9850 * 9851 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8) 9852 * Userspace can use this attribute to specify the driver about which transport 9853 * mode shall be used by the driver to send CFR data to userspace. Uses values 9854 * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is 9855 * not present, the driver shall use the default transport mechanism which is 9856 * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS. 9857 * 9858 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32) 9859 * Userspace can use this attribute to specify the nl port id of the application 9860 * which receives the CFR data and processes it further so that the drivers can 9861 * unicast the netlink events to a specific application. Optionally included 9862 * when QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to 9863 * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers 9864 * shall multicast the netlink events when this attribute is not included. 9865 * 9866 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY). 9867 * This attribute will be used by the driver to encapsulate and send CFR data 9868 * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an 9869 * asynchronous event when the driver is configured to send CFR data using 9870 * netlink events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS. 9871 */ 9872 enum qca_wlan_vendor_peer_cfr_capture_attr { 9873 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0, 9874 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1, 9875 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2, 9876 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3, 9877 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4, 9878 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5, 9879 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6, 9880 QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7, 9881 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8, 9882 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9, 9883 QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10, 9884 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11, 9885 QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12, 9886 QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13, 9887 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14, 9888 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15, 9889 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16, 9890 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17, 9891 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18, 9892 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19, 9893 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20, 9894 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21, 9895 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22, 9896 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23, 9897 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24, 9898 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25, 9899 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26, 9900 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27, 9901 QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28, 9902 9903 /* Keep last */ 9904 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST, 9905 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX = 9906 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1, 9907 }; 9908 9909 /** 9910 * enum qca_wlan_throughput_level - Current throughput level 9911 * 9912 * Indicates the current level of throughput calculated by the driver. The 9913 * driver may choose different thresholds to decide whether the throughput level 9914 * is low or medium or high based on variety of parameters like physical link 9915 * capacity of the current connection, the number of packets being dispatched 9916 * per second, etc. The throughput level events might not be consistent with the 9917 * actual current throughput value being observed. 9918 * 9919 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput 9920 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput 9921 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput 9922 */ 9923 enum qca_wlan_throughput_level { 9924 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0, 9925 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1, 9926 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2, 9927 }; 9928 9929 /** 9930 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to 9931 * report throughput changes from the driver to user space. enum values are used 9932 * for netlink attributes sent with 9933 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command. 9934 */ 9935 enum qca_wlan_vendor_attr_throughput_change { 9936 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0, 9937 /* Indicates the direction of throughput in which the change is being 9938 * reported. u8 attribute. Value is 0 for TX and 1 for RX. 9939 */ 9940 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1, 9941 /* Indicates the newly observed throughput level. enum 9942 * qca_wlan_throughput_level describes the possible range of values. 9943 * u8 attribute. 9944 */ 9945 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2, 9946 /* Indicates the driver's guidance on the new value to be set to 9947 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The 9948 * driver may optionally include this attribute. 9949 */ 9950 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3, 9951 /* Indicates the driver's guidance on the new value to be set to 9952 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible 9953 * values are from -31 to 31. The driver may optionally include this 9954 * attribute. 9955 */ 9956 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4, 9957 /* Indicates the driver's guidance on the new value to be set to 9958 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may 9959 * optionally include this attribute. 9960 */ 9961 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5, 9962 9963 /* keep last */ 9964 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST, 9965 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX = 9966 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1, 9967 }; 9968 9969 /** 9970 * enum qca_coex_config_profiles - This enum defines different types of 9971 * traffic streams that can be prioritized one over the other during coex 9972 * scenarios. 9973 * The types defined in this enum are categorized in the below manner. 9974 * 0 - 31 values corresponds to WLAN 9975 * 32 - 63 values corresponds to BT 9976 * 64 - 95 values corresponds to Zigbee 9977 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA 9978 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA 9979 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA 9980 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA 9981 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA 9982 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP 9983 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP 9984 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP 9985 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP 9986 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP 9987 * @QCA_BT_A2DP: Prioritize BT A2DP 9988 * @QCA_BT_BLE: Prioritize BT BLE 9989 * @QCA_BT_SCO: Prioritize BT SCO 9990 * @QCA_ZB_LOW: Prioritize Zigbee Low 9991 * @QCA_ZB_HIGH: Prioritize Zigbee High 9992 */ 9993 enum qca_coex_config_profiles { 9994 /* 0 - 31 corresponds to WLAN */ 9995 QCA_WIFI_STA_DISCOVERY = 0, 9996 QCA_WIFI_STA_CONNECTION = 1, 9997 QCA_WIFI_STA_CLASS_3_MGMT = 2, 9998 QCA_WIFI_STA_DATA = 3, 9999 QCA_WIFI_STA_ALL = 4, 10000 QCA_WIFI_SAP_DISCOVERY = 5, 10001 QCA_WIFI_SAP_CONNECTION = 6, 10002 QCA_WIFI_SAP_CLASS_3_MGMT = 7, 10003 QCA_WIFI_SAP_DATA = 8, 10004 QCA_WIFI_SAP_ALL = 9, 10005 QCA_WIFI_CASE_MAX = 31, 10006 /* 32 - 63 corresponds to BT */ 10007 QCA_BT_A2DP = 32, 10008 QCA_BT_BLE = 33, 10009 QCA_BT_SCO = 34, 10010 QCA_BT_CASE_MAX = 63, 10011 /* 64 - 95 corresponds to Zigbee */ 10012 QCA_ZB_LOW = 64, 10013 QCA_ZB_HIGH = 65, 10014 QCA_ZB_CASE_MAX = 95, 10015 /* 0xff is default value if the u8 profile value is not set. */ 10016 QCA_COEX_CONFIG_PROFILE_DEFAULT_VALUE = 255 10017 }; 10018 10019 /** 10020 * enum qca_vendor_attr_coex_config_types - Coex configurations types. 10021 * This enum defines the valid set of values of coex configuration types. These 10022 * values may used by attribute 10023 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE. 10024 * 10025 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the 10026 * weights to default values. 10027 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config 10028 * weights with configurability value. 10029 */ 10030 enum qca_vendor_attr_coex_config_types { 10031 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0, 10032 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1, 10033 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2, 10034 }; 10035 10036 /** 10037 * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes 10038 * 10039 * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable 10040 * length array of 8-bit values from enum qca_coex_config_profiles. 10041 * FW will prioritize the profiles in the order given in the array encapsulated 10042 * in this attribute. 10043 * For example: 10044 * ----------------------------------------------------------------------- 10045 * | 1 | 34 | 32 | 65 | 10046 * ----------------------------------------------------------------------- 10047 * If the attribute contains the values defined in above array then it means 10048 * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH. 10049 * 2) BT_SCO has priority over BT_A2DP. 10050 * 3) BT_A2DP has priority over ZIGBEE HIGH. 10051 * Profiles which are not listed in this array shall not be preferred over the 10052 * profiles which are listed in the array as a part of this attribute. 10053 */ 10054 enum qca_vendor_attr_coex_config { 10055 QCA_VENDOR_ATTR_COEX_CONFIG_INVALID = 0, 10056 QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES = 1, 10057 10058 /* Keep last */ 10059 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST, 10060 QCA_VENDOR_ATTR_COEX_CONFIG_MAX = 10061 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1, 10062 }; 10063 10064 /** 10065 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config 10066 * attributes 10067 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG 10068 * 10069 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute. 10070 * Indicate config type. 10071 * The config types are 32-bit values from qca_vendor_attr_coex_config_types 10072 * 10073 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute. 10074 * Indicate the Priority 1 profiles. 10075 * The profiles are 8-bit values from enum qca_coex_config_profiles. 10076 * In same priority level, maximum to 4 profiles can be set here. 10077 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute. 10078 * Indicate the Priority 2 profiles. 10079 * The profiles are 8-bit values from enum qca_coex_config_profiles. 10080 * In same priority level, maximum to 4 profiles can be set here. 10081 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute. 10082 * Indicate the Priority 3 profiles. 10083 * The profiles are 8-bit values from enum qca_coex_config_profiles. 10084 * In same priority level, maximum to 4 profiles can be set here. 10085 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute. 10086 * Indicate the Priority 4 profiles. 10087 * The profiles are 8-bit values from enum qca_coex_config_profiles. 10088 * In same priority level, maximum to 4 profiles can be set here. 10089 * NOTE: 10090 * Limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority 10091 * arrangement: 10092 * 1: In the same u32 attribute (priority x), the profiles enum values own 10093 * same priority level. 10094 * 2: 0xff is default value if the u8 profile value is not set. 10095 * 3: max to 4 rules/profiles in same priority level. 10096 * 4: max to 4 priority level (priority 1 - priority 4) 10097 * 5: one priority level only supports one scenario from WLAN/BT/ZB, 10098 * hybrid rules not support. 10099 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will 10100 * remain blank to reset all parameters. 10101 * For example: 10102 * 10103 * If the attributes as follow: 10104 * priority 1: 10105 * ------------------------------------ 10106 * | 0xff | 0 | 1 | 2 | 10107 * ------------------------------------ 10108 * priority 2: 10109 * ------------------------------------- 10110 * | 0xff | 0xff | 0xff | 32 | 10111 * ------------------------------------- 10112 * priority 3: 10113 * ------------------------------------- 10114 * | 0xff | 0xff | 0xff | 65 | 10115 * ------------------------------------- 10116 * then it means: 10117 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION 10118 * owns same priority level. 10119 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION 10120 * has priority over BT_A2DP and ZB_HIGH. 10121 * 3: BT_A2DP has priority over ZB_HIGH. 10122 */ 10123 enum qca_vendor_attr_coex_config_three_way { 10124 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0, 10125 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1, 10126 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2, 10127 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3, 10128 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4, 10129 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5, 10130 10131 /* Keep last */ 10132 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST, 10133 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX = 10134 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1, 10135 }; 10136 10137 /** 10138 * enum qca_wlan_vendor_attr_link_properties - Represent the link properties. 10139 * 10140 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer 10141 * (STA/AP) for the connected link. 10142 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a 10143 * &struct nl80211_sta_flag_update for the respective connected link. MAC 10144 * address of the peer represented by 10145 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR. 10146 */ 10147 enum qca_wlan_vendor_attr_link_properties { 10148 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0, 10149 /* 1 - 3 are reserved */ 10150 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4, 10151 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5, 10152 10153 /* Keep last */ 10154 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST, 10155 QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX = 10156 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1, 10157 }; 10158 10159 /** 10160 * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type 10161 * This enum defines the valid set of values of peer stats cache types. These 10162 * values are used by attribute 10163 * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE. 10164 * 10165 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer TX rate statistics 10166 * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer RX rate statistics 10167 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer TX sojourn 10168 * statistics 10169 */ 10170 enum qca_vendor_attr_peer_stats_cache_type { 10171 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0, 10172 10173 QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS, 10174 QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS, 10175 QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS, 10176 }; 10177 10178 /** 10179 * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines 10180 * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH 10181 * Information in these attributes is used to flush peer rate statistics from 10182 * the driver to user application. 10183 * 10184 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute 10185 * Indicate peer statistics cache type. 10186 * The statistics types are 32-bit values from 10187 * enum qca_vendor_attr_peer_stats_cache_type. 10188 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array 10189 * of size 6 octets, representing the peer MAC address. 10190 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute 10191 * containing buffer of statistics to send to application layer entity. 10192 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute 10193 * representing a cookie for peer unique session. 10194 */ 10195 enum qca_wlan_vendor_attr_peer_stats_cache_params { 10196 QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0, 10197 10198 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1, 10199 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2, 10200 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3, 10201 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4, 10202 10203 /* Keep last */ 10204 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST, 10205 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX = 10206 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1 10207 }; 10208 10209 /** 10210 * enum qca_mpta_helper_attr_zigbee_state - Current Zigbee state 10211 * This enum defines all the possible states of Zigbee, which can be 10212 * delivered in the QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE attribute. 10213 * 10214 * @ZIGBEE_IDLE: Zigbee in idle state 10215 * @ZIGBEE_FORM_NETWORK: Zigbee forming network 10216 * @ZIGBEE_WAIT_JOIN: Zigbee waiting for joining network 10217 * @ZIGBEE_JOIN: Zigbee joining network 10218 * @ZIGBEE_NETWORK_UP: Zigbee network is up 10219 * @ZIGBEE_HMI: Zigbee in HMI mode 10220 */ 10221 enum qca_mpta_helper_attr_zigbee_state { 10222 ZIGBEE_IDLE = 0, 10223 ZIGBEE_FORM_NETWORK = 1, 10224 ZIGBEE_WAIT_JOIN = 2, 10225 ZIGBEE_JOIN = 3, 10226 ZIGBEE_NETWORK_UP = 4, 10227 ZIGBEE_HMI = 5, 10228 }; 10229 10230 /* 10231 * enum qca_mpta_helper_vendor_attr - Attributes used in vendor sub-command 10232 * QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG. 10233 */ 10234 enum qca_mpta_helper_vendor_attr { 10235 QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0, 10236 /* Optional attribute used to update Zigbee state. 10237 * enum qca_mpta_helper_attr_zigbee_state. 10238 * NLA_U32 attribute. 10239 */ 10240 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1, 10241 /* Optional attribute used to configure WLAN duration for Shape-OCS 10242 * during interrupt. 10243 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION. 10244 * Value range 0 ~ 300 (ms). 10245 * NLA_U32 attribute. 10246 */ 10247 QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2, 10248 /* Optional attribute used to configure non-WLAN duration for Shape-OCS 10249 * during interrupt. 10250 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION. 10251 * Value range 0 ~ 300 (ms). 10252 * NLA_U32 attribute. 10253 */ 10254 QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3, 10255 /* Optional attribute used to configure WLAN duration for Shape-OCS 10256 * monitor period. 10257 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION. 10258 * Value range 0 ~ 300 (ms) 10259 * NLA_U32 attribute 10260 */ 10261 QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4, 10262 /* Optional attribute used to configure non-WLAN duration for Shape-OCS 10263 * monitor period. 10264 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION. 10265 * Value range 0 ~ 300 (ms) 10266 * NLA_U32 attribute 10267 */ 10268 QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5, 10269 /* Optional attribute used to configure OCS interrupt duration. 10270 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION. 10271 * Value range 1000 ~ 20000 (ms) 10272 * NLA_U32 attribute 10273 */ 10274 QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6, 10275 /* Optional attribute used to configure OCS monitor duration. 10276 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION. 10277 * Value range 1000 ~ 20000 (ms) 10278 * NLA_U32 attribute 10279 */ 10280 QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7, 10281 /* Optional attribute used to notify WLAN firmware the current Zigbee 10282 * channel. 10283 * Value range 11 ~ 26 10284 * NLA_U32 attribute 10285 */ 10286 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8, 10287 /* Optional attribute used to configure WLAN mute duration. 10288 * Value range 0 ~ 400 (ms) 10289 * NLA_U32 attribute 10290 */ 10291 QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9, 10292 10293 /* keep last */ 10294 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST, 10295 QCA_MPTA_HELPER_VENDOR_ATTR_MAX = 10296 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1 10297 }; 10298 10299 /** 10300 * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of 10301 * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be used. 10302 * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE. 10303 * 10304 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver 10305 * to request the driver to start reporting Beacon frames. 10306 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver to 10307 * request the driver to stop reporting Beacon frames. 10308 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to 10309 * userspace to report received Beacon frames. 10310 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace 10311 * to indicate that the driver is going to pause reporting Beacon frames. 10312 */ 10313 enum qca_wlan_vendor_beacon_reporting_op_types { 10314 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0, 10315 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1, 10316 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2, 10317 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3, 10318 }; 10319 10320 /** 10321 * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different types 10322 * of reasons for which the driver is pausing reporting Beacon frames. Will be 10323 * used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON. 10324 * 10325 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified 10326 * reasons. 10327 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the 10328 * driver/firmware is starting a scan. 10329 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the 10330 * driver/firmware disconnects from the ESS and indicates the disconnection to 10331 * userspace (non-seamless roaming case). This reason code will be used by the 10332 * driver/firmware to indicate stopping of beacon report events. Userspace will 10333 * need to start beacon reporting again (if desired) by sending vendor command 10334 * QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with 10335 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to 10336 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is 10337 * completed. 10338 */ 10339 enum qca_wlan_vendor_beacon_reporting_pause_reasons { 10340 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0, 10341 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1, 10342 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2, 10343 }; 10344 10345 /* 10346 * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used 10347 * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING. 10348 */ 10349 enum qca_wlan_vendor_attr_beacon_reporting_params { 10350 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0, 10351 /* Specifies the type of operation that the vendor command/event is 10352 * intended for. Possible values for this attribute are defined in 10353 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute. 10354 */ 10355 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1, 10356 /* Optionally set by userspace to request the driver to report Beacon 10357 * frames using asynchronous vendor events when the 10358 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 10359 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute. 10360 * If this flag is not set, the driver will only update Beacon frames in 10361 * cfg80211 scan cache but not send any vendor events. 10362 */ 10363 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2, 10364 /* Optionally used by userspace to request the driver/firmware to report 10365 * Beacon frames periodically when the 10366 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 10367 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. 10368 * u32 attribute, indicates the period of Beacon frames to be reported 10369 * and in the units of beacon interval. 10370 * If this attribute is missing in the command, then the default value 10371 * of 1 will be assumed by driver, i.e., to report every Beacon frame. 10372 * Zero is an invalid value. 10373 * If a valid value is received for this attribute, the driver will 10374 * update the cfg80211 scan cache periodically as per the value received 10375 * in this attribute in addition to updating the cfg80211 scan cache 10376 * when there is significant change in Beacon frame IEs. 10377 */ 10378 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3, 10379 /* Used by the driver to encapsulate the SSID when the 10380 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 10381 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 10382 * u8 array with a maximum size of 32. 10383 * 10384 * When generating beacon report from non-MBSSID Beacon frame, the SSID 10385 * will be taken from the SSID element of the received Beacon frame. 10386 * 10387 * When generating beacon report from Multiple BSSID Beacon frame and if 10388 * the BSSID of the current connected BSS matches the BSSID of the 10389 * transmitting BSS, the SSID will be taken from the SSID element of the 10390 * received Beacon frame. 10391 * 10392 * When generating beacon report from Multiple BSSID Beacon frame and if 10393 * the BSSID of the current connected BSS matches the BSSID of one of 10394 * the* nontransmitting BSSs, the SSID will be taken from the SSID field 10395 * included in the nontransmitted BSS profile whose derived BSSID is 10396 * same as the BSSID of the current connected BSS. When there is no 10397 * nontransmitted BSS profile whose derived BSSID is same as the BSSID 10398 * of current connected* BSS, this attribute will not be present. 10399 */ 10400 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4, 10401 /* Used by the driver to encapsulate the BSSID of the AP to which STA is 10402 * currently connected to when the 10403 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 10404 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a 10405 * fixed size of 6 bytes. 10406 * 10407 * When generating beacon report from a Multiple BSSID beacon and the 10408 * current connected BSSID matches one of the nontransmitted BSSIDs in a 10409 * Multiple BSSID set, this BSSID will be that particular nontransmitted 10410 * BSSID and not the transmitted BSSID (i.e., the transmitting address 10411 * of the Beacon frame). 10412 */ 10413 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5, 10414 /* Used by the driver to encapsulate the frequency in MHz on which 10415 * the Beacon frame was received when the 10416 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is 10417 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 10418 * u32 attribute. 10419 */ 10420 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6, 10421 /* Used by the driver to encapsulate the Beacon interval 10422 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 10423 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 10424 * u16 attribute. The value will be copied from the Beacon frame and the 10425 * units are TUs. 10426 */ 10427 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7, 10428 /* Used by the driver to encapsulate the Timestamp field from the Beacon 10429 * frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set 10430 * to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 10431 * u64 attribute. 10432 */ 10433 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8, 10434 /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this 10435 * Beacon frame is received in the driver when the 10436 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 10437 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in 10438 * the units of nanoseconds. This value is expected to have accuracy of 10439 * about 10 ms. 10440 */ 10441 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9, 10442 /* Used by the driver to encapsulate the IEs of the Beacon frame from 10443 * which this event is generated when the 10444 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 10445 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array. 10446 */ 10447 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10, 10448 /* Used by the driver to specify the reason for the driver/firmware to 10449 * pause sending beacons to userspace when the 10450 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 10451 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are 10452 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32 10453 * attribute. 10454 */ 10455 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11, 10456 /* Used by the driver to specify whether the driver will automatically 10457 * resume reporting beacon events to userspace later (for example after 10458 * the ongoing off-channel activity is completed etc.) when the 10459 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 10460 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute. 10461 */ 10462 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12, 10463 /* Optionally set by userspace to request the driver not to resume 10464 * beacon reporting after a pause is completed, when the 10465 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 10466 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute. 10467 * If this flag is set, the driver will not resume beacon reporting 10468 * after any pause in beacon reporting is completed. Userspace has to 10469 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order 10470 * to initiate beacon reporting again. If this flag is set in the recent 10471 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the 10472 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any) 10473 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be 10474 * set by the driver. Setting this flag until and unless there is a 10475 * specific need is not recommended as there is a chance of some beacons 10476 * received after pause command and next start command being not 10477 * reported. 10478 */ 10479 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13, 10480 10481 /* Keep last */ 10482 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST, 10483 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX = 10484 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1 10485 }; 10486 10487 /** 10488 * enum qca_vendor_interop_issues_ap_type - Interop issue types 10489 * This enum defines the valid set of values of interop issue types. These 10490 * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE. 10491 * 10492 * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: The AP has power save interop issue 10493 * when the STA's Qpower feature is enabled. 10494 */ 10495 enum qca_vendor_interop_issues_ap_type { 10496 QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0, 10497 QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1, 10498 }; 10499 10500 /** 10501 * enum qca_vendor_attr_interop_issues_ap - attribute for AP with interop issues 10502 * Values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP. 10503 * 10504 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: Invalid value 10505 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: Interop issue type 10506 * 32-bit unsigned value. The values defined in enum 10507 * qca_vendor_interop_issues_ap_type are used. 10508 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: APs' BSSID container 10509 * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes. 10510 * It is present and mandatory for the command but is not used for the event 10511 * since only a single BSSID is reported in an event. 10512 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: AP's BSSID 6-byte MAC address. 10513 * It is used within the nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST 10514 * attribute in command case and without such encapsulation in the event case. 10515 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value 10516 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value 10517 */ 10518 enum qca_vendor_attr_interop_issues_ap { 10519 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID, 10520 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE, 10521 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST, 10522 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID, 10523 /* keep last */ 10524 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST, 10525 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX = 10526 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1 10527 }; 10528 10529 /** 10530 * enum qca_vendor_oem_device_type - Represents the target device in firmware. 10531 * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO. 10532 * 10533 * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for 10534 * a virtual device. 10535 * 10536 * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for 10537 * a physical device. 10538 */ 10539 enum qca_vendor_oem_device_type { 10540 QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0, 10541 QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1, 10542 }; 10543 10544 /** 10545 * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command/event 10546 * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA. 10547 * 10548 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is 10549 * used to set/query the data to/from the firmware. On query, the same 10550 * attribute is used to carry the respective data in the reply sent by the 10551 * driver to userspace. The request to set/query the data and the format of the 10552 * respective data from the firmware are embedded in the attribute. The 10553 * maximum size of the attribute payload is 1024 bytes. 10554 * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED 10555 * attribute when the data is queried from the firmware. 10556 * 10557 * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed 10558 * based on this field. This optional attribute is included to specify whether 10559 * the device type is a virtual device or a physical device for the 10560 * command/event. This attribute can be omitted for a virtual device (default) 10561 * command/event. 10562 * This u8 attribute is used to carry information for the device type using 10563 * values defined by enum qca_vendor_oem_device_type. 10564 * 10565 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute 10566 * is set when the userspace queries data from the firmware. This attribute 10567 * should not be set when userspace sets the OEM data to the firmware. 10568 */ 10569 enum qca_wlan_vendor_attr_oem_data_params { 10570 QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0, 10571 QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1, 10572 QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2, 10573 QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3, 10574 10575 /* keep last */ 10576 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST, 10577 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX = 10578 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1 10579 }; 10580 10581 /** 10582 * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be 10583 * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT. 10584 * 10585 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required 10586 * Nested attribute containing multiple ranges with following attributes: 10587 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START, 10588 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and 10589 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM. 10590 * 10591 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32) 10592 * Starting center frequency in MHz. 10593 * 10594 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32) 10595 * Ending center frequency in MHz. 10596 * 10597 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM: 10598 * s32 attribute, optional. It is a per frequency range attribute. 10599 * The maximum TX power limit from user space is to be applied on an 10600 * unrestricted interface for corresponding frequency range. It is also 10601 * possible that the actual TX power may be even lower than this cap due to 10602 * other considerations such as regulatory compliance, SAR, etc. In absence of 10603 * this attribute the driver shall follow current behavior which means 10604 * interface (SAP/P2P) function can keep operating on an unsafe channel with TX 10605 * power derived by the driver based on regulatory/SAR during interface up. 10606 * 10607 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK: 10608 * u32 attribute, optional. Indicates all the interface types which are 10609 * restricted for all frequency ranges provided in 10610 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and 10611 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END. 10612 * This attribute encapsulates bitmasks of interface types defined in 10613 * enum nl80211_iftype. If an interface is marked as restricted the driver must 10614 * move to a safe channel and if no safe channel is available the driver shall 10615 * terminate that interface functionality. In absence of this attribute, 10616 * interface (SAP/P2P) can still continue operating on an unsafe channel with 10617 * TX power limit derived from either 10618 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on 10619 * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM 10620 * is not provided. 10621 */ 10622 enum qca_wlan_vendor_attr_avoid_frequency_ext { 10623 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0, 10624 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1, 10625 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2, 10626 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3, 10627 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4, 10628 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5, 10629 10630 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST, 10631 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX = 10632 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1 10633 }; 10634 10635 /* 10636 * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command 10637 * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE. 10638 */ 10639 enum qca_wlan_vendor_attr_add_sta_node_params { 10640 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0, 10641 /* 6 byte MAC address of STA */ 10642 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1, 10643 /* Authentication algorithm used by the station of size u16; 10644 * defined in enum nl80211_auth_type. 10645 */ 10646 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2, 10647 10648 /* keep last */ 10649 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST, 10650 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX = 10651 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1 10652 }; 10653 10654 /** 10655 * enum qca_btc_chain_mode - Specifies BT coex chain mode. 10656 * This enum defines the valid set of values of BT coex chain mode. 10657 * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of 10658 * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE. 10659 * 10660 * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4G are shared. 10661 * @QCA_BTC_CHAIN_SEPARATED: chains of BT and WLAN 2.4G are separated. 10662 */ 10663 enum qca_btc_chain_mode { 10664 QCA_BTC_CHAIN_SHARED = 0, 10665 QCA_BTC_CHAIN_SEPARATED = 1, 10666 }; 10667 10668 /** 10669 * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex 10670 * chain mode. 10671 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE. 10672 * 10673 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute. 10674 * Indicates the BT coex chain mode, are 32-bit values from 10675 * enum qca_btc_chain_mode. This attribute is mandatory. 10676 * 10677 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute. 10678 * If set, vdev should be restarted when BT coex chain mode is updated. 10679 * This attribute is optional. 10680 */ 10681 enum qca_vendor_attr_btc_chain_mode { 10682 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0, 10683 QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1, 10684 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2, 10685 10686 /* Keep last */ 10687 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST, 10688 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX = 10689 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1, 10690 }; 10691 10692 /** 10693 * enum qca_vendor_wlan_sta_flags - Station feature flags 10694 * Bits will be set to 1 if the corresponding features are enabled. 10695 * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station 10696 * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled 10697 for the station 10698 * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled 10699 for the station 10700 */ 10701 enum qca_vendor_wlan_sta_flags { 10702 QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0), 10703 QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1), 10704 QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2), 10705 }; 10706 10707 /** 10708 * enum qca_vendor_wlan_sta_guard_interval - Station guard interval 10709 * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval 10710 * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval 10711 * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE 10712 * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE 10713 */ 10714 enum qca_vendor_wlan_sta_guard_interval { 10715 QCA_VENDOR_WLAN_STA_GI_800_NS = 0, 10716 QCA_VENDOR_WLAN_STA_GI_400_NS = 1, 10717 QCA_VENDOR_WLAN_STA_GI_1600_NS = 2, 10718 QCA_VENDOR_WLAN_STA_GI_3200_NS = 3, 10719 }; 10720 10721 /** 10722 * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes 10723 * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command. 10724 * 10725 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC: 10726 * Required attribute in request for AP mode only, 6-byte MAC address, 10727 * corresponding to the station's MAC address for which information is 10728 * requested. For STA mode this is not required as the info always correspond 10729 * to the self STA and the current/last association. 10730 * 10731 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS: 10732 * Optionally used in response, u32 attribute, contains a bitmap of different 10733 * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only. 10734 * 10735 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL: 10736 * Optionally used in response, u32 attribute, possible values are defined in 10737 * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only. 10738 * Guard interval used by the station. 10739 * 10740 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT: 10741 * Optionally used in response, u32 attribute, used in AP mode only. 10742 * Value indicates the number of data frames received from station with retry 10743 * bit set to 1 in FC. 10744 * 10745 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT: 10746 * Optionally used in response, u32 attribute, used in AP mode only. 10747 * Counter for number of data frames with broadcast or multicast address in 10748 * the destination address received from the station. 10749 * 10750 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED: 10751 * Optionally used in response, u32 attribute, used in both STA and AP modes. 10752 * Value indicates the number of data frames successfully transmitted only 10753 * after retrying the packets and for which the TX status has been updated 10754 * back to host from target. 10755 * 10756 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED: 10757 * Optionally used in response, u32 attribute, used in both STA and AP mode. 10758 * Value indicates the number of data frames not transmitted successfully even 10759 * after retrying the packets for the number of times equal to the total number 10760 * of retries allowed for that packet and for which the TX status has been 10761 * updated back to host from target. 10762 * 10763 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL: 10764 * Optionally used in response, u32 attribute, used in AP mode only. 10765 * Counter in the target for the number of data frames successfully transmitted 10766 * to the station. 10767 * 10768 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY: 10769 * Optionally used in response, u32 attribute, used in AP mode only. 10770 * Value indicates the number of data frames successfully transmitted only 10771 * after retrying the packets. 10772 * 10773 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED: 10774 * Optionally used in response, u32 attribute, used in both STA & AP mode. 10775 * Value indicates the number of data frames not transmitted successfully even 10776 * after retrying the packets for the number of times equal to the total number 10777 * of retries allowed for that packet. 10778 * 10779 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in 10780 * the STA mode only. Represent the number of probe requests sent by the STA 10781 * while attempting to roam on missing certain number of beacons from the 10782 * connected AP. If queried in the disconnected state, this represents the 10783 * count for the last connected state. 10784 * 10785 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in 10786 * the STA mode. Represent the number of probe responses received by the station 10787 * while attempting to roam on missing certain number of beacons from the 10788 * connected AP. When queried in the disconnected state, this represents the 10789 * count when in last connected state. 10790 * 10791 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the 10792 * STA mode only. Represents the total number of frames sent out by STA 10793 * including Data, ACK, RTS, CTS, Control Management. This data is maintained 10794 * only for the connect session. Represents the count of last connected session, 10795 * when queried in the disconnected state. 10796 * 10797 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode. 10798 * Total number of RTS sent out by the STA. This data is maintained per connect 10799 * session. Represents the count of last connected session, when queried in the 10800 * disconnected state. 10801 * 10802 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the 10803 * STA mode.Represent the number of RTS transmission failure that reach retry 10804 * limit. This data is maintained per connect session. Represents the count of 10805 * last connected session, when queried in the disconnected state. 10806 * 10807 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in 10808 * the STA mode. Represent the total number of non aggregated frames transmitted 10809 * by the STA. This data is maintained per connect session. Represents the count 10810 * of last connected session, when queried in the disconnected state. 10811 * 10812 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the 10813 * STA mode. Represent the total number of aggregated frames transmitted by the 10814 * STA. This data is maintained per connect session. Represents the count of 10815 * last connected session, when queried in the disconnected state. 10816 * 10817 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in 10818 * the STA mode. Represents the number of received frames with a good PLCP. This 10819 * data is maintained per connect session. Represents the count of last 10820 * connected session, when queried in the disconnected state. 10821 * 10822 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32, 10823 * used in the STA mode. Represents the number of occasions that no valid 10824 * delimiter is detected by A-MPDU parser. This data is maintained per connect 10825 * session. Represents the count of last connected session, when queried in the 10826 * disconnected state. 10827 * 10828 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the 10829 * STA mode. Represents the number of frames for which CRC check failed in the 10830 * MAC. This data is maintained per connect session. Represents the count of 10831 * last connected session, when queried in the disconnected state. 10832 * 10833 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the 10834 * STA mode. Represents the number of unicast ACKs received with good FCS. This 10835 * data is maintained per connect session. Represents the count of last 10836 * connected session, when queried in the disconnected state. 10837 * 10838 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA 10839 * mode. Represents the number of received Block Acks. This data is maintained 10840 * per connect session. Represents the count of last connected session, when 10841 * queried in the disconnected state. 10842 * 10843 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA 10844 * mode. Represents the number of beacons received from the connected BSS. This 10845 * data is maintained per connect session. Represents the count of last 10846 * connected session, when queried in the disconnected state. 10847 * 10848 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the 10849 * STA mode. Represents the number of beacons received by the other BSS when in 10850 * connected state (through the probes done by the STA). This data is maintained 10851 * per connect session. Represents the count of last connected session, when 10852 * queried in the disconnected state. 10853 * 10854 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in 10855 * the STA mode. Represents the number of received DATA frames with good FCS and 10856 * matching Receiver Address when in connected state. This data is maintained 10857 * per connect session. Represents the count of last connected session, when 10858 * queried in the disconnected state. 10859 * 10860 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the 10861 * STA mode. Represents the number of RX Data multicast frames dropped by the HW 10862 * when in the connected state. This data is maintained per connect session. 10863 * Represents the count of last connected session, when queried in the 10864 * disconnected state. 10865 * 10866 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the 10867 * STA mode. This represents the target power in dBm for the transmissions done 10868 * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per 10869 * connect session. Represents the count of last connected session, when 10870 * queried in the disconnected state. 10871 * 10872 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the 10873 * STA mode. This represents the Target power in dBm for transmissions done to 10874 * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect 10875 * session. Represents the count of last connected session, when queried in the 10876 * disconnected state. 10877 * 10878 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the 10879 * STA mode. This represents the Target power in dBm for transmissions done to 10880 * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session. 10881 * Represents the count of last connected session, when queried in the 10882 * disconnected state. 10883 * 10884 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the 10885 * STA mode. This represents the Target power in dBm for transmissions done to 10886 * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect 10887 * session. Represents the count of last connected session, when queried in 10888 * the disconnected state. 10889 * 10890 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the 10891 * STA mode. This represents the Target power in dBm for for transmissions done 10892 * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session. 10893 * Represents the count of last connected session, when queried in the 10894 * disconnected state. 10895 * 10896 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used 10897 * in the STA mode. This represents the Nested attribute representing the 10898 * overflow counts of each receive buffer allocated to the hardware during the 10899 * STA's connection. The number of hw buffers might vary for each WLAN 10900 * solution and hence this attribute represents the nested array of all such 10901 * HW buffer count. This data is maintained per connect session. Represents 10902 * the count of last connected session, when queried in the disconnected state. 10903 * 10904 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm) 10905 * allowed as per the regulatory requirements for the current or last connected 10906 * session. Used in the STA mode. 10907 * 10908 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power 10909 * (dBm) used by the station in its latest unicast frame while communicating 10910 * to the AP in the connected state. When queried in the disconnected state, 10911 * this represents the TX power used by the STA with last AP communication 10912 * when in connected state. 10913 * 10914 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity 10915 * level used to adjust the RX sensitivity. Represents the current ANI level 10916 * when queried in the connected state. When queried in the disconnected 10917 * state, this corresponds to the latest ANI level at the instance of 10918 * disconnection. 10919 * 10920 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES: Binary attribute containing 10921 * the raw information elements from Beacon frames. Represents the Beacon frames 10922 * of the current BSS in the connected state. When queried in the disconnected 10923 * state, these IEs correspond to the last connected BSSID. 10924 * 10925 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES: Binary attribute 10926 * containing the raw information elements from Probe Response frames. 10927 * Represents the Probe Response frames of the current BSS in the connected 10928 * state. When queried in the disconnected state, these IEs correspond to the 10929 * last connected BSSID. 10930 * 10931 * @QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON: u32, Driver 10932 * disconnect reason for the last disconnection if the disconnection is 10933 * triggered from the host driver. The values are referred from 10934 * enum qca_disconnect_reason_codes. 10935 * 10936 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode 10937 * only. This represents the number of group addressed robust management frames 10938 * received from this station with an invalid MIC or a missing MME when PMF is 10939 * enabled. 10940 * 10941 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode 10942 * only. This represents the number of group addressed robust management frames 10943 * received from this station with the packet number less than or equal to the 10944 * last received packet number when PMF is enabled. 10945 * 10946 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA 10947 * mode only. This represents the number of Beacon frames received from this 10948 * station with an invalid MIC or a missing MME when beacon protection is 10949 * enabled. 10950 * 10951 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode 10952 * only. This represents number of Beacon frames received from this station with 10953 * the packet number less than or equal to the last received packet number when 10954 * beacon protection is enabled. 10955 * 10956 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in 10957 * STA mode only. The driver uses this attribute to populate the connection 10958 * failure reason codes and the values are defined in 10959 * enum qca_sta_connect_fail_reason_codes. Userspace applications can send 10960 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving 10961 * a connection failure indication from the driver. The driver shall not 10962 * include this attribute in response to the 10963 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no connection 10964 * failure observed in the last attempted connection. 10965 * 10966 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps) 10967 * used by the station in its last TX frame while communicating to the AP in the 10968 * connected state. When queried in the disconnected state, this represents the 10969 * rate used by the STA in the last TX frame to the AP when it was connected. 10970 * This attribute is used for STA mode only. 10971 * 10972 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only. 10973 * This represents the rate index used by the STA for the last TX frame to the 10974 * AP. When queried in the disconnected state, this gives the last RIX used by 10975 * the STA in the last TX frame to the AP when it was connected. 10976 * 10977 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA 10978 * mode only. This represents the number of times the STA TSF goes out of sync 10979 * from the AP after the connection. If queried in the disconnected state, this 10980 * gives the count of TSF out of sync for the last connection. 10981 * 10982 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA 10983 * mode only. This represents the roam trigger reason for the last roaming 10984 * attempted by the firmware. This can be queried either in connected state or 10985 * disconnected state. Each bit of this attribute represents the different 10986 * roam trigger reason code which are defined in enum qca_vendor_roam_triggers. 10987 * 10988 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode 10989 * only. This represents the roam fail reason for the last failed roaming 10990 * attempt by the firmware. Different roam failure reason codes are specified 10991 * in enum qca_vendor_roam_fail_reasons. This can be queried either in 10992 * connected state or disconnected state. 10993 * 10994 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in 10995 * STA mode only. This represents the roam invoke fail reason for the last 10996 * failed roam invoke. Different roam invoke failure reason codes 10997 * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be 10998 * queried either in connected state or disconnected state. 10999 * 11000 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only. 11001 * This represents the average congestion duration of uplink frames in MAC 11002 * queue in unit of ms. This can be queried either in connected state or 11003 * disconnected state. 11004 */ 11005 enum qca_wlan_vendor_attr_get_sta_info { 11006 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0, 11007 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1, 11008 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2, 11009 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3, 11010 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4, 11011 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5, 11012 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6, 11013 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7, 11014 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8, 11015 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9, 11016 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10, 11017 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11, 11018 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12, 11019 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13, 11020 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14, 11021 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15, 11022 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16, 11023 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17, 11024 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18, 11025 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19, 11026 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20, 11027 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21, 11028 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22, 11029 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23, 11030 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24, 11031 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25, 11032 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26, 11033 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27, 11034 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28, 11035 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29, 11036 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30, 11037 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31, 11038 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32, 11039 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33, 11040 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34, 11041 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35, 11042 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES = 36, 11043 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES = 37, 11044 QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON = 38, 11045 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39, 11046 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40, 11047 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41, 11048 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42, 11049 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43, 11050 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44, 11051 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45, 11052 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46, 11053 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47, 11054 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48, 11055 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49, 11056 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50, 11057 11058 /* keep last */ 11059 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST, 11060 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX = 11061 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1, 11062 }; 11063 11064 /** 11065 * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes 11066 * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command. 11067 * 11068 * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC. 11069 * Used in STA mode. This attribute represents the list of channel center 11070 * frequencies in MHz (u32) the station has learnt during the last connection 11071 * or roaming attempt. This information shall not signify the channels for 11072 * an explicit scan request from the user space. Host drivers can update this 11073 * information to the user space in both connected and disconnected state. 11074 * In the disconnected state this information shall signify the channels 11075 * scanned in the last connection/roam attempt that lead to the disconnection. 11076 */ 11077 enum qca_wlan_vendor_attr_update_sta_info { 11078 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0, 11079 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1, 11080 11081 /* keep last */ 11082 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST, 11083 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX = 11084 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1, 11085 }; 11086 11087 /** 11088 * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes. 11089 * Used when the driver triggers the STA to disconnect from the AP. 11090 * 11091 * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the 11092 * disconnection with the AP due to unspecified reasons. 11093 * 11094 * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the 11095 * disconnection with the AP due to a roaming failure. This roaming is triggered 11096 * internally (host driver/firmware). 11097 * 11098 * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from 11099 * the AP when the user/external triggered roaming fails. 11100 * 11101 * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used 11102 * by the host driver whenever gateway reachability failure is detected and the 11103 * driver disconnects with AP. 11104 * 11105 * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from 11106 * the AP on a channel switch announcement from it with an unsupported channel. 11107 * 11108 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start 11109 * with indoor channels disabled and if the STA is connected on one of these 11110 * disabled channels, the host driver disconnected the STA with this reason 11111 * code. 11112 * 11113 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an 11114 * explicit request from the user to disable the current operating channel. 11115 * 11116 * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to 11117 * the internal host driver/firmware recovery. 11118 * 11119 * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on 11120 * a timeout for the key installations from the user space. 11121 * 11122 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the 11123 * STA on a band change request from the user space to a different band from the 11124 * current operation channel/band. 11125 * 11126 * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an 11127 * interface down trigger from the user space. 11128 * 11129 * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the 11130 * STA on getting continuous transmission failures for multiple Data frames. 11131 * 11132 * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive 11133 * notification to the AP by transmitting NULL/G-ARP frames. This disconnection 11134 * represents inactivity from AP on such transmissions. 11135 11136 * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on 11137 * disconnection when SA Query times out (AP does not respond to SA Query). 11138 * 11139 * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the 11140 * STA on missing the beacons continuously from the AP. 11141 * 11142 * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not 11143 * able to move to the channel mentioned by the AP in CSA. 11144 * 11145 * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection. 11146 */ 11147 enum qca_disconnect_reason_codes { 11148 QCA_DISCONNECT_REASON_UNSPECIFIED = 0, 11149 QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1, 11150 QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2, 11151 QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3, 11152 QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4, 11153 QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5, 11154 QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6, 11155 QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7, 11156 QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8, 11157 QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9, 11158 QCA_DISCONNECT_REASON_IFACE_DOWN = 10, 11159 QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11, 11160 QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12, 11161 QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13, 11162 QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14, 11163 QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15, 11164 QCA_DISCONNECT_REASON_USER_TRIGGERED = 16, 11165 }; 11166 11167 /** 11168 * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes 11169 * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command. 11170 * 11171 * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute. 11172 * This attribute represents the driver specific reason codes (local 11173 * driver/firmware initiated reasons for disconnection) defined 11174 * in enum qca_disconnect_reason_codes. 11175 */ 11176 enum qca_wlan_vendor_attr_driver_disconnect_reason { 11177 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0, 11178 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1, 11179 11180 /* keep last */ 11181 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST, 11182 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX = 11183 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1, 11184 }; 11185 11186 /** 11187 * enum qca_wlan_tspec_operation - Operation of the config TSPEC request 11188 * 11189 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION. 11190 */ 11191 enum qca_wlan_tspec_operation { 11192 QCA_WLAN_TSPEC_ADD = 0, 11193 QCA_WLAN_TSPEC_DEL = 1, 11194 QCA_WLAN_TSPEC_GET = 2, 11195 }; 11196 11197 /** 11198 * enum qca_wlan_tspec_direction - Direction in TSPEC 11199 * As what is defined in IEEE Std 802.11-2016, Table 9-139. 11200 * 11201 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION. 11202 */ 11203 enum qca_wlan_tspec_direction { 11204 QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0, 11205 QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1, 11206 QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2, 11207 QCA_WLAN_TSPEC_DIRECTION_BOTH = 3, 11208 }; 11209 11210 /** 11211 * enum qca_wlan_tspec_ack_policy - MAC acknowledgement policy in TSPEC 11212 * As what is defined in IEEE Std 802.11-2016, Table 9-141. 11213 * 11214 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY. 11215 */ 11216 enum qca_wlan_tspec_ack_policy { 11217 QCA_WLAN_TSPEC_NORMAL_ACK = 0, 11218 QCA_WLAN_TSPEC_NO_ACK = 1, 11219 /* Reserved */ 11220 QCA_WLAN_TSPEC_BLOCK_ACK = 3, 11221 }; 11222 11223 /** 11224 * enum qca_wlan_vendor_attr_config_tspec - Defines attributes 11225 * used by %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command. 11226 * 11227 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION: 11228 * u8 attribute. Specify the TSPEC operation of this request. Possible values 11229 * are defined in enum qca_wlan_tspec_operation. 11230 * Mandatory attribute for all kinds of config TSPEC requests. 11231 * 11232 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID: 11233 * u8 attribute. TS ID. Possible values are 0-7. 11234 * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL, 11235 * QCA_WLAN_TSPEC_GET. A mandatory attribute. 11236 * 11237 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION: 11238 * u8 attribute. Direction of data carried by the TS. Possible values are 11239 * defined in enum qca_wlan_tspec_direction. 11240 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 11241 * 11242 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD: 11243 * Flag attribute. Indicate whether APSD is enabled for the traffic associated 11244 * with the TS. set - enabled, not set - disabled. 11245 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 11246 * 11247 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY: 11248 * u8 attribute. User priority to be used for the transport of MSDUs/A-MSDUs 11249 * belonging to this TS. Possible values are 0-7. 11250 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 11251 * 11252 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY: 11253 * u8 attribute. Indicate whether MAC acknowledgements are required for 11254 * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements. 11255 * Possible values are defined in enum qca_wlan_tspec_ack_policy. 11256 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 11257 * 11258 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE: 11259 * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs 11260 * belonging to this TS. 11261 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 11262 * 11263 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE: 11264 * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs 11265 * belonging to this TS. 11266 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 11267 * 11268 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL: 11269 * u32 attribute. Specify the minimum interval in microseconds between the 11270 * start of two successive SPs. 11271 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 11272 * 11273 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL: 11274 * u32 attribute. Specify the maximum interval in microseconds between the 11275 * start of two successive SPs. 11276 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 11277 * 11278 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL: 11279 * u32 attribute. Specify the minimum interval in microseconds that can elapse 11280 * without arrival or transfer of an MPDU belonging to the TS before this TS 11281 * is deleted by the MAC entity at the HC. 11282 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 11283 * 11284 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL: 11285 * u32 attribute. Specify the minimum interval in microseconds that can elapse 11286 * without arrival or transfer of an MSDU belonging to the TS before the 11287 * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of 11288 * 0xFFFFFFFF disables the suspension interval. The value of the suspension 11289 * interval is always less than or equal to the inactivity interval. 11290 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 11291 * 11292 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE: 11293 * u32 attribute. Indicate the lowest data rate in bps specified at the MAC 11294 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the 11295 * bounds of this TSPEC. 11296 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 11297 * 11298 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE: 11299 * u32 attribute. Indicate the average data rate in bps specified at the MAC 11300 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the 11301 * bounds of this TSPEC. 11302 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 11303 * 11304 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE: 11305 * u32 attribute. Indicate the maximum allowable data rate in bps specified at 11306 * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within 11307 * the bounds of this TSPEC. 11308 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 11309 * 11310 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE: 11311 * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs 11312 * belonging to this TS that arrive at the MAC SAP at the peak data rate. A 11313 * value of 0 indicates that there are no bursts. 11314 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 11315 * 11316 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE: 11317 * u32 attribute. Indicate the minimum PHY rate in bps for transport of 11318 * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC. 11319 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 11320 * 11321 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE: 11322 * u16 attribute. Specify the excess allocation of time (and bandwidth) over 11323 * and above the stated application rates required to transport an MSDU/A-MSDU 11324 * belonging to the TS in this TSPEC. 11325 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 11326 */ 11327 enum qca_wlan_vendor_attr_config_tspec { 11328 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0, 11329 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1, 11330 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2, 11331 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3, 11332 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4, 11333 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5, 11334 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6, 11335 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7, 11336 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8, 11337 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9, 11338 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10, 11339 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11, 11340 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12, 11341 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13, 11342 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14, 11343 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15, 11344 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16, 11345 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17, 11346 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18, 11347 11348 /* keep last */ 11349 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST, 11350 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX = 11351 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1, 11352 }; 11353 11354 /** 11355 * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type 11356 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame 11357 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame 11358 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request 11359 * frame 11360 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation 11361 * Request frame. 11362 */ 11363 enum qca_wlan_vendor_oci_override_frame_type { 11364 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1, 11365 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2, 11366 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3, 11367 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4, 11368 }; 11369 11370 /** 11371 * enum qca_wlan_vendor_attr_oci_override: Represents attributes for 11372 * OCI override request. These attributes are used inside nested attribute 11373 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command 11374 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. 11375 * 11376 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8. 11377 * Values from enum qca_wlan_vendor_oci_override_frame_type used in this 11378 * attribute to specify the frame type in which the OCI is to be overridden. 11379 * 11380 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32) 11381 * OCI frequency (in MHz) to override in the specified frame type. 11382 */ 11383 enum qca_wlan_vendor_attr_oci_override { 11384 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0, 11385 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1, 11386 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2, 11387 11388 /* keep last */ 11389 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST, 11390 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX = 11391 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1, 11392 }; 11393 11394 /** 11395 * enum qca_wlan_medium_assess_type - Type of medium assess request 11396 * 11397 * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE. 11398 */ 11399 enum qca_wlan_medium_assess_type { 11400 QCA_WLAN_MEDIUM_ASSESS_CCA = 0, 11401 QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1, 11402 }; 11403 11404 /** 11405 * enum qca_wlan_vendor_attr_medium_assess - Attributes used by 11406 * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command. 11407 * 11408 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE: 11409 * u8 attribute. Mandatory in all kinds of medium assess requests/responses. 11410 * Specify the type of medium assess request and indicate its type in response. 11411 * Possible values are defined in enum qca_wlan_medium_assess_type. 11412 * 11413 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD: 11414 * u32 attribute. Mandatory in CCA request. 11415 * Specify the assessment period in terms of seconds. Assessment result will be 11416 * sent as the response to the CCA request after the assessment period. 11417 * 11418 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT: 11419 * u32 attribute. Mandatory in response to CCA request. 11420 * Total timer tick count of the assessment cycle. 11421 * 11422 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT: 11423 * u32 attribute. Mandatory in response to CCA request. 11424 * Timer tick count of idle time in the assessment cycle. 11425 * 11426 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT: 11427 * u32 attribute. Mandatory in response to CCA request. 11428 * Timer tick count of Intra BSS traffic RX time in the assessment cycle. 11429 * 11430 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT: 11431 * u32 attribute. Mandatory in response to CCA request. 11432 * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle. 11433 * 11434 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI: 11435 * s32 attribute. Mandatory in response to CCA request. 11436 * Maximum RSSI of Intra BSS traffic in the assessment cycle. 11437 * 11438 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI: 11439 * s32 attribute. Mandatory in response to CCA request. 11440 * Minimum RSSI of Intra BSS traffic in the assessment cycle. 11441 * 11442 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE: 11443 * u8 attribute. Mandatory in congestion report request. 11444 * 1-enable 0-disable. 11445 * 11446 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD: 11447 * u8 attribute. Mandatory in congestion report enable request and will be 11448 * ignored if present in congestion report disable request. Possible values are 11449 * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type 11450 * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if 11451 * congestion percentage reaches the configured threshold. 11452 * 11453 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL: 11454 * u8 attribute. Optional in congestion report enable request and will be 11455 * ignored if present in congestion report disable request. 11456 * Specify the interval of congestion report event in terms of seconds. Possible 11457 * values are 1-255. Default value 1 will be used if this attribute is omitted 11458 * or using invalid values. 11459 * 11460 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE: 11461 * u8 attribute. Mandatory in congestion report event. 11462 * Indicate the actual congestion percentage. Possible values are 0-100. 11463 */ 11464 enum qca_wlan_vendor_attr_medium_assess { 11465 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0, 11466 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1, 11467 11468 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2, 11469 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3, 11470 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4, 11471 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5, 11472 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6, 11473 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7, 11474 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8, 11475 11476 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9, 11477 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10, 11478 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11, 11479 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12, 11480 11481 /* keep last */ 11482 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST, 11483 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX = 11484 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1, 11485 }; 11486 11487 /** 11488 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes 11489 * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command. 11490 * 11491 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL: 11492 * u8 attribute. Notify the TX VDEV status. Possible values 0, 1 11493 * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV, 11494 * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events. 11495 * 11496 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT: 11497 * u8 attribute, required. 1 means Tx VDEV up event. 0 means Tx VDEV down event. 11498 * 11499 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID: 11500 * u8 attribute, required. Indicates group id of Tx VDEV. 11501 * 11502 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO: 11503 * Nested attribute. This attribute shall be used by the driver to send 11504 * group information. The attributes defined in enum 11505 * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info 11506 * are nested in this attribute. 11507 */ 11508 enum qca_wlan_vendor_attr_mbssid_tx_vdev_status { 11509 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0, 11510 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1, 11511 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2, 11512 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3, 11513 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4, 11514 11515 /* keep last */ 11516 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST, 11517 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX = 11518 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1, 11519 }; 11520 11521 /** 11522 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used 11523 * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute. 11524 * 11525 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX: 11526 * u32 attribute, required. Contains interface index. 11527 * 11528 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS: 11529 * u8 attribute, required. 0 - means vdev is in down state. 11530 * 1 - means vdev is in up state. 11531 */ 11532 enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info { 11533 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0, 11534 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1, 11535 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2, 11536 11537 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST, 11538 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX = 11539 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1, 11540 }; 11541 11542 /** 11543 * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies 11544 * 11545 * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary 11546 * STA interface has to be given while selecting the connection policies 11547 * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface. 11548 * An interface is set as primary through the attribute 11549 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not 11550 * applicable if the primary interface has not been set earlier. 11551 * 11552 * The intention is not to downgrade the primary STA performance, such as: 11553 * - Do not reduce the number of TX/RX chains of primary connection. 11554 * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of 11555 * chains. 11556 * - If using MCC, should set the MCC duty cycle of the primary connection to 11557 * be higher than the secondary connection. 11558 * 11559 * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the 11560 * subsequent STA connection shall be chosen to balance with the existing 11561 * concurrent STA's performance. 11562 * Such as 11563 * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware 11564 * capability. 11565 * - If using MCC, set the MCC duty cycle of the primary connection to be equal 11566 * to the secondary. 11567 * - Prefer BSSID candidates which will help provide the best "overall" 11568 * performance for all the STA connections. 11569 */ 11570 enum qca_wlan_concurrent_sta_policy_config { 11571 QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0, 11572 QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1, 11573 }; 11574 11575 /** 11576 * enum qca_wlan_vendor_attr_concurrent_sta_policy - Defines attributes 11577 * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY vendor command. 11578 * 11579 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG: 11580 * u8 attribute. Configures the concurrent STA policy configuration. 11581 * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config. 11582 */ 11583 enum qca_wlan_vendor_attr_concurrent_sta_policy { 11584 QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_INVALID = 0, 11585 QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG = 1, 11586 11587 /* keep last */ 11588 QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_AFTER_LAST, 11589 QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX = 11590 QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_AFTER_LAST - 1, 11591 11592 }; 11593 11594 /** 11595 * enum qca_sta_connect_fail_reason_codes - Defines values carried 11596 * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor 11597 * attribute. 11598 * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No Probe Response frame received 11599 * for unicast Probe Request frame. 11600 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request. 11601 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for 11602 * auth request. 11603 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not 11604 * received from AP. 11605 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send 11606 * Association Request frame. 11607 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for 11608 * Association Request frame. 11609 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Association Response 11610 * frame is not received from AP. 11611 */ 11612 enum qca_sta_connect_fail_reason_codes { 11613 QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1, 11614 QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2, 11615 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3, 11616 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4, 11617 QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5, 11618 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6, 11619 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7, 11620 }; 11621 11622 /** 11623 * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different 11624 * filters defined in this enum are used in attribute 11625 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK. 11626 * 11627 * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver 11628 * shall filter the channels which are not usable because of coexistence with 11629 * cellular radio. 11630 * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver 11631 * shall filter the channels which are not usable because of existing active 11632 * interfaces in the driver and will result in Multi Channel Concurrency, etc. 11633 * 11634 */ 11635 enum qca_wlan_vendor_usable_channels_filter { 11636 QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0, 11637 QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1, 11638 }; 11639 11640 /** 11641 * enum qca_wlan_vendor_attr_chan_info - Attributes used inside 11642 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute. 11643 * 11644 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ: 11645 * u32 attribute, required. Indicates the center frequency of the primary 11646 * channel in MHz. 11647 * 11648 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ: 11649 * u32 attribute. Indicates the center frequency of the primary segment of the 11650 * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz, 11651 * 160 MHz, and 320 MHz channels. 11652 * 11653 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ: 11654 * u32 attribute. Indicates the center frequency of the secondary segment of 11655 * 80+80 channel in MHz. This attribute is required only when 11656 * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80. 11657 * 11658 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH: 11659 * u32 attribute, required. Indicates the bandwidth of the channel, possible 11660 * values are defined in enum nl80211_chan_width. 11661 * 11662 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK: 11663 * u32 attribute, required. Indicates all the interface types for which this 11664 * channel is usable. This attribute encapsulates bitmasks of interface types 11665 * defined in enum nl80211_iftype. 11666 * 11667 */ 11668 enum qca_wlan_vendor_attr_chan_info { 11669 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0, 11670 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1, 11671 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2, 11672 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3, 11673 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4, 11674 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5, 11675 11676 /* keep last */ 11677 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST, 11678 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX = 11679 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1, 11680 }; 11681 11682 /** 11683 * enum qca_wlan_vendor_attr_usable_channels - Attributes used by 11684 * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command. 11685 * 11686 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK: 11687 * u32 attribute. Indicates the bands from which the channels should be reported 11688 * in response. This attribute encapsulates bit masks of bands defined in enum 11689 * nl80211_band. Optional attribute, if not present in the request the driver 11690 * shall return channels from all supported bands. 11691 * 11692 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK: 11693 * u32 attribute. Indicates all the interface types for which the usable 11694 * channels information is requested. This attribute encapsulates bitmasks of 11695 * interface types defined in enum nl80211_iftype. Optional attribute, if not 11696 * present in the request the driver shall send information of all supported 11697 * interface modes. 11698 * 11699 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK: 11700 * u32 attribute. This attribute carries information of all filters that shall 11701 * be applied while populating usable channels information by the driver. This 11702 * attribute carries bit masks of different filters defined in enum 11703 * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present 11704 * in the request the driver shall send information of channels without applying 11705 * any of the filters that can be configured through this attribute. 11706 * 11707 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO: 11708 * Nested attribute. This attribute shall be used by the driver to send 11709 * usability information of each channel. The attributes defined in enum 11710 * qca_wlan_vendor_attr_chan_info are used inside this attribute. 11711 */ 11712 enum qca_wlan_vendor_attr_usable_channels { 11713 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0, 11714 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1, 11715 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2, 11716 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3, 11717 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4, 11718 11719 /* keep last */ 11720 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST, 11721 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX = 11722 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1, 11723 }; 11724 11725 /** 11726 * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command 11727 * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history. 11728 * 11729 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry 11730 * the list of radar history entries. 11731 * Each entry contains freq, timestamp, and radar signal detect flag. 11732 * The driver shall add an entry when CAC has finished, or radar signal 11733 * has been detected post AP beaconing. The driver shall maintain at least 11734 * 8 entries in order to save CAC result for a 160 MHz channel. 11735 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute. 11736 * Channel frequency in MHz. 11737 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds. 11738 * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC 11739 * or radar detection. 11740 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute. 11741 * This flag indicates radar signal has been detected. 11742 */ 11743 enum qca_wlan_vendor_attr_radar_history { 11744 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0, 11745 11746 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1, 11747 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2, 11748 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3, 11749 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4, 11750 11751 /* keep last */ 11752 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST, 11753 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX = 11754 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1, 11755 }; 11756 11757 /** 11758 * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type 11759 * 11760 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the 11761 * target exited MCC state and cleared the quota information. In the 11762 * command it clears MCC quota setting and restores adaptive scheduling. 11763 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and 11764 * will not be changed. 11765 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic 11766 * and the target may change the quota based on the data activity. 11767 */ 11768 enum qca_wlan_vendor_mcc_quota_type { 11769 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0, 11770 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1, 11771 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2, 11772 }; 11773 11774 /** 11775 * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event 11776 * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel 11777 * quota information or as a command to set the required MCC quota for an 11778 * interface. 11779 * 11780 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute. 11781 * The type is defined in enum qca_wlan_vendor_mcc_quota_type. 11782 * In a command this specifies the MCC quota type to be set for the interface. 11783 * In an event this provides the current quota type in force. 11784 * This is required in a command and an event. 11785 * 11786 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry 11787 * the list of channel quota entries. 11788 * In an event each entry contains the frequency and respective time quota for 11789 * all the MCC interfaces. 11790 * In a command it specifies the interface index and respective time quota. 11791 * In a command only one entry (ifindex, quota pair) may be specified. 11792 * 11793 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute. 11794 * Channel frequency in MHz. This is present only in an event. 11795 * 11796 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute. 11797 * Channel time quota expressed as percentage. 11798 * This is present in an event and a command. 11799 * In an command, the user shall specify the quota to be allocated for the 11800 * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX. 11801 * In an event this provides the existing quota for the channel. 11802 * 11803 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute. 11804 * Specifies the interface index (netdev) for which the corresponding 11805 * configurations are applied. This is required in a command only. Only one 11806 * interface index may be specified. If not specified, the configuration is 11807 * rejected. 11808 */ 11809 enum qca_wlan_vendor_attr_mcc_quota { 11810 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0, 11811 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1, 11812 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2, 11813 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3, 11814 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4, 11815 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5, 11816 11817 /* keep last */ 11818 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST, 11819 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX = 11820 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1, 11821 }; 11822 11823 /** 11824 * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by 11825 * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command. 11826 * 11827 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag) 11828 * Enable mDNS offload. This attribute is mandatory to enable 11829 * mDNS offload feature. If this attribute is not present, mDNS offload 11830 * is disabled. 11831 * 11832 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing 11833 * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This 11834 * attribute is mandatory when enabling the feature, and not required when 11835 * disabling the feature. 11836 * 11837 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing 11838 * the following attributes: 11839 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN 11840 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT 11841 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD 11842 * 11843 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute. 11844 * It consists of a hostname and ".local" as the domain name. The character 11845 * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes. 11846 * It is used to compare the domain in the "QU" query. Only 1 FQDN is 11847 * supported per vdev. 11848 * For example: myphone.local 11849 * 11850 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required 11851 * u16 attribute. It specifies the total number of resource records present 11852 * in the answer section of the answer payload. This attribute is needed by the 11853 * firmware to populate the mDNS response frame for mDNS queries without having 11854 * to parse the answer payload. 11855 * 11856 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required binary blob 11857 * attribute sent by the mdnsResponder from userspace. It contains resource 11858 * records of various types (e.g., A, AAAA, PTR, TXT) and service list. This 11859 * payload is passed down to the firmware and is transmitted in response to 11860 * mDNS queries. 11861 * The maximum supported size of the answer payload is 512 bytes. 11862 */ 11863 enum qca_wlan_vendor_attr_mdns_offload { 11864 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0, 11865 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1, 11866 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2, 11867 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3, 11868 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4, 11869 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5, 11870 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6, 11871 11872 /* keep last */ 11873 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST, 11874 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX = 11875 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1, 11876 }; 11877 11878 /** 11879 * qca_wlan_vendor_monitor_data_frame_type - Represent the various 11880 * Data frame types to be sent over the monitor interface. 11881 */ 11882 enum qca_wlan_vendor_monitor_data_frame_type { 11883 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0), 11884 /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is not set 11885 */ 11886 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1), 11887 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2), 11888 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3), 11889 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4), 11890 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5), 11891 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6), 11892 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7), 11893 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8), 11894 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9), 11895 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10), 11896 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11), 11897 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12), 11898 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13), 11899 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14), 11900 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15), 11901 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16), 11902 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17), 11903 }; 11904 11905 /** 11906 * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various 11907 * Management frame types to be sent over the monitor interface. 11908 * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the Management Frames. 11909 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the Management frames 11910 * except the Beacon frame. 11911 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected 11912 * BSSID Beacon frames. Valid only in the connected state. 11913 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents 11914 * the Beacon frames obtained during the scan (off channel and connected 11915 * channel), when in connected state. 11916 */ 11917 enum qca_wlan_vendor_monitor_mgmt_frame_type { 11918 QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0), 11919 /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set 11920 */ 11921 QCA_WLAN_VENDOR_MONITOR_MGMT_NO_BEACON = BIT(1), 11922 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2), 11923 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3), 11924 }; 11925 11926 /** 11927 * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various 11928 * Control frame types to be sent over the monitor interface. 11929 * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the Control frames 11930 * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger frame 11931 */ 11932 enum qca_wlan_vendor_monitor_ctrl_frame_type { 11933 QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0), 11934 /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set 11935 */ 11936 QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1), 11937 }; 11938 11939 /** 11940 * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the 11941 * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the 11942 * monitor mode. 11943 * 11944 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute. 11945 * Represents the TX Data frame types to be monitored (u32). These Data frames 11946 * are represented by enum qca_wlan_vendor_monitor_data_frame_type. 11947 * 11948 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute. 11949 * Represents the RX Data frame types to be monitored (u32). These Data frames 11950 * are represented by enum qca_wlan_vendor_monitor_data_frame_type. 11951 * 11952 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute. 11953 * Represents the TX Management frame types to be monitored (u32). These 11954 * Management frames are represented by 11955 * enum qca_wlan_vendor_monitor_mgmt_frame_type. 11956 * 11957 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute. 11958 * Represents the RX Management frame types to be monitored (u32). These 11959 * Management frames are represented by 11960 * enum qca_wlan_vendor_monitor_mgmt_frame_type. 11961 * 11962 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute. 11963 * Represents the TX Control frame types to be monitored (u32). These Control 11964 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type. 11965 * 11966 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute. 11967 * Represents the RX Control frame types to be monitored (u32). These Control 11968 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type. 11969 * 11970 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL: u32 11971 * attribute. 11972 * Represents the interval in milliseconds only for the connected Beacon frames, 11973 * expecting the connected BSS's Beacon frames to be sent on the monitor 11974 * interface at this specific interval. 11975 */ 11976 enum qca_wlan_vendor_attr_set_monitor_mode { 11977 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0, 11978 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1, 11979 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2, 11980 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3, 11981 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4, 11982 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5, 11983 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6, 11984 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7, 11985 11986 /* keep last */ 11987 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST, 11988 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX = 11989 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1, 11990 }; 11991 11992 /** 11993 * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags. 11994 * Bits will be set to 1 if the corresponding state is enabled. 11995 * 11996 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start. 11997 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end. 11998 */ 11999 enum qca_wlan_vendor_roam_scan_state { 12000 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0), 12001 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1), 12002 }; 12003 12004 /** 12005 * enum qca_wlan_vendor_roam_event_type - Roam event type flags. 12006 * Bits will be set to 1 if the corresponding event is notified. 12007 * 12008 * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event 12009 * carries the trigger reason. When set, it is expected that the roam event 12010 * carries the respective reason via the attribute 12011 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries 12012 * the BSSID, RSSI, frequency info of the AP to which the roam is attempted. 12013 * 12014 * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event 12015 * carries the roam fail reason. When set, it is expected that the roam event 12016 * carries the respective reason via the attribute 12017 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the 12018 * BSSID, RSSI, frequency info of the AP to which the roam was attempted. 12019 * 12020 * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam 12021 * event carries the roam invoke fail reason. When set, it is expected that 12022 * the roam event carries the respective reason via the attribute 12023 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON. 12024 * 12025 * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event 12026 * carries the roam scan state. When set, it is expected that the roam event 12027 * carries the respective scan state via the attribute 12028 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding 12029 * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST. 12030 */ 12031 enum qca_wlan_vendor_roam_event_type { 12032 QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0), 12033 QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1), 12034 QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2), 12035 QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3), 12036 }; 12037 12038 /** 12039 * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info. 12040 * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO. 12041 * 12042 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address 12043 * representing the BSSID of the AP to which the roam is attempted. 12044 * 12045 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value 12046 * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is 12047 * attempted. 12048 * 12049 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, frequency in MHz 12050 * on which the roam is attempted. 12051 * 12052 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in 12053 * STA mode only. This represents the roam fail reason for the last failed 12054 * roaming attempt by the firmware for the specific BSSID. Different roam 12055 * failure reason codes are specified in enum qca_vendor_roam_fail_reasons. 12056 */ 12057 enum qca_wlan_vendor_attr_roam_events_candidate_info { 12058 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0, 12059 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1, 12060 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2, 12061 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3, 12062 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4, 12063 12064 /* keep last */ 12065 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST, 12066 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX = 12067 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1, 12068 }; 12069 12070 /** 12071 * enum qca_wlan_vendor_attr_roam_events - Used by the 12072 * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the 12073 * roam events to the driver or notify these events from the driver. 12074 * 12075 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the 12076 * driver/firmware to enable/disable the notification of roam events. It's a 12077 * mandatory attribute and used only in the request from the userspace to the 12078 * host driver. 1-Enable, 0-Disable. 12079 * If the roaming is totally offloaded to the firmware, this request when 12080 * enabled shall mandate the firmware to notify all the relevant roam events 12081 * represented by the below attributes. If the host is in the suspend mode, 12082 * the behavior of the firmware to notify these events is guided by 12083 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get 12084 * these events in the suspend state, the firmware is expected to wake up the 12085 * host before the respective events are notified. Please note that such a 12086 * request to get the events in the suspend state will have a definite power 12087 * implication. 12088 * 12089 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents 12090 * that the roam events need to be notified in the suspend state too. By 12091 * default, these roam events are notified in the resume state. With this flag, 12092 * the roam events are notified in both resume and suspend states. 12093 * This attribute is used in the request from the userspace to the host driver. 12094 * 12095 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only. 12096 * Represents the different roam event types, signified by the enum 12097 * qca_wlan_vendor_roam_event_type. 12098 * Each bit of this attribute represents the different roam even types reported 12099 * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 12100 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 12101 * 12102 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA 12103 * mode only. This represents the roam trigger reason for the last roaming 12104 * attempted by the firmware. Each bit of this attribute represents the 12105 * different roam trigger reason code which are defined in enum 12106 * qca_vendor_roam_triggers. 12107 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 12108 * 12109 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in 12110 * STA mode only. This represents the roam invoke fail reason for the last 12111 * failed roam invoke. Different roam invoke failure reason codes 12112 * are specified in enum qca_vendor_roam_invoke_fail_reasons. 12113 * 12114 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info 12115 * for which the roam is attempted. Each entry is a nested attribute defined 12116 * by enum qca_wlan_vendor_attr_roam_events_candidate_info. 12117 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 12118 * 12119 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents 12120 * the scan state on which the roam events need to be notified. The values for 12121 * this attribute are referred from enum qca_wlan_vendor_roam_scan_state. 12122 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 12123 * 12124 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of 12125 * u32 values. List of frequencies in MHz considered for a roam scan. 12126 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 12127 */ 12128 enum qca_wlan_vendor_attr_roam_events { 12129 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0, 12130 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1, 12131 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2, 12132 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3, 12133 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4, 12134 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5, 12135 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6, 12136 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7, 12137 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8, 12138 12139 /* keep last */ 12140 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST, 12141 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX = 12142 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST -1, 12143 }; 12144 12145 /** 12146 * enum qca_wlan_ratemask_params_type - Rate mask config type 12147 * 12148 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK/OFDM rate mask config 12149 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config 12150 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config 12151 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config 12152 */ 12153 enum qca_wlan_ratemask_params_type { 12154 QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0, 12155 QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1, 12156 QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2, 12157 QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3, 12158 }; 12159 12160 /** 12161 * enum qca_wlan_vendor_attr_ratemask_params - Used by the 12162 * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG. 12163 * This is used to set the rate mask value to be used in rate selection. 12164 * 12165 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST: 12166 * Array of nested containing attributes 12167 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and 12168 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP. 12169 * 12170 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents 12171 * the different PHY types to which the rate mask config is to be applied. 12172 * The values for this attribute are referred from enum 12173 * qca_wlan_vendor_ratemask_params_type. 12174 * 12175 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap. 12176 * A bit value of 1 represents rate is enabled and a value of 0 12177 * represents rate is disabled. 12178 * For HE targets, 12 bits correspond to one NSS setting. 12179 * b0-13 => NSS1, MCS 0-13 12180 * b14-27 => NSS2, MCS 0-13 and so on for other NSS. 12181 * For VHT targets, 10 bits correspond to one NSS setting. 12182 * b0-9 => NSS1, MCS 0-9 12183 * b10-19 => NSS2, MCS 0-9 and so on for other NSS. 12184 * For HT targets, 8 bits correspond to one NSS setting. 12185 * b0-7 => NSS1, MCS 0-7 12186 * b8-15 => NSS2, MCS 0-7 and so on for other NSS. 12187 * For OFDM/CCK targets, 8 bits correspond to one NSS setting. 12188 */ 12189 enum qca_wlan_vendor_attr_ratemask_params { 12190 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_INVALID = 0, 12191 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1, 12192 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2, 12193 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3, 12194 12195 /* keep last */ 12196 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST, 12197 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX = 12198 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1, 12199 }; 12200 12201 #endif /* QCA_VENDOR_H */ 12202