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