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