2014-01-24 14:58:00 +01:00
|
|
|
/*
|
|
|
|
* Qualcomm Atheros OUI and vendor specific assignments
|
2015-02-05 22:13:48 +01:00
|
|
|
* Copyright (c) 2014-2015, Qualcomm Atheros, Inc.
|
2014-01-24 14:58:00 +01:00
|
|
|
*
|
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QCA_VENDOR_H
|
|
|
|
#define QCA_VENDOR_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file is a registry of identifier assignments from the Qualcomm Atheros
|
|
|
|
* OUI 00:13:74 for purposes other than MAC address assignment. New identifiers
|
|
|
|
* can be assigned through normal review process for changes to the upstream
|
|
|
|
* hostap.git repository.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define OUI_QCA 0x001374
|
|
|
|
|
2014-04-09 11:53:16 +02:00
|
|
|
/**
|
|
|
|
* enum qca_radiotap_vendor_ids - QCA radiotap vendor namespace IDs
|
|
|
|
*/
|
|
|
|
enum qca_radiotap_vendor_ids {
|
|
|
|
QCA_RADIOTAP_VID_WLANTEST = 0,
|
|
|
|
};
|
|
|
|
|
2014-01-24 14:58:00 +01:00
|
|
|
/**
|
|
|
|
* enum qca_nl80211_vendor_subcmds - QCA nl80211 vendor command identifiers
|
|
|
|
*
|
|
|
|
* @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Reserved value 0
|
|
|
|
*
|
|
|
|
* @QCA_NL80211_VENDOR_SUBCMD_TEST: Test command/event
|
2014-01-24 15:14:29 +01:00
|
|
|
*
|
2014-09-11 14:54:57 +02:00
|
|
|
* @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Set roaming policy for drivers that use
|
|
|
|
* internal BSS-selection. This command uses
|
|
|
|
* @QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY to specify the new roaming policy
|
|
|
|
* for the current connection (i.e., changes policy set by the nl80211
|
|
|
|
* Connect command). @QCA_WLAN_VENDOR_ATTR_MAC_ADDR may optionally be
|
|
|
|
* included to indicate which BSS to use in case roaming is disabled.
|
|
|
|
*
|
2014-01-24 15:14:29 +01:00
|
|
|
* @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Recommendation of frequency
|
|
|
|
* ranges to avoid to reduce issues due to interference or internal
|
|
|
|
* co-existence information in the driver. The event data structure is
|
|
|
|
* defined in struct qca_avoid_freq_list.
|
2014-03-22 20:20:32 +01:00
|
|
|
*
|
|
|
|
* @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support
|
|
|
|
* for DFS offloading.
|
2014-04-01 20:13:49 +02:00
|
|
|
*
|
|
|
|
* @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
|
|
|
|
* NAN Request/Response and NAN Indication messages. These messages are
|
|
|
|
* interpreted between the framework and the firmware component.
|
2014-10-23 17:21:49 +02:00
|
|
|
*
|
|
|
|
* @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Set key operation that can be
|
|
|
|
* used to configure PMK to the driver even when not connected. This can
|
2014-12-06 01:48:23 +01:00
|
|
|
* be used to request offloading of key management operations. Only used
|
|
|
|
* if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
|
|
|
|
*
|
2014-10-23 17:21:49 +02:00
|
|
|
* @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: An extended version of
|
|
|
|
* NL80211_CMD_ROAM event with optional attributes including information
|
|
|
|
* from offloaded key management operation. Uses
|
2014-12-06 01:48:23 +01:00
|
|
|
* enum qca_wlan_vendor_attr_roam_auth attributes. Only used
|
|
|
|
* if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
|
2014-11-18 19:11:09 +01:00
|
|
|
*
|
|
|
|
* @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
|
|
|
|
* invoke the ACS function in device and pass selected channels to
|
|
|
|
* hostapd.
|
2014-12-06 01:48:23 +01:00
|
|
|
*
|
|
|
|
* @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Command to get the features
|
|
|
|
* supported by the driver. enum qca_wlan_vendor_features defines
|
|
|
|
* the possible features.
|
2015-02-05 22:13:48 +01:00
|
|
|
*
|
2015-02-11 03:48:39 +01:00
|
|
|
* @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver,
|
|
|
|
* which supports DFS offloading, to indicate a channel availability check
|
|
|
|
* start.
|
|
|
|
*
|
|
|
|
* @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver,
|
|
|
|
* which supports DFS offloading, to indicate a channel availability check
|
|
|
|
* completion.
|
|
|
|
*
|
|
|
|
* @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver,
|
|
|
|
* which supports DFS offloading, to indicate that the channel availability
|
|
|
|
* check aborted, no change to the channel status.
|
|
|
|
*
|
|
|
|
* @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by
|
|
|
|
* driver, which supports DFS offloading, to indicate that the
|
|
|
|
* Non-Occupancy Period for this channel is over, channel becomes usable.
|
|
|
|
*
|
|
|
|
* @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver,
|
|
|
|
* which supports DFS offloading, to indicate a radar pattern has been
|
|
|
|
* detected. The channel is now unusable.
|
2016-06-24 02:32:09 +02:00
|
|
|
*
|
|
|
|
* @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
|
|
|
|
* start the P2P Listen offload function in device and pass the listen
|
|
|
|
* channel, period, interval, count, device types, and vendor specific
|
|
|
|
* information elements to the device driver and firmware.
|
|
|
|
* Uses the attributes defines in
|
|
|
|
* enum qca_wlan_vendor_attr_p2p_listen_offload.
|
|
|
|
*
|
|
|
|
* @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
|
|
|
|
* indicate stop request/response of the P2P Listen offload function in
|
|
|
|
* device. As an event, it indicates either the feature stopped after it
|
|
|
|
* was already running or feature has actually failed to start. Uses the
|
|
|
|
* attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload.
|
2016-07-18 14:29:43 +02:00
|
|
|
*
|
|
|
|
* @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts
|
|
|
|
* beaconing, this sub command provides the driver, the frequencies on the
|
|
|
|
* 5 GHz band to check for any radar activity. Driver selects one channel
|
|
|
|
* from this priority list provided through
|
|
|
|
* @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
|
|
|
|
* to check for radar activity on it. If no radar activity is detected
|
|
|
|
* during the channel availability check period, driver internally switches
|
|
|
|
* to the selected frequency of operation. If the frequency is zero, driver
|
|
|
|
* internally selects a channel. The status of this conditional switch is
|
|
|
|
* indicated through an event using the same sub command through
|
|
|
|
* @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
|
|
|
|
* listed in qca_wlan_vendor_attr_sap_conditional_chan_switch.
|
2014-01-24 14:58:00 +01:00
|
|
|
*/
|
|
|
|
enum qca_nl80211_vendor_subcmds {
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
|
2014-09-11 14:54:57 +02:00
|
|
|
/* subcmds 2..8 not yet allocated */
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
|
2014-01-24 15:14:29 +01:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
|
2014-03-22 20:20:32 +01:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
|
2014-04-01 20:13:49 +02:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
|
2014-04-17 18:54:30 +02:00
|
|
|
QCA_NL80211_VENDOR_SUBMCD_STATS_EXT = 13,
|
2014-11-21 20:46:01 +01:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
|
2014-12-02 15:19:25 +01:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
|
2014-11-21 20:46:01 +01:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
|
2014-12-02 22:36:12 +01:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
|
2014-11-21 20:46:01 +01:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
|
|
|
|
/* 43..49 - reserved for QCA */
|
2014-10-23 17:21:49 +02:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
|
2014-11-13 15:26:55 +01:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
|
2015-04-22 10:21:18 +02:00
|
|
|
/* 53 - reserved - was used by QCA, but not in use anymore */
|
2014-11-18 19:11:09 +01:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
|
2014-12-06 01:48:23 +01:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
|
2015-02-11 03:48:39 +01:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
|
2016-03-22 17:43:16 +01:00
|
|
|
/* 61-73 - reserved for QCA */
|
|
|
|
/* Wi-Fi configuration subcommands */
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
|
|
|
|
/* 76-90 - reserved for QCA */
|
2015-02-26 10:11:05 +01:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
|
2015-04-22 00:05:52 +02:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
|
2015-05-06 13:25:10 +02:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
|
2015-07-17 02:45:41 +02:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
|
2015-07-21 22:11:43 +02:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
|
2015-07-27 12:14:22 +02:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
|
2015-09-15 15:21:07 +02:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
|
2015-10-19 19:38:14 +02:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
|
2015-10-26 23:02:50 +01:00
|
|
|
/* 110..114 - reserved for QCA */
|
2015-11-05 01:47:04 +01:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
|
2016-05-23 15:39:48 +02:00
|
|
|
/* 116..117 - reserved for QCA */
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
|
2016-03-17 19:50:23 +01:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
|
2016-06-16 19:03:02 +02:00
|
|
|
/* 121 - reserved for QCA */
|
2016-06-24 02:32:09 +02:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
|
|
|
|
QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
|
2016-07-18 14:29:43 +02:00
|
|
|
QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
|
2014-01-24 14:58:00 +01:00
|
|
|
};
|
|
|
|
|
2014-01-24 15:14:29 +01:00
|
|
|
|
2014-03-22 20:20:32 +01:00
|
|
|
enum qca_wlan_vendor_attr {
|
|
|
|
QCA_WLAN_VENDOR_ATTR_INVALID = 0,
|
|
|
|
/* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_DFS = 1,
|
2014-04-01 20:13:49 +02:00
|
|
|
/* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_NAN = 2,
|
2014-04-17 18:54:30 +02:00
|
|
|
/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
|
2014-06-03 20:52:31 +02:00
|
|
|
/* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
|
2014-09-11 14:54:57 +02:00
|
|
|
/* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
|
|
|
|
* by enum qca_roaming_policy. */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
|
2014-12-06 01:48:23 +01:00
|
|
|
/* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
|
2015-02-09 16:26:54 +01:00
|
|
|
QCA_WLAN_VENDOR_ATTR_TEST = 8,
|
2015-07-21 22:11:43 +02:00
|
|
|
/* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
|
|
|
|
/* Unsigned 32-bit value. */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
|
|
|
|
/* Unsigned 32-bit value */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
|
|
|
|
/* Unsigned 32-bit value */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
|
2015-07-27 12:14:22 +02:00
|
|
|
/* Unsigned 32-bit value from enum qca_set_band. */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
|
2014-03-22 20:20:32 +01:00
|
|
|
/* keep last */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
|
|
|
|
};
|
|
|
|
|
2014-09-11 14:54:57 +02:00
|
|
|
|
|
|
|
enum qca_roaming_policy {
|
|
|
|
QCA_ROAMING_NOT_ALLOWED,
|
|
|
|
QCA_ROAMING_ALLOWED_WITHIN_ESS,
|
|
|
|
};
|
|
|
|
|
2014-10-23 17:21:49 +02:00
|
|
|
enum qca_wlan_vendor_attr_roam_auth {
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
|
2015-11-16 18:00:35 +01:00
|
|
|
QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
|
2014-10-23 17:21:49 +02:00
|
|
|
/* keep last */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
|
|
|
|
};
|
|
|
|
|
2016-06-24 02:32:09 +02:00
|
|
|
enum qca_wlan_vendor_attr_p2p_listen_offload {
|
|
|
|
QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
|
|
|
|
/* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
|
|
|
|
* of the social channels.
|
|
|
|
*/
|
|
|
|
QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
|
|
|
|
/* A 32-bit unsigned value; the P2P listen offload period (ms).
|
|
|
|
*/
|
|
|
|
QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
|
|
|
|
/* A 32-bit unsigned value; the P2P listen interval duration (ms).
|
|
|
|
*/
|
|
|
|
QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
|
|
|
|
/* A 32-bit unsigned value; number of interval times the firmware needs
|
|
|
|
* to run the offloaded P2P listen operation before it stops.
|
|
|
|
*/
|
|
|
|
QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
|
|
|
|
/* An array of arbitrary binary data with one or more 8-byte values.
|
|
|
|
* The device types include both primary and secondary device types.
|
|
|
|
*/
|
|
|
|
QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
|
|
|
|
/* An array of unsigned 8-bit characters; vendor information elements.
|
|
|
|
*/
|
|
|
|
QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
|
|
|
|
/* A 32-bit unsigned value; a control flag to indicate whether listen
|
|
|
|
* results need to be flushed to wpa_supplicant.
|
|
|
|
*/
|
|
|
|
QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
|
|
|
|
/* A 8-bit unsigned value; reason code for P2P listen offload stop
|
|
|
|
* event.
|
|
|
|
*/
|
|
|
|
QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
|
|
|
|
/* keep last */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
|
|
|
|
QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
|
|
|
|
};
|
|
|
|
|
2014-11-18 19:11:09 +01:00
|
|
|
enum qca_wlan_vendor_attr_acs_offload {
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED,
|
2015-03-11 21:03:58 +01:00
|
|
|
QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL,
|
2015-06-20 02:19:27 +02:00
|
|
|
QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST,
|
2014-11-18 19:11:09 +01:00
|
|
|
/* keep last */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ACS_MAX =
|
|
|
|
QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
|
|
|
|
};
|
|
|
|
|
|
|
|
enum qca_wlan_vendor_acs_hw_mode {
|
|
|
|
QCA_ACS_MODE_IEEE80211B,
|
|
|
|
QCA_ACS_MODE_IEEE80211G,
|
|
|
|
QCA_ACS_MODE_IEEE80211A,
|
|
|
|
QCA_ACS_MODE_IEEE80211AD,
|
2015-05-08 19:53:08 +02:00
|
|
|
QCA_ACS_MODE_IEEE80211ANY,
|
2014-11-18 19:11:09 +01:00
|
|
|
};
|
|
|
|
|
2014-12-06 01:48:23 +01:00
|
|
|
/**
|
|
|
|
* enum qca_wlan_vendor_features - Vendor device/driver feature flags
|
|
|
|
*
|
|
|
|
* @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
|
|
|
|
* management offload, a mechanism where the station's firmware
|
|
|
|
* does the exchange with the AP to establish the temporal keys
|
|
|
|
* after roaming, rather than having the user space wpa_supplicant do it.
|
2015-05-08 19:53:08 +02:00
|
|
|
* @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
|
|
|
|
* band selection based on channel selection results.
|
2015-09-15 15:21:07 +02:00
|
|
|
* @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
|
|
|
|
* simultaneous off-channel operations.
|
2016-06-24 02:32:09 +02:00
|
|
|
* @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
|
|
|
|
* Listen offload; a mechanism where the station's firmware takes care of
|
|
|
|
* responding to incoming Probe Request frames received from other P2P
|
|
|
|
* Devices whilst in Listen state, rather than having the user space
|
|
|
|
* wpa_supplicant do it. Information from received P2P requests are
|
|
|
|
* forwarded from firmware to host whenever the host processor wakes up.
|
2014-12-06 01:48:23 +01:00
|
|
|
* @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
|
|
|
|
*/
|
|
|
|
enum qca_wlan_vendor_features {
|
|
|
|
QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
|
2015-05-08 19:53:08 +02:00
|
|
|
QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
|
2015-09-15 15:21:07 +02:00
|
|
|
QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
|
2016-06-24 02:32:09 +02:00
|
|
|
QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
|
2014-12-06 01:48:23 +01:00
|
|
|
NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
|
|
|
|
};
|
|
|
|
|
2015-02-26 10:11:05 +01:00
|
|
|
/**
|
|
|
|
* enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
|
|
|
|
*
|
|
|
|
* @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
|
|
|
|
* the offloaded data.
|
|
|
|
* @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
|
|
|
|
* data.
|
|
|
|
* @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
|
|
|
|
* indication.
|
|
|
|
*/
|
|
|
|
enum qca_wlan_vendor_attr_data_offload_ind {
|
|
|
|
QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
|
|
|
|
|
|
|
|
/* keep last */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
|
|
|
|
QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
|
|
|
|
};
|
2015-07-21 22:11:43 +02:00
|
|
|
|
|
|
|
enum qca_vendor_attr_get_preferred_freq_list {
|
|
|
|
QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
|
|
|
|
/* A 32-unsigned value; the interface type/mode for which the preferred
|
|
|
|
* frequency list is requested (see enum qca_iface_type for possible
|
|
|
|
* values); used in GET_PREFERRED_FREQ_LIST command from user-space to
|
|
|
|
* kernel and in the kernel response back to user-space.
|
|
|
|
*/
|
|
|
|
QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
|
|
|
|
/* An array of 32-unsigned values; values are frequency (MHz); sent
|
|
|
|
* from kernel space to user space.
|
|
|
|
*/
|
|
|
|
QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
|
|
|
|
/* keep last */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
|
|
|
|
QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
|
|
|
|
};
|
|
|
|
|
|
|
|
enum qca_vendor_attr_probable_oper_channel {
|
|
|
|
QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
|
|
|
|
/* 32-bit unsigned value; indicates the connection/iface type likely to
|
|
|
|
* come on this channel (see enum qca_iface_type).
|
|
|
|
*/
|
|
|
|
QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
|
|
|
|
/* 32-bit unsigned value; the frequency (MHz) of the probable channel */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
|
|
|
|
/* keep last */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
|
|
|
|
QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
|
|
|
|
};
|
|
|
|
|
|
|
|
enum qca_iface_type {
|
|
|
|
QCA_IFACE_TYPE_STA,
|
|
|
|
QCA_IFACE_TYPE_AP,
|
|
|
|
QCA_IFACE_TYPE_P2P_CLIENT,
|
|
|
|
QCA_IFACE_TYPE_P2P_GO,
|
|
|
|
QCA_IFACE_TYPE_IBSS,
|
|
|
|
QCA_IFACE_TYPE_TDLS,
|
|
|
|
};
|
|
|
|
|
2015-07-27 12:14:22 +02:00
|
|
|
enum qca_set_band {
|
|
|
|
QCA_SETBAND_AUTO,
|
|
|
|
QCA_SETBAND_5G,
|
|
|
|
QCA_SETBAND_2G,
|
|
|
|
};
|
|
|
|
|
2016-03-17 19:50:23 +01:00
|
|
|
/**
|
|
|
|
* enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
|
|
|
|
* @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
|
|
|
|
* @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
|
|
|
|
* @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
|
|
|
|
* SOC timer value at TSF capture
|
|
|
|
*/
|
|
|
|
enum qca_vendor_attr_tsf_cmd {
|
|
|
|
QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_TSF_CMD,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_TSF_MAX =
|
|
|
|
QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* enum qca_tsf_operation: TSF driver commands
|
|
|
|
* @QCA_TSF_CAPTURE: Initiate TSF Capture
|
|
|
|
* @QCA_TSF_GET: Get TSF capture value
|
|
|
|
* @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
|
|
|
|
*/
|
|
|
|
enum qca_tsf_cmd {
|
|
|
|
QCA_TSF_CAPTURE,
|
|
|
|
QCA_TSF_GET,
|
|
|
|
QCA_TSF_SYNC_GET,
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* enum qca_vendor_attr_wisa_cmd
|
|
|
|
* @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
|
|
|
|
* WISA setup vendor commands
|
|
|
|
*/
|
|
|
|
enum qca_vendor_attr_wisa_cmd {
|
|
|
|
QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_WISA_MODE,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_WISA_MAX =
|
|
|
|
QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
|
|
|
|
};
|
|
|
|
|
2015-06-17 18:24:29 +02:00
|
|
|
/* IEEE 802.11 Vendor Specific elements */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* enum qca_vendor_element_id - QCA Vendor Specific element types
|
|
|
|
*
|
|
|
|
* These values are used to identify QCA Vendor Specific elements. The
|
|
|
|
* payload of the element starts with the three octet OUI (OUI_QCA) and
|
|
|
|
* is followed by a single octet type which is defined by this enum.
|
|
|
|
*
|
|
|
|
* @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
|
|
|
|
* This element can be used to specify preference order for supported
|
|
|
|
* channels. The channels in this list are in preference order (the first
|
|
|
|
* one has the highest preference) and are described as a pair of
|
|
|
|
* (global) Operating Class and Channel Number (each one octet) fields.
|
|
|
|
*
|
|
|
|
* This extends the standard P2P functionality by providing option to have
|
|
|
|
* more than one preferred operating channel. When this element is present,
|
|
|
|
* it replaces the preference indicated in the Operating Channel attribute.
|
|
|
|
* For supporting other implementations, the Operating Channel attribute is
|
|
|
|
* expected to be used with the highest preference channel. Similarly, all
|
|
|
|
* the channels included in this Preferred channel list element are
|
|
|
|
* expected to be included in the Channel List attribute.
|
|
|
|
*
|
|
|
|
* This vendor element may be included in GO Negotiation Request, P2P
|
|
|
|
* Invitation Request, and Provision Discovery Request frames.
|
2016-06-24 16:59:47 +02:00
|
|
|
*
|
|
|
|
* @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
|
|
|
|
* This element can be used for pre-standard publication testing of HE
|
|
|
|
* before P802.11ax draft assigns the element ID. The payload of this
|
|
|
|
* vendor specific element is defined by the latest P802.11ax draft.
|
|
|
|
* Please note that the draft is still work in progress and this element
|
|
|
|
* payload is subject to change.
|
|
|
|
*
|
|
|
|
* @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
|
|
|
|
* This element can be used for pre-standard publication testing of HE
|
|
|
|
* before P802.11ax draft assigns the element ID. The payload of this
|
|
|
|
* vendor specific element is defined by the latest P802.11ax draft.
|
|
|
|
* Please note that the draft is still work in progress and this element
|
|
|
|
* payload is subject to change.
|
2015-06-17 18:24:29 +02:00
|
|
|
*/
|
|
|
|
enum qca_vendor_element_id {
|
|
|
|
QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
|
2016-06-24 16:59:47 +02:00
|
|
|
QCA_VENDOR_ELEM_HE_CAPAB = 1,
|
|
|
|
QCA_VENDOR_ELEM_HE_OPER = 2,
|
2015-06-17 18:24:29 +02:00
|
|
|
};
|
|
|
|
|
2015-09-15 15:21:07 +02:00
|
|
|
/**
|
|
|
|
* enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
|
|
|
|
*
|
|
|
|
* @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
|
|
|
|
* @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
|
|
|
|
* with frequencies to be scanned (in MHz)
|
|
|
|
* @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
|
|
|
|
* @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
|
|
|
|
* rates to be included
|
|
|
|
* @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
|
|
|
|
* at non CCK rate in 2GHz band
|
|
|
|
* @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
|
|
|
|
* @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
|
|
|
|
* driver for the specific scan request
|
|
|
|
* @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
|
|
|
|
* request decoded as in enum scan_status
|
|
|
|
* @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
|
|
|
|
* scan flag is set
|
|
|
|
* @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
|
|
|
|
* randomisation
|
|
|
|
*/
|
|
|
|
enum qca_wlan_vendor_attr_scan {
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SCAN_IE,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SCAN_STATUS,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SCAN_MAC,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* enum scan_status - Specifies the valid values the vendor scan attribute
|
|
|
|
* QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
|
|
|
|
*
|
|
|
|
* @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
|
|
|
|
* new scan results
|
|
|
|
* @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
|
|
|
|
*/
|
|
|
|
enum scan_status {
|
|
|
|
VENDOR_SCAN_STATUS_NEW_RESULTS,
|
|
|
|
VENDOR_SCAN_STATUS_ABORTED,
|
|
|
|
VENDOR_SCAN_STATUS_MAX,
|
|
|
|
};
|
|
|
|
|
2015-10-19 19:38:14 +02:00
|
|
|
/**
|
|
|
|
* enum qca_vendor_attr_ota_test - Specifies the values for vendor
|
|
|
|
* command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
|
|
|
|
* @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
|
|
|
|
*/
|
|
|
|
enum qca_vendor_attr_ota_test {
|
|
|
|
QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
|
|
|
|
/* 8-bit unsigned value to indicate if OTA test is enabled */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
|
|
|
|
/* keep last */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
|
|
|
|
QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* enum qca_vendor_attr_txpower_scale - vendor sub commands index
|
|
|
|
*
|
|
|
|
* @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
|
|
|
|
*/
|
|
|
|
enum qca_vendor_attr_txpower_scale {
|
|
|
|
QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
|
|
|
|
/* 8-bit unsigned value to indicate the scaling of tx power */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
|
|
|
|
/* keep last */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
|
|
|
|
QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
|
|
|
|
};
|
|
|
|
|
2015-11-05 01:47:04 +01:00
|
|
|
/**
|
|
|
|
* enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
|
|
|
|
*
|
|
|
|
* These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
|
|
|
|
*/
|
|
|
|
enum qca_vendor_attr_txpower_decr_db {
|
|
|
|
QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
|
|
|
|
/* 8-bit unsigned value to indicate the reduction of TX power in dB for
|
|
|
|
* a virtual interface. */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
|
|
|
|
/* keep last */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
|
|
|
|
QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
|
|
|
|
};
|
|
|
|
|
2016-03-22 17:43:16 +01:00
|
|
|
/* Attributes for data used by
|
|
|
|
* QCA_NL80211_VENDOR_SUBCMD_SET_CONFIGURATION and
|
|
|
|
* QCA_NL80211_VENDOR_SUBCMD_GET_CONFIGURATION subcommands.
|
|
|
|
*/
|
|
|
|
enum qca_wlan_vendor_attr_config {
|
|
|
|
QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID,
|
|
|
|
/* Unsigned 32-bit value to set the DTIM period.
|
|
|
|
* Whether the wifi chipset wakes at every dtim beacon or a multiple of
|
|
|
|
* the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
|
|
|
|
* DTIM beacons.
|
|
|
|
*/
|
|
|
|
QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM,
|
|
|
|
/* Unsigned 32-bit value to set the wifi_iface stats averaging factor
|
|
|
|
* used to calculate statistics like average the TSF offset or average
|
|
|
|
* number of frame leaked.
|
|
|
|
* For instance, upon Beacon frame reception:
|
|
|
|
* current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
|
|
|
|
* For instance, when evaluating leaky APs:
|
|
|
|
* current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
|
|
|
|
*/
|
|
|
|
QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR,
|
|
|
|
/* Unsigned 32-bit value to configure guard time, i.e., when
|
|
|
|
* implementing IEEE power management based on frame control PM bit, how
|
|
|
|
* long the driver waits before shutting down the radio and after
|
|
|
|
* receiving an ACK frame for a Data frame with PM bit set.
|
|
|
|
*/
|
|
|
|
QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME,
|
|
|
|
/* Unsigned 32-bit value to change the FTM capability dynamically */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT,
|
|
|
|
/* Unsigned 16-bit value to configure maximum TX rate dynamically */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE,
|
|
|
|
/* Unsigned 32-bit value to configure the number of continuous
|
|
|
|
* Beacon Miss which shall be used by the firmware to penalize
|
|
|
|
* the RSSI.
|
|
|
|
*/
|
|
|
|
QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS,
|
|
|
|
/* Unsigned 8-bit value to configure the channel avoidance indication
|
|
|
|
* behavior. Firmware to send only one indication and ignore duplicate
|
|
|
|
* indications when set to avoid multiple Apps wakeups.
|
|
|
|
*/
|
|
|
|
QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND,
|
|
|
|
/* 8-bit unsigned value to configure the maximum TX MPDU for
|
|
|
|
* aggregation. */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION,
|
|
|
|
/* 8-bit unsigned value to configure the maximum RX MPDU for
|
|
|
|
* aggregation. */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION,
|
2016-06-30 04:59:21 +02:00
|
|
|
/* 8-bit unsigned value to configure the Non aggregrate/11g sw
|
|
|
|
* retry threshold (0 disable, 31 max). */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY,
|
|
|
|
/* 8-bit unsigned value to configure the aggregrate sw
|
|
|
|
* retry threshold (0 disable, 31 max). */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY,
|
|
|
|
/* 8-bit unsigned value to configure the MGMT frame
|
|
|
|
* retry threshold (0 disable, 31 max). */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY,
|
|
|
|
/* 8-bit unsigned value to configure the CTRL frame
|
|
|
|
* retry threshold (0 disable, 31 max). */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY,
|
|
|
|
/* 8-bit unsigned value to configure the propagation delay for
|
|
|
|
* 2G/5G band (0~63, units in us) */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY,
|
2016-07-22 17:22:29 +02:00
|
|
|
/* Unsigned 32-bit value to configure the number of unicast TX fail
|
|
|
|
* packet count. The peer is disconnected once this threshold is
|
|
|
|
* reached. */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT,
|
2016-03-22 17:43:16 +01:00
|
|
|
|
|
|
|
/* keep last */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
|
|
|
|
QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
|
|
|
|
};
|
|
|
|
|
2016-05-23 15:39:48 +02:00
|
|
|
/**
|
|
|
|
* enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
|
|
|
|
*/
|
|
|
|
enum qca_wlan_vendor_attr_sap_config {
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
|
|
|
|
/* 1 - reserved for QCA */
|
|
|
|
/* List of frequencies on which AP is expected to operate.
|
|
|
|
* This is irrespective of ACS configuration. This list is a priority
|
|
|
|
* based one and is looked for before the AP is created to ensure the
|
|
|
|
* best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
|
|
|
|
* the system.
|
|
|
|
*/
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
|
|
|
|
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
|
|
|
|
};
|
|
|
|
|
2016-07-18 14:29:43 +02:00
|
|
|
/**
|
|
|
|
* enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
|
|
|
|
* conditional channel switch
|
|
|
|
*/
|
|
|
|
enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
|
|
|
|
/* Priority based frequency list (an array of u32 values in host byte
|
|
|
|
* order) */
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
|
|
|
|
/* Status of the conditional switch (u32).
|
|
|
|
* 0: Success, Non-zero: Failure
|
|
|
|
*/
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
|
|
|
|
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
|
|
|
|
QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
|
|
|
|
};
|
|
|
|
|
2014-01-24 14:58:00 +01:00
|
|
|
#endif /* QCA_VENDOR_H */
|