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