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