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