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