Home | History | Annotate | Download | only in common
      1 /*
      2  * Qualcomm Atheros OUI and vendor specific assignments
      3  * Copyright (c) 2014-2015, Qualcomm Atheros, Inc.
      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 /**
     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 /**
     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  *
     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  *
     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.
     46  *
     47  * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support
     48  *	for DFS offloading.
     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.
     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.
     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.
     92  */
     93 enum qca_nl80211_vendor_subcmds {
     94 	QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
     95 	QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
     96 	/* subcmds 2..8 not yet allocated */
     97 	QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
     98 	QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
     99 	QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY =  11,
    100 	QCA_NL80211_VENDOR_SUBCMD_NAN =  12,
    101 	QCA_NL80211_VENDOR_SUBMCD_STATS_EXT = 13,
    102 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
    103 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
    104 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
    105 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
    106 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
    107 	QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
    108 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
    109 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
    110 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
    111 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
    112 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
    113 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
    114 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
    115 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
    116 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
    117 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
    118 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
    119 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
    120 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
    121 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
    122 	QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
    123 	QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
    124 	QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
    125 	QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
    126 	QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
    127 	QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
    128 	QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
    129 	QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
    130 	QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
    131 	/* 43..49 - reserved for QCA */
    132 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
    133 	QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
    134 	QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
    135 	/* 53 - reserved - was used by QCA, but not in use anymore */
    136 	QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
    137 	QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
    138 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
    139 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
    140 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
    141 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
    142 	QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
    143 	/* 61-90 - reserved for QCA */
    144 	QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
    145 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
    146 	QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
    147 	QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
    148 	QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
    149 	QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
    150 	QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
    151 	QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
    152 	QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
    153 	QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
    154 	QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
    155 	QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
    156 	QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
    157 	QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
    158 	QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
    159 	QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
    160 	QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
    161 	QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
    162 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
    163 	/* 110..114 - reserved for QCA */
    164 	QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
    165 	/* 116..118 - reserved for QCA */
    166 	QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
    167 	QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
    168 };
    169 
    170 
    171 enum qca_wlan_vendor_attr {
    172 	QCA_WLAN_VENDOR_ATTR_INVALID = 0,
    173 	/* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
    174 	QCA_WLAN_VENDOR_ATTR_DFS     = 1,
    175 	/* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
    176 	QCA_WLAN_VENDOR_ATTR_NAN     = 2,
    177 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
    178 	QCA_WLAN_VENDOR_ATTR_STATS_EXT     = 3,
    179 	/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
    180 	QCA_WLAN_VENDOR_ATTR_IFINDEX     = 4,
    181 	/* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
    182 	 * by enum qca_roaming_policy. */
    183 	QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
    184 	QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
    185 	/* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
    186 	QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
    187 	QCA_WLAN_VENDOR_ATTR_TEST = 8,
    188 	/* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
    189 	/* Unsigned 32-bit value. */
    190 	QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
    191 	/* Unsigned 32-bit value */
    192 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
    193 	/* Unsigned 32-bit value */
    194 	QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
    195 	/* Unsigned 32-bit value from enum qca_set_band. */
    196 	QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
    197 	/* keep last */
    198 	QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
    199 	QCA_WLAN_VENDOR_ATTR_MAX	= QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
    200 };
    201 
    202 
    203 enum qca_roaming_policy {
    204 	QCA_ROAMING_NOT_ALLOWED,
    205 	QCA_ROAMING_ALLOWED_WITHIN_ESS,
    206 };
    207 
    208 enum qca_wlan_vendor_attr_roam_auth {
    209 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
    210 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
    211 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
    212 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
    213 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
    214 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
    215 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
    216 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
    217 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
    218 	/* keep last */
    219 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
    220 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
    221 	QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
    222 };
    223 
    224 enum qca_wlan_vendor_attr_acs_offload {
    225 	QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
    226 	QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL,
    227 	QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL,
    228 	QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE,
    229 	QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED,
    230 	QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED,
    231 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED,
    232 	QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH,
    233 	QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST,
    234 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL,
    235 	QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL,
    236 	QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST,
    237 	/* keep last */
    238 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
    239 	QCA_WLAN_VENDOR_ATTR_ACS_MAX =
    240 	QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
    241 };
    242 
    243 enum qca_wlan_vendor_acs_hw_mode {
    244 	QCA_ACS_MODE_IEEE80211B,
    245 	QCA_ACS_MODE_IEEE80211G,
    246 	QCA_ACS_MODE_IEEE80211A,
    247 	QCA_ACS_MODE_IEEE80211AD,
    248 	QCA_ACS_MODE_IEEE80211ANY,
    249 };
    250 
    251 /**
    252  * enum qca_wlan_vendor_features - Vendor device/driver feature flags
    253  *
    254  * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
    255  *	management offload, a mechanism where the station's firmware
    256  *	does the exchange with the AP to establish the temporal keys
    257  *	after roaming, rather than having the user space wpa_supplicant do it.
    258  * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
    259  *	band selection based on channel selection results.
    260  * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
    261  * 	simultaneous off-channel operations.
    262  * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
    263  */
    264 enum qca_wlan_vendor_features {
    265 	QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD	= 0,
    266 	QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY     = 1,
    267 	QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
    268 	NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
    269 };
    270 
    271 /**
    272  * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
    273  *
    274  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
    275  *	the offloaded data.
    276  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
    277  *	data.
    278  * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
    279  *	indication.
    280  */
    281 enum qca_wlan_vendor_attr_data_offload_ind {
    282 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
    283 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
    284 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
    285 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
    286 
    287 	/* keep last */
    288 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
    289 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
    290 	QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
    291 };
    292 
    293 enum qca_vendor_attr_get_preferred_freq_list {
    294 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
    295 	/* A 32-unsigned value; the interface type/mode for which the preferred
    296 	 * frequency list is requested (see enum qca_iface_type for possible
    297 	 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
    298 	 * kernel and in the kernel response back to user-space.
    299 	 */
    300 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
    301 	/* An array of 32-unsigned values; values are frequency (MHz); sent
    302 	 * from kernel space to user space.
    303 	 */
    304 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
    305 	/* keep last */
    306 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
    307 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
    308 	QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
    309 };
    310 
    311 enum qca_vendor_attr_probable_oper_channel {
    312 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
    313 	/* 32-bit unsigned value; indicates the connection/iface type likely to
    314 	 * come on this channel (see enum qca_iface_type).
    315 	 */
    316 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
    317 	/* 32-bit unsigned value; the frequency (MHz) of the probable channel */
    318 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
    319 	/* keep last */
    320 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
    321 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
    322 	QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
    323 };
    324 
    325 enum qca_iface_type {
    326 	QCA_IFACE_TYPE_STA,
    327 	QCA_IFACE_TYPE_AP,
    328 	QCA_IFACE_TYPE_P2P_CLIENT,
    329 	QCA_IFACE_TYPE_P2P_GO,
    330 	QCA_IFACE_TYPE_IBSS,
    331 	QCA_IFACE_TYPE_TDLS,
    332 };
    333 
    334 enum qca_set_band {
    335 	QCA_SETBAND_AUTO,
    336 	QCA_SETBAND_5G,
    337 	QCA_SETBAND_2G,
    338 };
    339 
    340 /**
    341  * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
    342  * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
    343  * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
    344  * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
    345  *	SOC timer value at TSF capture
    346  */
    347 enum qca_vendor_attr_tsf_cmd {
    348 	QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
    349 	QCA_WLAN_VENDOR_ATTR_TSF_CMD,
    350 	QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
    351 	QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
    352 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
    353 	QCA_WLAN_VENDOR_ATTR_TSF_MAX =
    354 	QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
    355 };
    356 
    357 /**
    358  * enum qca_tsf_operation: TSF driver commands
    359  * @QCA_TSF_CAPTURE: Initiate TSF Capture
    360  * @QCA_TSF_GET: Get TSF capture value
    361  * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
    362  */
    363 enum qca_tsf_cmd {
    364 	QCA_TSF_CAPTURE,
    365 	QCA_TSF_GET,
    366 	QCA_TSF_SYNC_GET,
    367 };
    368 
    369 /**
    370  * enum qca_vendor_attr_wisa_cmd
    371  * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
    372  * WISA setup vendor commands
    373  */
    374 enum qca_vendor_attr_wisa_cmd {
    375 	QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
    376 	QCA_WLAN_VENDOR_ATTR_WISA_MODE,
    377 	QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
    378 	QCA_WLAN_VENDOR_ATTR_WISA_MAX =
    379 	QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
    380 };
    381 
    382 /* IEEE 802.11 Vendor Specific elements */
    383 
    384 /**
    385  * enum qca_vendor_element_id - QCA Vendor Specific element types
    386  *
    387  * These values are used to identify QCA Vendor Specific elements. The
    388  * payload of the element starts with the three octet OUI (OUI_QCA) and
    389  * is followed by a single octet type which is defined by this enum.
    390  *
    391  * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
    392  *	This element can be used to specify preference order for supported
    393  *	channels. The channels in this list are in preference order (the first
    394  *	one has the highest preference) and are described as a pair of
    395  *	(global) Operating Class and Channel Number (each one octet) fields.
    396  *
    397  *	This extends the standard P2P functionality by providing option to have
    398  *	more than one preferred operating channel. When this element is present,
    399  *	it replaces the preference indicated in the Operating Channel attribute.
    400  *	For supporting other implementations, the Operating Channel attribute is
    401  *	expected to be used with the highest preference channel. Similarly, all
    402  *	the channels included in this Preferred channel list element are
    403  *	expected to be included in the Channel List attribute.
    404  *
    405  *	This vendor element may be included in GO Negotiation Request, P2P
    406  *	Invitation Request, and Provision Discovery Request frames.
    407  */
    408 enum qca_vendor_element_id {
    409 	QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
    410 };
    411 
    412 /**
    413  * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
    414  *
    415  * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
    416  * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
    417  *	with frequencies to be scanned (in MHz)
    418  * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
    419  * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
    420  *	rates to be included
    421  * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
    422  * 	at non CCK rate in 2GHz band
    423  * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
    424  * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
    425  * 	driver for the specific scan request
    426  * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
    427  * 	request decoded as in enum scan_status
    428  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
    429  * 	scan flag is set
    430  * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
    431  * 	randomisation
    432  */
    433 enum qca_wlan_vendor_attr_scan {
    434 	QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
    435 	QCA_WLAN_VENDOR_ATTR_SCAN_IE,
    436 	QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES,
    437 	QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS,
    438 	QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES,
    439 	QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE,
    440 	QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS,
    441 	QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE,
    442 	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS,
    443 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC,
    444 	QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK,
    445 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
    446 	QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
    447 	QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
    448 };
    449 
    450 /**
    451  * enum scan_status - Specifies the valid values the vendor scan attribute
    452  * 	QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
    453  *
    454  * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
    455  * 	new scan results
    456  * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
    457  */
    458 enum scan_status {
    459 	VENDOR_SCAN_STATUS_NEW_RESULTS,
    460 	VENDOR_SCAN_STATUS_ABORTED,
    461 	VENDOR_SCAN_STATUS_MAX,
    462 };
    463 
    464 /**
    465  * enum qca_vendor_attr_ota_test - Specifies the values for vendor
    466  *                       command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
    467  * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
    468  */
    469 enum qca_vendor_attr_ota_test {
    470 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
    471 	/* 8-bit unsigned value to indicate if OTA test is enabled */
    472 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
    473 	/* keep last */
    474 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
    475 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
    476 	QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
    477 };
    478 
    479 /**
    480  * enum qca_vendor_attr_txpower_scale - vendor sub commands index
    481  *
    482  * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
    483  */
    484 enum qca_vendor_attr_txpower_scale {
    485 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
    486 	/* 8-bit unsigned value to indicate the scaling of tx power */
    487 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
    488 	/* keep last */
    489 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
    490 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
    491 	QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
    492 };
    493 
    494 /**
    495  * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
    496  *
    497  * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
    498  */
    499 enum qca_vendor_attr_txpower_decr_db {
    500 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
    501 	/* 8-bit unsigned value to indicate the reduction of TX power in dB for
    502 	 * a virtual interface. */
    503 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
    504 	/* keep last */
    505 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
    506 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
    507 	QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
    508 };
    509 
    510 #endif /* QCA_VENDOR_H */
    511