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