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 | cf32e60 | 2014-01-28 10:57:39 -0800 | [diff] [blame] | 235 | */ |
| 236 | enum qca_nl80211_vendor_subcmds { |
| 237 | QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0, |
| 238 | QCA_NL80211_VENDOR_SUBCMD_TEST = 1, |
Dmitry Shmidt | 661b4f7 | 2014-09-29 14:58:27 -0700 | [diff] [blame] | 239 | /* subcmds 2..8 not yet allocated */ |
| 240 | QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9, |
Dmitry Shmidt | cf32e60 | 2014-01-28 10:57:39 -0800 | [diff] [blame] | 241 | QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10, |
Dmitry Shmidt | d11f019 | 2014-03-24 12:09:47 -0700 | [diff] [blame] | 242 | QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11, |
Dmitry Shmidt | 21de214 | 2014-04-08 10:50:52 -0700 | [diff] [blame] | 243 | QCA_NL80211_VENDOR_SUBCMD_NAN = 12, |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 244 | QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13, |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 245 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14, |
| 246 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15, |
| 247 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16, |
| 248 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17, |
| 249 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18, |
| 250 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19, |
| 251 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20, |
| 252 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21, |
| 253 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22, |
| 254 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23, |
| 255 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24, |
| 256 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25, |
| 257 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26, |
| 258 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27, |
| 259 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28, |
| 260 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29, |
| 261 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30, |
| 262 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31, |
| 263 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32, |
| 264 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33, |
| 265 | QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34, |
| 266 | QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35, |
| 267 | QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36, |
| 268 | QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37, |
| 269 | QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38, |
| 270 | QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39, |
| 271 | QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40, |
| 272 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41, |
| 273 | QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42, |
| 274 | /* 43..49 - reserved for QCA */ |
| 275 | QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50, |
| 276 | QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51, |
| 277 | QCA_NL80211_VENDOR_SUBCMD_APFIND = 52, |
Dmitry Shmidt | 9d9e602 | 2015-04-23 10:34:55 -0700 | [diff] [blame] | 278 | /* 53 - reserved - was used by QCA, but not in use anymore */ |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 279 | QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54, |
| 280 | QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55, |
Dmitry Shmidt | 7f65602 | 2015-02-25 14:36:37 -0800 | [diff] [blame] | 281 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56, |
| 282 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57, |
| 283 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58, |
| 284 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59, |
| 285 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60, |
Dmitry Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 286 | /* 61-73 - reserved for QCA */ |
| 287 | /* Wi-Fi configuration subcommands */ |
| 288 | QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74, |
| 289 | QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75, |
| 290 | /* 76-90 - reserved for QCA */ |
Dmitry Shmidt | 4dd28dc | 2015-03-10 11:21:43 -0700 | [diff] [blame] | 291 | QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91, |
Dmitry Shmidt | 9d9e602 | 2015-04-23 10:34:55 -0700 | [diff] [blame] | 292 | QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92, |
| 293 | QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93, |
| 294 | QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94, |
| 295 | QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95, |
| 296 | QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96, |
| 297 | QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97, |
| 298 | QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98, |
| 299 | QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99, |
| 300 | QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100, |
Dmitry Shmidt | 05df46a | 2015-05-19 11:02:01 -0700 | [diff] [blame] | 301 | QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101, |
Ravi Joshi | e6ccb16 | 2015-07-16 17:45:41 -0700 | [diff] [blame] | 302 | QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102, |
| 303 | QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103, |
| 304 | QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104, |
| 305 | QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105, |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 306 | QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106, |
| 307 | QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107, |
| 308 | QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108, |
| 309 | QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109, |
| 310 | /* 110..114 - reserved for QCA */ |
Dmitry Shmidt | d7ff03d | 2015-12-04 14:49:35 -0800 | [diff] [blame] | 311 | QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115, |
Dmitry Shmidt | d5ab1b5 | 2016-06-21 12:38:41 -0700 | [diff] [blame] | 312 | /* 116..117 - reserved for QCA */ |
| 313 | QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118, |
Dmitry Shmidt | 1702232 | 2016-04-06 13:28:42 -0700 | [diff] [blame] | 314 | QCA_NL80211_VENDOR_SUBCMD_TSF = 119, |
| 315 | QCA_NL80211_VENDOR_SUBCMD_WISA = 120, |
Dmitry Shmidt | d5ab1b5 | 2016-06-21 12:38:41 -0700 | [diff] [blame] | 316 | /* 121 - reserved for QCA */ |
Dmitry Shmidt | 58d12ad | 2016-07-28 10:07:03 -0700 | [diff] [blame] | 317 | QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122, |
| 318 | QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123, |
| 319 | QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124, |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 320 | QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125, |
| 321 | QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126, |
Dmitry Shmidt | 7d17530 | 2016-09-06 13:11:34 -0700 | [diff] [blame] | 322 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127, |
| 323 | /* FTM/indoor location subcommands */ |
| 324 | QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128, |
| 325 | QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129, |
| 326 | QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130, |
| 327 | QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131, |
| 328 | QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132, |
| 329 | QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133, |
| 330 | QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134, |
| 331 | QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135, |
| 332 | QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136, |
Dmitry Shmidt | aca489e | 2016-09-28 15:44:14 -0700 | [diff] [blame] | 333 | QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137, |
| 334 | QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138, |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 335 | /* DMG low level RF sector operations */ |
| 336 | QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139, |
| 337 | QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140, |
| 338 | QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141, |
| 339 | QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142, |
| 340 | QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143, |
Dmitry Shmidt | cf32e60 | 2014-01-28 10:57:39 -0800 | [diff] [blame] | 341 | }; |
| 342 | |
| 343 | |
Dmitry Shmidt | d11f019 | 2014-03-24 12:09:47 -0700 | [diff] [blame] | 344 | enum qca_wlan_vendor_attr { |
| 345 | QCA_WLAN_VENDOR_ATTR_INVALID = 0, |
| 346 | /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */ |
| 347 | QCA_WLAN_VENDOR_ATTR_DFS = 1, |
Dmitry Shmidt | 21de214 | 2014-04-08 10:50:52 -0700 | [diff] [blame] | 348 | /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */ |
| 349 | QCA_WLAN_VENDOR_ATTR_NAN = 2, |
Dmitry Shmidt | 7832adb | 2014-04-29 10:53:02 -0700 | [diff] [blame] | 350 | /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ |
| 351 | QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3, |
Dmitry Shmidt | 09f57ba | 2014-06-10 16:07:13 -0700 | [diff] [blame] | 352 | /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ |
| 353 | QCA_WLAN_VENDOR_ATTR_IFINDEX = 4, |
Dmitry Shmidt | 661b4f7 | 2014-09-29 14:58:27 -0700 | [diff] [blame] | 354 | /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined |
| 355 | * by enum qca_roaming_policy. */ |
| 356 | QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5, |
| 357 | QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6, |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 358 | /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */ |
| 359 | QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7, |
Dmitry Shmidt | 7f65602 | 2015-02-25 14:36:37 -0800 | [diff] [blame] | 360 | QCA_WLAN_VENDOR_ATTR_TEST = 8, |
Ravi Joshi | e6ccb16 | 2015-07-16 17:45:41 -0700 | [diff] [blame] | 361 | /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */ |
| 362 | /* Unsigned 32-bit value. */ |
| 363 | QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9, |
| 364 | /* Unsigned 32-bit value */ |
| 365 | QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10, |
| 366 | /* Unsigned 32-bit value */ |
| 367 | QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11, |
| 368 | /* Unsigned 32-bit value from enum qca_set_band. */ |
| 369 | QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12, |
Dmitry Shmidt | 7d17530 | 2016-09-06 13:11:34 -0700 | [diff] [blame] | 370 | /* Dummy (NOP) attribute for 64 bit padding */ |
| 371 | QCA_WLAN_VENDOR_ATTR_PAD = 13, |
| 372 | /* Unique FTM session cookie (Unsigned 64 bit). Specified in |
| 373 | * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in |
| 374 | * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and |
| 375 | * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE. |
| 376 | */ |
| 377 | QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14, |
| 378 | /* Indoor location capabilities, returned by |
| 379 | * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA. |
| 380 | * see enum qca_wlan_vendor_attr_loc_capa. |
| 381 | */ |
| 382 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15, |
| 383 | /* Array of nested attributes containing information about each peer |
| 384 | * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info |
| 385 | * for supported attributes for each peer. |
| 386 | */ |
| 387 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16, |
| 388 | /* Array of nested attributes containing measurement results for |
| 389 | * one or more peers, reported by the |
| 390 | * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event. |
| 391 | * See enum qca_wlan_vendor_attr_peer_result for list of supported |
| 392 | * attributes. |
| 393 | */ |
| 394 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17, |
| 395 | /* Flag attribute for enabling or disabling responder functionality. */ |
| 396 | QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18, |
| 397 | /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER |
| 398 | * command to specify the LCI report that will be sent by |
| 399 | * the responder during a measurement exchange. The format is |
| 400 | * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10. |
| 401 | */ |
| 402 | QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19, |
| 403 | /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER |
| 404 | * command to specify the location civic report that will |
| 405 | * be sent by the responder during a measurement exchange. |
| 406 | * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13. |
| 407 | */ |
| 408 | QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20, |
| 409 | /* Session/measurement completion status code, |
| 410 | * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and |
| 411 | * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT |
| 412 | * see enum qca_vendor_attr_loc_session_status. |
| 413 | */ |
| 414 | QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21, |
| 415 | /* Initial dialog token used by responder (0 if not specified), |
| 416 | * unsigned 8 bit value. |
| 417 | */ |
| 418 | QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22, |
| 419 | /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS |
| 420 | * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if |
| 421 | * AOA measurements are needed as part of an FTM session. |
| 422 | * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See |
| 423 | * enum qca_wlan_vendor_attr_aoa_type. |
| 424 | */ |
| 425 | QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23, |
| 426 | /* A bit mask (unsigned 32 bit value) of antenna arrays used |
| 427 | * by indoor location measurements. Refers to the antenna |
| 428 | * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS. |
| 429 | */ |
| 430 | QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24, |
| 431 | /* AOA measurement data. Its contents depends on the AOA measurement |
| 432 | * type and antenna array mask: |
| 433 | * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values, |
| 434 | * phase of the strongest CIR path for each antenna in the measured |
| 435 | * array(s). |
| 436 | * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16 |
| 437 | * values, phase and amplitude of the strongest CIR path for each |
| 438 | * antenna in the measured array(s). |
| 439 | */ |
| 440 | QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25, |
Dmitry Shmidt | aca489e | 2016-09-28 15:44:14 -0700 | [diff] [blame] | 441 | /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command |
| 442 | * to specify the chain number (unsigned 32 bit value) to inquire |
| 443 | * the corresponding antenna RSSI value */ |
| 444 | QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26, |
| 445 | /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command |
| 446 | * to report the specific antenna RSSI value (unsigned 32 bit value) */ |
| 447 | QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27, |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 448 | /* Frequency in MHz, various uses. Unsigned 32 bit value */ |
| 449 | QCA_WLAN_VENDOR_ATTR_FREQ = 28, |
| 450 | /* TSF timer value, unsigned 64 bit value. |
| 451 | * May be returned by various commands. |
| 452 | */ |
| 453 | QCA_WLAN_VENDOR_ATTR_TSF = 29, |
| 454 | /* DMG RF sector index, unsigned 16 bit number. Valid values are |
| 455 | * 0..127 for sector indices or 65535 as special value used to |
| 456 | * unlock sector selection in |
| 457 | * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR. |
| 458 | */ |
| 459 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30, |
| 460 | /* DMG RF sector type, unsigned 8 bit value. One of the values |
| 461 | * in enum qca_wlan_vendor_attr_dmg_rf_sector_type. |
| 462 | */ |
| 463 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31, |
| 464 | /* Bitmask of DMG RF modules for which information is requested. Each |
| 465 | * bit corresponds to an RF module with the same index as the bit |
| 466 | * number. Unsigned 32 bit number but only low 8 bits can be set since |
| 467 | * all DMG chips currently have up to 8 RF modules. |
| 468 | */ |
| 469 | QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32, |
| 470 | /* Array of nested attributes where each entry is DMG RF sector |
| 471 | * configuration for a single RF module. |
| 472 | * Attributes for each entry are taken from enum |
| 473 | * qca_wlan_vendor_attr_dmg_rf_sector_cfg. |
| 474 | * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG |
| 475 | * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG. |
| 476 | */ |
| 477 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33, |
| 478 | /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command |
| 479 | * to report frame aggregation statistics to userspace. |
| 480 | */ |
| 481 | QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34, |
| 482 | QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35, |
| 483 | |
Dmitry Shmidt | d11f019 | 2014-03-24 12:09:47 -0700 | [diff] [blame] | 484 | /* keep last */ |
| 485 | QCA_WLAN_VENDOR_ATTR_AFTER_LAST, |
| 486 | QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1, |
| 487 | }; |
| 488 | |
Dmitry Shmidt | 661b4f7 | 2014-09-29 14:58:27 -0700 | [diff] [blame] | 489 | |
| 490 | enum qca_roaming_policy { |
| 491 | QCA_ROAMING_NOT_ALLOWED, |
| 492 | QCA_ROAMING_ALLOWED_WITHIN_ESS, |
| 493 | }; |
| 494 | |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 495 | enum qca_wlan_vendor_attr_roam_auth { |
| 496 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0, |
| 497 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID, |
| 498 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE, |
| 499 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE, |
| 500 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED, |
| 501 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR, |
| 502 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK, |
| 503 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK, |
Dmitry Shmidt | d7ff03d | 2015-12-04 14:49:35 -0800 | [diff] [blame] | 504 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS, |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 505 | /* keep last */ |
| 506 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST, |
| 507 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX = |
| 508 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1 |
| 509 | }; |
| 510 | |
Dmitry Shmidt | 58d12ad | 2016-07-28 10:07:03 -0700 | [diff] [blame] | 511 | enum qca_wlan_vendor_attr_p2p_listen_offload { |
| 512 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0, |
| 513 | /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one |
| 514 | * of the social channels. |
| 515 | */ |
| 516 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL, |
| 517 | /* A 32-bit unsigned value; the P2P listen offload period (ms). |
| 518 | */ |
| 519 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD, |
| 520 | /* A 32-bit unsigned value; the P2P listen interval duration (ms). |
| 521 | */ |
| 522 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL, |
| 523 | /* A 32-bit unsigned value; number of interval times the firmware needs |
| 524 | * to run the offloaded P2P listen operation before it stops. |
| 525 | */ |
| 526 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT, |
| 527 | /* An array of arbitrary binary data with one or more 8-byte values. |
| 528 | * The device types include both primary and secondary device types. |
| 529 | */ |
| 530 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES, |
| 531 | /* An array of unsigned 8-bit characters; vendor information elements. |
| 532 | */ |
| 533 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE, |
| 534 | /* A 32-bit unsigned value; a control flag to indicate whether listen |
| 535 | * results need to be flushed to wpa_supplicant. |
| 536 | */ |
| 537 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG, |
| 538 | /* A 8-bit unsigned value; reason code for P2P listen offload stop |
| 539 | * event. |
| 540 | */ |
| 541 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON, |
| 542 | /* keep last */ |
| 543 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST, |
| 544 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX = |
| 545 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1 |
| 546 | }; |
| 547 | |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 548 | enum qca_wlan_vendor_attr_acs_offload { |
| 549 | QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0, |
| 550 | QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL, |
| 551 | QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL, |
| 552 | QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE, |
| 553 | QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED, |
| 554 | QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED, |
Dmitry Shmidt | dda10c2 | 2015-03-24 16:05:01 -0700 | [diff] [blame] | 555 | QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED, |
| 556 | QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH, |
| 557 | QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST, |
| 558 | QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL, |
| 559 | QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL, |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 560 | QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST, |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 561 | /* keep last */ |
| 562 | QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST, |
| 563 | QCA_WLAN_VENDOR_ATTR_ACS_MAX = |
| 564 | QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1 |
| 565 | }; |
| 566 | |
| 567 | enum qca_wlan_vendor_acs_hw_mode { |
| 568 | QCA_ACS_MODE_IEEE80211B, |
| 569 | QCA_ACS_MODE_IEEE80211G, |
| 570 | QCA_ACS_MODE_IEEE80211A, |
| 571 | QCA_ACS_MODE_IEEE80211AD, |
Dmitry Shmidt | b1e5210 | 2015-05-29 12:36:29 -0700 | [diff] [blame] | 572 | QCA_ACS_MODE_IEEE80211ANY, |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 573 | }; |
| 574 | |
| 575 | /** |
| 576 | * enum qca_wlan_vendor_features - Vendor device/driver feature flags |
| 577 | * |
| 578 | * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key |
| 579 | * management offload, a mechanism where the station's firmware |
| 580 | * does the exchange with the AP to establish the temporal keys |
| 581 | * after roaming, rather than having the user space wpa_supplicant do it. |
Dmitry Shmidt | b1e5210 | 2015-05-29 12:36:29 -0700 | [diff] [blame] | 582 | * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic |
| 583 | * band selection based on channel selection results. |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 584 | * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports |
| 585 | * simultaneous off-channel operations. |
Dmitry Shmidt | 58d12ad | 2016-07-28 10:07:03 -0700 | [diff] [blame] | 586 | * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P |
| 587 | * Listen offload; a mechanism where the station's firmware takes care of |
| 588 | * responding to incoming Probe Request frames received from other P2P |
| 589 | * Devices whilst in Listen state, rather than having the user space |
| 590 | * wpa_supplicant do it. Information from received P2P requests are |
| 591 | * forwarded from firmware to host whenever the host processor wakes up. |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 592 | * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits |
| 593 | */ |
| 594 | enum qca_wlan_vendor_features { |
| 595 | QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0, |
Dmitry Shmidt | b1e5210 | 2015-05-29 12:36:29 -0700 | [diff] [blame] | 596 | QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1, |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 597 | QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2, |
Dmitry Shmidt | 58d12ad | 2016-07-28 10:07:03 -0700 | [diff] [blame] | 598 | QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3, |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 599 | NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */ |
| 600 | }; |
| 601 | |
Dmitry Shmidt | 4dd28dc | 2015-03-10 11:21:43 -0700 | [diff] [blame] | 602 | /** |
| 603 | * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication |
| 604 | * |
| 605 | * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to |
| 606 | * the offloaded data. |
| 607 | * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded |
| 608 | * data. |
| 609 | * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload |
| 610 | * indication. |
| 611 | */ |
| 612 | enum qca_wlan_vendor_attr_data_offload_ind { |
| 613 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0, |
| 614 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION, |
| 615 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL, |
| 616 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT, |
| 617 | |
| 618 | /* keep last */ |
| 619 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST, |
| 620 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX = |
| 621 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1 |
| 622 | }; |
Ravi Joshi | e6ccb16 | 2015-07-16 17:45:41 -0700 | [diff] [blame] | 623 | |
| 624 | enum qca_vendor_attr_get_preferred_freq_list { |
| 625 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID, |
| 626 | /* A 32-unsigned value; the interface type/mode for which the preferred |
| 627 | * frequency list is requested (see enum qca_iface_type for possible |
| 628 | * values); used in GET_PREFERRED_FREQ_LIST command from user-space to |
| 629 | * kernel and in the kernel response back to user-space. |
| 630 | */ |
| 631 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE, |
| 632 | /* An array of 32-unsigned values; values are frequency (MHz); sent |
| 633 | * from kernel space to user space. |
| 634 | */ |
| 635 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST, |
| 636 | /* keep last */ |
| 637 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST, |
| 638 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX = |
| 639 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1 |
| 640 | }; |
| 641 | |
| 642 | enum qca_vendor_attr_probable_oper_channel { |
| 643 | QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID, |
| 644 | /* 32-bit unsigned value; indicates the connection/iface type likely to |
| 645 | * come on this channel (see enum qca_iface_type). |
| 646 | */ |
| 647 | QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE, |
| 648 | /* 32-bit unsigned value; the frequency (MHz) of the probable channel */ |
| 649 | QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ, |
| 650 | /* keep last */ |
| 651 | QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST, |
| 652 | QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX = |
| 653 | QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1 |
| 654 | }; |
| 655 | |
| 656 | enum qca_iface_type { |
| 657 | QCA_IFACE_TYPE_STA, |
| 658 | QCA_IFACE_TYPE_AP, |
| 659 | QCA_IFACE_TYPE_P2P_CLIENT, |
| 660 | QCA_IFACE_TYPE_P2P_GO, |
| 661 | QCA_IFACE_TYPE_IBSS, |
| 662 | QCA_IFACE_TYPE_TDLS, |
| 663 | }; |
| 664 | |
| 665 | enum qca_set_band { |
| 666 | QCA_SETBAND_AUTO, |
| 667 | QCA_SETBAND_5G, |
| 668 | QCA_SETBAND_2G, |
| 669 | }; |
| 670 | |
Dmitry Shmidt | 1702232 | 2016-04-06 13:28:42 -0700 | [diff] [blame] | 671 | /** |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 672 | * enum qca_access_policy - Access control policy |
| 673 | * |
| 674 | * Access control policy is applied on the configured IE |
| 675 | * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE). |
| 676 | * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY. |
| 677 | * |
| 678 | * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match |
| 679 | * the specific configuration (IE) set, i.e., allow all the |
| 680 | * connections which do not match the configuration. |
| 681 | * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match |
| 682 | * the specific configuration (IE) set, i.e., deny all the |
| 683 | * connections which do not match the configuration. |
| 684 | */ |
| 685 | enum qca_access_policy { |
| 686 | QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED, |
| 687 | QCA_ACCESS_POLICY_DENY_UNLESS_LISTED, |
| 688 | }; |
| 689 | |
| 690 | /** |
Dmitry Shmidt | 1702232 | 2016-04-06 13:28:42 -0700 | [diff] [blame] | 691 | * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture |
| 692 | * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32) |
| 693 | * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value |
| 694 | * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized |
| 695 | * SOC timer value at TSF capture |
| 696 | */ |
| 697 | enum qca_vendor_attr_tsf_cmd { |
| 698 | QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0, |
| 699 | QCA_WLAN_VENDOR_ATTR_TSF_CMD, |
| 700 | QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE, |
| 701 | QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE, |
| 702 | QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST, |
| 703 | QCA_WLAN_VENDOR_ATTR_TSF_MAX = |
| 704 | QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1 |
| 705 | }; |
| 706 | |
| 707 | /** |
| 708 | * enum qca_tsf_operation: TSF driver commands |
| 709 | * @QCA_TSF_CAPTURE: Initiate TSF Capture |
| 710 | * @QCA_TSF_GET: Get TSF capture value |
| 711 | * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value |
| 712 | */ |
| 713 | enum qca_tsf_cmd { |
| 714 | QCA_TSF_CAPTURE, |
| 715 | QCA_TSF_GET, |
| 716 | QCA_TSF_SYNC_GET, |
| 717 | }; |
| 718 | |
| 719 | /** |
| 720 | * enum qca_vendor_attr_wisa_cmd |
| 721 | * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32) |
| 722 | * WISA setup vendor commands |
| 723 | */ |
| 724 | enum qca_vendor_attr_wisa_cmd { |
| 725 | QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0, |
| 726 | QCA_WLAN_VENDOR_ATTR_WISA_MODE, |
| 727 | QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST, |
| 728 | QCA_WLAN_VENDOR_ATTR_WISA_MAX = |
| 729 | QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1 |
| 730 | }; |
| 731 | |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 732 | /* IEEE 802.11 Vendor Specific elements */ |
| 733 | |
| 734 | /** |
| 735 | * enum qca_vendor_element_id - QCA Vendor Specific element types |
| 736 | * |
| 737 | * These values are used to identify QCA Vendor Specific elements. The |
| 738 | * payload of the element starts with the three octet OUI (OUI_QCA) and |
| 739 | * is followed by a single octet type which is defined by this enum. |
| 740 | * |
| 741 | * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list. |
| 742 | * This element can be used to specify preference order for supported |
| 743 | * channels. The channels in this list are in preference order (the first |
| 744 | * one has the highest preference) and are described as a pair of |
| 745 | * (global) Operating Class and Channel Number (each one octet) fields. |
| 746 | * |
| 747 | * This extends the standard P2P functionality by providing option to have |
| 748 | * more than one preferred operating channel. When this element is present, |
| 749 | * it replaces the preference indicated in the Operating Channel attribute. |
| 750 | * For supporting other implementations, the Operating Channel attribute is |
| 751 | * expected to be used with the highest preference channel. Similarly, all |
| 752 | * the channels included in this Preferred channel list element are |
| 753 | * expected to be included in the Channel List attribute. |
| 754 | * |
| 755 | * This vendor element may be included in GO Negotiation Request, P2P |
| 756 | * Invitation Request, and Provision Discovery Request frames. |
Dmitry Shmidt | 4ae50e6 | 2016-06-27 13:48:39 -0700 | [diff] [blame] | 757 | * |
| 758 | * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element. |
| 759 | * This element can be used for pre-standard publication testing of HE |
| 760 | * before P802.11ax draft assigns the element ID. The payload of this |
| 761 | * vendor specific element is defined by the latest P802.11ax draft. |
| 762 | * Please note that the draft is still work in progress and this element |
| 763 | * payload is subject to change. |
| 764 | * |
| 765 | * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element. |
| 766 | * This element can be used for pre-standard publication testing of HE |
| 767 | * before P802.11ax draft assigns the element ID. The payload of this |
| 768 | * vendor specific element is defined by the latest P802.11ax draft. |
| 769 | * Please note that the draft is still work in progress and this element |
| 770 | * payload is subject to change. |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 771 | */ |
| 772 | enum qca_vendor_element_id { |
| 773 | QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0, |
Dmitry Shmidt | 4ae50e6 | 2016-06-27 13:48:39 -0700 | [diff] [blame] | 774 | QCA_VENDOR_ELEM_HE_CAPAB = 1, |
| 775 | QCA_VENDOR_ELEM_HE_OPER = 2, |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 776 | }; |
| 777 | |
| 778 | /** |
| 779 | * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes |
| 780 | * |
| 781 | * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan |
| 782 | * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes |
| 783 | * with frequencies to be scanned (in MHz) |
| 784 | * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned |
| 785 | * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported |
| 786 | * rates to be included |
| 787 | * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests |
| 788 | * at non CCK rate in 2GHz band |
| 789 | * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags |
| 790 | * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the |
| 791 | * driver for the specific scan request |
| 792 | * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan |
| 793 | * request decoded as in enum scan_status |
| 794 | * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation |
| 795 | * scan flag is set |
| 796 | * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with |
| 797 | * randomisation |
| 798 | */ |
| 799 | enum qca_wlan_vendor_attr_scan { |
| 800 | QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0, |
| 801 | QCA_WLAN_VENDOR_ATTR_SCAN_IE, |
| 802 | QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES, |
| 803 | QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS, |
| 804 | QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES, |
| 805 | QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE, |
| 806 | QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS, |
| 807 | QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE, |
| 808 | QCA_WLAN_VENDOR_ATTR_SCAN_STATUS, |
| 809 | QCA_WLAN_VENDOR_ATTR_SCAN_MAC, |
| 810 | QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK, |
| 811 | QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST, |
| 812 | QCA_WLAN_VENDOR_ATTR_SCAN_MAX = |
| 813 | QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1 |
| 814 | }; |
| 815 | |
| 816 | /** |
| 817 | * enum scan_status - Specifies the valid values the vendor scan attribute |
| 818 | * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take |
| 819 | * |
| 820 | * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with |
| 821 | * new scan results |
| 822 | * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between |
| 823 | */ |
| 824 | enum scan_status { |
| 825 | VENDOR_SCAN_STATUS_NEW_RESULTS, |
| 826 | VENDOR_SCAN_STATUS_ABORTED, |
| 827 | VENDOR_SCAN_STATUS_MAX, |
| 828 | }; |
| 829 | |
| 830 | /** |
| 831 | * enum qca_vendor_attr_ota_test - Specifies the values for vendor |
| 832 | * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST |
| 833 | * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test |
| 834 | */ |
| 835 | enum qca_vendor_attr_ota_test { |
| 836 | QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID, |
| 837 | /* 8-bit unsigned value to indicate if OTA test is enabled */ |
| 838 | QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE, |
| 839 | /* keep last */ |
| 840 | QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST, |
| 841 | QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX = |
| 842 | QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1 |
| 843 | }; |
| 844 | |
| 845 | /** |
| 846 | * enum qca_vendor_attr_txpower_scale - vendor sub commands index |
| 847 | * |
| 848 | * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value |
| 849 | */ |
| 850 | enum qca_vendor_attr_txpower_scale { |
| 851 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID, |
| 852 | /* 8-bit unsigned value to indicate the scaling of tx power */ |
| 853 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE, |
| 854 | /* keep last */ |
| 855 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST, |
| 856 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX = |
| 857 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1 |
| 858 | }; |
| 859 | |
Dmitry Shmidt | d7ff03d | 2015-12-04 14:49:35 -0800 | [diff] [blame] | 860 | /** |
| 861 | * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease |
| 862 | * |
| 863 | * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB. |
| 864 | */ |
| 865 | enum qca_vendor_attr_txpower_decr_db { |
| 866 | QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID, |
| 867 | /* 8-bit unsigned value to indicate the reduction of TX power in dB for |
| 868 | * a virtual interface. */ |
| 869 | QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB, |
| 870 | /* keep last */ |
| 871 | QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST, |
| 872 | QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX = |
| 873 | QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1 |
| 874 | }; |
| 875 | |
Dmitry Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 876 | /* Attributes for data used by |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 877 | * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and |
| 878 | * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands. |
Dmitry Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 879 | */ |
| 880 | enum qca_wlan_vendor_attr_config { |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 881 | QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0, |
Dmitry Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 882 | /* Unsigned 32-bit value to set the DTIM period. |
| 883 | * Whether the wifi chipset wakes at every dtim beacon or a multiple of |
| 884 | * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3 |
| 885 | * DTIM beacons. |
| 886 | */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 887 | QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1, |
Dmitry Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 888 | /* Unsigned 32-bit value to set the wifi_iface stats averaging factor |
| 889 | * used to calculate statistics like average the TSF offset or average |
| 890 | * number of frame leaked. |
| 891 | * For instance, upon Beacon frame reception: |
| 892 | * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000 |
| 893 | * For instance, when evaluating leaky APs: |
| 894 | * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000 |
| 895 | */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 896 | QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2, |
Dmitry Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 897 | /* Unsigned 32-bit value to configure guard time, i.e., when |
| 898 | * implementing IEEE power management based on frame control PM bit, how |
| 899 | * long the driver waits before shutting down the radio and after |
| 900 | * receiving an ACK frame for a Data frame with PM bit set. |
| 901 | */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 902 | QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3, |
Dmitry Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 903 | /* Unsigned 32-bit value to change the FTM capability dynamically */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 904 | QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4, |
Dmitry Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 905 | /* Unsigned 16-bit value to configure maximum TX rate dynamically */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 906 | QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5, |
Dmitry Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 907 | /* Unsigned 32-bit value to configure the number of continuous |
| 908 | * Beacon Miss which shall be used by the firmware to penalize |
| 909 | * the RSSI. |
| 910 | */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 911 | QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6, |
Dmitry Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 912 | /* Unsigned 8-bit value to configure the channel avoidance indication |
| 913 | * behavior. Firmware to send only one indication and ignore duplicate |
| 914 | * indications when set to avoid multiple Apps wakeups. |
| 915 | */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 916 | QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7, |
Dmitry Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 917 | /* 8-bit unsigned value to configure the maximum TX MPDU for |
| 918 | * aggregation. */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 919 | QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8, |
Dmitry Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 920 | /* 8-bit unsigned value to configure the maximum RX MPDU for |
| 921 | * aggregation. */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 922 | QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9, |
Dmitry Shmidt | 58d12ad | 2016-07-28 10:07:03 -0700 | [diff] [blame] | 923 | /* 8-bit unsigned value to configure the Non aggregrate/11g sw |
| 924 | * retry threshold (0 disable, 31 max). */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 925 | QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10, |
Dmitry Shmidt | 58d12ad | 2016-07-28 10:07:03 -0700 | [diff] [blame] | 926 | /* 8-bit unsigned value to configure the aggregrate sw |
| 927 | * retry threshold (0 disable, 31 max). */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 928 | QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11, |
Dmitry Shmidt | 58d12ad | 2016-07-28 10:07:03 -0700 | [diff] [blame] | 929 | /* 8-bit unsigned value to configure the MGMT frame |
| 930 | * retry threshold (0 disable, 31 max). */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 931 | QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12, |
Dmitry Shmidt | 58d12ad | 2016-07-28 10:07:03 -0700 | [diff] [blame] | 932 | /* 8-bit unsigned value to configure the CTRL frame |
| 933 | * retry threshold (0 disable, 31 max). */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 934 | QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13, |
Dmitry Shmidt | 58d12ad | 2016-07-28 10:07:03 -0700 | [diff] [blame] | 935 | /* 8-bit unsigned value to configure the propagation delay for |
| 936 | * 2G/5G band (0~63, units in us) */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 937 | QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14, |
Dmitry Shmidt | 58d12ad | 2016-07-28 10:07:03 -0700 | [diff] [blame] | 938 | /* Unsigned 32-bit value to configure the number of unicast TX fail |
| 939 | * packet count. The peer is disconnected once this threshold is |
| 940 | * reached. */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 941 | QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15, |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 942 | /* Attribute used to set scan default IEs to the driver. |
| 943 | * |
| 944 | * These IEs can be used by scan operations that will be initiated by |
| 945 | * the driver/firmware. |
| 946 | * |
| 947 | * For further scan requests coming to the driver, these IEs should be |
| 948 | * merged with the IEs received along with scan request coming to the |
| 949 | * driver. If a particular IE is present in the scan default IEs but not |
| 950 | * present in the scan request, then that IE should be added to the IEs |
| 951 | * sent in the Probe Request frames for that scan request. */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 952 | QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16, |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 953 | /* Unsigned 32-bit attribute for generic commands */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 954 | QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17, |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 955 | /* Unsigned 32-bit value attribute for generic commands */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 956 | QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18, |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 957 | /* Unsigned 32-bit data attribute for generic command response */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 958 | QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19, |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 959 | /* Unsigned 32-bit length attribute for |
| 960 | * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 961 | QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20, |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 962 | /* Unsigned 32-bit flags attribute for |
| 963 | * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 964 | QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21, |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 965 | /* Unsigned 32-bit, defining the access policy. |
| 966 | * See enum qca_access_policy. Used with |
| 967 | * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST. */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 968 | QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22, |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 969 | /* Sets the list of full set of IEs for which a specific access policy |
| 970 | * has to be applied. Used along with |
| 971 | * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access. |
| 972 | * Zero length payload can be used to clear this access constraint. */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 973 | QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23, |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 974 | /* Unsigned 32-bit, specifies the interface index (netdev) for which the |
| 975 | * corresponding configurations are applied. If the interface index is |
| 976 | * not specified, the configurations are attributed to the respective |
| 977 | * wiphy. */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 978 | QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24, |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 979 | /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 980 | QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25, |
Dmitry Shmidt | aca489e | 2016-09-28 15:44:14 -0700 | [diff] [blame] | 981 | /* 8-bit unsigned value to configure the driver and below layers to |
| 982 | * ignore the assoc disallowed set by APs while connecting |
| 983 | * 1-Ignore, 0-Don't ignore */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 984 | QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26, |
Dmitry Shmidt | aca489e | 2016-09-28 15:44:14 -0700 | [diff] [blame] | 985 | /* 32-bit unsigned value to trigger antenna diversity features: |
| 986 | * 1-Enable, 0-Disable */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 987 | QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27, |
Dmitry Shmidt | aca489e | 2016-09-28 15:44:14 -0700 | [diff] [blame] | 988 | /* 32-bit unsigned value to configure specific chain antenna */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 989 | QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28, |
Dmitry Shmidt | aca489e | 2016-09-28 15:44:14 -0700 | [diff] [blame] | 990 | /* 32-bit unsigned value to trigger cycle selftest |
| 991 | * 1-Enable, 0-Disable */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 992 | QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29, |
Dmitry Shmidt | aca489e | 2016-09-28 15:44:14 -0700 | [diff] [blame] | 993 | /* 32-bit unsigned to configure the cycle time of selftest |
| 994 | * the unit is micro-second */ |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 995 | QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30, |
| 996 | /* 32-bit unsigned value to set reorder timeout for AC_VO */ |
| 997 | QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31, |
| 998 | /* 32-bit unsigned value to set reorder timeout for AC_VI */ |
| 999 | QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32, |
| 1000 | /* 32-bit unsigned value to set reorder timeout for AC_BE */ |
| 1001 | QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33, |
| 1002 | /* 32-bit unsigned value to set reorder timeout for AC_BK */ |
| 1003 | QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34, |
| 1004 | /* 6-byte MAC address to point out the specific peer */ |
| 1005 | QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35, |
| 1006 | /* 32-bit unsigned value to set window size for specific peer */ |
| 1007 | QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36, |
Dmitry Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 1008 | |
| 1009 | /* keep last */ |
| 1010 | QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST, |
| 1011 | QCA_WLAN_VENDOR_ATTR_CONFIG_MAX = |
| 1012 | QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1, |
| 1013 | }; |
| 1014 | |
Dmitry Shmidt | d5ab1b5 | 2016-06-21 12:38:41 -0700 | [diff] [blame] | 1015 | /** |
| 1016 | * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration |
| 1017 | */ |
| 1018 | enum qca_wlan_vendor_attr_sap_config { |
| 1019 | QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0, |
| 1020 | /* 1 - reserved for QCA */ |
| 1021 | /* List of frequencies on which AP is expected to operate. |
| 1022 | * This is irrespective of ACS configuration. This list is a priority |
| 1023 | * based one and is looked for before the AP is created to ensure the |
| 1024 | * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in |
| 1025 | * the system. |
| 1026 | */ |
| 1027 | QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2, |
| 1028 | |
| 1029 | QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST, |
| 1030 | QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX = |
| 1031 | QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1, |
| 1032 | }; |
| 1033 | |
Dmitry Shmidt | 58d12ad | 2016-07-28 10:07:03 -0700 | [diff] [blame] | 1034 | /** |
| 1035 | * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP |
| 1036 | * conditional channel switch |
| 1037 | */ |
| 1038 | enum qca_wlan_vendor_attr_sap_conditional_chan_switch { |
| 1039 | QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0, |
| 1040 | /* Priority based frequency list (an array of u32 values in host byte |
| 1041 | * order) */ |
| 1042 | QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1, |
| 1043 | /* Status of the conditional switch (u32). |
| 1044 | * 0: Success, Non-zero: Failure |
| 1045 | */ |
| 1046 | QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2, |
| 1047 | |
| 1048 | QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST, |
| 1049 | QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX = |
| 1050 | QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1, |
| 1051 | }; |
| 1052 | |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 1053 | /** |
| 1054 | * enum qca_wlan_gpio_attr - Parameters for GPIO configuration |
| 1055 | */ |
| 1056 | enum qca_wlan_gpio_attr { |
| 1057 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0, |
| 1058 | /* Unsigned 32-bit attribute for GPIO command */ |
| 1059 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND, |
| 1060 | /* Unsigned 32-bit attribute for GPIO PIN number to configure */ |
| 1061 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM, |
| 1062 | /* Unsigned 32-bit attribute for GPIO value to configure */ |
| 1063 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE, |
| 1064 | /* Unsigned 32-bit attribute for GPIO pull type */ |
| 1065 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE, |
| 1066 | /* Unsigned 32-bit attribute for GPIO interrupt mode */ |
| 1067 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE, |
| 1068 | |
| 1069 | /* keep last */ |
| 1070 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST, |
| 1071 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX = |
| 1072 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1 |
| 1073 | }; |
| 1074 | |
| 1075 | /** |
| 1076 | * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability |
| 1077 | */ |
| 1078 | enum qca_wlan_vendor_attr_get_hw_capability { |
| 1079 | QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID, |
| 1080 | /* Antenna isolation |
| 1081 | * An attribute used in the response. |
| 1082 | * The content of this attribute is encoded in a byte array. Each byte |
| 1083 | * value is an antenna isolation value. The array length is the number |
| 1084 | * of antennas. |
| 1085 | */ |
| 1086 | QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION, |
| 1087 | /* Request HW capability |
| 1088 | * An attribute used in the request. |
| 1089 | * The content of this attribute is a u32 array for one or more of |
| 1090 | * hardware capabilities (attribute IDs) that are being requested. Each |
| 1091 | * u32 value has a value from this |
| 1092 | * enum qca_wlan_vendor_attr_get_hw_capability |
| 1093 | * identifying which capabilities are requested. |
| 1094 | */ |
| 1095 | QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY, |
| 1096 | |
| 1097 | /* keep last */ |
| 1098 | QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST, |
| 1099 | QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX = |
| 1100 | QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1, |
| 1101 | }; |
| 1102 | |
Dmitry Shmidt | 7d17530 | 2016-09-06 13:11:34 -0700 | [diff] [blame] | 1103 | /** |
| 1104 | * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring |
| 1105 | * offload which is an extension for LL_STATS. |
| 1106 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms. |
| 1107 | * If MAC counters do not exceed the threshold, FW will report monitored |
| 1108 | * link layer counters periodically as this setting. The first report is |
| 1109 | * always triggered by this timer. |
| 1110 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99). |
| 1111 | * For each MAC layer counter, FW holds two copies. One is the current value. |
| 1112 | * The other is the last report. Once a current counter's increment is larger |
| 1113 | * than the threshold, FW will indicate that counter to host even if the |
| 1114 | * monitoring timer does not expire. |
| 1115 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change |
| 1116 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU |
| 1117 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same |
| 1118 | * failure code. |
| 1119 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code |
| 1120 | * 1: TX packet discarded |
| 1121 | * 2: No ACK |
| 1122 | * 3: Postpone |
Dmitry Shmidt | aca489e | 2016-09-28 15:44:14 -0700 | [diff] [blame] | 1123 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address |
| 1124 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state |
| 1125 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold. |
| 1126 | * Threshold for all monitored parameters. If per counter dedicated threshold |
| 1127 | * is not enabled, this threshold will take effect. |
| 1128 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this |
| 1129 | * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0. |
| 1130 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID |
| 1131 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID |
| 1132 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters |
| 1133 | * Bit0: TX counter unit in MSDU |
| 1134 | * Bit1: TX counter unit in MPDU |
| 1135 | * Bit2: TX counter unit in PPDU |
| 1136 | * Bit3: TX counter unit in byte |
| 1137 | * Bit4: Dropped MSDUs |
| 1138 | * Bit5: Dropped Bytes |
| 1139 | * Bit6: MPDU retry counter |
| 1140 | * Bit7: MPDU failure counter |
| 1141 | * Bit8: PPDU failure counter |
| 1142 | * Bit9: MPDU aggregation counter |
| 1143 | * Bit10: MCS counter for ACKed MPDUs |
| 1144 | * Bit11: MCS counter for Failed MPDUs |
| 1145 | * Bit12: TX Delay counter |
| 1146 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters |
| 1147 | * Bit0: MAC RX counter unit in MPDU |
| 1148 | * Bit1: MAC RX counter unit in byte |
| 1149 | * Bit2: PHY RX counter unit in PPDU |
| 1150 | * Bit3: PHY RX counter unit in byte |
| 1151 | * Bit4: Disorder counter |
| 1152 | * Bit5: Retry counter |
| 1153 | * Bit6: Duplication counter |
| 1154 | * Bit7: Discard counter |
| 1155 | * Bit8: MPDU aggregation size counter |
| 1156 | * Bit9: MCS counter |
| 1157 | * Bit10: Peer STA power state change (wake to sleep) counter |
| 1158 | * Bit11: Peer STA power save counter, total time in PS mode |
| 1159 | * Bit12: Probe request counter |
| 1160 | * Bit13: Other management frames counter |
| 1161 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA |
| 1162 | * Bit0: Idle time |
| 1163 | * Bit1: TX time |
| 1164 | * Bit2: time RX in current bss |
| 1165 | * Bit3: Out of current bss time |
| 1166 | * Bit4: Wireless medium busy time |
| 1167 | * Bit5: RX in bad condition time |
| 1168 | * Bit6: TX in bad condition time |
| 1169 | * Bit7: time wlan card not available |
| 1170 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal |
| 1171 | * Bit0: Per channel SNR counter |
| 1172 | * Bit1: Per channel noise floor counter |
| 1173 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers |
| 1174 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels |
| 1175 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats |
| 1176 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats |
| 1177 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats |
| 1178 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs |
| 1179 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs |
| 1180 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs |
| 1181 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data |
| 1182 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets |
| 1183 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped |
| 1184 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK |
| 1185 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed |
| 1186 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed |
| 1187 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM: |
| 1188 | * aggregation stats buffer length |
| 1189 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats |
| 1190 | * buffer for ACKed MPDUs. |
| 1191 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats |
| 1192 | * buffer for failed MPDUs. |
| 1193 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE: |
| 1194 | * length of delay stats array. |
| 1195 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats |
| 1196 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs |
| 1197 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs |
| 1198 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats |
| 1199 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received |
| 1200 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received |
| 1201 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received |
| 1202 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received |
| 1203 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost |
| 1204 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets |
| 1205 | * flagged as retransmissions |
| 1206 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets |
| 1207 | * flagged as duplicated |
| 1208 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX |
| 1209 | * packets discarded |
| 1210 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation |
| 1211 | * stats buffer. |
| 1212 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs |
| 1213 | * stats buffer. |
| 1214 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer |
| 1215 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer |
| 1216 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep |
| 1217 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time |
| 1218 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe |
| 1219 | * requests received |
| 1220 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt |
| 1221 | * frames received |
| 1222 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time |
| 1223 | * there is no TX, nor RX, nor interference. |
| 1224 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time |
| 1225 | * transmitting packets. |
| 1226 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time |
| 1227 | * for receiving. |
| 1228 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time |
| 1229 | * interference detected. |
| 1230 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time |
| 1231 | * receiving packets with errors. |
| 1232 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time |
| 1233 | * TX no-ACK. |
| 1234 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time |
| 1235 | * the chip is unable to work in normal conditions. |
| 1236 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time |
| 1237 | * receiving packets in current BSS. |
| 1238 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time |
| 1239 | * receiving packets not in current BSS. |
| 1240 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas |
| 1241 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL: |
| 1242 | * This is a container for per antenna signal stats. |
| 1243 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value |
| 1244 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value |
| 1245 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon |
| 1246 | * @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] | 1247 | */ |
| 1248 | enum qca_wlan_vendor_attr_ll_stats_ext { |
| 1249 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0, |
| 1250 | |
| 1251 | /* Attributes for configurations */ |
| 1252 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD, |
| 1253 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD, |
| 1254 | |
Dmitry Shmidt | aca489e | 2016-09-28 15:44:14 -0700 | [diff] [blame] | 1255 | /* Peer STA power state change */ |
Dmitry Shmidt | 7d17530 | 2016-09-06 13:11:34 -0700 | [diff] [blame] | 1256 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG, |
| 1257 | |
| 1258 | /* TX failure event */ |
| 1259 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID, |
| 1260 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU, |
| 1261 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS, |
| 1262 | |
Dmitry Shmidt | aca489e | 2016-09-28 15:44:14 -0700 | [diff] [blame] | 1263 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE, |
| 1264 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS, |
| 1265 | |
| 1266 | /* MAC counters */ |
| 1267 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL, |
| 1268 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE, |
| 1269 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID, |
| 1270 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID, |
| 1271 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP, |
| 1272 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP, |
| 1273 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP, |
| 1274 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP, |
| 1275 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM, |
| 1276 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM, |
| 1277 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS, |
| 1278 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER, |
| 1279 | |
| 1280 | /* Sub-attributes for PEER_AC_TX */ |
| 1281 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU, |
| 1282 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU, |
| 1283 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU, |
| 1284 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES, |
| 1285 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP, |
| 1286 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES, |
| 1287 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY, |
| 1288 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK, |
| 1289 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK, |
| 1290 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM, |
| 1291 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM, |
| 1292 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM, |
| 1293 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR, |
| 1294 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS, |
| 1295 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS, |
| 1296 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE, |
| 1297 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY, |
| 1298 | |
| 1299 | /* Sub-attributes for PEER_AC_RX */ |
| 1300 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU, |
| 1301 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES, |
| 1302 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU, |
| 1303 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES, |
| 1304 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST, |
| 1305 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY, |
| 1306 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP, |
| 1307 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD, |
| 1308 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM, |
| 1309 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM, |
| 1310 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS, |
| 1311 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR, |
| 1312 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES, |
| 1313 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION, |
| 1314 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ, |
| 1315 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT, |
| 1316 | |
| 1317 | /* Sub-attributes for CCA_BSS */ |
| 1318 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME, |
| 1319 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME, |
| 1320 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME, |
| 1321 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY, |
| 1322 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD, |
| 1323 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD, |
| 1324 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL, |
| 1325 | |
| 1326 | /* sub-attribute for BSS_RX_TIME */ |
| 1327 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME, |
| 1328 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME, |
| 1329 | |
| 1330 | /* Sub-attributes for PEER_SIGNAL */ |
| 1331 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM, |
| 1332 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL, |
| 1333 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR, |
| 1334 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF, |
| 1335 | |
| 1336 | /* Sub-attributes for IFACE_BSS */ |
| 1337 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON, |
| 1338 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON, |
| 1339 | |
Dmitry Shmidt | 7d17530 | 2016-09-06 13:11:34 -0700 | [diff] [blame] | 1340 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST, |
| 1341 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX = |
| 1342 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1 |
| 1343 | }; |
| 1344 | |
| 1345 | /* Attributes for FTM commands and events */ |
| 1346 | |
| 1347 | /** |
| 1348 | * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities |
| 1349 | * |
| 1350 | * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See |
| 1351 | * enum qca_wlan_vendor_attr_loc_capa_flags. |
| 1352 | * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number |
| 1353 | * of measurement sessions that can run concurrently. |
| 1354 | * Default is one session (no session concurrency). |
| 1355 | * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique |
| 1356 | * peers that are supported in running sessions. For example, |
| 1357 | * if the value is 8 and maximum number of sessions is 2, you can |
| 1358 | * have one session with 8 unique peers, or 2 sessions with 4 unique |
| 1359 | * peers each, and so on. |
| 1360 | * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number |
| 1361 | * of bursts per peer, as an exponent (2^value). Default is 0, |
| 1362 | * meaning no multi-burst support. |
| 1363 | * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number |
| 1364 | * of measurement exchanges allowed in a single burst. |
| 1365 | * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement |
| 1366 | * types. A bit mask (unsigned 32 bit value), each bit corresponds |
| 1367 | * to an AOA type as defined by enum qca_vendor_attr_aoa_type. |
| 1368 | */ |
| 1369 | enum qca_wlan_vendor_attr_loc_capa { |
| 1370 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID, |
| 1371 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS, |
| 1372 | QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS, |
| 1373 | QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS, |
| 1374 | QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP, |
| 1375 | QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST, |
| 1376 | QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES, |
| 1377 | /* keep last */ |
| 1378 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST, |
| 1379 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX = |
| 1380 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1, |
| 1381 | }; |
| 1382 | |
| 1383 | /** |
| 1384 | * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags |
| 1385 | * |
| 1386 | * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver |
| 1387 | * can be configured as an FTM responder (for example, an AP that |
| 1388 | * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER |
| 1389 | * will be supported if set. |
| 1390 | * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver |
| 1391 | * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION |
| 1392 | * will be supported if set. |
| 1393 | * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder |
| 1394 | * supports immediate (ASAP) response. |
| 1395 | * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone |
| 1396 | * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS. |
| 1397 | * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports |
| 1398 | * requesting AOA measurements as part of an FTM session. |
| 1399 | */ |
| 1400 | enum qca_wlan_vendor_attr_loc_capa_flags { |
| 1401 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0, |
| 1402 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1, |
| 1403 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2, |
| 1404 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3, |
| 1405 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4, |
| 1406 | }; |
| 1407 | |
| 1408 | /** |
| 1409 | * enum qca_wlan_vendor_attr_ftm_peer_info: Information about |
| 1410 | * a single peer in a measurement session. |
| 1411 | * |
| 1412 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer. |
| 1413 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related |
| 1414 | * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags. |
Dmitry Shmidt | aca489e | 2016-09-28 15:44:14 -0700 | [diff] [blame] | 1415 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of |
Dmitry Shmidt | 7d17530 | 2016-09-06 13:11:34 -0700 | [diff] [blame] | 1416 | * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0 |
| 1417 | * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for |
| 1418 | * list of supported attributes. |
| 1419 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for |
| 1420 | * secure measurement. |
| 1421 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA |
| 1422 | * measurement every <value> bursts. If 0 or not specified, |
| 1423 | * AOA measurements will be disabled for this peer. |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 1424 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where |
| 1425 | * the measurement frames are exchanged. Optional; if not |
| 1426 | * specified, try to locate the peer in the kernel scan |
| 1427 | * results cache and use frequency from there. |
Dmitry Shmidt | 7d17530 | 2016-09-06 13:11:34 -0700 | [diff] [blame] | 1428 | */ |
| 1429 | enum qca_wlan_vendor_attr_ftm_peer_info { |
| 1430 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID, |
| 1431 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR, |
| 1432 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS, |
Dmitry Shmidt | aca489e | 2016-09-28 15:44:14 -0700 | [diff] [blame] | 1433 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS, |
Dmitry Shmidt | 7d17530 | 2016-09-06 13:11:34 -0700 | [diff] [blame] | 1434 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID, |
| 1435 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD, |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 1436 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ, |
Dmitry Shmidt | 7d17530 | 2016-09-06 13:11:34 -0700 | [diff] [blame] | 1437 | /* keep last */ |
| 1438 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST, |
| 1439 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX = |
| 1440 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1, |
| 1441 | }; |
| 1442 | |
| 1443 | /** |
| 1444 | * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags, |
| 1445 | * per-peer |
| 1446 | * |
| 1447 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request |
| 1448 | * immediate (ASAP) response from peer. |
| 1449 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request |
| 1450 | * LCI report from peer. The LCI report includes the absolute |
| 1451 | * location of the peer in "official" coordinates (similar to GPS). |
| 1452 | * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information. |
| 1453 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request |
| 1454 | * Location civic report from peer. The LCR includes the location |
| 1455 | * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0, |
| 1456 | * 11.24.6.7 for more information. |
| 1457 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set, |
| 1458 | * request a secure measurement. |
| 1459 | * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided. |
| 1460 | */ |
| 1461 | enum qca_wlan_vendor_attr_ftm_peer_meas_flags { |
| 1462 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0, |
| 1463 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1, |
| 1464 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2, |
| 1465 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3, |
| 1466 | }; |
| 1467 | |
| 1468 | /** |
| 1469 | * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters |
| 1470 | * |
| 1471 | * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements |
| 1472 | * to perform in a single burst. |
| 1473 | * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to |
| 1474 | * perform, specified as an exponent (2^value). |
| 1475 | * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst |
| 1476 | * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. |
| 1477 | * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts, |
| 1478 | * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must |
| 1479 | * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION. |
| 1480 | */ |
| 1481 | enum qca_wlan_vendor_attr_ftm_meas_param { |
| 1482 | QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID, |
| 1483 | QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST, |
| 1484 | QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP, |
| 1485 | QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION, |
| 1486 | QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD, |
| 1487 | /* keep last */ |
| 1488 | QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST, |
| 1489 | QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX = |
| 1490 | QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1, |
| 1491 | }; |
| 1492 | |
| 1493 | /** |
| 1494 | * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results |
| 1495 | * |
| 1496 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported |
| 1497 | * peer. |
| 1498 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement |
| 1499 | * request for this peer. |
| 1500 | * See enum qca_wlan_vendor_attr_ftm_peer_result_status. |
| 1501 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related |
| 1502 | * to measurement results for this peer. |
| 1503 | * See enum qca_wlan_vendor_attr_ftm_peer_result_flags. |
| 1504 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when |
| 1505 | * request failed and peer requested not to send an additional request |
| 1506 | * for this number of seconds. |
| 1507 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received |
| 1508 | * from peer. In the format specified by IEEE P802.11-REVmc/D7.0, |
| 1509 | * 9.4.2.22.10. |
| 1510 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when |
| 1511 | * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0, |
| 1512 | * 9.4.2.22.13. |
| 1513 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer |
| 1514 | * overridden some measurement request parameters. See |
| 1515 | * enum qca_wlan_vendor_attr_ftm_meas_param. |
| 1516 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement |
| 1517 | * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT. |
| 1518 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement |
| 1519 | * results. Each entry is a nested attribute defined |
| 1520 | * by enum qca_wlan_vendor_attr_ftm_meas. |
| 1521 | */ |
| 1522 | enum qca_wlan_vendor_attr_ftm_peer_result { |
| 1523 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID, |
| 1524 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR, |
| 1525 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS, |
| 1526 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS, |
| 1527 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS, |
| 1528 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI, |
| 1529 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR, |
| 1530 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS, |
| 1531 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS, |
| 1532 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS, |
| 1533 | /* keep last */ |
| 1534 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST, |
| 1535 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX = |
| 1536 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1, |
| 1537 | }; |
| 1538 | |
| 1539 | /** |
| 1540 | * enum qca_wlan_vendor_attr_ftm_peer_result_status |
| 1541 | * |
| 1542 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results |
| 1543 | * will be provided. Peer may have overridden some measurement parameters, |
| 1544 | * in which case overridden parameters will be report by |
| 1545 | * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute. |
| 1546 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable |
| 1547 | * of performing the measurement request. No more results will be sent |
| 1548 | * for this peer in this session. |
| 1549 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request |
| 1550 | * failed, and requested not to send an additional request for number |
| 1551 | * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS |
| 1552 | * attribute. |
| 1553 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation |
| 1554 | * failed. Request was not sent over the air. |
| 1555 | */ |
| 1556 | enum qca_wlan_vendor_attr_ftm_peer_result_status { |
| 1557 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK, |
| 1558 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE, |
| 1559 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED, |
| 1560 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID, |
| 1561 | }; |
| 1562 | |
| 1563 | /** |
| 1564 | * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags |
| 1565 | * for measurement result, per-peer |
| 1566 | * |
| 1567 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set, |
| 1568 | * measurement completed for this peer. No more results will be reported |
| 1569 | * for this peer in this session. |
| 1570 | */ |
| 1571 | enum qca_wlan_vendor_attr_ftm_peer_result_flags { |
| 1572 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0, |
| 1573 | }; |
| 1574 | |
| 1575 | /** |
| 1576 | * enum qca_vendor_attr_loc_session_status: Session completion status code |
| 1577 | * |
| 1578 | * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed |
| 1579 | * successfully. |
| 1580 | * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted |
| 1581 | * by request. |
| 1582 | * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request |
| 1583 | * was invalid and was not started. |
| 1584 | * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error |
| 1585 | * and did not complete normally (for example out of resources). |
| 1586 | */ |
| 1587 | enum qca_vendor_attr_loc_session_status { |
| 1588 | QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK, |
| 1589 | QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED, |
| 1590 | QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID, |
| 1591 | QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED, |
| 1592 | }; |
| 1593 | |
| 1594 | /** |
| 1595 | * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data |
| 1596 | * |
| 1597 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as |
| 1598 | * recorded by responder, in picoseconds. |
| 1599 | * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. |
| 1600 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at |
| 1601 | * initiator, in picoseconds. |
| 1602 | * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. |
| 1603 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by |
| 1604 | * initiator, in picoseconds. |
| 1605 | * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. |
| 1606 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at |
| 1607 | * responder, in picoseconds. |
| 1608 | * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. |
| 1609 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded |
| 1610 | * during this measurement exchange. Optional and will be provided if |
| 1611 | * the hardware can measure it. |
| 1612 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by |
| 1613 | * responder. Not always provided. |
| 1614 | * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. |
| 1615 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by |
| 1616 | * responder. Not always provided. |
| 1617 | * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. |
| 1618 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by |
| 1619 | * initiator. Not always provided. |
| 1620 | * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. |
| 1621 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by |
| 1622 | * initiator. Not always provided. |
| 1623 | * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. |
| 1624 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding. |
| 1625 | */ |
| 1626 | enum qca_wlan_vendor_attr_ftm_meas { |
Dmitry Shmidt | aca489e | 2016-09-28 15:44:14 -0700 | [diff] [blame] | 1627 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID, |
Dmitry Shmidt | 7d17530 | 2016-09-06 13:11:34 -0700 | [diff] [blame] | 1628 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1, |
| 1629 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2, |
| 1630 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3, |
| 1631 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4, |
| 1632 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI, |
| 1633 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR, |
| 1634 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR, |
| 1635 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR, |
| 1636 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR, |
| 1637 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD, |
| 1638 | /* keep last */ |
| 1639 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST, |
| 1640 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX = |
| 1641 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1, |
| 1642 | }; |
| 1643 | |
| 1644 | /** |
| 1645 | * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type |
| 1646 | * |
| 1647 | * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest |
| 1648 | * CIR (channel impulse response) path for each antenna. |
| 1649 | * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude |
| 1650 | * of the strongest CIR path for each antenna. |
| 1651 | */ |
| 1652 | enum qca_wlan_vendor_attr_aoa_type { |
| 1653 | QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE, |
| 1654 | QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP, |
| 1655 | QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX |
| 1656 | }; |
| 1657 | |
Dmitry Shmidt | aca489e | 2016-09-28 15:44:14 -0700 | [diff] [blame] | 1658 | /** |
| 1659 | * enum qca_wlan_vendor_attr_encryption_test - Attributes to |
| 1660 | * validate encryption engine |
| 1661 | * |
| 1662 | * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute. |
| 1663 | * This will be included if the request is for decryption; if not included, |
| 1664 | * the request is treated as a request for encryption by default. |
| 1665 | * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value |
| 1666 | * indicating the key cipher suite. Takes same values as |
| 1667 | * NL80211_ATTR_KEY_CIPHER. |
| 1668 | * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value |
| 1669 | * Key Id to be used for encryption |
| 1670 | * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values. |
| 1671 | * Key (TK) to be used for encryption/decryption |
| 1672 | * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values. |
| 1673 | * Packet number to be specified for encryption/decryption |
| 1674 | * 6 bytes for TKIP/CCMP/GCMP. |
| 1675 | * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values |
| 1676 | * representing the 802.11 packet (header + payload + FCS) that |
| 1677 | * needs to be encrypted/decrypted. |
| 1678 | * Encrypted/decrypted response from the driver will also be sent |
| 1679 | * to userspace with the same attribute. |
| 1680 | */ |
| 1681 | enum qca_wlan_vendor_attr_encryption_test { |
| 1682 | QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0, |
| 1683 | QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION, |
| 1684 | QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER, |
| 1685 | QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID, |
| 1686 | QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK, |
| 1687 | QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN, |
| 1688 | QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA, |
| 1689 | |
| 1690 | /* keep last */ |
| 1691 | QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST, |
| 1692 | QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX = |
| 1693 | QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1 |
| 1694 | }; |
| 1695 | |
Dmitry Shmidt | 9839ecd | 2016-11-07 11:05:47 -0800 | [diff] [blame^] | 1696 | /** |
| 1697 | * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of |
| 1698 | * sector for DMG RF sector operations. |
| 1699 | * |
| 1700 | * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector |
| 1701 | * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector |
| 1702 | */ |
| 1703 | enum qca_wlan_vendor_attr_dmg_rf_sector_type { |
| 1704 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX, |
| 1705 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX, |
| 1706 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX |
| 1707 | }; |
| 1708 | |
| 1709 | /** |
| 1710 | * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for |
| 1711 | * DMG RF sector configuration for a single RF module. |
| 1712 | * The values are defined in a compact way which closely matches |
| 1713 | * the way it is stored in HW registers. |
| 1714 | * The configuration provides values for 32 antennas and 8 distribution |
| 1715 | * amplifiers, and together describes the characteristics of the RF |
| 1716 | * sector - such as a beam in some direction with some gain. |
| 1717 | * |
| 1718 | * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index |
| 1719 | * of RF module for this configuration. |
| 1720 | * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge |
| 1721 | * amplifier gain index. Unsigned 32 bit number containing |
| 1722 | * bits for all 32 antennas. |
| 1723 | * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge |
| 1724 | * amplifier gain index. Unsigned 32 bit number containing |
| 1725 | * bits for all 32 antennas. |
| 1726 | * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge |
| 1727 | * amplifier gain index. Unsigned 32 bit number containing |
| 1728 | * bits for all 32 antennas. |
| 1729 | * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values |
| 1730 | * for first 16 antennas, 2 bits per antenna. |
| 1731 | * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values |
| 1732 | * for last 16 antennas, 2 bits per antenna. |
| 1733 | * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains |
| 1734 | * DTYPE values (3 bits) for each distribution amplifier, followed |
| 1735 | * by X16 switch bits for each distribution amplifier. There are |
| 1736 | * total of 8 distribution amplifiers. |
| 1737 | */ |
| 1738 | enum qca_wlan_vendor_attr_dmg_rf_sector_cfg { |
| 1739 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0, |
| 1740 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1, |
| 1741 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2, |
| 1742 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3, |
| 1743 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4, |
| 1744 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5, |
| 1745 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6, |
| 1746 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7, |
| 1747 | |
| 1748 | /* keep last */ |
| 1749 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST, |
| 1750 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX = |
| 1751 | QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1 |
| 1752 | }; |
| 1753 | |
| 1754 | enum qca_wlan_vendor_attr_ll_stats_set { |
| 1755 | QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0, |
| 1756 | /* Unsigned 32-bit value */ |
| 1757 | QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1, |
| 1758 | QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2, |
| 1759 | /* keep last */ |
| 1760 | QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST, |
| 1761 | QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX = |
| 1762 | QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1, |
| 1763 | }; |
| 1764 | |
| 1765 | enum qca_wlan_vendor_attr_ll_stats_clr { |
| 1766 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0, |
| 1767 | /* Unsigned 32bit bitmap for clearing statistics |
| 1768 | * All radio statistics 0x00000001 |
| 1769 | * cca_busy_time (within radio statistics) 0x00000002 |
| 1770 | * All channel stats (within radio statistics) 0x00000004 |
| 1771 | * All scan statistics (within radio statistics) 0x00000008 |
| 1772 | * All interface statistics 0x00000010 |
| 1773 | * All tx rate statistics (within interface statistics) 0x00000020 |
| 1774 | * All ac statistics (with in interface statistics) 0x00000040 |
| 1775 | * All contention (min, max, avg) statistics (within ac statisctics) |
| 1776 | * 0x00000080. |
| 1777 | */ |
| 1778 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1, |
| 1779 | /* Unsigned 8 bit value: Request to stop statistics collection */ |
| 1780 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2, |
| 1781 | |
| 1782 | /* Unsigned 32 bit bitmap: Response from the driver |
| 1783 | * for the cleared statistics |
| 1784 | */ |
| 1785 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3, |
| 1786 | /* Unsigned 8 bit value: Response from driver/firmware |
| 1787 | * for the stop request |
| 1788 | */ |
| 1789 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4, |
| 1790 | /* keep last */ |
| 1791 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST, |
| 1792 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX = |
| 1793 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1, |
| 1794 | }; |
| 1795 | |
| 1796 | enum qca_wlan_vendor_attr_ll_stats_get { |
| 1797 | QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0, |
| 1798 | /* Unsigned 32 bit value provided by the caller issuing the GET stats |
| 1799 | * command. When reporting the stats results, the driver uses the same |
| 1800 | * value to indicate which GET request the results correspond to. |
| 1801 | */ |
| 1802 | QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1, |
| 1803 | /* Unsigned 32 bit value - bit mask to identify what statistics are |
| 1804 | * requested for retrieval. |
| 1805 | * Radio Statistics 0x00000001 |
| 1806 | * Interface Statistics 0x00000020 |
| 1807 | * All Peer Statistics 0x00000040 |
| 1808 | * Peer Statistics 0x00000080 |
| 1809 | */ |
| 1810 | QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2, |
| 1811 | /* keep last */ |
| 1812 | QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST, |
| 1813 | QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX = |
| 1814 | QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1, |
| 1815 | }; |
| 1816 | |
| 1817 | enum qca_wlan_vendor_attr_ll_stats_results { |
| 1818 | QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0, |
| 1819 | /* Unsigned 32bit value. Used by the driver; must match the request id |
| 1820 | * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command. |
| 1821 | */ |
| 1822 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1, |
| 1823 | |
| 1824 | /* Unsigned 32 bit value */ |
| 1825 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2, |
| 1826 | /* Unsigned 32 bit value */ |
| 1827 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3, |
| 1828 | /* Unsigned 32 bit value */ |
| 1829 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4, |
| 1830 | /* Unsigned 32 bit value */ |
| 1831 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5, |
| 1832 | /* Signed 32 bit value */ |
| 1833 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6, |
| 1834 | /* Signed 32 bit value */ |
| 1835 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7, |
| 1836 | /* Signed 32 bit value */ |
| 1837 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8, |
| 1838 | |
| 1839 | /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are |
| 1840 | * nested within the interface stats. |
| 1841 | */ |
| 1842 | |
| 1843 | /* Interface mode, e.g., STA, SOFTAP, IBSS, etc. |
| 1844 | * Type = enum wifi_interface_mode. |
| 1845 | */ |
| 1846 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9, |
| 1847 | /* Interface MAC address. An array of 6 Unsigned int8 */ |
| 1848 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10, |
| 1849 | /* Type = enum wifi_connection_state, e.g., DISCONNECTED, |
| 1850 | * AUTHENTICATING, etc. valid for STA, CLI only. |
| 1851 | */ |
| 1852 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11, |
| 1853 | /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE |
| 1854 | */ |
| 1855 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12, |
| 1856 | /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */ |
| 1857 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13, |
| 1858 | /* NULL terminated SSID. An array of 33 Unsigned 8bit values */ |
| 1859 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14, |
| 1860 | /* BSSID. An array of 6 unsigned 8 bit values */ |
| 1861 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15, |
| 1862 | /* Country string advertised by AP. An array of 3 unsigned 8 bit |
| 1863 | * values. |
| 1864 | */ |
| 1865 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16, |
| 1866 | /* Country string for this association. An array of 3 unsigned 8 bit |
| 1867 | * values. |
| 1868 | */ |
| 1869 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17, |
| 1870 | |
| 1871 | /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could |
| 1872 | * be nested within the interface stats. |
| 1873 | */ |
| 1874 | |
| 1875 | /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */ |
| 1876 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18, |
| 1877 | /* Unsigned int 32 value corresponding to respective AC */ |
| 1878 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19, |
| 1879 | /* Unsigned int 32 value corresponding to respective AC */ |
| 1880 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20, |
| 1881 | /* Unsigned int 32 value corresponding to respective AC */ |
| 1882 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21, |
| 1883 | /* Unsigned int 32 value corresponding to respective AC */ |
| 1884 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22, |
| 1885 | /* Unsigned int 32 value corresponding to respective AC */ |
| 1886 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23, |
| 1887 | /* Unsigned int 32 value corresponding to respective AC */ |
| 1888 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24, |
| 1889 | /* Unsigned int 32 value corresponding to respective AC */ |
| 1890 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25, |
| 1891 | /* Unsigned int 32 value corresponding to respective AC */ |
| 1892 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26, |
| 1893 | /* Unsigned int 32 value corresponding to respective AC */ |
| 1894 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27, |
| 1895 | /* Unsigned int 32 values corresponding to respective AC */ |
| 1896 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28, |
| 1897 | /* Unsigned int 32 values corresponding to respective AC */ |
| 1898 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29, |
| 1899 | /* Unsigned int 32 values corresponding to respective AC */ |
| 1900 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30, |
| 1901 | /* Unsigned int 32 values corresponding to respective AC */ |
| 1902 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31, |
| 1903 | /* Unsigned int 32 values corresponding to respective AC */ |
| 1904 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32, |
| 1905 | /* Unsigned 32 bit value. Number of peers */ |
| 1906 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33, |
| 1907 | |
| 1908 | /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are |
| 1909 | * nested within the interface stats. |
| 1910 | */ |
| 1911 | |
| 1912 | /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */ |
| 1913 | QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34, |
| 1914 | /* MAC addr corresponding to respective peer. An array of 6 unsigned |
| 1915 | * 8 bit values. |
| 1916 | */ |
| 1917 | QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35, |
| 1918 | /* Unsigned int 32 bit value representing capabilities corresponding |
| 1919 | * to respective peer. |
| 1920 | */ |
| 1921 | QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36, |
| 1922 | /* Unsigned 32 bit value. Number of rates */ |
| 1923 | QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37, |
| 1924 | |
| 1925 | /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* |
| 1926 | * are nested within the rate stat. |
| 1927 | */ |
| 1928 | |
| 1929 | /* Wi-Fi Rate - separate attributes defined for individual fields */ |
| 1930 | |
| 1931 | /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */ |
| 1932 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38, |
| 1933 | /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */ |
| 1934 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39, |
| 1935 | /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */ |
| 1936 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40, |
| 1937 | /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std |
| 1938 | * in the units of 0.5 Mbps HT/VHT it would be MCS index */ |
| 1939 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41, |
| 1940 | |
| 1941 | /* Unsigned 32 bit value. Bit rate in units of 100 kbps */ |
| 1942 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42, |
| 1943 | |
| 1944 | |
| 1945 | /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be |
| 1946 | * nested within the peer info stats. |
| 1947 | */ |
| 1948 | |
| 1949 | /* Unsigned int 32 bit value. Number of successfully transmitted data |
| 1950 | * packets, i.e., with ACK received corresponding to the respective |
| 1951 | * rate. |
| 1952 | */ |
| 1953 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43, |
| 1954 | /* Unsigned int 32 bit value. Number of received data packets |
| 1955 | * corresponding to the respective rate. |
| 1956 | */ |
| 1957 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44, |
| 1958 | /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK |
| 1959 | * received corresponding to the respective rate. |
| 1960 | */ |
| 1961 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45, |
| 1962 | /* Unsigned int 32 bit value. Total number of data packet retries for |
| 1963 | * the respective rate. |
| 1964 | */ |
| 1965 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46, |
| 1966 | /* Unsigned int 32 bit value. Total number of short data packet retries |
| 1967 | * for the respective rate. |
| 1968 | */ |
| 1969 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47, |
| 1970 | /* Unsigned int 32 bit value. Total number of long data packet retries |
| 1971 | * for the respective rate. |
| 1972 | */ |
| 1973 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48, |
| 1974 | |
| 1975 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49, |
| 1976 | /* Unsigned 32 bit value. Total number of msecs the radio is awake |
| 1977 | * accruing over time. |
| 1978 | */ |
| 1979 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50, |
| 1980 | /* Unsigned 32 bit value. Total number of msecs the radio is |
| 1981 | * transmitting accruing over time. |
| 1982 | */ |
| 1983 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51, |
| 1984 | /* Unsigned 32 bit value. Total number of msecs the radio is in active |
| 1985 | * receive accruing over time. |
| 1986 | */ |
| 1987 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52, |
| 1988 | /* Unsigned 32 bit value. Total number of msecs the radio is awake due |
| 1989 | * to all scan accruing over time. |
| 1990 | */ |
| 1991 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53, |
| 1992 | /* Unsigned 32 bit value. Total number of msecs the radio is awake due |
| 1993 | * to NAN accruing over time. |
| 1994 | */ |
| 1995 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54, |
| 1996 | /* Unsigned 32 bit value. Total number of msecs the radio is awake due |
| 1997 | * to GSCAN accruing over time. |
| 1998 | */ |
| 1999 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55, |
| 2000 | /* Unsigned 32 bit value. Total number of msecs the radio is awake due |
| 2001 | * to roam scan accruing over time. |
| 2002 | */ |
| 2003 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56, |
| 2004 | /* Unsigned 32 bit value. Total number of msecs the radio is awake due |
| 2005 | * to PNO scan accruing over time. |
| 2006 | */ |
| 2007 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57, |
| 2008 | /* Unsigned 32 bit value. Total number of msecs the radio is awake due |
| 2009 | * to Hotspot 2.0 scans and GAS exchange accruing over time. |
| 2010 | */ |
| 2011 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58, |
| 2012 | /* Unsigned 32 bit value. Number of channels. */ |
| 2013 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59, |
| 2014 | |
| 2015 | /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could |
| 2016 | * be nested within the channel stats. |
| 2017 | */ |
| 2018 | |
| 2019 | /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */ |
| 2020 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60, |
| 2021 | /* Unsigned 32 bit value. Primary 20 MHz channel. */ |
| 2022 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61, |
| 2023 | /* Unsigned 32 bit value. Center frequency (MHz) first segment. */ |
| 2024 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62, |
| 2025 | /* Unsigned 32 bit value. Center frequency (MHz) second segment. */ |
| 2026 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63, |
| 2027 | |
| 2028 | /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be |
| 2029 | * nested within the radio stats. |
| 2030 | */ |
| 2031 | |
| 2032 | /* Unsigned int 32 bit value representing total number of msecs the |
| 2033 | * radio is awake on that channel accruing over time, corresponding to |
| 2034 | * the respective channel. |
| 2035 | */ |
| 2036 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64, |
| 2037 | /* Unsigned int 32 bit value representing total number of msecs the CCA |
| 2038 | * register is busy accruing over time corresponding to the respective |
| 2039 | * channel. |
| 2040 | */ |
| 2041 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65, |
| 2042 | |
| 2043 | QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66, |
| 2044 | |
| 2045 | /* Signifies the nested list of channel attributes |
| 2046 | * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* |
| 2047 | */ |
| 2048 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67, |
| 2049 | |
| 2050 | /* Signifies the nested list of peer info attributes |
| 2051 | * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* |
| 2052 | */ |
| 2053 | QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68, |
| 2054 | |
| 2055 | /* Signifies the nested list of rate info attributes |
| 2056 | * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* |
| 2057 | */ |
| 2058 | QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69, |
| 2059 | |
| 2060 | /* Signifies the nested list of wmm info attributes |
| 2061 | * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* |
| 2062 | */ |
| 2063 | QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70, |
| 2064 | |
| 2065 | /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates |
| 2066 | * that more stats, e.g., peers or radio, are to follow in the next |
| 2067 | * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event. |
| 2068 | * Otherwise, it is set to 0. |
| 2069 | */ |
| 2070 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71, |
| 2071 | |
| 2072 | /* Unsigned 64 bit value */ |
| 2073 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72, |
| 2074 | |
| 2075 | /* Unsigned 32 bit value */ |
| 2076 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73, |
| 2077 | |
| 2078 | /* Unsigned 32 bit value */ |
| 2079 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74, |
| 2080 | |
| 2081 | /* Unsigned 32 bit value */ |
| 2082 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75, |
| 2083 | |
| 2084 | /* Unsigned 32 bit value */ |
| 2085 | QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76, |
| 2086 | |
| 2087 | /* Unsigned 32 bit value */ |
| 2088 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77, |
| 2089 | |
| 2090 | /* Number of msecs the radio spent in transmitting for each power level |
| 2091 | */ |
| 2092 | QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78, |
| 2093 | |
| 2094 | /* Unsigned 32 bit value */ |
| 2095 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79, |
| 2096 | /* Unsigned 32 bit value */ |
| 2097 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80, |
| 2098 | /* Unsigned 32 bit value */ |
| 2099 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81, |
| 2100 | /* Unsigned 32 bit value */ |
| 2101 | QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82, |
| 2102 | |
| 2103 | /* keep last */ |
| 2104 | QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST, |
| 2105 | QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX = |
| 2106 | QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1, |
| 2107 | }; |
| 2108 | |
| 2109 | enum qca_wlan_vendor_attr_ll_stats_type |
| 2110 | { |
| 2111 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0, |
| 2112 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1, |
| 2113 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2, |
| 2114 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3, |
| 2115 | |
| 2116 | /* keep last */ |
| 2117 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST, |
| 2118 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX = |
| 2119 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1, |
| 2120 | }; |
| 2121 | |
| 2122 | /** |
| 2123 | * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for |
| 2124 | * TDLS configuration to the host driver. |
| 2125 | * |
| 2126 | * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger |
| 2127 | * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode |
| 2128 | * represents the different TDLS trigger modes. |
| 2129 | * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within |
| 2130 | * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number |
| 2131 | * of packets shall meet the criteria for implicit TDLS setup. |
| 2132 | * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets |
| 2133 | * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD |
| 2134 | * to initiate a TDLS setup. |
| 2135 | * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate |
| 2136 | * a TDLS Discovery to the peer. |
| 2137 | * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of |
| 2138 | * discovery attempts to know the TDLS capability of the peer. A peer is |
| 2139 | * marked as TDLS not capable if there is no response for all the attempts. |
| 2140 | * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32) |
| 2141 | * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD |
| 2142 | * number of TX / RX frames meet the criteria for TDLS teardown. |
| 2143 | * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32) |
| 2144 | * of Tx/Rx packets within a duration |
| 2145 | * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link. |
| 2146 | * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold |
| 2147 | * corresponding to the RSSI of the peer below which a TDLS setup is |
| 2148 | * triggered. |
| 2149 | * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold |
| 2150 | * corresponding to the RSSI of the peer above which a TDLS teardown is |
| 2151 | * triggered. |
| 2152 | */ |
| 2153 | enum qca_wlan_vendor_attr_tdls_configuration { |
| 2154 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0, |
| 2155 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1, |
| 2156 | |
| 2157 | /* Attributes configuring the TDLS Implicit Trigger */ |
| 2158 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2, |
| 2159 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3, |
| 2160 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4, |
| 2161 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5, |
| 2162 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6, |
| 2163 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7, |
| 2164 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8, |
| 2165 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9, |
| 2166 | |
| 2167 | /* keep last */ |
| 2168 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST, |
| 2169 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX = |
| 2170 | QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1 |
| 2171 | }; |
| 2172 | |
| 2173 | /** |
| 2174 | * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in |
| 2175 | * the driver |
| 2176 | * |
| 2177 | * The following are the different values for |
| 2178 | * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE. |
| 2179 | * |
| 2180 | * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown |
| 2181 | * the TDLS connection to a respective peer comes from the user space. |
| 2182 | * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN, |
| 2183 | * TDLS_DISCOVER to do this. |
| 2184 | * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS |
| 2185 | * setup/teardown to the eligible peer once the configured criteria |
| 2186 | * (such as TX/RX threshold, RSSI) is met. The attributes |
| 2187 | * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to |
| 2188 | * the different configuration criteria for the TDLS trigger from the |
| 2189 | * host driver. |
| 2190 | * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger |
| 2191 | * the TDLS setup / teardown through the implicit mode only to the |
| 2192 | * configured MAC addresses (wpa_supplicant, with tdls_external_control=1, |
| 2193 | * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands). |
| 2194 | * External mode works on top of the implicit mode. Thus the host driver |
| 2195 | * is expected to configure in TDLS Implicit mode too to operate in |
| 2196 | * External mode. |
| 2197 | * Configuring External mode alone without Implicit mode is invalid. |
| 2198 | * |
| 2199 | * All the above implementations work as expected only when the host driver |
| 2200 | * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing |
| 2201 | * that the TDLS message exchange is not internal to the host driver, but |
| 2202 | * depends on wpa_supplicant to do the message exchange. |
| 2203 | */ |
| 2204 | enum qca_wlan_vendor_tdls_trigger_mode { |
| 2205 | QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0, |
| 2206 | QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1, |
| 2207 | QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2, |
| 2208 | }; |
| 2209 | |
Dmitry Shmidt | cf32e60 | 2014-01-28 10:57:39 -0800 | [diff] [blame] | 2210 | #endif /* QCA_VENDOR_H */ |