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 | cf32e60 | 2014-01-28 10:57:39 -0800 | [diff] [blame] | 127 | */ |
| 128 | enum qca_nl80211_vendor_subcmds { |
| 129 | QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0, |
| 130 | QCA_NL80211_VENDOR_SUBCMD_TEST = 1, |
Dmitry Shmidt | 661b4f7 | 2014-09-29 14:58:27 -0700 | [diff] [blame] | 131 | /* subcmds 2..8 not yet allocated */ |
| 132 | QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9, |
Dmitry Shmidt | cf32e60 | 2014-01-28 10:57:39 -0800 | [diff] [blame] | 133 | QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10, |
Dmitry Shmidt | d11f019 | 2014-03-24 12:09:47 -0700 | [diff] [blame] | 134 | QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11, |
Dmitry Shmidt | 21de214 | 2014-04-08 10:50:52 -0700 | [diff] [blame] | 135 | QCA_NL80211_VENDOR_SUBCMD_NAN = 12, |
Dmitry Shmidt | 7832adb | 2014-04-29 10:53:02 -0700 | [diff] [blame] | 136 | QCA_NL80211_VENDOR_SUBMCD_STATS_EXT = 13, |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 137 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14, |
| 138 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15, |
| 139 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16, |
| 140 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17, |
| 141 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18, |
| 142 | QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19, |
| 143 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20, |
| 144 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21, |
| 145 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22, |
| 146 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23, |
| 147 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24, |
| 148 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25, |
| 149 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26, |
| 150 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27, |
| 151 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28, |
| 152 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29, |
| 153 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30, |
| 154 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31, |
| 155 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32, |
| 156 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33, |
| 157 | QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34, |
| 158 | QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35, |
| 159 | QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36, |
| 160 | QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37, |
| 161 | QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38, |
| 162 | QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39, |
| 163 | QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40, |
| 164 | QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41, |
| 165 | QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42, |
| 166 | /* 43..49 - reserved for QCA */ |
| 167 | QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50, |
| 168 | QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51, |
| 169 | QCA_NL80211_VENDOR_SUBCMD_APFIND = 52, |
Dmitry Shmidt | 9d9e602 | 2015-04-23 10:34:55 -0700 | [diff] [blame] | 170 | /* 53 - reserved - was used by QCA, but not in use anymore */ |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 171 | QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54, |
| 172 | QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55, |
Dmitry Shmidt | 7f65602 | 2015-02-25 14:36:37 -0800 | [diff] [blame] | 173 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56, |
| 174 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57, |
| 175 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58, |
| 176 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59, |
| 177 | QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60, |
Dmitry Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 178 | /* 61-73 - reserved for QCA */ |
| 179 | /* Wi-Fi configuration subcommands */ |
| 180 | QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74, |
| 181 | QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75, |
| 182 | /* 76-90 - reserved for QCA */ |
Dmitry Shmidt | 4dd28dc | 2015-03-10 11:21:43 -0700 | [diff] [blame] | 183 | QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91, |
Dmitry Shmidt | 9d9e602 | 2015-04-23 10:34:55 -0700 | [diff] [blame] | 184 | QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92, |
| 185 | QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93, |
| 186 | QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94, |
| 187 | QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95, |
| 188 | QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96, |
| 189 | QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97, |
| 190 | QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98, |
| 191 | QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99, |
| 192 | QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100, |
Dmitry Shmidt | 05df46a | 2015-05-19 11:02:01 -0700 | [diff] [blame] | 193 | QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101, |
Ravi Joshi | e6ccb16 | 2015-07-16 17:45:41 -0700 | [diff] [blame] | 194 | QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102, |
| 195 | QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103, |
| 196 | QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104, |
| 197 | QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105, |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 198 | QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106, |
| 199 | QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107, |
| 200 | QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108, |
| 201 | QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109, |
| 202 | /* 110..114 - reserved for QCA */ |
Dmitry Shmidt | d7ff03d | 2015-12-04 14:49:35 -0800 | [diff] [blame] | 203 | QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115, |
Dmitry Shmidt | d5ab1b5 | 2016-06-21 12:38:41 -0700 | [diff] [blame] | 204 | /* 116..117 - reserved for QCA */ |
| 205 | QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118, |
Dmitry Shmidt | 1702232 | 2016-04-06 13:28:42 -0700 | [diff] [blame] | 206 | QCA_NL80211_VENDOR_SUBCMD_TSF = 119, |
| 207 | QCA_NL80211_VENDOR_SUBCMD_WISA = 120, |
Dmitry Shmidt | d5ab1b5 | 2016-06-21 12:38:41 -0700 | [diff] [blame] | 208 | /* 121 - reserved for QCA */ |
Dmitry Shmidt | 58d12ad | 2016-07-28 10:07:03 -0700 | [diff] [blame] | 209 | QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122, |
| 210 | QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123, |
| 211 | QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124, |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame^] | 212 | QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125, |
| 213 | QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126, |
Dmitry Shmidt | cf32e60 | 2014-01-28 10:57:39 -0800 | [diff] [blame] | 214 | }; |
| 215 | |
| 216 | |
Dmitry Shmidt | d11f019 | 2014-03-24 12:09:47 -0700 | [diff] [blame] | 217 | enum qca_wlan_vendor_attr { |
| 218 | QCA_WLAN_VENDOR_ATTR_INVALID = 0, |
| 219 | /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */ |
| 220 | QCA_WLAN_VENDOR_ATTR_DFS = 1, |
Dmitry Shmidt | 21de214 | 2014-04-08 10:50:52 -0700 | [diff] [blame] | 221 | /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */ |
| 222 | QCA_WLAN_VENDOR_ATTR_NAN = 2, |
Dmitry Shmidt | 7832adb | 2014-04-29 10:53:02 -0700 | [diff] [blame] | 223 | /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ |
| 224 | QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3, |
Dmitry Shmidt | 09f57ba | 2014-06-10 16:07:13 -0700 | [diff] [blame] | 225 | /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ |
| 226 | QCA_WLAN_VENDOR_ATTR_IFINDEX = 4, |
Dmitry Shmidt | 661b4f7 | 2014-09-29 14:58:27 -0700 | [diff] [blame] | 227 | /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined |
| 228 | * by enum qca_roaming_policy. */ |
| 229 | QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5, |
| 230 | QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6, |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 231 | /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */ |
| 232 | QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7, |
Dmitry Shmidt | 7f65602 | 2015-02-25 14:36:37 -0800 | [diff] [blame] | 233 | QCA_WLAN_VENDOR_ATTR_TEST = 8, |
Ravi Joshi | e6ccb16 | 2015-07-16 17:45:41 -0700 | [diff] [blame] | 234 | /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */ |
| 235 | /* Unsigned 32-bit value. */ |
| 236 | QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9, |
| 237 | /* Unsigned 32-bit value */ |
| 238 | QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10, |
| 239 | /* Unsigned 32-bit value */ |
| 240 | QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11, |
| 241 | /* Unsigned 32-bit value from enum qca_set_band. */ |
| 242 | QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12, |
Dmitry Shmidt | d11f019 | 2014-03-24 12:09:47 -0700 | [diff] [blame] | 243 | /* keep last */ |
| 244 | QCA_WLAN_VENDOR_ATTR_AFTER_LAST, |
| 245 | QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1, |
| 246 | }; |
| 247 | |
Dmitry Shmidt | 661b4f7 | 2014-09-29 14:58:27 -0700 | [diff] [blame] | 248 | |
| 249 | enum qca_roaming_policy { |
| 250 | QCA_ROAMING_NOT_ALLOWED, |
| 251 | QCA_ROAMING_ALLOWED_WITHIN_ESS, |
| 252 | }; |
| 253 | |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 254 | enum qca_wlan_vendor_attr_roam_auth { |
| 255 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0, |
| 256 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID, |
| 257 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE, |
| 258 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE, |
| 259 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED, |
| 260 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR, |
| 261 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK, |
| 262 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK, |
Dmitry Shmidt | d7ff03d | 2015-12-04 14:49:35 -0800 | [diff] [blame] | 263 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS, |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 264 | /* keep last */ |
| 265 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST, |
| 266 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX = |
| 267 | QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1 |
| 268 | }; |
| 269 | |
Dmitry Shmidt | 58d12ad | 2016-07-28 10:07:03 -0700 | [diff] [blame] | 270 | enum qca_wlan_vendor_attr_p2p_listen_offload { |
| 271 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0, |
| 272 | /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one |
| 273 | * of the social channels. |
| 274 | */ |
| 275 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL, |
| 276 | /* A 32-bit unsigned value; the P2P listen offload period (ms). |
| 277 | */ |
| 278 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD, |
| 279 | /* A 32-bit unsigned value; the P2P listen interval duration (ms). |
| 280 | */ |
| 281 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL, |
| 282 | /* A 32-bit unsigned value; number of interval times the firmware needs |
| 283 | * to run the offloaded P2P listen operation before it stops. |
| 284 | */ |
| 285 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT, |
| 286 | /* An array of arbitrary binary data with one or more 8-byte values. |
| 287 | * The device types include both primary and secondary device types. |
| 288 | */ |
| 289 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES, |
| 290 | /* An array of unsigned 8-bit characters; vendor information elements. |
| 291 | */ |
| 292 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE, |
| 293 | /* A 32-bit unsigned value; a control flag to indicate whether listen |
| 294 | * results need to be flushed to wpa_supplicant. |
| 295 | */ |
| 296 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG, |
| 297 | /* A 8-bit unsigned value; reason code for P2P listen offload stop |
| 298 | * event. |
| 299 | */ |
| 300 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON, |
| 301 | /* keep last */ |
| 302 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST, |
| 303 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX = |
| 304 | QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1 |
| 305 | }; |
| 306 | |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 307 | enum qca_wlan_vendor_attr_acs_offload { |
| 308 | QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0, |
| 309 | QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL, |
| 310 | QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL, |
| 311 | QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE, |
| 312 | QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED, |
| 313 | QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED, |
Dmitry Shmidt | dda10c2 | 2015-03-24 16:05:01 -0700 | [diff] [blame] | 314 | QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED, |
| 315 | QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH, |
| 316 | QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST, |
| 317 | QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL, |
| 318 | QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL, |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 319 | QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST, |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 320 | /* keep last */ |
| 321 | QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST, |
| 322 | QCA_WLAN_VENDOR_ATTR_ACS_MAX = |
| 323 | QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1 |
| 324 | }; |
| 325 | |
| 326 | enum qca_wlan_vendor_acs_hw_mode { |
| 327 | QCA_ACS_MODE_IEEE80211B, |
| 328 | QCA_ACS_MODE_IEEE80211G, |
| 329 | QCA_ACS_MODE_IEEE80211A, |
| 330 | QCA_ACS_MODE_IEEE80211AD, |
Dmitry Shmidt | b1e5210 | 2015-05-29 12:36:29 -0700 | [diff] [blame] | 331 | QCA_ACS_MODE_IEEE80211ANY, |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 332 | }; |
| 333 | |
| 334 | /** |
| 335 | * enum qca_wlan_vendor_features - Vendor device/driver feature flags |
| 336 | * |
| 337 | * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key |
| 338 | * management offload, a mechanism where the station's firmware |
| 339 | * does the exchange with the AP to establish the temporal keys |
| 340 | * after roaming, rather than having the user space wpa_supplicant do it. |
Dmitry Shmidt | b1e5210 | 2015-05-29 12:36:29 -0700 | [diff] [blame] | 341 | * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic |
| 342 | * band selection based on channel selection results. |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 343 | * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports |
| 344 | * simultaneous off-channel operations. |
Dmitry Shmidt | 58d12ad | 2016-07-28 10:07:03 -0700 | [diff] [blame] | 345 | * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P |
| 346 | * Listen offload; a mechanism where the station's firmware takes care of |
| 347 | * responding to incoming Probe Request frames received from other P2P |
| 348 | * Devices whilst in Listen state, rather than having the user space |
| 349 | * wpa_supplicant do it. Information from received P2P requests are |
| 350 | * forwarded from firmware to host whenever the host processor wakes up. |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 351 | * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits |
| 352 | */ |
| 353 | enum qca_wlan_vendor_features { |
| 354 | QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0, |
Dmitry Shmidt | b1e5210 | 2015-05-29 12:36:29 -0700 | [diff] [blame] | 355 | QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1, |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 356 | QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2, |
Dmitry Shmidt | 58d12ad | 2016-07-28 10:07:03 -0700 | [diff] [blame] | 357 | QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3, |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 358 | NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */ |
| 359 | }; |
| 360 | |
Dmitry Shmidt | 4dd28dc | 2015-03-10 11:21:43 -0700 | [diff] [blame] | 361 | /** |
| 362 | * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication |
| 363 | * |
| 364 | * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to |
| 365 | * the offloaded data. |
| 366 | * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded |
| 367 | * data. |
| 368 | * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload |
| 369 | * indication. |
| 370 | */ |
| 371 | enum qca_wlan_vendor_attr_data_offload_ind { |
| 372 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0, |
| 373 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION, |
| 374 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL, |
| 375 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT, |
| 376 | |
| 377 | /* keep last */ |
| 378 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST, |
| 379 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX = |
| 380 | QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1 |
| 381 | }; |
Ravi Joshi | e6ccb16 | 2015-07-16 17:45:41 -0700 | [diff] [blame] | 382 | |
| 383 | enum qca_vendor_attr_get_preferred_freq_list { |
| 384 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID, |
| 385 | /* A 32-unsigned value; the interface type/mode for which the preferred |
| 386 | * frequency list is requested (see enum qca_iface_type for possible |
| 387 | * values); used in GET_PREFERRED_FREQ_LIST command from user-space to |
| 388 | * kernel and in the kernel response back to user-space. |
| 389 | */ |
| 390 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE, |
| 391 | /* An array of 32-unsigned values; values are frequency (MHz); sent |
| 392 | * from kernel space to user space. |
| 393 | */ |
| 394 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST, |
| 395 | /* keep last */ |
| 396 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST, |
| 397 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX = |
| 398 | QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1 |
| 399 | }; |
| 400 | |
| 401 | enum qca_vendor_attr_probable_oper_channel { |
| 402 | QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID, |
| 403 | /* 32-bit unsigned value; indicates the connection/iface type likely to |
| 404 | * come on this channel (see enum qca_iface_type). |
| 405 | */ |
| 406 | QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE, |
| 407 | /* 32-bit unsigned value; the frequency (MHz) of the probable channel */ |
| 408 | QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ, |
| 409 | /* keep last */ |
| 410 | QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST, |
| 411 | QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX = |
| 412 | QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1 |
| 413 | }; |
| 414 | |
| 415 | enum qca_iface_type { |
| 416 | QCA_IFACE_TYPE_STA, |
| 417 | QCA_IFACE_TYPE_AP, |
| 418 | QCA_IFACE_TYPE_P2P_CLIENT, |
| 419 | QCA_IFACE_TYPE_P2P_GO, |
| 420 | QCA_IFACE_TYPE_IBSS, |
| 421 | QCA_IFACE_TYPE_TDLS, |
| 422 | }; |
| 423 | |
| 424 | enum qca_set_band { |
| 425 | QCA_SETBAND_AUTO, |
| 426 | QCA_SETBAND_5G, |
| 427 | QCA_SETBAND_2G, |
| 428 | }; |
| 429 | |
Dmitry Shmidt | 1702232 | 2016-04-06 13:28:42 -0700 | [diff] [blame] | 430 | /** |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame^] | 431 | * enum qca_access_policy - Access control policy |
| 432 | * |
| 433 | * Access control policy is applied on the configured IE |
| 434 | * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE). |
| 435 | * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY. |
| 436 | * |
| 437 | * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match |
| 438 | * the specific configuration (IE) set, i.e., allow all the |
| 439 | * connections which do not match the configuration. |
| 440 | * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match |
| 441 | * the specific configuration (IE) set, i.e., deny all the |
| 442 | * connections which do not match the configuration. |
| 443 | */ |
| 444 | enum qca_access_policy { |
| 445 | QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED, |
| 446 | QCA_ACCESS_POLICY_DENY_UNLESS_LISTED, |
| 447 | }; |
| 448 | |
| 449 | /** |
Dmitry Shmidt | 1702232 | 2016-04-06 13:28:42 -0700 | [diff] [blame] | 450 | * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture |
| 451 | * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32) |
| 452 | * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value |
| 453 | * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized |
| 454 | * SOC timer value at TSF capture |
| 455 | */ |
| 456 | enum qca_vendor_attr_tsf_cmd { |
| 457 | QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0, |
| 458 | QCA_WLAN_VENDOR_ATTR_TSF_CMD, |
| 459 | QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE, |
| 460 | QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE, |
| 461 | QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST, |
| 462 | QCA_WLAN_VENDOR_ATTR_TSF_MAX = |
| 463 | QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1 |
| 464 | }; |
| 465 | |
| 466 | /** |
| 467 | * enum qca_tsf_operation: TSF driver commands |
| 468 | * @QCA_TSF_CAPTURE: Initiate TSF Capture |
| 469 | * @QCA_TSF_GET: Get TSF capture value |
| 470 | * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value |
| 471 | */ |
| 472 | enum qca_tsf_cmd { |
| 473 | QCA_TSF_CAPTURE, |
| 474 | QCA_TSF_GET, |
| 475 | QCA_TSF_SYNC_GET, |
| 476 | }; |
| 477 | |
| 478 | /** |
| 479 | * enum qca_vendor_attr_wisa_cmd |
| 480 | * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32) |
| 481 | * WISA setup vendor commands |
| 482 | */ |
| 483 | enum qca_vendor_attr_wisa_cmd { |
| 484 | QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0, |
| 485 | QCA_WLAN_VENDOR_ATTR_WISA_MODE, |
| 486 | QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST, |
| 487 | QCA_WLAN_VENDOR_ATTR_WISA_MAX = |
| 488 | QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1 |
| 489 | }; |
| 490 | |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 491 | /* IEEE 802.11 Vendor Specific elements */ |
| 492 | |
| 493 | /** |
| 494 | * enum qca_vendor_element_id - QCA Vendor Specific element types |
| 495 | * |
| 496 | * These values are used to identify QCA Vendor Specific elements. The |
| 497 | * payload of the element starts with the three octet OUI (OUI_QCA) and |
| 498 | * is followed by a single octet type which is defined by this enum. |
| 499 | * |
| 500 | * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list. |
| 501 | * This element can be used to specify preference order for supported |
| 502 | * channels. The channels in this list are in preference order (the first |
| 503 | * one has the highest preference) and are described as a pair of |
| 504 | * (global) Operating Class and Channel Number (each one octet) fields. |
| 505 | * |
| 506 | * This extends the standard P2P functionality by providing option to have |
| 507 | * more than one preferred operating channel. When this element is present, |
| 508 | * it replaces the preference indicated in the Operating Channel attribute. |
| 509 | * For supporting other implementations, the Operating Channel attribute is |
| 510 | * expected to be used with the highest preference channel. Similarly, all |
| 511 | * the channels included in this Preferred channel list element are |
| 512 | * expected to be included in the Channel List attribute. |
| 513 | * |
| 514 | * This vendor element may be included in GO Negotiation Request, P2P |
| 515 | * Invitation Request, and Provision Discovery Request frames. |
Dmitry Shmidt | 4ae50e6 | 2016-06-27 13:48:39 -0700 | [diff] [blame] | 516 | * |
| 517 | * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element. |
| 518 | * This element can be used for pre-standard publication testing of HE |
| 519 | * before P802.11ax draft assigns the element ID. The payload of this |
| 520 | * vendor specific element is defined by the latest P802.11ax draft. |
| 521 | * Please note that the draft is still work in progress and this element |
| 522 | * payload is subject to change. |
| 523 | * |
| 524 | * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element. |
| 525 | * This element can be used for pre-standard publication testing of HE |
| 526 | * before P802.11ax draft assigns the element ID. The payload of this |
| 527 | * vendor specific element is defined by the latest P802.11ax draft. |
| 528 | * Please note that the draft is still work in progress and this element |
| 529 | * payload is subject to change. |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 530 | */ |
| 531 | enum qca_vendor_element_id { |
| 532 | QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0, |
Dmitry Shmidt | 4ae50e6 | 2016-06-27 13:48:39 -0700 | [diff] [blame] | 533 | QCA_VENDOR_ELEM_HE_CAPAB = 1, |
| 534 | QCA_VENDOR_ELEM_HE_OPER = 2, |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 535 | }; |
| 536 | |
| 537 | /** |
| 538 | * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes |
| 539 | * |
| 540 | * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan |
| 541 | * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes |
| 542 | * with frequencies to be scanned (in MHz) |
| 543 | * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned |
| 544 | * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported |
| 545 | * rates to be included |
| 546 | * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests |
| 547 | * at non CCK rate in 2GHz band |
| 548 | * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags |
| 549 | * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the |
| 550 | * driver for the specific scan request |
| 551 | * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan |
| 552 | * request decoded as in enum scan_status |
| 553 | * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation |
| 554 | * scan flag is set |
| 555 | * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with |
| 556 | * randomisation |
| 557 | */ |
| 558 | enum qca_wlan_vendor_attr_scan { |
| 559 | QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0, |
| 560 | QCA_WLAN_VENDOR_ATTR_SCAN_IE, |
| 561 | QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES, |
| 562 | QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS, |
| 563 | QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES, |
| 564 | QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE, |
| 565 | QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS, |
| 566 | QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE, |
| 567 | QCA_WLAN_VENDOR_ATTR_SCAN_STATUS, |
| 568 | QCA_WLAN_VENDOR_ATTR_SCAN_MAC, |
| 569 | QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK, |
| 570 | QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST, |
| 571 | QCA_WLAN_VENDOR_ATTR_SCAN_MAX = |
| 572 | QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1 |
| 573 | }; |
| 574 | |
| 575 | /** |
| 576 | * enum scan_status - Specifies the valid values the vendor scan attribute |
| 577 | * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take |
| 578 | * |
| 579 | * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with |
| 580 | * new scan results |
| 581 | * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between |
| 582 | */ |
| 583 | enum scan_status { |
| 584 | VENDOR_SCAN_STATUS_NEW_RESULTS, |
| 585 | VENDOR_SCAN_STATUS_ABORTED, |
| 586 | VENDOR_SCAN_STATUS_MAX, |
| 587 | }; |
| 588 | |
| 589 | /** |
| 590 | * enum qca_vendor_attr_ota_test - Specifies the values for vendor |
| 591 | * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST |
| 592 | * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test |
| 593 | */ |
| 594 | enum qca_vendor_attr_ota_test { |
| 595 | QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID, |
| 596 | /* 8-bit unsigned value to indicate if OTA test is enabled */ |
| 597 | QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE, |
| 598 | /* keep last */ |
| 599 | QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST, |
| 600 | QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX = |
| 601 | QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1 |
| 602 | }; |
| 603 | |
| 604 | /** |
| 605 | * enum qca_vendor_attr_txpower_scale - vendor sub commands index |
| 606 | * |
| 607 | * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value |
| 608 | */ |
| 609 | enum qca_vendor_attr_txpower_scale { |
| 610 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID, |
| 611 | /* 8-bit unsigned value to indicate the scaling of tx power */ |
| 612 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE, |
| 613 | /* keep last */ |
| 614 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST, |
| 615 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX = |
| 616 | QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1 |
| 617 | }; |
| 618 | |
Dmitry Shmidt | d7ff03d | 2015-12-04 14:49:35 -0800 | [diff] [blame] | 619 | /** |
| 620 | * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease |
| 621 | * |
| 622 | * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB. |
| 623 | */ |
| 624 | enum qca_vendor_attr_txpower_decr_db { |
| 625 | QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID, |
| 626 | /* 8-bit unsigned value to indicate the reduction of TX power in dB for |
| 627 | * a virtual interface. */ |
| 628 | QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB, |
| 629 | /* keep last */ |
| 630 | QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST, |
| 631 | QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX = |
| 632 | QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1 |
| 633 | }; |
| 634 | |
Dmitry Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 635 | /* Attributes for data used by |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame^] | 636 | * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and |
| 637 | * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands. |
Dmitry Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 638 | */ |
| 639 | enum qca_wlan_vendor_attr_config { |
| 640 | QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID, |
| 641 | /* Unsigned 32-bit value to set the DTIM period. |
| 642 | * Whether the wifi chipset wakes at every dtim beacon or a multiple of |
| 643 | * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3 |
| 644 | * DTIM beacons. |
| 645 | */ |
| 646 | QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM, |
| 647 | /* Unsigned 32-bit value to set the wifi_iface stats averaging factor |
| 648 | * used to calculate statistics like average the TSF offset or average |
| 649 | * number of frame leaked. |
| 650 | * For instance, upon Beacon frame reception: |
| 651 | * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000 |
| 652 | * For instance, when evaluating leaky APs: |
| 653 | * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000 |
| 654 | */ |
| 655 | QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR, |
| 656 | /* Unsigned 32-bit value to configure guard time, i.e., when |
| 657 | * implementing IEEE power management based on frame control PM bit, how |
| 658 | * long the driver waits before shutting down the radio and after |
| 659 | * receiving an ACK frame for a Data frame with PM bit set. |
| 660 | */ |
| 661 | QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME, |
| 662 | /* Unsigned 32-bit value to change the FTM capability dynamically */ |
| 663 | QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT, |
| 664 | /* Unsigned 16-bit value to configure maximum TX rate dynamically */ |
| 665 | QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE, |
| 666 | /* Unsigned 32-bit value to configure the number of continuous |
| 667 | * Beacon Miss which shall be used by the firmware to penalize |
| 668 | * the RSSI. |
| 669 | */ |
| 670 | QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS, |
| 671 | /* Unsigned 8-bit value to configure the channel avoidance indication |
| 672 | * behavior. Firmware to send only one indication and ignore duplicate |
| 673 | * indications when set to avoid multiple Apps wakeups. |
| 674 | */ |
| 675 | QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND, |
| 676 | /* 8-bit unsigned value to configure the maximum TX MPDU for |
| 677 | * aggregation. */ |
| 678 | QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION, |
| 679 | /* 8-bit unsigned value to configure the maximum RX MPDU for |
| 680 | * aggregation. */ |
| 681 | QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION, |
Dmitry Shmidt | 58d12ad | 2016-07-28 10:07:03 -0700 | [diff] [blame] | 682 | /* 8-bit unsigned value to configure the Non aggregrate/11g sw |
| 683 | * retry threshold (0 disable, 31 max). */ |
| 684 | QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY, |
| 685 | /* 8-bit unsigned value to configure the aggregrate sw |
| 686 | * retry threshold (0 disable, 31 max). */ |
| 687 | QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY, |
| 688 | /* 8-bit unsigned value to configure the MGMT frame |
| 689 | * retry threshold (0 disable, 31 max). */ |
| 690 | QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY, |
| 691 | /* 8-bit unsigned value to configure the CTRL frame |
| 692 | * retry threshold (0 disable, 31 max). */ |
| 693 | QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY, |
| 694 | /* 8-bit unsigned value to configure the propagation delay for |
| 695 | * 2G/5G band (0~63, units in us) */ |
| 696 | QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY, |
| 697 | /* Unsigned 32-bit value to configure the number of unicast TX fail |
| 698 | * packet count. The peer is disconnected once this threshold is |
| 699 | * reached. */ |
| 700 | QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT, |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame^] | 701 | /* Attribute used to set scan default IEs to the driver. |
| 702 | * |
| 703 | * These IEs can be used by scan operations that will be initiated by |
| 704 | * the driver/firmware. |
| 705 | * |
| 706 | * For further scan requests coming to the driver, these IEs should be |
| 707 | * merged with the IEs received along with scan request coming to the |
| 708 | * driver. If a particular IE is present in the scan default IEs but not |
| 709 | * present in the scan request, then that IE should be added to the IEs |
| 710 | * sent in the Probe Request frames for that scan request. */ |
| 711 | QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES, |
| 712 | /* Unsigned 32-bit attribute for generic commands */ |
| 713 | QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND, |
| 714 | /* Unsigned 32-bit value attribute for generic commands */ |
| 715 | QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE, |
| 716 | /* Unsigned 32-bit data attribute for generic command response */ |
| 717 | QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA, |
| 718 | /* Unsigned 32-bit length attribute for |
| 719 | * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA */ |
| 720 | QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH, |
| 721 | /* Unsigned 32-bit flags attribute for |
| 722 | * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA */ |
| 723 | QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS, |
| 724 | /* Unsigned 32-bit, defining the access policy. |
| 725 | * See enum qca_access_policy. Used with |
| 726 | * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST. */ |
| 727 | QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY, |
| 728 | /* Sets the list of full set of IEs for which a specific access policy |
| 729 | * has to be applied. Used along with |
| 730 | * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access. |
| 731 | * Zero length payload can be used to clear this access constraint. */ |
| 732 | QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST, |
| 733 | /* Unsigned 32-bit, specifies the interface index (netdev) for which the |
| 734 | * corresponding configurations are applied. If the interface index is |
| 735 | * not specified, the configurations are attributed to the respective |
| 736 | * wiphy. */ |
| 737 | QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX, |
| 738 | /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */ |
| 739 | QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER, |
Dmitry Shmidt | 849734c | 2016-05-27 09:59:01 -0700 | [diff] [blame] | 740 | |
| 741 | /* keep last */ |
| 742 | QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST, |
| 743 | QCA_WLAN_VENDOR_ATTR_CONFIG_MAX = |
| 744 | QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1, |
| 745 | }; |
| 746 | |
Dmitry Shmidt | d5ab1b5 | 2016-06-21 12:38:41 -0700 | [diff] [blame] | 747 | /** |
| 748 | * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration |
| 749 | */ |
| 750 | enum qca_wlan_vendor_attr_sap_config { |
| 751 | QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0, |
| 752 | /* 1 - reserved for QCA */ |
| 753 | /* List of frequencies on which AP is expected to operate. |
| 754 | * This is irrespective of ACS configuration. This list is a priority |
| 755 | * based one and is looked for before the AP is created to ensure the |
| 756 | * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in |
| 757 | * the system. |
| 758 | */ |
| 759 | QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2, |
| 760 | |
| 761 | QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST, |
| 762 | QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX = |
| 763 | QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1, |
| 764 | }; |
| 765 | |
Dmitry Shmidt | 58d12ad | 2016-07-28 10:07:03 -0700 | [diff] [blame] | 766 | /** |
| 767 | * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP |
| 768 | * conditional channel switch |
| 769 | */ |
| 770 | enum qca_wlan_vendor_attr_sap_conditional_chan_switch { |
| 771 | QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0, |
| 772 | /* Priority based frequency list (an array of u32 values in host byte |
| 773 | * order) */ |
| 774 | QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1, |
| 775 | /* Status of the conditional switch (u32). |
| 776 | * 0: Success, Non-zero: Failure |
| 777 | */ |
| 778 | QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2, |
| 779 | |
| 780 | QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST, |
| 781 | QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX = |
| 782 | QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1, |
| 783 | }; |
| 784 | |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame^] | 785 | /** |
| 786 | * enum qca_wlan_gpio_attr - Parameters for GPIO configuration |
| 787 | */ |
| 788 | enum qca_wlan_gpio_attr { |
| 789 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0, |
| 790 | /* Unsigned 32-bit attribute for GPIO command */ |
| 791 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND, |
| 792 | /* Unsigned 32-bit attribute for GPIO PIN number to configure */ |
| 793 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM, |
| 794 | /* Unsigned 32-bit attribute for GPIO value to configure */ |
| 795 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE, |
| 796 | /* Unsigned 32-bit attribute for GPIO pull type */ |
| 797 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE, |
| 798 | /* Unsigned 32-bit attribute for GPIO interrupt mode */ |
| 799 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE, |
| 800 | |
| 801 | /* keep last */ |
| 802 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST, |
| 803 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX = |
| 804 | QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1 |
| 805 | }; |
| 806 | |
| 807 | /** |
| 808 | * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability |
| 809 | */ |
| 810 | enum qca_wlan_vendor_attr_get_hw_capability { |
| 811 | QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID, |
| 812 | /* Antenna isolation |
| 813 | * An attribute used in the response. |
| 814 | * The content of this attribute is encoded in a byte array. Each byte |
| 815 | * value is an antenna isolation value. The array length is the number |
| 816 | * of antennas. |
| 817 | */ |
| 818 | QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION, |
| 819 | /* Request HW capability |
| 820 | * An attribute used in the request. |
| 821 | * The content of this attribute is a u32 array for one or more of |
| 822 | * hardware capabilities (attribute IDs) that are being requested. Each |
| 823 | * u32 value has a value from this |
| 824 | * enum qca_wlan_vendor_attr_get_hw_capability |
| 825 | * identifying which capabilities are requested. |
| 826 | */ |
| 827 | QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY, |
| 828 | |
| 829 | /* keep last */ |
| 830 | QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST, |
| 831 | QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX = |
| 832 | QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1, |
| 833 | }; |
| 834 | |
Dmitry Shmidt | cf32e60 | 2014-01-28 10:57:39 -0800 | [diff] [blame] | 835 | #endif /* QCA_VENDOR_H */ |