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