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