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 |
| 167 | * QCA_WLAN_VENDOR_ATTR_MAC_ADDR and measurement type in |
| 168 | * QCA_WLAN_VENDOR_ATTR_AOA_TYPE. Measurement result is reported in |
| 169 | * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event. |
| 170 | * |
| 171 | * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify |
| 172 | * peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR. |
| 173 | * |
| 174 | * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports |
| 175 | * the AOA measurement result. |
| 176 | * Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR. |
| 177 | * success/failure status is reported in |
| 178 | * QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS. |
| 179 | * Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT. |
| 180 | * The antenna array(s) used in the measurement are reported in |
| 181 | * QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK. |
Dmitry Shmidt | cf32e60 | 2014-01-28 10:57:39 -0800 | [diff] [blame] | 182 | */ |
| 183 | enum qca_nl80211_vendor_subcmds { |
| 184 | QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0, |
| 185 | QCA_NL80211_VENDOR_SUBCMD_TEST = 1, |
Dmitry Shmidt | 661b4f7 | 2014-09-29 14:58:27 -0700 | [diff] [blame] | 186 | /* subcmds 2..8 not yet allocated */ |
| 187 | QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9, |
Dmitry Shmidt | cf32e60 | 2014-01-28 10:57:39 -0800 | [diff] [blame] | 188 | QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10, |
Dmitry Shmidt | d11f019 | 2014-03-24 12:09:47 -0700 | [diff] [blame] | 189 | QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11, |
Dmitry Shmidt | 21de214 | 2014-04-08 10:50:52 -0700 | [diff] [blame] | 190 | QCA_NL80211_VENDOR_SUBCMD_NAN = 12, |
Dmitry Shmidt | 7832adb | 2014-04-29 10:53:02 -0700 | [diff] [blame] | 191 | QCA_NL80211_VENDOR_SUBMCD_STATS_EXT = 13, |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 192 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14, |
| 193 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15, |
| 194 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16, |
| 195 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17, |
| 196 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18, |
| 197 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19, |
| 198 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20, |
| 199 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21, |
| 200 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22, |
| 201 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23, |
| 202 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24, |
| 203 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25, |
| 204 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26, |
| 205 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27, |
| 206 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28, |
| 207 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29, |
| 208 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30, |
| 209 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31, |
| 210 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32, |
| 211 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33, |
| 212 | QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34, |
| 213 | QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35, |
| 214 | QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36, |
| 215 | QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37, |
| 216 | QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38, |
| 217 | QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39, |
| 218 | QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40, |
| 219 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41, |
| 220 | QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42, |
| 221 | /* 43..49 - reserved for QCA */ |
| 222 | QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50, |
| 223 | QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51, |
| 224 | QCA_NL80211_VENDOR_SUBCMD_APFIND = 52, |
Dmitry Shmidt | 9d9e602 | 2015-04-23 10:34:55 -0700 | [diff] [blame] | 225 | /* 53 - reserved - was used by QCA, but not in use anymore */ |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 226 | QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54, |
| 227 | QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55, |
Dmitry Shmidt | 7f65602 | 2015-02-25 14:36:37 -0800 | [diff] [blame] | 228 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56, |
| 229 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57, |
| 230 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58, |
| 231 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59, |
| 232 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60, |
Dmitry Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 233 | /* 61-73 - reserved for QCA */ |
| 234 | /* Wi-Fi configuration subcommands */ |
| 235 | QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74, |
| 236 | QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75, |
| 237 | /* 76-90 - reserved for QCA */ |
Dmitry Shmidt | 4dd28dc | 2015-03-10 11:21:43 -0700 | [diff] [blame] | 238 | QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91, |
Dmitry Shmidt | 9d9e602 | 2015-04-23 10:34:55 -0700 | [diff] [blame] | 239 | QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92, |
| 240 | QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93, |
| 241 | QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94, |
| 242 | QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95, |
| 243 | QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96, |
| 244 | QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97, |
| 245 | QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98, |
| 246 | QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99, |
| 247 | QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100, |
Dmitry Shmidt | 05df46a | 2015-05-19 11:02:01 -0700 | [diff] [blame] | 248 | QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101, |
Ravi Joshi | e6ccb16 | 2015-07-16 17:45:41 -0700 | [diff] [blame] | 249 | QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102, |
| 250 | QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103, |
| 251 | QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104, |
| 252 | QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105, |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 253 | QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106, |
| 254 | QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107, |
| 255 | QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108, |
| 256 | QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109, |
| 257 | /* 110..114 - reserved for QCA */ |
Dmitry Shmidt | d7ff03d | 2015-12-04 14:49:35 -0800 | [diff] [blame] | 258 | QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115, |
Dmitry Shmidt | d5ab1b5 | 2016-06-21 12:38:41 -0700 | [diff] [blame] | 259 | /* 116..117 - reserved for QCA */ |
| 260 | QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118, |
Dmitry Shmidt | 1702232 | 2016-04-06 13:28:42 -0700 | [diff] [blame] | 261 | QCA_NL80211_VENDOR_SUBCMD_TSF = 119, |
| 262 | QCA_NL80211_VENDOR_SUBCMD_WISA = 120, |
Dmitry Shmidt | d5ab1b5 | 2016-06-21 12:38:41 -0700 | [diff] [blame] | 263 | /* 121 - reserved for QCA */ |
Dmitry Shmidt | 58d12ad | 2016-07-28 10:07:03 -0700 | [diff] [blame] | 264 | QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122, |
| 265 | QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123, |
| 266 | QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124, |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 267 | QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125, |
| 268 | QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126, |
Dmitry Shmidt | 7d17530 | 2016-09-06 13:11:34 -0700 | [diff] [blame^] | 269 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127, |
| 270 | /* FTM/indoor location subcommands */ |
| 271 | QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128, |
| 272 | QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129, |
| 273 | QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130, |
| 274 | QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131, |
| 275 | QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132, |
| 276 | QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133, |
| 277 | QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134, |
| 278 | QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135, |
| 279 | QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136, |
Dmitry Shmidt | cf32e60 | 2014-01-28 10:57:39 -0800 | [diff] [blame] | 280 | }; |
| 281 | |
| 282 | |
Dmitry Shmidt | d11f019 | 2014-03-24 12:09:47 -0700 | [diff] [blame] | 283 | enum qca_wlan_vendor_attr { |
| 284 | QCA_WLAN_VENDOR_ATTR_INVALID = 0, |
| 285 | /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */ |
| 286 | QCA_WLAN_VENDOR_ATTR_DFS = 1, |
Dmitry Shmidt | 21de214 | 2014-04-08 10:50:52 -0700 | [diff] [blame] | 287 | /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */ |
| 288 | QCA_WLAN_VENDOR_ATTR_NAN = 2, |
Dmitry Shmidt | 7832adb | 2014-04-29 10:53:02 -0700 | [diff] [blame] | 289 | /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ |
| 290 | QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3, |
Dmitry Shmidt | 09f57ba | 2014-06-10 16:07:13 -0700 | [diff] [blame] | 291 | /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ |
| 292 | QCA_WLAN_VENDOR_ATTR_IFINDEX = 4, |
Dmitry Shmidt | 661b4f7 | 2014-09-29 14:58:27 -0700 | [diff] [blame] | 293 | /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined |
| 294 | * by enum qca_roaming_policy. */ |
| 295 | QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5, |
| 296 | QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6, |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 297 | /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */ |
| 298 | QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7, |
Dmitry Shmidt | 7f65602 | 2015-02-25 14:36:37 -0800 | [diff] [blame] | 299 | QCA_WLAN_VENDOR_ATTR_TEST = 8, |
Ravi Joshi | e6ccb16 | 2015-07-16 17:45:41 -0700 | [diff] [blame] | 300 | /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */ |
| 301 | /* Unsigned 32-bit value. */ |
| 302 | QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9, |
| 303 | /* Unsigned 32-bit value */ |
| 304 | QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10, |
| 305 | /* Unsigned 32-bit value */ |
| 306 | QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11, |
| 307 | /* Unsigned 32-bit value from enum qca_set_band. */ |
| 308 | QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12, |
Dmitry Shmidt | 7d17530 | 2016-09-06 13:11:34 -0700 | [diff] [blame^] | 309 | /* Dummy (NOP) attribute for 64 bit padding */ |
| 310 | QCA_WLAN_VENDOR_ATTR_PAD = 13, |
| 311 | /* Unique FTM session cookie (Unsigned 64 bit). Specified in |
| 312 | * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in |
| 313 | * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and |
| 314 | * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE. |
| 315 | */ |
| 316 | QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14, |
| 317 | /* Indoor location capabilities, returned by |
| 318 | * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA. |
| 319 | * see enum qca_wlan_vendor_attr_loc_capa. |
| 320 | */ |
| 321 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15, |
| 322 | /* Array of nested attributes containing information about each peer |
| 323 | * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info |
| 324 | * for supported attributes for each peer. |
| 325 | */ |
| 326 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16, |
| 327 | /* Array of nested attributes containing measurement results for |
| 328 | * one or more peers, reported by the |
| 329 | * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event. |
| 330 | * See enum qca_wlan_vendor_attr_peer_result for list of supported |
| 331 | * attributes. |
| 332 | */ |
| 333 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17, |
| 334 | /* Flag attribute for enabling or disabling responder functionality. */ |
| 335 | QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18, |
| 336 | /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER |
| 337 | * command to specify the LCI report that will be sent by |
| 338 | * the responder during a measurement exchange. The format is |
| 339 | * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10. |
| 340 | */ |
| 341 | QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19, |
| 342 | /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER |
| 343 | * command to specify the location civic report that will |
| 344 | * be sent by the responder during a measurement exchange. |
| 345 | * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13. |
| 346 | */ |
| 347 | QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20, |
| 348 | /* Session/measurement completion status code, |
| 349 | * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and |
| 350 | * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT |
| 351 | * see enum qca_vendor_attr_loc_session_status. |
| 352 | */ |
| 353 | QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21, |
| 354 | /* Initial dialog token used by responder (0 if not specified), |
| 355 | * unsigned 8 bit value. |
| 356 | */ |
| 357 | QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22, |
| 358 | /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS |
| 359 | * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if |
| 360 | * AOA measurements are needed as part of an FTM session. |
| 361 | * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See |
| 362 | * enum qca_wlan_vendor_attr_aoa_type. |
| 363 | */ |
| 364 | QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23, |
| 365 | /* A bit mask (unsigned 32 bit value) of antenna arrays used |
| 366 | * by indoor location measurements. Refers to the antenna |
| 367 | * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS. |
| 368 | */ |
| 369 | QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24, |
| 370 | /* AOA measurement data. Its contents depends on the AOA measurement |
| 371 | * type and antenna array mask: |
| 372 | * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values, |
| 373 | * phase of the strongest CIR path for each antenna in the measured |
| 374 | * array(s). |
| 375 | * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16 |
| 376 | * values, phase and amplitude of the strongest CIR path for each |
| 377 | * antenna in the measured array(s). |
| 378 | */ |
| 379 | QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25, |
Dmitry Shmidt | d11f019 | 2014-03-24 12:09:47 -0700 | [diff] [blame] | 380 | /* keep last */ |
| 381 | QCA_WLAN_VENDOR_ATTR_AFTER_LAST, |
| 382 | QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1, |
| 383 | }; |
| 384 | |
Dmitry Shmidt | 661b4f7 | 2014-09-29 14:58:27 -0700 | [diff] [blame] | 385 | |
| 386 | enum qca_roaming_policy { |
| 387 | QCA_ROAMING_NOT_ALLOWED, |
| 388 | QCA_ROAMING_ALLOWED_WITHIN_ESS, |
| 389 | }; |
| 390 | |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 391 | enum qca_wlan_vendor_attr_roam_auth { |
| 392 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0, |
| 393 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID, |
| 394 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE, |
| 395 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE, |
| 396 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED, |
| 397 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR, |
| 398 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK, |
| 399 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK, |
Dmitry Shmidt | d7ff03d | 2015-12-04 14:49:35 -0800 | [diff] [blame] | 400 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS, |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 401 | /* keep last */ |
| 402 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST, |
| 403 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX = |
| 404 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1 |
| 405 | }; |
| 406 | |
Dmitry Shmidt | 58d12ad | 2016-07-28 10:07:03 -0700 | [diff] [blame] | 407 | enum qca_wlan_vendor_attr_p2p_listen_offload { |
| 408 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0, |
| 409 | /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one |
| 410 | * of the social channels. |
| 411 | */ |
| 412 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL, |
| 413 | /* A 32-bit unsigned value; the P2P listen offload period (ms). |
| 414 | */ |
| 415 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD, |
| 416 | /* A 32-bit unsigned value; the P2P listen interval duration (ms). |
| 417 | */ |
| 418 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL, |
| 419 | /* A 32-bit unsigned value; number of interval times the firmware needs |
| 420 | * to run the offloaded P2P listen operation before it stops. |
| 421 | */ |
| 422 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT, |
| 423 | /* An array of arbitrary binary data with one or more 8-byte values. |
| 424 | * The device types include both primary and secondary device types. |
| 425 | */ |
| 426 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES, |
| 427 | /* An array of unsigned 8-bit characters; vendor information elements. |
| 428 | */ |
| 429 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE, |
| 430 | /* A 32-bit unsigned value; a control flag to indicate whether listen |
| 431 | * results need to be flushed to wpa_supplicant. |
| 432 | */ |
| 433 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG, |
| 434 | /* A 8-bit unsigned value; reason code for P2P listen offload stop |
| 435 | * event. |
| 436 | */ |
| 437 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON, |
| 438 | /* keep last */ |
| 439 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST, |
| 440 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX = |
| 441 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1 |
| 442 | }; |
| 443 | |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 444 | enum qca_wlan_vendor_attr_acs_offload { |
| 445 | QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0, |
| 446 | QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL, |
| 447 | QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL, |
| 448 | QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE, |
| 449 | QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED, |
| 450 | QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED, |
Dmitry Shmidt | dda10c2 | 2015-03-24 16:05:01 -0700 | [diff] [blame] | 451 | QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED, |
| 452 | QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH, |
| 453 | QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST, |
| 454 | QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL, |
| 455 | QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL, |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 456 | QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST, |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 457 | /* keep last */ |
| 458 | QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST, |
| 459 | QCA_WLAN_VENDOR_ATTR_ACS_MAX = |
| 460 | QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1 |
| 461 | }; |
| 462 | |
| 463 | enum qca_wlan_vendor_acs_hw_mode { |
| 464 | QCA_ACS_MODE_IEEE80211B, |
| 465 | QCA_ACS_MODE_IEEE80211G, |
| 466 | QCA_ACS_MODE_IEEE80211A, |
| 467 | QCA_ACS_MODE_IEEE80211AD, |
Dmitry Shmidt | b1e5210 | 2015-05-29 12:36:29 -0700 | [diff] [blame] | 468 | QCA_ACS_MODE_IEEE80211ANY, |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 469 | }; |
| 470 | |
| 471 | /** |
| 472 | * enum qca_wlan_vendor_features - Vendor device/driver feature flags |
| 473 | * |
| 474 | * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key |
| 475 | * management offload, a mechanism where the station's firmware |
| 476 | * does the exchange with the AP to establish the temporal keys |
| 477 | * after roaming, rather than having the user space wpa_supplicant do it. |
Dmitry Shmidt | b1e5210 | 2015-05-29 12:36:29 -0700 | [diff] [blame] | 478 | * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic |
| 479 | * band selection based on channel selection results. |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 480 | * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports |
| 481 | * simultaneous off-channel operations. |
Dmitry Shmidt | 58d12ad | 2016-07-28 10:07:03 -0700 | [diff] [blame] | 482 | * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P |
| 483 | * Listen offload; a mechanism where the station's firmware takes care of |
| 484 | * responding to incoming Probe Request frames received from other P2P |
| 485 | * Devices whilst in Listen state, rather than having the user space |
| 486 | * wpa_supplicant do it. Information from received P2P requests are |
| 487 | * forwarded from firmware to host whenever the host processor wakes up. |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 488 | * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits |
| 489 | */ |
| 490 | enum qca_wlan_vendor_features { |
| 491 | QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0, |
Dmitry Shmidt | b1e5210 | 2015-05-29 12:36:29 -0700 | [diff] [blame] | 492 | QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1, |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 493 | QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2, |
Dmitry Shmidt | 58d12ad | 2016-07-28 10:07:03 -0700 | [diff] [blame] | 494 | QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3, |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 495 | NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */ |
| 496 | }; |
| 497 | |
Dmitry Shmidt | 4dd28dc | 2015-03-10 11:21:43 -0700 | [diff] [blame] | 498 | /** |
| 499 | * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication |
| 500 | * |
| 501 | * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to |
| 502 | * the offloaded data. |
| 503 | * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded |
| 504 | * data. |
| 505 | * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload |
| 506 | * indication. |
| 507 | */ |
| 508 | enum qca_wlan_vendor_attr_data_offload_ind { |
| 509 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0, |
| 510 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION, |
| 511 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL, |
| 512 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT, |
| 513 | |
| 514 | /* keep last */ |
| 515 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST, |
| 516 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX = |
| 517 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1 |
| 518 | }; |
Ravi Joshi | e6ccb16 | 2015-07-16 17:45:41 -0700 | [diff] [blame] | 519 | |
| 520 | enum qca_vendor_attr_get_preferred_freq_list { |
| 521 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID, |
| 522 | /* A 32-unsigned value; the interface type/mode for which the preferred |
| 523 | * frequency list is requested (see enum qca_iface_type for possible |
| 524 | * values); used in GET_PREFERRED_FREQ_LIST command from user-space to |
| 525 | * kernel and in the kernel response back to user-space. |
| 526 | */ |
| 527 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE, |
| 528 | /* An array of 32-unsigned values; values are frequency (MHz); sent |
| 529 | * from kernel space to user space. |
| 530 | */ |
| 531 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST, |
| 532 | /* keep last */ |
| 533 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST, |
| 534 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX = |
| 535 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1 |
| 536 | }; |
| 537 | |
| 538 | enum qca_vendor_attr_probable_oper_channel { |
| 539 | QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID, |
| 540 | /* 32-bit unsigned value; indicates the connection/iface type likely to |
| 541 | * come on this channel (see enum qca_iface_type). |
| 542 | */ |
| 543 | QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE, |
| 544 | /* 32-bit unsigned value; the frequency (MHz) of the probable channel */ |
| 545 | QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ, |
| 546 | /* keep last */ |
| 547 | QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST, |
| 548 | QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX = |
| 549 | QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1 |
| 550 | }; |
| 551 | |
| 552 | enum qca_iface_type { |
| 553 | QCA_IFACE_TYPE_STA, |
| 554 | QCA_IFACE_TYPE_AP, |
| 555 | QCA_IFACE_TYPE_P2P_CLIENT, |
| 556 | QCA_IFACE_TYPE_P2P_GO, |
| 557 | QCA_IFACE_TYPE_IBSS, |
| 558 | QCA_IFACE_TYPE_TDLS, |
| 559 | }; |
| 560 | |
| 561 | enum qca_set_band { |
| 562 | QCA_SETBAND_AUTO, |
| 563 | QCA_SETBAND_5G, |
| 564 | QCA_SETBAND_2G, |
| 565 | }; |
| 566 | |
Dmitry Shmidt | 1702232 | 2016-04-06 13:28:42 -0700 | [diff] [blame] | 567 | /** |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 568 | * enum qca_access_policy - Access control policy |
| 569 | * |
| 570 | * Access control policy is applied on the configured IE |
| 571 | * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE). |
| 572 | * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY. |
| 573 | * |
| 574 | * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match |
| 575 | * the specific configuration (IE) set, i.e., allow all the |
| 576 | * connections which do not match the configuration. |
| 577 | * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match |
| 578 | * the specific configuration (IE) set, i.e., deny all the |
| 579 | * connections which do not match the configuration. |
| 580 | */ |
| 581 | enum qca_access_policy { |
| 582 | QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED, |
| 583 | QCA_ACCESS_POLICY_DENY_UNLESS_LISTED, |
| 584 | }; |
| 585 | |
| 586 | /** |
Dmitry Shmidt | 1702232 | 2016-04-06 13:28:42 -0700 | [diff] [blame] | 587 | * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture |
| 588 | * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32) |
| 589 | * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value |
| 590 | * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized |
| 591 | * SOC timer value at TSF capture |
| 592 | */ |
| 593 | enum qca_vendor_attr_tsf_cmd { |
| 594 | QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0, |
| 595 | QCA_WLAN_VENDOR_ATTR_TSF_CMD, |
| 596 | QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE, |
| 597 | QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE, |
| 598 | QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST, |
| 599 | QCA_WLAN_VENDOR_ATTR_TSF_MAX = |
| 600 | QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1 |
| 601 | }; |
| 602 | |
| 603 | /** |
| 604 | * enum qca_tsf_operation: TSF driver commands |
| 605 | * @QCA_TSF_CAPTURE: Initiate TSF Capture |
| 606 | * @QCA_TSF_GET: Get TSF capture value |
| 607 | * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value |
| 608 | */ |
| 609 | enum qca_tsf_cmd { |
| 610 | QCA_TSF_CAPTURE, |
| 611 | QCA_TSF_GET, |
| 612 | QCA_TSF_SYNC_GET, |
| 613 | }; |
| 614 | |
| 615 | /** |
| 616 | * enum qca_vendor_attr_wisa_cmd |
| 617 | * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32) |
| 618 | * WISA setup vendor commands |
| 619 | */ |
| 620 | enum qca_vendor_attr_wisa_cmd { |
| 621 | QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0, |
| 622 | QCA_WLAN_VENDOR_ATTR_WISA_MODE, |
| 623 | QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST, |
| 624 | QCA_WLAN_VENDOR_ATTR_WISA_MAX = |
| 625 | QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1 |
| 626 | }; |
| 627 | |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 628 | /* IEEE 802.11 Vendor Specific elements */ |
| 629 | |
| 630 | /** |
| 631 | * enum qca_vendor_element_id - QCA Vendor Specific element types |
| 632 | * |
| 633 | * These values are used to identify QCA Vendor Specific elements. The |
| 634 | * payload of the element starts with the three octet OUI (OUI_QCA) and |
| 635 | * is followed by a single octet type which is defined by this enum. |
| 636 | * |
| 637 | * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list. |
| 638 | * This element can be used to specify preference order for supported |
| 639 | * channels. The channels in this list are in preference order (the first |
| 640 | * one has the highest preference) and are described as a pair of |
| 641 | * (global) Operating Class and Channel Number (each one octet) fields. |
| 642 | * |
| 643 | * This extends the standard P2P functionality by providing option to have |
| 644 | * more than one preferred operating channel. When this element is present, |
| 645 | * it replaces the preference indicated in the Operating Channel attribute. |
| 646 | * For supporting other implementations, the Operating Channel attribute is |
| 647 | * expected to be used with the highest preference channel. Similarly, all |
| 648 | * the channels included in this Preferred channel list element are |
| 649 | * expected to be included in the Channel List attribute. |
| 650 | * |
| 651 | * This vendor element may be included in GO Negotiation Request, P2P |
| 652 | * Invitation Request, and Provision Discovery Request frames. |
Dmitry Shmidt | 4ae50e6 | 2016-06-27 13:48:39 -0700 | [diff] [blame] | 653 | * |
| 654 | * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element. |
| 655 | * This element can be used for pre-standard publication testing of HE |
| 656 | * before P802.11ax draft assigns the element ID. The payload of this |
| 657 | * vendor specific element is defined by the latest P802.11ax draft. |
| 658 | * Please note that the draft is still work in progress and this element |
| 659 | * payload is subject to change. |
| 660 | * |
| 661 | * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element. |
| 662 | * This element can be used for pre-standard publication testing of HE |
| 663 | * before P802.11ax draft assigns the element ID. The payload of this |
| 664 | * vendor specific element is defined by the latest P802.11ax draft. |
| 665 | * Please note that the draft is still work in progress and this element |
| 666 | * payload is subject to change. |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 667 | */ |
| 668 | enum qca_vendor_element_id { |
| 669 | QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0, |
Dmitry Shmidt | 4ae50e6 | 2016-06-27 13:48:39 -0700 | [diff] [blame] | 670 | QCA_VENDOR_ELEM_HE_CAPAB = 1, |
| 671 | QCA_VENDOR_ELEM_HE_OPER = 2, |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 672 | }; |
| 673 | |
| 674 | /** |
| 675 | * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes |
| 676 | * |
| 677 | * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan |
| 678 | * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes |
| 679 | * with frequencies to be scanned (in MHz) |
| 680 | * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned |
| 681 | * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported |
| 682 | * rates to be included |
| 683 | * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests |
| 684 | * at non CCK rate in 2GHz band |
| 685 | * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags |
| 686 | * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the |
| 687 | * driver for the specific scan request |
| 688 | * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan |
| 689 | * request decoded as in enum scan_status |
| 690 | * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation |
| 691 | * scan flag is set |
| 692 | * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with |
| 693 | * randomisation |
| 694 | */ |
| 695 | enum qca_wlan_vendor_attr_scan { |
| 696 | QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0, |
| 697 | QCA_WLAN_VENDOR_ATTR_SCAN_IE, |
| 698 | QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES, |
| 699 | QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS, |
| 700 | QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES, |
| 701 | QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE, |
| 702 | QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS, |
| 703 | QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE, |
| 704 | QCA_WLAN_VENDOR_ATTR_SCAN_STATUS, |
| 705 | QCA_WLAN_VENDOR_ATTR_SCAN_MAC, |
| 706 | QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK, |
| 707 | QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST, |
| 708 | QCA_WLAN_VENDOR_ATTR_SCAN_MAX = |
| 709 | QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1 |
| 710 | }; |
| 711 | |
| 712 | /** |
| 713 | * enum scan_status - Specifies the valid values the vendor scan attribute |
| 714 | * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take |
| 715 | * |
| 716 | * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with |
| 717 | * new scan results |
| 718 | * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between |
| 719 | */ |
| 720 | enum scan_status { |
| 721 | VENDOR_SCAN_STATUS_NEW_RESULTS, |
| 722 | VENDOR_SCAN_STATUS_ABORTED, |
| 723 | VENDOR_SCAN_STATUS_MAX, |
| 724 | }; |
| 725 | |
| 726 | /** |
| 727 | * enum qca_vendor_attr_ota_test - Specifies the values for vendor |
| 728 | * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST |
| 729 | * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test |
| 730 | */ |
| 731 | enum qca_vendor_attr_ota_test { |
| 732 | QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID, |
| 733 | /* 8-bit unsigned value to indicate if OTA test is enabled */ |
| 734 | QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE, |
| 735 | /* keep last */ |
| 736 | QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST, |
| 737 | QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX = |
| 738 | QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1 |
| 739 | }; |
| 740 | |
| 741 | /** |
| 742 | * enum qca_vendor_attr_txpower_scale - vendor sub commands index |
| 743 | * |
| 744 | * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value |
| 745 | */ |
| 746 | enum qca_vendor_attr_txpower_scale { |
| 747 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID, |
| 748 | /* 8-bit unsigned value to indicate the scaling of tx power */ |
| 749 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE, |
| 750 | /* keep last */ |
| 751 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST, |
| 752 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX = |
| 753 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1 |
| 754 | }; |
| 755 | |
Dmitry Shmidt | d7ff03d | 2015-12-04 14:49:35 -0800 | [diff] [blame] | 756 | /** |
| 757 | * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease |
| 758 | * |
| 759 | * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB. |
| 760 | */ |
| 761 | enum qca_vendor_attr_txpower_decr_db { |
| 762 | QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID, |
| 763 | /* 8-bit unsigned value to indicate the reduction of TX power in dB for |
| 764 | * a virtual interface. */ |
| 765 | QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB, |
| 766 | /* keep last */ |
| 767 | QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST, |
| 768 | QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX = |
| 769 | QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1 |
| 770 | }; |
| 771 | |
Dmitry Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 772 | /* Attributes for data used by |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 773 | * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and |
| 774 | * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands. |
Dmitry Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 775 | */ |
| 776 | enum qca_wlan_vendor_attr_config { |
| 777 | QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID, |
| 778 | /* Unsigned 32-bit value to set the DTIM period. |
| 779 | * Whether the wifi chipset wakes at every dtim beacon or a multiple of |
| 780 | * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3 |
| 781 | * DTIM beacons. |
| 782 | */ |
| 783 | QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM, |
| 784 | /* Unsigned 32-bit value to set the wifi_iface stats averaging factor |
| 785 | * used to calculate statistics like average the TSF offset or average |
| 786 | * number of frame leaked. |
| 787 | * For instance, upon Beacon frame reception: |
| 788 | * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000 |
| 789 | * For instance, when evaluating leaky APs: |
| 790 | * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000 |
| 791 | */ |
| 792 | QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR, |
| 793 | /* Unsigned 32-bit value to configure guard time, i.e., when |
| 794 | * implementing IEEE power management based on frame control PM bit, how |
| 795 | * long the driver waits before shutting down the radio and after |
| 796 | * receiving an ACK frame for a Data frame with PM bit set. |
| 797 | */ |
| 798 | QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME, |
| 799 | /* Unsigned 32-bit value to change the FTM capability dynamically */ |
| 800 | QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT, |
| 801 | /* Unsigned 16-bit value to configure maximum TX rate dynamically */ |
| 802 | QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE, |
| 803 | /* Unsigned 32-bit value to configure the number of continuous |
| 804 | * Beacon Miss which shall be used by the firmware to penalize |
| 805 | * the RSSI. |
| 806 | */ |
| 807 | QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS, |
| 808 | /* Unsigned 8-bit value to configure the channel avoidance indication |
| 809 | * behavior. Firmware to send only one indication and ignore duplicate |
| 810 | * indications when set to avoid multiple Apps wakeups. |
| 811 | */ |
| 812 | QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND, |
| 813 | /* 8-bit unsigned value to configure the maximum TX MPDU for |
| 814 | * aggregation. */ |
| 815 | QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION, |
| 816 | /* 8-bit unsigned value to configure the maximum RX MPDU for |
| 817 | * aggregation. */ |
| 818 | QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION, |
Dmitry Shmidt | 58d12ad | 2016-07-28 10:07:03 -0700 | [diff] [blame] | 819 | /* 8-bit unsigned value to configure the Non aggregrate/11g sw |
| 820 | * retry threshold (0 disable, 31 max). */ |
| 821 | QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY, |
| 822 | /* 8-bit unsigned value to configure the aggregrate sw |
| 823 | * retry threshold (0 disable, 31 max). */ |
| 824 | QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY, |
| 825 | /* 8-bit unsigned value to configure the MGMT frame |
| 826 | * retry threshold (0 disable, 31 max). */ |
| 827 | QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY, |
| 828 | /* 8-bit unsigned value to configure the CTRL frame |
| 829 | * retry threshold (0 disable, 31 max). */ |
| 830 | QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY, |
| 831 | /* 8-bit unsigned value to configure the propagation delay for |
| 832 | * 2G/5G band (0~63, units in us) */ |
| 833 | QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY, |
| 834 | /* Unsigned 32-bit value to configure the number of unicast TX fail |
| 835 | * packet count. The peer is disconnected once this threshold is |
| 836 | * reached. */ |
| 837 | QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT, |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 838 | /* Attribute used to set scan default IEs to the driver. |
| 839 | * |
| 840 | * These IEs can be used by scan operations that will be initiated by |
| 841 | * the driver/firmware. |
| 842 | * |
| 843 | * For further scan requests coming to the driver, these IEs should be |
| 844 | * merged with the IEs received along with scan request coming to the |
| 845 | * driver. If a particular IE is present in the scan default IEs but not |
| 846 | * present in the scan request, then that IE should be added to the IEs |
| 847 | * sent in the Probe Request frames for that scan request. */ |
| 848 | QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES, |
| 849 | /* Unsigned 32-bit attribute for generic commands */ |
| 850 | QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND, |
| 851 | /* Unsigned 32-bit value attribute for generic commands */ |
| 852 | QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE, |
| 853 | /* Unsigned 32-bit data attribute for generic command response */ |
| 854 | QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA, |
| 855 | /* Unsigned 32-bit length attribute for |
| 856 | * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA */ |
| 857 | QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH, |
| 858 | /* Unsigned 32-bit flags attribute for |
| 859 | * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA */ |
| 860 | QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS, |
| 861 | /* Unsigned 32-bit, defining the access policy. |
| 862 | * See enum qca_access_policy. Used with |
| 863 | * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST. */ |
| 864 | QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY, |
| 865 | /* Sets the list of full set of IEs for which a specific access policy |
| 866 | * has to be applied. Used along with |
| 867 | * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access. |
| 868 | * Zero length payload can be used to clear this access constraint. */ |
| 869 | QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST, |
| 870 | /* Unsigned 32-bit, specifies the interface index (netdev) for which the |
| 871 | * corresponding configurations are applied. If the interface index is |
| 872 | * not specified, the configurations are attributed to the respective |
| 873 | * wiphy. */ |
| 874 | QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX, |
| 875 | /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */ |
| 876 | QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER, |
Dmitry Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 877 | |
| 878 | /* keep last */ |
| 879 | QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST, |
| 880 | QCA_WLAN_VENDOR_ATTR_CONFIG_MAX = |
| 881 | QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1, |
| 882 | }; |
| 883 | |
Dmitry Shmidt | d5ab1b5 | 2016-06-21 12:38:41 -0700 | [diff] [blame] | 884 | /** |
| 885 | * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration |
| 886 | */ |
| 887 | enum qca_wlan_vendor_attr_sap_config { |
| 888 | QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0, |
| 889 | /* 1 - reserved for QCA */ |
| 890 | /* List of frequencies on which AP is expected to operate. |
| 891 | * This is irrespective of ACS configuration. This list is a priority |
| 892 | * based one and is looked for before the AP is created to ensure the |
| 893 | * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in |
| 894 | * the system. |
| 895 | */ |
| 896 | QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2, |
| 897 | |
| 898 | QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST, |
| 899 | QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX = |
| 900 | QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1, |
| 901 | }; |
| 902 | |
Dmitry Shmidt | 58d12ad | 2016-07-28 10:07:03 -0700 | [diff] [blame] | 903 | /** |
| 904 | * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP |
| 905 | * conditional channel switch |
| 906 | */ |
| 907 | enum qca_wlan_vendor_attr_sap_conditional_chan_switch { |
| 908 | QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0, |
| 909 | /* Priority based frequency list (an array of u32 values in host byte |
| 910 | * order) */ |
| 911 | QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1, |
| 912 | /* Status of the conditional switch (u32). |
| 913 | * 0: Success, Non-zero: Failure |
| 914 | */ |
| 915 | QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2, |
| 916 | |
| 917 | QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST, |
| 918 | QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX = |
| 919 | QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1, |
| 920 | }; |
| 921 | |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 922 | /** |
| 923 | * enum qca_wlan_gpio_attr - Parameters for GPIO configuration |
| 924 | */ |
| 925 | enum qca_wlan_gpio_attr { |
| 926 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0, |
| 927 | /* Unsigned 32-bit attribute for GPIO command */ |
| 928 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND, |
| 929 | /* Unsigned 32-bit attribute for GPIO PIN number to configure */ |
| 930 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM, |
| 931 | /* Unsigned 32-bit attribute for GPIO value to configure */ |
| 932 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE, |
| 933 | /* Unsigned 32-bit attribute for GPIO pull type */ |
| 934 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE, |
| 935 | /* Unsigned 32-bit attribute for GPIO interrupt mode */ |
| 936 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE, |
| 937 | |
| 938 | /* keep last */ |
| 939 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST, |
| 940 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX = |
| 941 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1 |
| 942 | }; |
| 943 | |
| 944 | /** |
| 945 | * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability |
| 946 | */ |
| 947 | enum qca_wlan_vendor_attr_get_hw_capability { |
| 948 | QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID, |
| 949 | /* Antenna isolation |
| 950 | * An attribute used in the response. |
| 951 | * The content of this attribute is encoded in a byte array. Each byte |
| 952 | * value is an antenna isolation value. The array length is the number |
| 953 | * of antennas. |
| 954 | */ |
| 955 | QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION, |
| 956 | /* Request HW capability |
| 957 | * An attribute used in the request. |
| 958 | * The content of this attribute is a u32 array for one or more of |
| 959 | * hardware capabilities (attribute IDs) that are being requested. Each |
| 960 | * u32 value has a value from this |
| 961 | * enum qca_wlan_vendor_attr_get_hw_capability |
| 962 | * identifying which capabilities are requested. |
| 963 | */ |
| 964 | QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY, |
| 965 | |
| 966 | /* keep last */ |
| 967 | QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST, |
| 968 | QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX = |
| 969 | QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1, |
| 970 | }; |
| 971 | |
Dmitry Shmidt | 7d17530 | 2016-09-06 13:11:34 -0700 | [diff] [blame^] | 972 | /** |
| 973 | * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring |
| 974 | * offload which is an extension for LL_STATS. |
| 975 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms. |
| 976 | * If MAC counters do not exceed the threshold, FW will report monitored |
| 977 | * link layer counters periodically as this setting. The first report is |
| 978 | * always triggered by this timer. |
| 979 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99). |
| 980 | * For each MAC layer counter, FW holds two copies. One is the current value. |
| 981 | * The other is the last report. Once a current counter's increment is larger |
| 982 | * than the threshold, FW will indicate that counter to host even if the |
| 983 | * monitoring timer does not expire. |
| 984 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change |
| 985 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU |
| 986 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same |
| 987 | * failure code. |
| 988 | * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code |
| 989 | * 1: TX packet discarded |
| 990 | * 2: No ACK |
| 991 | * 3: Postpone |
| 992 | */ |
| 993 | enum qca_wlan_vendor_attr_ll_stats_ext { |
| 994 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0, |
| 995 | |
| 996 | /* Attributes for configurations */ |
| 997 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD, |
| 998 | QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD, |
| 999 | |
| 1000 | /* Attributes for events */ |
| 1001 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG, |
| 1002 | |
| 1003 | /* TX failure event */ |
| 1004 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID, |
| 1005 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU, |
| 1006 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS, |
| 1007 | |
| 1008 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST, |
| 1009 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX = |
| 1010 | QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1 |
| 1011 | }; |
| 1012 | |
| 1013 | /* Attributes for FTM commands and events */ |
| 1014 | |
| 1015 | /** |
| 1016 | * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities |
| 1017 | * |
| 1018 | * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See |
| 1019 | * enum qca_wlan_vendor_attr_loc_capa_flags. |
| 1020 | * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number |
| 1021 | * of measurement sessions that can run concurrently. |
| 1022 | * Default is one session (no session concurrency). |
| 1023 | * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique |
| 1024 | * peers that are supported in running sessions. For example, |
| 1025 | * if the value is 8 and maximum number of sessions is 2, you can |
| 1026 | * have one session with 8 unique peers, or 2 sessions with 4 unique |
| 1027 | * peers each, and so on. |
| 1028 | * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number |
| 1029 | * of bursts per peer, as an exponent (2^value). Default is 0, |
| 1030 | * meaning no multi-burst support. |
| 1031 | * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number |
| 1032 | * of measurement exchanges allowed in a single burst. |
| 1033 | * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement |
| 1034 | * types. A bit mask (unsigned 32 bit value), each bit corresponds |
| 1035 | * to an AOA type as defined by enum qca_vendor_attr_aoa_type. |
| 1036 | */ |
| 1037 | enum qca_wlan_vendor_attr_loc_capa { |
| 1038 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID, |
| 1039 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS, |
| 1040 | QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS, |
| 1041 | QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS, |
| 1042 | QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP, |
| 1043 | QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST, |
| 1044 | QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES, |
| 1045 | /* keep last */ |
| 1046 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST, |
| 1047 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX = |
| 1048 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1, |
| 1049 | }; |
| 1050 | |
| 1051 | /** |
| 1052 | * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags |
| 1053 | * |
| 1054 | * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver |
| 1055 | * can be configured as an FTM responder (for example, an AP that |
| 1056 | * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER |
| 1057 | * will be supported if set. |
| 1058 | * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver |
| 1059 | * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION |
| 1060 | * will be supported if set. |
| 1061 | * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder |
| 1062 | * supports immediate (ASAP) response. |
| 1063 | * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone |
| 1064 | * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS. |
| 1065 | * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports |
| 1066 | * requesting AOA measurements as part of an FTM session. |
| 1067 | */ |
| 1068 | enum qca_wlan_vendor_attr_loc_capa_flags { |
| 1069 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0, |
| 1070 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1, |
| 1071 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2, |
| 1072 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3, |
| 1073 | QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4, |
| 1074 | }; |
| 1075 | |
| 1076 | /** |
| 1077 | * enum qca_wlan_vendor_attr_ftm_peer_info: Information about |
| 1078 | * a single peer in a measurement session. |
| 1079 | * |
| 1080 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer. |
| 1081 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related |
| 1082 | * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags. |
| 1083 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAM: Nested attribute of |
| 1084 | * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0 |
| 1085 | * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for |
| 1086 | * list of supported attributes. |
| 1087 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for |
| 1088 | * secure measurement. |
| 1089 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA |
| 1090 | * measurement every <value> bursts. If 0 or not specified, |
| 1091 | * AOA measurements will be disabled for this peer. |
| 1092 | */ |
| 1093 | enum qca_wlan_vendor_attr_ftm_peer_info { |
| 1094 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID, |
| 1095 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR, |
| 1096 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS, |
| 1097 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAM, |
| 1098 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID, |
| 1099 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD, |
| 1100 | /* keep last */ |
| 1101 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST, |
| 1102 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX = |
| 1103 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1, |
| 1104 | }; |
| 1105 | |
| 1106 | /** |
| 1107 | * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags, |
| 1108 | * per-peer |
| 1109 | * |
| 1110 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request |
| 1111 | * immediate (ASAP) response from peer. |
| 1112 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request |
| 1113 | * LCI report from peer. The LCI report includes the absolute |
| 1114 | * location of the peer in "official" coordinates (similar to GPS). |
| 1115 | * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information. |
| 1116 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request |
| 1117 | * Location civic report from peer. The LCR includes the location |
| 1118 | * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0, |
| 1119 | * 11.24.6.7 for more information. |
| 1120 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set, |
| 1121 | * request a secure measurement. |
| 1122 | * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided. |
| 1123 | */ |
| 1124 | enum qca_wlan_vendor_attr_ftm_peer_meas_flags { |
| 1125 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0, |
| 1126 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1, |
| 1127 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2, |
| 1128 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3, |
| 1129 | }; |
| 1130 | |
| 1131 | /** |
| 1132 | * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters |
| 1133 | * |
| 1134 | * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements |
| 1135 | * to perform in a single burst. |
| 1136 | * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to |
| 1137 | * perform, specified as an exponent (2^value). |
| 1138 | * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst |
| 1139 | * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. |
| 1140 | * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts, |
| 1141 | * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must |
| 1142 | * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION. |
| 1143 | */ |
| 1144 | enum qca_wlan_vendor_attr_ftm_meas_param { |
| 1145 | QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID, |
| 1146 | QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST, |
| 1147 | QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP, |
| 1148 | QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION, |
| 1149 | QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD, |
| 1150 | /* keep last */ |
| 1151 | QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST, |
| 1152 | QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX = |
| 1153 | QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1, |
| 1154 | }; |
| 1155 | |
| 1156 | /** |
| 1157 | * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results |
| 1158 | * |
| 1159 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported |
| 1160 | * peer. |
| 1161 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement |
| 1162 | * request for this peer. |
| 1163 | * See enum qca_wlan_vendor_attr_ftm_peer_result_status. |
| 1164 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related |
| 1165 | * to measurement results for this peer. |
| 1166 | * See enum qca_wlan_vendor_attr_ftm_peer_result_flags. |
| 1167 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when |
| 1168 | * request failed and peer requested not to send an additional request |
| 1169 | * for this number of seconds. |
| 1170 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received |
| 1171 | * from peer. In the format specified by IEEE P802.11-REVmc/D7.0, |
| 1172 | * 9.4.2.22.10. |
| 1173 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when |
| 1174 | * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0, |
| 1175 | * 9.4.2.22.13. |
| 1176 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer |
| 1177 | * overridden some measurement request parameters. See |
| 1178 | * enum qca_wlan_vendor_attr_ftm_meas_param. |
| 1179 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement |
| 1180 | * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT. |
| 1181 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement |
| 1182 | * results. Each entry is a nested attribute defined |
| 1183 | * by enum qca_wlan_vendor_attr_ftm_meas. |
| 1184 | */ |
| 1185 | enum qca_wlan_vendor_attr_ftm_peer_result { |
| 1186 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID, |
| 1187 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR, |
| 1188 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS, |
| 1189 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS, |
| 1190 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS, |
| 1191 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI, |
| 1192 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR, |
| 1193 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS, |
| 1194 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS, |
| 1195 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS, |
| 1196 | /* keep last */ |
| 1197 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST, |
| 1198 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX = |
| 1199 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1, |
| 1200 | }; |
| 1201 | |
| 1202 | /** |
| 1203 | * enum qca_wlan_vendor_attr_ftm_peer_result_status |
| 1204 | * |
| 1205 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results |
| 1206 | * will be provided. Peer may have overridden some measurement parameters, |
| 1207 | * in which case overridden parameters will be report by |
| 1208 | * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute. |
| 1209 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable |
| 1210 | * of performing the measurement request. No more results will be sent |
| 1211 | * for this peer in this session. |
| 1212 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request |
| 1213 | * failed, and requested not to send an additional request for number |
| 1214 | * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS |
| 1215 | * attribute. |
| 1216 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation |
| 1217 | * failed. Request was not sent over the air. |
| 1218 | */ |
| 1219 | enum qca_wlan_vendor_attr_ftm_peer_result_status { |
| 1220 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK, |
| 1221 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE, |
| 1222 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED, |
| 1223 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID, |
| 1224 | }; |
| 1225 | |
| 1226 | /** |
| 1227 | * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags |
| 1228 | * for measurement result, per-peer |
| 1229 | * |
| 1230 | * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set, |
| 1231 | * measurement completed for this peer. No more results will be reported |
| 1232 | * for this peer in this session. |
| 1233 | */ |
| 1234 | enum qca_wlan_vendor_attr_ftm_peer_result_flags { |
| 1235 | QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0, |
| 1236 | }; |
| 1237 | |
| 1238 | /** |
| 1239 | * enum qca_vendor_attr_loc_session_status: Session completion status code |
| 1240 | * |
| 1241 | * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed |
| 1242 | * successfully. |
| 1243 | * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted |
| 1244 | * by request. |
| 1245 | * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request |
| 1246 | * was invalid and was not started. |
| 1247 | * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error |
| 1248 | * and did not complete normally (for example out of resources). |
| 1249 | */ |
| 1250 | enum qca_vendor_attr_loc_session_status { |
| 1251 | QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK, |
| 1252 | QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED, |
| 1253 | QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID, |
| 1254 | QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED, |
| 1255 | }; |
| 1256 | |
| 1257 | /** |
| 1258 | * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data |
| 1259 | * |
| 1260 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as |
| 1261 | * recorded by responder, in picoseconds. |
| 1262 | * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. |
| 1263 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at |
| 1264 | * initiator, in picoseconds. |
| 1265 | * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. |
| 1266 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by |
| 1267 | * initiator, in picoseconds. |
| 1268 | * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. |
| 1269 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at |
| 1270 | * responder, in picoseconds. |
| 1271 | * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. |
| 1272 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded |
| 1273 | * during this measurement exchange. Optional and will be provided if |
| 1274 | * the hardware can measure it. |
| 1275 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by |
| 1276 | * responder. Not always provided. |
| 1277 | * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. |
| 1278 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by |
| 1279 | * responder. Not always provided. |
| 1280 | * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. |
| 1281 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by |
| 1282 | * initiator. Not always provided. |
| 1283 | * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. |
| 1284 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by |
| 1285 | * initiator. Not always provided. |
| 1286 | * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. |
| 1287 | * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding. |
| 1288 | */ |
| 1289 | enum qca_wlan_vendor_attr_ftm_meas { |
| 1290 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1, |
| 1291 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2, |
| 1292 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3, |
| 1293 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4, |
| 1294 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI, |
| 1295 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR, |
| 1296 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR, |
| 1297 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR, |
| 1298 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR, |
| 1299 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD, |
| 1300 | /* keep last */ |
| 1301 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST, |
| 1302 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX = |
| 1303 | QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1, |
| 1304 | }; |
| 1305 | |
| 1306 | /** |
| 1307 | * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type |
| 1308 | * |
| 1309 | * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest |
| 1310 | * CIR (channel impulse response) path for each antenna. |
| 1311 | * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude |
| 1312 | * of the strongest CIR path for each antenna. |
| 1313 | */ |
| 1314 | enum qca_wlan_vendor_attr_aoa_type { |
| 1315 | QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE, |
| 1316 | QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP, |
| 1317 | QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX |
| 1318 | }; |
| 1319 | |
Dmitry Shmidt | cf32e60 | 2014-01-28 10:57:39 -0800 | [diff] [blame] | 1320 | #endif /* QCA_VENDOR_H */ |