| /* |
| * Copyright (c) 2012-2015 The Linux Foundation. All rights reserved. |
| * |
| * Previously licensed under the ISC license by Qualcomm Atheros, Inc. |
| * |
| * |
| * Permission to use, copy, modify, and/or distribute this software for |
| * any purpose with or without fee is hereby granted, provided that the |
| * above copyright notice and this permission notice appear in all |
| * copies. |
| * |
| * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| * PERFORMANCE OF THIS SOFTWARE. |
| */ |
| |
| /* |
| * This file was originally distributed by Qualcomm Atheros, Inc. |
| * under proprietary terms before Copyright ownership was assigned |
| * to the Linux Foundation. |
| */ |
| |
| /** |
| * DOC: wlan_hdd_cfg80211.h |
| * |
| * WLAN host device driver cfg80211 functions declaration |
| */ |
| |
| #if !defined(HDD_CFG80211_H__) |
| #define HDD_CFG80211_H__ |
| |
| /* value for initial part of frames and number of bytes to be compared */ |
| #define GAS_INITIAL_REQ "\x04\x0a" |
| #define GAS_INITIAL_REQ_SIZE 2 |
| |
| #define GAS_INITIAL_RSP "\x04\x0b" |
| #define GAS_INITIAL_RSP_SIZE 2 |
| |
| #define GAS_COMEBACK_REQ "\x04\x0c" |
| #define GAS_COMEBACK_REQ_SIZE 2 |
| |
| #define GAS_COMEBACK_RSP "\x04\x0d" |
| #define GAS_COMEBACK_RSP_SIZE 2 |
| |
| #define P2P_PUBLIC_ACTION_FRAME "\x04\x09\x50\x6f\x9a\x09" |
| #define P2P_PUBLIC_ACTION_FRAME_SIZE 6 |
| |
| #define P2P_ACTION_FRAME "\x7f\x50\x6f\x9a\x09" |
| #define P2P_ACTION_FRAME_SIZE 5 |
| |
| #define SA_QUERY_FRAME_REQ "\x08\x00" |
| #define SA_QUERY_FRAME_REQ_SIZE 2 |
| |
| #define SA_QUERY_FRAME_RSP "\x08\x01" |
| #define SA_QUERY_FRAME_RSP_SIZE 2 |
| |
| #define HDD_P2P_WILDCARD_SSID "DIRECT-" |
| #define HDD_P2P_WILDCARD_SSID_LEN 7 |
| |
| #define WNM_BSS_ACTION_FRAME "\x0a\x07" |
| #define WNM_BSS_ACTION_FRAME_SIZE 2 |
| |
| #define WNM_NOTIFICATION_FRAME "\x0a\x1a" |
| #define WNM_NOTIFICATION_FRAME_SIZE 2 |
| |
| #define WPA_OUI_TYPE "\x00\x50\xf2\x01" |
| #define BLACKLIST_OUI_TYPE "\x00\x50\x00\x00" |
| #define WHITELIST_OUI_TYPE "\x00\x50\x00\x01" |
| #define WPA_OUI_TYPE_SIZE 4 |
| #define WMM_OUI_TYPE "\x00\x50\xf2\x02\x01" |
| #define WMM_OUI_TYPE_SIZE 5 |
| |
| #define WLAN_BSS_MEMBERSHIP_SELECTOR_VHT_PHY 126 |
| #define WLAN_BSS_MEMBERSHIP_SELECTOR_HT_PHY 127 |
| #define BASIC_RATE_MASK 0x80 |
| #define RATE_MASK 0x7f |
| |
| #ifdef WLAN_ENABLE_AGEIE_ON_SCAN_RESULTS |
| /* GPS application requirement */ |
| #define QCOM_VENDOR_IE_ID 221 |
| #define QCOM_OUI1 0x00 |
| #define QCOM_OUI2 0xA0 |
| #define QCOM_OUI3 0xC6 |
| #define QCOM_VENDOR_IE_AGE_TYPE 0x100 |
| #define QCOM_VENDOR_IE_AGE_LEN (sizeof(qcom_ie_age) - 2) |
| |
| #ifdef FEATURE_WLAN_TDLS |
| #define WLAN_IS_TDLS_SETUP_ACTION(action) \ |
| ((SIR_MAC_TDLS_SETUP_REQ <= action) && \ |
| (SIR_MAC_TDLS_SETUP_CNF >= action)) |
| #if !defined (TDLS_MGMT_VERSION2) |
| #define TDLS_MGMT_VERSION2 0 |
| #endif |
| #endif |
| |
| #define MAX_CHANNEL (NUM_24GHZ_CHANNELS + NUM_5GHZ_CHANNELS) |
| #define MAX_SCAN_SSID 10 |
| |
| #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 12, 0)) \ |
| || defined(BACKPORTED_CHANNEL_SWITCH_PRESENT) |
| #define CHANNEL_SWITCH_SUPPORTED |
| #endif |
| |
| /** |
| * typedef struct qcom_ie_age - age ie |
| * |
| * @element_id: Element id |
| * @len: Length |
| * @oui_1: OUI 1 |
| * @oui_2: OUI 2 |
| * @oui_3: OUI 3 |
| * @type: Type |
| * @age: Age |
| * @tsf_delta: tsf delta from FW |
| */ |
| typedef struct { |
| u8 element_id; |
| u8 len; |
| u8 oui_1; |
| u8 oui_2; |
| u8 oui_3; |
| u32 type; |
| u32 age; |
| u32 tsf_delta; |
| } __attribute__ ((packed)) qcom_ie_age; |
| #endif |
| |
| /** |
| * enum eDFS_CAC_STATUS: CAC status |
| * |
| * @DFS_CAC_NEVER_DONE: CAC never done |
| * @DFS_CAC_IN_PROGRESS: CAC is in progress |
| * @DFS_CAC_IN_PROGRESS: CAC already done |
| */ |
| typedef enum { |
| DFS_CAC_NEVER_DONE, |
| DFS_CAC_IN_PROGRESS, |
| DFS_CAC_ALREADY_DONE, |
| } eDFS_CAC_STATUS; |
| |
| /* Vendor id to be used in vendor specific command and events |
| * to user space. |
| * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID, |
| * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and |
| * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in |
| * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that |
| */ |
| |
| #define QCA_NL80211_VENDOR_ID 0x001374 |
| #define MAX_REQUEST_ID 0xFFFFFFFF |
| |
| /** |
| * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command |
| * |
| * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified |
| * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test |
| * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency. |
| * Sub commands 2 to 9 are not used |
| * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability |
| * @QCA_NL80211_VENDOR_SUBCMD_NAN: Nan |
| * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats |
| * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set |
| * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get |
| * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear |
| * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio |
| * results |
| * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface |
| * results |
| * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer |
| * results |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid |
| * channels |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached |
| * results |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results |
| * available. Used when report_threshold is reached in scan cache. |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan |
| * result. Used to report scan results when each probe rsp. is received, |
| * if report_events enabled in wifi_scan_cmd_params. |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target. |
| * Indicates progress of scanning state-machine. |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist |
| * ap found |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist |
| * bssid |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset |
| * hotlist bssid |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant |
| * change |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set |
| * significant change |
| * ap found |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset |
| * significant change |
| * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: Ext tdls enable |
| * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: Ext tdls disable |
| * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: Ext tdls get status |
| * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: Ext tdls state |
| * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features |
| * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui |
| * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag |
| * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix |
| * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys |
| * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the |
| * roaming and auth information. |
| * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule |
| * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS offload flag |
| * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the |
| * driver. |
| * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver |
| * started CAC on DFS channel |
| * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver |
| * completed the CAC check on DFS channel |
| * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC |
| * check was aborted by the driver |
| * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the |
| * driver completed NOP |
| * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the |
| * driver detected radar signal on the current operating channel |
| * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information |
| * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger |
| * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request |
| * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set |
| * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST: |
| * extscan reset ssid hotlist |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST: |
| * reset passpoint list |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND: |
| * passpoint network found |
| * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config |
| * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config |
| * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features |
| * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties |
| * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command |
| * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete |
| * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test |
| * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters |
| */ |
| |
| enum qca_nl80211_vendor_subcmds { |
| QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0, |
| QCA_NL80211_VENDOR_SUBCMD_TEST = 1, |
| QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10, |
| QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11, |
| QCA_NL80211_VENDOR_SUBCMD_NAN = 12, |
| QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13, |
| |
| 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, |
| |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33, |
| |
| 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, |
| |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41, |
| |
| /* Get Concurrency Matrix */ |
| QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42, |
| |
| QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50, |
| QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51, |
| |
| /* Deprecated */ |
| QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53, |
| |
| QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54, |
| |
| QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55, |
| |
| /* Off loaded DFS events */ |
| 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, |
| |
| QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61, |
| QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62, |
| QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63, |
| QCA_NL80211_VENDOR_SUBCMD_ROAM = 64, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73, |
| |
| /* Wi-Fi Configuration subcommands */ |
| QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74, |
| QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75, |
| QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76, |
| QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77, |
| |
| QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78, |
| QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79, |
| QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80, |
| |
| /* OCB commands */ |
| 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, |
| |
| /* subcommand to get link properties */ |
| QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101, |
| /* LFR Subnet Detection */ |
| QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102, |
| |
| /* DBS subcommands */ |
| QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103, |
| QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104, |
| |
| /* Vendor scan commands */ |
| QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106, |
| QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107, |
| |
| /* OTA test subcommand */ |
| QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108, |
| |
| }; |
| |
| /** |
| * enum qca_nl80211_vendor_subcmds_index - vendor sub commands index |
| * |
| * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_INDEX: Avoid frequency |
| * @QCA_NL80211_VENDOR_SUBCMD_NAN_INDEX: Nan |
| * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT_INDEX: Ext stats |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START_INDEX: Ext scan start |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP_INDEX: Ext scan stop |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES_INDEX: Ext scan get |
| * capability |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS_INDEX: Ext scan get |
| * cached results |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE_INDEX: Ext scan |
| * results available |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT_INDEX: Ext scan full |
| * scan result |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT_INDEX: Ext scan event |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND_INDEX: Ext scan hot list |
| * AP found |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST_INDEX: Ext scan set |
| * bssid hotlist |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST_INDEX: Ext scan reset |
| * bssid hotlist |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE_INDEX: Ext scan |
| * significant change |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE_INDEX: Ext scan |
| * set significant change |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE_INDEX: Ext scan |
| * reset significant change |
| * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET_INDEX: Set stats |
| * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET_INDEX: Get stats |
| * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR_INDEX: Clear stats |
| * @QCA_NL80211_VENDOR_SUBCMD_LL_RADIO_STATS_INDEX: Radio stats |
| * @QCA_NL80211_VENDOR_SUBCMD_LL_IFACE_STATS_INDEX: Iface stats |
| * @QCA_NL80211_VENDOR_SUBCMD_LL_PEER_INFO_STATS_INDEX: Peer info stats |
| * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE_CHANGE_INDEX: Ext tdls state change |
| * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS_INDEX: ACS command |
| * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH_INDEX: Pass Roam and Auth info |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST_INDEX: hotlist ap lost |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND_INDEX: |
| * pno network found index |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND_INDEX: |
| * passpoint match found index |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST_INDEX: |
| * set ssid hotlist index |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST_INDEX: |
| * reset ssid hotlist index |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND_INDEX: |
| * hotlist ssid found index |
| * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST_INDEX: |
| * hotlist ssid lost index |
| * @QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT_INDEX |
| * dcc stats event index |
| * @QCA_NL80211_VENDOR_SUBCMD_SCAN_INDEX: vendor scan index |
| * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE_INDEX: |
| * vendor scan complete event index |
| * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG_INDEX: |
| * update gateway parameters index |
| */ |
| |
| enum qca_nl80211_vendor_subcmds_index { |
| #if defined(FEATURE_WLAN_CH_AVOID) || defined(FEATURE_WLAN_FORCE_SAP_SCC) |
| QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_INDEX = 0, |
| #endif /* FEATURE_WLAN_CH_AVOID || FEATURE_WLAN_FORCE_SAP_SCC */ |
| |
| #ifdef WLAN_FEATURE_NAN |
| QCA_NL80211_VENDOR_SUBCMD_NAN_INDEX, |
| #endif /* WLAN_FEATURE_NAN */ |
| |
| #ifdef WLAN_FEATURE_STATS_EXT |
| QCA_NL80211_VENDOR_SUBCMD_STATS_EXT_INDEX, |
| #endif /* WLAN_FEATURE_STATS_EXT */ |
| |
| #ifdef FEATURE_WLAN_EXTSCAN |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE_INDEX, |
| #endif /* FEATURE_WLAN_EXTSCAN */ |
| |
| #ifdef WLAN_FEATURE_LINK_LAYER_STATS |
| QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_LL_RADIO_STATS_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_LL_IFACE_STATS_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_LL_PEER_INFO_STATS_INDEX, |
| #endif /* WLAN_FEATURE_LINK_LAYER_STATS */ |
| |
| QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE_CHANGE_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_DO_ACS_INDEX, |
| #ifdef WLAN_FEATURE_ROAM_OFFLOAD |
| QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH_INDEX, |
| #endif |
| /* DFS */ |
| QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED_INDEX, |
| #ifdef FEATURE_WLAN_EXTSCAN |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST_INDEX, |
| #endif /* FEATURE_WLAN_EXTSCAN */ |
| QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI_INDEX, |
| #ifdef WLAN_FEATURE_MEMDUMP |
| QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP_INDEX, |
| #endif /* WLAN_FEATURE_MEMDUMP */ |
| /* OCB events */ |
| QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_SCAN_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE_INDEX, |
| QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG_INDEX, |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute |
| * |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit |
| * value |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets |
| * keep as unsigned for now |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth |
| * in KBPS |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value |
| */ |
| enum qca_wlan_vendor_attr_tdls_enable { |
| QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0, |
| QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR, |
| QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL, |
| QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS, |
| QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS, |
| QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS, |
| QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX = |
| QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1, |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute |
| * |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned |
| * 8-bit value |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value |
| */ |
| enum qca_wlan_vendor_attr_tdls_disable { |
| QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0, |
| QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR, |
| QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX = |
| QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1, |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute |
| * |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned |
| * 8-bit value |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state, |
| * unsigned 32-bit value |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel, |
| * unsigned 32-bit value |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating |
| * class, unsigned 32-bit value |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value |
| */ |
| enum qca_wlan_vendor_attr_tdls_get_status { |
| QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0, |
| QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR, |
| QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE, |
| QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON, |
| QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL, |
| QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS, |
| QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX = |
| QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1, |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute |
| * |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned |
| * 8-bit value |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state, |
| * unsigned 32-bit value |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel, |
| * unsigned 32-bit value |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state |
| * operating class, unsigned 32-bit value |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last |
| * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value |
| */ |
| enum qca_wlan_vendor_attr_tdls_state { |
| QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0, |
| QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR, |
| QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE, |
| QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON, |
| QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL, |
| QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS, |
| QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX = |
| QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1, |
| }; |
| |
| /* enum's to provide TDLS capabilites */ |
| enum qca_wlan_vendor_attr_get_tdls_capabilities { |
| QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0, |
| QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1, |
| QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2, |
| |
| /* keep last */ |
| QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX = |
| QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1, |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_attr - wlan vendor attribute |
| * |
| * @QCA_WLAN_VENDOR_ATTR_INVALID: Initial invalid value |
| * @QCA_WLAN_VENDOR_ATTR_DFS: DFS attribute which is used by |
| * QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY |
| * @QCA_WLAN_VENDOR_ATTR_NAN: NAN attribute which is used by |
| * QCA_NL80211_VENDOR_SUBCMD_NAN |
| * @QCA_WLAN_VENDOR_ATTR_STATS_EXT: Ext stats attribute which is used by |
| * QCA_NL80211_VENDOR_SUBCMD_STATS_EXT |
| * @QCA_WLAN_VENDOR_ATTR_IFINDEX: After IFINDEX |
| * @QCA_WLAN_VENDOR_ATTR_MAC_ADDR: MAC Address attribute which is used by |
| * QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES |
| * @QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS: Supported Features |
| * @QCA_WLAN_VENDOR_ATTR_AFTER_LAST: After last |
| * @QCA_WLAN_VENDOR_ATTR_MAX: Max value |
| */ |
| enum qca_wlan_vendor_attr { |
| QCA_WLAN_VENDOR_ATTR_INVALID = 0, |
| QCA_WLAN_VENDOR_ATTR_DFS = 1, |
| QCA_WLAN_VENDOR_ATTR_NAN = 2, |
| QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3, |
| QCA_WLAN_VENDOR_ATTR_IFINDEX = 4, |
| QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6, |
| QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7, |
| QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9, |
| QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10, |
| QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11, |
| /* keep last */ |
| QCA_WLAN_VENDOR_ATTR_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1 |
| }; |
| |
| #ifdef FEATURE_WLAN_EXTSCAN |
| /** |
| * enum qca_wlan_vendor_attr_extscan_config_params - ext scan config params |
| * |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID: Invalid initial |
| * value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID: |
| * Unsigned 32-bit value; Middleware provides it to the driver. Middle ware |
| * either gets it from caller, e.g., framework, or generates one if |
| * framework doesn't provide it. |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND: |
| * NL attributes for data used by |
| * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command. |
| * It is unsigned 32-bit value. |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS: |
| * Unsigned 32-bit value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL: |
| * NL attributes for input params used by |
| * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command. Unsigned 32-bit |
| * value; channel frequency |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME: Unsigned 32-bit value; |
| * dwell time in ms |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE: Unsigned 8-bit value: |
| * 0: active; 1: passive; N/A for DFS |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS: Unsigned 8-bit value |
| * channel class |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX: Unsigned 8-bit value |
| * bucket index, 0 based |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND: Unsigned 8-bit value; band |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD: Unsigned 32-bit value; |
| * desired period, in ms |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS: Unsigned 8-bit |
| * value; report events semantics |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS: Unsigned 32-bit |
| * value. Followed by a nested array of EXTSCAN_CHANNEL_SPEC_* attributes. |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC: |
| * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes. |
| * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD: Unsigned 32-bit |
| * value; base timer period in ms |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN: Unsigned |
| * 32-bit value; number of APs to store in each scan in the |
| * BSSID/RSSI history buffer (keep the highest RSSI APs) |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT: |
| * Unsigned 8-bit value; in %, when scan buffer is this much full, |
| * wake up APPS. |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS: Unsigned 8-bit |
| * value; number of scan bucket specs; followed by a nested array |
| * of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size of the array |
| * is determined by NUM_BUCKETS |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC: Array of |
| * QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes. Array size: |
| * QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH: |
| * Unsigned 8-bit value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX: |
| * Unsigned 32-bit value; maximum number of results to be returned |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID: An array of |
| * 6 x Unsigned 8-bit value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW: Signed 32-bit |
| * value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH: Signed 32-bit |
| * value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL: Signed 32-bit |
| * value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP: Number of hotlist |
| * APs as unsigned 32-bit value, followed by a nested array of |
| * AP_THRESHOLD_PARAM attributes and values. The size of the array is |
| * determined by NUM_AP. |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM: Array of |
| * QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes. |
| * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE: |
| * Unsigned 32bit value; number of samples for averaging RSSI |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE: |
| * Unsigned 32bit value; number of samples to confirm AP loss |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING: |
| * Unsigned 32bit value; number of APs breaching threshold. |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP: |
| * Unsigned 32bit value; number of APs. Followed by an array of |
| * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP. |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE: |
| * Unsigned 32bit value; number of samples to confirm AP loss. |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD: |
| * Unsigned 32-bit value. If max_period is non zero or different than |
| * period, then this bucket is an exponential backoff bucket. |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_EXPONENT: |
| * Unsigned 32-bit value. For exponential back off bucket, |
| * number of scans performed at a given period and until the |
| * exponent is applied. |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT: |
| * Unsigned 8-bit value; in number of scans, wake up AP after these |
| * many scans. |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS: |
| * Unsigned 8-bit value; in number of scans, wake up AP after these |
| * many scans. |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE: |
| * Unsigned 32bit value; number of samples to confirm SSID loss |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID: |
| * Number of hotlist SSIDs as unsigned 32-bit value, followed by a nested |
| * array of SSID_THRESHOLD_PARAM_* attributes and values. The size of the |
| * array is determined by NUM_SSID |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM: |
| * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_* attributes |
| * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID: |
| * An array of 33 x Unsigned 8-bit value; NULL terminated SSID |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND: |
| * Signed 32-bit value; band |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW: |
| * Signed 32-bit value; low rssi |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH: |
| * Signed 32-bit value; high rssi |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS: |
| * Unsigned 32-bit value; a bitmask w/additional extscan config flag. |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST: After last |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX: Max value |
| */ |
| enum qca_wlan_vendor_attr_extscan_config_params { |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_EXPONENT, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX = |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1, |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_attr_extscan_results - vendor attribute ext scan results |
| * |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID: Invalid initial value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID: Unsigned 32-bit value |
| * must match the request Id supplied by Wi-Fi HAL in the corresponding |
| * subcmd NL msg |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS: Unsigned 32-bit value used to |
| * indicate the status response from firmware/driver for the vendor |
| * sub-command |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS: EXTSCAN Valid Channels |
| * attributes. Unsigned 32bit value followed by a nested array of CHANNELS |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS: An array of NUM_CHANNELS x |
| * Unsigned 32bit value integers representing channel numbers. |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE: |
| * Unsigned 32bit value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS: |
| * Unsigned 32bit value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN: |
| * Unsigned 32bit value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE: |
| * Unsigned 32bit value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD: |
| * Unsigned 32bit value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_APS: |
| * Unsigned 32bit value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS: |
| * Unsigned 32bit value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES: |
| * Unsigned 32bit value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_NUM_RESULTS_AVAILABLE: Unsigned 32-bit |
| * value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST: An array of |
| * NUM_RESULTS_AVAILABLE x QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_* |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP: Unsigned |
| * 64-bit value age of sample at the time of retrieval |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID: 33 x unsigned 8-bit |
| * value; NULL terminated SSID |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID: An array of 6 x |
| * Unsigned 8-bit value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL: Unsigned 32-bit |
| * value; channel frequency in MHz |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI: Signed 32-bit value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT: Unsigned 32-bit value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD: Unsigned 32-bit |
| * value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD: |
| * Unsigned 16-bit value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY: |
| * Unsigned 16-bit value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH: |
| * Unsigned 32-bit value; size of the IE DATA blob |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA: |
| * An array of IE_LENGTH x Unsigned 8-bit value; blob of all the |
| * information elements found in the beacon; this data should be |
| * a packed list of wifi_information_element objects, one after |
| * the other. |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA: |
| * Unsigned 8-bit value; set by driver to indicate more scan results are |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE: Unsigned 8-bit value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS: Unsigned 32-bit |
| * value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID: |
| * An array of 6 x Unsigned 8-bit value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL: |
| * Unsigned 32-bit value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI: |
| * Unsigned 32-bit value |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST: |
| * A nested array of signed 32-bit RSSI values. Size of the array is |
| * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI. |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST: |
| * An array of NUM_RESULTS_AVAILABLE x |
| * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_* |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID: |
| * Unsigned 32-bit value; a unique identifier for the scan unit |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS: |
| * Unsigned 32-bit value; a bitmask w/additional information about scan |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES: |
| * Unsigned 32-bit value; number of found network matches |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST: |
| * A nested array of |
| * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_* |
| * attributes. Array size = |
| * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES. |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID: |
| * Unsigned 32-bit value; network block id for the matched network |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN: |
| * Unsigned 32-bit value; ANQP length |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP: |
| * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values; |
| * ANQP data in the information_element format. |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS: |
| * Unsigned 32bit value; Max hotlist ssids. |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS: |
| * Unsigned 32bit value; Max number of epno networks |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID: |
| * Unsigned 32bit value; Max number of epno networks by ssid |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID: |
| * Unsigned 32bit value; Max number of whitelisted ssids |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST: After last |
| * @QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX: Max value |
| */ |
| enum qca_wlan_vendor_attr_extscan_results { |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_NUM_RESULTS_AVAILABLE, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA, |
| |
| /* Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_NUM_RESULTS_AVAILABLE |
| * to indicate number of wifi scan results/bssids retrieved by the scan. |
| * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the |
| * list of wifi scan results returned for each cached result block. |
| */ |
| |
| /* EXTSCAN attributes for |
| * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command. |
| */ |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS, |
| |
| /* EXTSCAN attributes for |
| * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command. |
| */ |
| /* Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_NUM_RESULTS_AVAILABLE |
| * to indicate number of results. |
| */ |
| |
| /* EXTSCAN attributes for |
| * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command. |
| */ |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST, |
| |
| /* EXTSCAN attributes used with |
| * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command. |
| */ |
| /* Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_NUM_RESULTS_AVAILABLE |
| * to indicate number of gscan cached results returned. |
| * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to |
| * indicate the list of gscan cached results. |
| */ |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS, |
| /* Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_NUM_RESULTS_AVAILABLE |
| * to indicate number of wifi scan results/bssids retrieved by the scan. |
| * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the |
| * list of wifi scan results returned for each cached result block. |
| */ |
| |
| /* EXTSCAN attributes for |
| * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command. |
| */ |
| /* Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_NUM_RESULTS_AVAILABLE for number |
| * of results. |
| * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested |
| * list of wifi scan results returned for each |
| * wifi_passpoint_match_result block. |
| * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_NUM_RESULTS_AVAILABLE. |
| */ |
| |
| /* EXTSCAN attributes for |
| * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command. |
| */ |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID, |
| /* Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested |
| * list of wifi scan results returned for each |
| * wifi_passpoint_match_result block. |
| */ |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP, |
| |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID, |
| |
| /* EXTSCAN attributes for |
| * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND sub-command & |
| * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST sub-command |
| */ |
| /* Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_NUM_RESULTS_AVAILABLE |
| * to indicate number of results. |
| */ |
| |
| /* keep last */ |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX = |
| QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1, |
| }; |
| |
| #endif |
| |
| #ifdef WLAN_FEATURE_LINK_LAYER_STATS |
| |
| /** |
| * enum qca_wlan_vendor_attr_ll_stats_set - vendor attribute set stats |
| * |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID: Invalid initial value |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD: Size threshold |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING: |
| * Aggresive stats gathering |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST: After last |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX: Max value |
| */ |
| enum qca_wlan_vendor_attr_ll_stats_set { |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING, |
| /* keep last */ |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX = |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1 |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_attr_ll_stats_get - vendor attribute get stats |
| * |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID: Invalid initial value |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID: Unsigned 32bit value |
| * provided by the caller issuing the GET stats command. When reporting |
| * the stats results, the driver uses the same value to indicate which |
| * GET request the results correspond to. |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK: Get config request mask |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST: After last |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX: Max value |
| */ |
| enum qca_wlan_vendor_attr_ll_stats_get { |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX = |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1 |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_attr_ll_stats_clr - vendor attribute clear stats |
| * |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID: Invalid initial value |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK: Config request mask |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ: Config stop mask |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST: After last |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX: Max value |
| */ |
| enum qca_wlan_vendor_attr_ll_stats_clr { |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX = |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1 |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_attr_ll_stats_results_type - ll stats result type |
| * |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID: Initial invalid value |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO: Link layer stats type radio |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE: Link layer stats type interface |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER: Link layer stats type peer |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST: Last value |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX: Max value |
| */ |
| enum qca_wlan_vendor_attr_ll_stats_results_type { |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID = 0, |
| |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO = 1, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER, |
| |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX = |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST - 1 |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_attr_ll_stats_results - vendor attribute stats results |
| * |
| * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are nested |
| * within the interface stats. |
| * |
| * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could be nested |
| * within the interface stats. |
| * |
| * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are nested |
| * within the interface stats. |
| * |
| * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* could be nested |
| * within the peer info stats. |
| * |
| * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could be |
| * nested within the channel stats. |
| * |
| * Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ could be nested |
| * within the radio stats. |
| * |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID: Invalid initial value |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID: Unsigned 32bit value |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX: Unsigned 32bit value |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX: Unsigned 32bit value |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX: Unsigned 32bit value |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX: Unsigned 32bit value |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT: Unsigned 32bit value |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA: Unsigned 32bit value |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK: Unsigned 32bit value |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE: Interface mode, e.g., STA, |
| * SOFTAP, IBSS, etc. Type = enum wifi_interface_mode |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR: Interface MAC address. |
| * An array of 6 Unsigned int8_t |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE: |
| * Type = enum wifi_connection_state, e.g., DISCONNECTED, AUTHENTICATING, |
| * etc. Valid for STA, CLI only |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING: |
| * Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE |
| * (is that valid for STA only?) |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES: Unsigned 32bit value. |
| * WIFI_CAPABILITY_XXX |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID: NULL terminated SSID. An |
| * array of 33 Unsigned 8bit values |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID: BSSID. An array of 6 |
| * Unsigned 8bit values |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR: Country string |
| * advertised by AP. An array of 3 Unsigned 8bit values |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR: Country string for |
| * this association. An array of 3 Unsigned 8bit values |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC: Type = enum wifi_traffic_ac e.g. |
| * V0, VI, BE and BK |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU: Unsigned int 32 value |
| * corresponding to respective AC |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU: Unsigned int 32 value |
| * corresponding to respective AC |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST: Unsigned int 32 value |
| * corresponding to respective AC |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST: Unsigned int 32 value |
| * corresponding to respective AC |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU: Unsigned int 32 value |
| * corresponding to respective AC |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU: Unsigned int 32 value |
| * corresponding to respective AC |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST: Unsigned int 32 value |
| * corresponding to respective AC |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES: Unsigned int 32 value |
| * corresponding to respective AC |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT: Unsigned int 32 value |
| * corresponding to respective AC |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN: Unsigned int 32 |
| * value corresponding to respective AC |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX: Unsigned int 32 |
| * value corresponding to respective AC |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG: Unsigned int 32 |
| * value corresponding to respective AC |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES: Unsigned int 32 |
| * value corresponding to respective AC |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS: Unsigned int 32 |
| * value corresponding to respective AC |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE: Type = enum wifi_peer_type |
| * Peer type, e.g., STA, AP, P2P GO etc |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS: MAC addr corresponding |
| * to respective peer. An array of 6 Unsigned 8bit values |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES: Unsigned int 32bit |
| * value representing capabilities corresponding to respective peer. |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES: Unsigned 32bit value. |
| * Number of rates |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE: Unsigned int 8bit value: |
| * 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS: Unsigned int 8bit value: |
| * 0:1x1, 1:2x2, 3:3x3, 4:4x4 |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW: Unsigned int 8bit value: |
| * 0:20MHz, 1:40Mhz, 2:80Mhz, 3:160Mhz |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX: Unsigned int 8bit value: |
| * OFDM/CCK rate code would be as per IEEE Std in the units of 0.5mbps |
| * HT/VHT it would be mcs index |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE: Unsigned 32bit value. |
| * Bit rate in units of 100Kbps |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU: Unsigned int 32bit value. |
| * Number of successfully transmitted data pkts i.e., with ACK received |
| * corresponding to the respective rate |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU: Unsigned int 32bit value. |
| * Number of received data pkts corresponding to the respective rate |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST: Unsigned int 32bit value. |
| * Number of data pkts losses, i.e., no ACK received corresponding to |
| * the respective rate |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES: Unsigned int 32bit value. |
| * Total number of data pkt retries for the respective rate |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT: Unsigned int 32bit value. |
| * Total number of short data pkt retries for the respective rate |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG: Unsigned int 32bit value. |
| * Total number of long data pkt retries for the respective rate |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID: Radio id |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME: Unsigned 32bit value. |
| * Total number of msecs the radio is awake accruing over time |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME: Unsigned 32bit value. |
| * Total number of msecs the radio is transmitting accruing over time |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME: Unsigned 32bit value. |
| * Total number of msecs the radio is in active receive accruing over time |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN: Unsigned 32bit value. |
| * Total number of msecs the radio is awake due to all scan accruing |
| * over time |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD: Unsigned 32bit value. |
| * Total number of msecs the radio is awake due to NAN accruing over time. |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN: Unsigned 32bit value. |
| * Total number of msecs the radio is awake due to GSCAN accruing over time |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN: Unsigned 32bit value. |
| * Total number of msecs the radio is awake due to roam scan accruing over |
| * time. |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN: Unsigned 32bit value. |
| * Total number of msecs the radio is awake due to PNO scan accruing over |
| * time. |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20: Unsigned 32bit value. |
| * Total number of msecs the radio is awake due to HS2.0 scans and GAS |
| * exchange accruing over time. |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS: Unsigned 32bit value. |
| * Number of channels |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH: |
| * Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80, etc. |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ: |
| * Unsigned 32bit value. Primary 20MHz channel. |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0: |
| * Unsigned 32bit value. Center frequency (MHz) first segment. |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1: |
| * Unsigned 32bit value. Center frequency (MHz) second segment. |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME: Unsigned int 32bit value |
| * representing total number of msecs the radio is awake on that channel |
| * accruing over time, corresponding to the respective channel. |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME: Unsigned int 32bit |
| * value representing total number of msecs the CCA register is busy |
| * accruing over time corresponding to the respective channel. |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS: Number of radios |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO: Channel info |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO: Peer info |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO: Peer rate info |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO: WMM info |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA: Unsigned 8bit value. |
| * Used by the driver; if set to 1, it indicates that more stats, e.g., |
| * peers or radio, are to follow in the next |
| * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event. Otherwise, it |
| * is set to 0. |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET: tsf offset |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED: leaky ap detected |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED: |
| * average number of frames leaked |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME: guard time |
| * @QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST: After last |
| * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value |
| */ |
| |
| enum qca_wlan_vendor_attr_ll_stats_results { |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1, |
| |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR, |
| |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES, |
| |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS, |
| |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES, |
| |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE, |
| |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG, |
| |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS, |
| |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1, |
| |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME, |
| |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO, |
| |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA, |
| |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME, |
| |
| /* Unsigned 32bit value to indicate ll stats result type */ |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE, |
| |
| /* keep last */ |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX = |
| QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1 |
| }; |
| |
| #endif /* WLAN_FEATURE_LINK_LAYER_STATS */ |
| |
| /** |
| * enum qca_wlan_vendor_attr_get_supported_features - get supported feature |
| * |
| * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value |
| * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value |
| * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last |
| * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value |
| */ |
| enum qca_wlan_vendor_attr_get_supported_features { |
| QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0, |
| QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1, |
| QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX = |
| QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1, |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui |
| * |
| * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value |
| * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit |
| * value |
| * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last |
| * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value |
| */ |
| enum qca_wlan_vendor_attr_set_scanning_mac_oui { |
| QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0, |
| QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1, |
| QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX = |
| QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1, |
| }; |
| |
| /** |
| * 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, |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix |
| * |
| * NL attributes for data used by |
| * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command. |
| * |
| * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value |
| * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX: |
| * Unsigned 32-bit value |
| * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE: |
| * Unsigned 32-bit value |
| * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An |
| * array of SET_SIZE x Unsigned 32bit values representing concurrency |
| * combinations |
| * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last |
| * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value |
| */ |
| enum qca_wlan_vendor_attr_get_concurrency_matrix { |
| QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0, |
| QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX |
| = 1, |
| QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2, |
| QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3, |
| QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX = |
| QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1, |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag |
| * |
| * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value |
| * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value |
| * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last |
| * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value |
| */ |
| enum qca_wlan_vendor_attr_set_no_dfs_flag { |
| QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0, |
| QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1, |
| QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX = |
| QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1, |
| }; |
| |
| |
| /** |
| * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming |
| * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID: BSSID of the roamed AP |
| * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE |
| * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE |
| * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status |
| * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter |
| * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK |
| * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK |
| * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status |
| */ |
| 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, |
| QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS, |
| QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX = |
| QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1 |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_attr_wifi_config - wifi config |
| * |
| * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value |
| * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM |
| * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor |
| * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time |
| * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last |
| * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value |
| */ |
| enum qca_wlan_vendor_attr_wifi_config { |
| QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0, |
| QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1, |
| QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2, |
| QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3, |
| |
| /* keep last */ |
| QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX = |
| QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1, |
| }; |
| |
| /** |
| * enum qca_wlan_epno_type - the type of request to the EPNO command |
| * @QCA_WLAN_EPNO: epno type request |
| * @QCA_WLAN_PNO: pno type request |
| */ |
| enum qca_wlan_epno_type { |
| QCA_WLAN_EPNO, |
| QCA_WLAN_PNO |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_attr_pno_config_params - pno config params |
| * |
| * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value |
| * |
| * NL attributes for data used by |
| * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command. |
| * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM: |
| * Unsigned 32-bit value; pno passpoint number of networks |
| * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY: |
| * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_* |
| * attributes. Array size = |
| * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM. |
| * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID: |
| * Unsigned 32-bit value; network id |
| * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM: |
| * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded |
| * realm, 0 if unspecified. |
| * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID: |
| * An array of 16 x Unsigned 32-bit value; roaming consortium ids |
| * to match, 0 if unspecified. |
| * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN: |
| * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if |
| * unspecified. |
| * |
| * NL attributes for data used by |
| * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command. |
| * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS: |
| * Unsigned 32-bit value; set pno number of networks |
| * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST: |
| * Array of nested |
| * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_* |
| * attributes. Array size = |
| * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS |
| * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID: |
| * An array of 33 x Unsigned 8-bit value; NULL terminated SSID |
| * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD: |
| * Signed 8-bit value; threshold for considering this SSID as found, |
| * required granularity for this threshold is 4dBm to 8dBm |
| * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS: |
| * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX |
| * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT: |
| * Unsigned 8-bit value; auth bit field for matching WPA IE |
| * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE |
| * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type |
| * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last |
| * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max |
| */ |
| enum qca_wlan_vendor_attr_pno_config_params { |
| QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0, |
| |
| QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1, |
| QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2, |
| QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3, |
| QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4, |
| QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5, |
| QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6, |
| |
| QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7, |
| QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8, |
| QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9, |
| QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10, |
| QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11, |
| QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12, |
| QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13, |
| |
| /* keep last */ |
| QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_PNO_MAX = |
| QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1, |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_attr_roaming_config_params - roaming config params |
| * |
| * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID: Invalid initial value |
| * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: roaming sub command |
| * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Request id |
| * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: |
| * number of whitelist networks |
| * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: |
| * Whitelist ssid list |
| * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: |
| * white list ssid |
| * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: |
| * 'a' band boost threshold |
| * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: |
| * 'a' band penalty threshold |
| * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: |
| * 'a' band boost factor |
| * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: |
| * 'a' band penalty factor |
| * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: |
| * 'a' band max boost |
| * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: |
| * lazy roam histeresys |
| * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: |
| * alert roam rssi trigger |
| * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: |
| * set lazy roam enable |
| * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: |
| * set bssid preference |
| * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: |
| * set lazy roam number of bssid |
| * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: |
| * set lazy roam bssid |
| * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: |
| * set lazy roam rssi modifier |
| * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: |
| * set bssid params |
| * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: |
| * set bssid params num bssid |
| * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: |
| * set bssid params bssid |
| * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last |
| * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max |
| */ |
| enum qca_wlan_vendor_attr_roaming_config_params { |
| QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0, |
| |
| QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1, |
| QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2, |
| |
| QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3, |
| QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4, |
| QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5, |
| |
| QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6, |
| QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7, |
| QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8, |
| QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9, |
| QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10, |
| QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11, |
| QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12, |
| |
| QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13, |
| |
| QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14, |
| QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15, |
| QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16, |
| QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17, |
| |
| QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18, |
| QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19, |
| QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20, |
| |
| /* keep last */ |
| QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX = |
| QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1, |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_attr_roam_subcmd - roam sub commands |
| * |
| * @QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_INVALID: Invalid initial value |
| * @QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SSID_WHITE_LIST: ssid white list |
| * @QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: roam params |
| * @QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_LAZY_ROAM: set lazy roam |
| * @QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PREFS: set bssid prefs |
| * @QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PARAMS: set bssid params |
| * @QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BLACKLIST_BSSID: set blacklist bssid |
| * @QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_AFTER_LAST: after last |
| * @QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_MAX: subcmd max |
| */ |
| enum qca_wlan_vendor_attr_roam_subcmd { |
| QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_INVALID = 0, |
| QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SSID_WHITE_LIST = 1, |
| QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2, |
| QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_LAZY_ROAM = 3, |
| QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PREFS = 4, |
| QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PARAMS = 5, |
| QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BLACKLIST_BSSID = 6, |
| |
| /* KEEP LAST */ |
| QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_MAX = |
| QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_AFTER_LAST - 1, |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information |
| * |
| * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value |
| * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version |
| * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version |
| * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last |
| * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max |
| */ |
| enum qca_wlan_vendor_attr_get_wifi_info { |
| QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0, |
| QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1, |
| QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2, |
| |
| /* KEEP LAST */ |
| QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX = |
| QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1, |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_attr_get_logger_features - value for logger |
| * supported features |
| * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid |
| * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features |
| * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum |
| * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type |
| * |
| * enum values are used for NL attributes for data used by |
| * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command. |
| */ |
| enum qca_wlan_vendor_attr_get_logger_features { |
| QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0, |
| QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1, |
| |
| /* keep last */ |
| QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_LOGGER_MAX = |
| QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1, |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_attr_link_properties - link properties |
| * |
| * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value |
| * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to |
| * specify the number of spatial streams negotiated |
| * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value |
| * to specify negotiated rate flags i.e. ht, vht and channel width |
| * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to |
| * specify the operating frequency |
| * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last |
| * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value |
| */ |
| enum qca_wlan_vendor_attr_link_properties { |
| QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0, |
| QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1, |
| QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2, |
| QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3, |
| |
| /* KEEP LAST */ |
| QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX = |
| QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1, |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_features - vendor device/driver features |
| * @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 supplicant do it. |
| * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports |
| * simultaneous off-channel operations. |
| */ |
| enum qca_wlan_vendor_features { |
| QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0, |
| QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1, |
| QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2, |
| /* Additional features need to be added above this */ |
| NUM_QCA_WLAN_VENDOR_FEATURES |
| }; |
| |
| /* Feature defines */ |
| #define WIFI_FEATURE_INFRA 0x0001 /* Basic infrastructure mode */ |
| #define WIFI_FEATURE_INFRA_5G 0x0002 /* Support for 5 GHz Band */ |
| #define WIFI_FEATURE_HOTSPOT 0x0004 /* Support for GAS/ANQP */ |
| #define WIFI_FEATURE_P2P 0x0008 /* Wifi-Direct */ |
| #define WIFI_FEATURE_SOFT_AP 0x0010 /* Soft AP */ |
| #define WIFI_FEATURE_EXTSCAN 0x0020 /* Extended Scan APIs */ |
| #define WIFI_FEATURE_NAN 0x0040 /* Neighbor Awareness |
| Networking */ |
| #define WIFI_FEATURE_D2D_RTT 0x0080 /* Device-to-device RTT */ |
| #define WIFI_FEATURE_D2AP_RTT 0x0100 /* Device-to-AP RTT */ |
| #define WIFI_FEATURE_BATCH_SCAN 0x0200 /* Batched Scan (legacy) */ |
| #define WIFI_FEATURE_PNO 0x0400 /* Preferred network offload */ |
| #define WIFI_FEATURE_ADDITIONAL_STA 0x0800 /* Support for two STAs */ |
| #define WIFI_FEATURE_TDLS 0x1000 /* Tunnel directed link |
| setup */ |
| #define WIFI_FEATURE_TDLS_OFFCHANNEL 0x2000 /* Support for TDLS off |
| channel */ |
| #define WIFI_FEATURE_EPR 0x4000 /* Enhanced power reporting */ |
| #define WIFI_FEATURE_AP_STA 0x8000 /* Support for AP STA |
| Concurrency */ |
| #define WIFI_FEATURE_LINK_LAYER_STATS 0x10000 /* Link layer stats */ |
| #define WIFI_FEATURE_LOGGER 0x20000 /* WiFi Logger */ |
| #define WIFI_FEATURE_HAL_EPNO 0x40000 /* WiFi PNO enhanced */ |
| #define WIFI_FEATURE_RSSI_MONITOR 0x80000 /* RSSI Monitor */ |
| |
| /** |
| * enum wifi_logger_supported_features - values for supported logger features |
| * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED - Memory dump of FW |
| * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED - Per packet statistics |
| * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED - Logging of Connectivity events |
| * @WIFI_LOGGER_POWER_EVENT_SUPPORTED - Power of driver |
| * @WIFI_LOGGER_WAKE_LOCK_SUPPORTED - Wakelock of driver |
| * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED - monitor FW health |
| */ |
| enum wifi_logger_supported_features { |
| WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)), |
| WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)), |
| WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)), |
| WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)), |
| WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)), |
| WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)), |
| WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)), |
| }; |
| |
| /* Add more features here */ |
| #define WIFI_TDLS_SUPPORT BIT(0) |
| #define WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT BIT(1) |
| #define WIIF_TDLS_OFFCHANNEL_SUPPORT BIT(2) |
| |
| #if defined(FEATURE_WLAN_CH_AVOID) || defined(FEATURE_WLAN_FORCE_SAP_SCC) |
| #define HDD_MAX_AVOID_FREQ_RANGES 4 |
| /** |
| * typedef struct sHddAvoidFreqRange - avoid frequency range |
| * |
| * @startFreq: Start frequency range |
| * @endFreq: End frequency range |
| */ |
| typedef struct sHddAvoidFreqRange { |
| u32 startFreq; |
| u32 endFreq; |
| } tHddAvoidFreqRange; |
| |
| /** |
| * typedef struct sHddAvoidFreqList - avoid frequency list |
| * |
| * @avoidFreqRangeCount: Avoid frequency range count |
| * @avoidFreqRange: Avoid frequency list |
| */ |
| typedef struct sHddAvoidFreqList { |
| u32 avoidFreqRangeCount; |
| tHddAvoidFreqRange avoidFreqRange[HDD_MAX_AVOID_FREQ_RANGES]; |
| } tHddAvoidFreqList; |
| #endif /* FEATURE_WLAN_CH_AVOID || FEATURE_WLAN_FORCE_SAP_SCC */ |
| |
| /** |
| * enum qca_wlan_vendor_attr_acs_offload |
| * |
| * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: ACS selected primary channel |
| * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: ACS selected secondary channel |
| * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: hw_mode for ACS |
| * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: indicate if HT capability is enabled |
| * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: indicate HT capability |
| */ |
| 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, |
| 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, |
| QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST, |
| /* 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: 11b mode |
| * @QCA_ACS_MODE_IEEE80211G: 11g mode |
| * @QCA_ACS_MODE_IEEE80211A: 11a mode |
| * @QCA_ACS_MODE_IEEE80211AD: 11ad mode |
| */ |
| enum qca_wlan_vendor_acs_hw_mode { |
| QCA_ACS_MODE_IEEE80211B, |
| QCA_ACS_MODE_IEEE80211G, |
| QCA_ACS_MODE_IEEE80211A, |
| QCA_ACS_MODE_IEEE80211AD, |
| QCA_ACS_MODE_IEEE80211ANY, |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_config: wifi config attr |
| * |
| * @QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID: invalid config |
| * @QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM: modulated dtim |
| * @QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR: stats avg. factor |
| * @QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME: guard time |
| * @QCA_WLAN_VENDOR_ATTR_CONFIG_LAST: last config |
| * @QCA_WLAN_VENDOR_ATTR_CONFIG_MAX: max config |
| */ |
| enum qca_wlan_vendor_config { |
| QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0, |
| QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM, |
| QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR, |
| QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME, |
| /* keep last */ |
| QCA_WLAN_VENDOR_ATTR_CONFIG_LAST, |
| QCA_WLAN_VENDOR_ATTR_CONFIG_MAX = |
| QCA_WLAN_VENDOR_ATTR_CONFIG_LAST - 1 |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting |
| * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute |
| * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID |
| * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level |
| * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag |
| * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value |
| * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value |
| */ |
| enum qca_wlan_vendor_attr_wifi_logger_start { |
| QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0, |
| QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1, |
| QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2, |
| QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3, |
| /* keep last */ |
| QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX = |
| QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1, |
| }; |
| |
| /* |
| * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data |
| * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute |
| * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID |
| * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value |
| * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value |
| */ |
| enum qca_wlan_vendor_attr_wifi_logger_get_ring_data { |
| QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0, |
| QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1, |
| /* keep last */ |
| QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX = |
| QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1, |
| }; |
| |
| #ifdef WLAN_FEATURE_OFFLOAD_PACKETS |
| /** |
| * enum wlan_offloaded_packets_control - control commands |
| * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets |
| * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets |
| * |
| */ |
| enum wlan_offloaded_packets_control { |
| WLAN_START_OFFLOADED_PACKETS = 1, |
| WLAN_STOP_OFFLOADED_PACKETS = 2 |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_attr_offloaded_packets - offloaded packets |
| * @QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID: invalid |
| * @QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL: control |
| * @QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID: request id |
| * @QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA: ip packet data |
| * @QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR: src mac address |
| * @QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR: destination mac address |
| * @QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD: period in milli seconds |
| * @QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST: after last |
| * @QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX: max |
| */ |
| enum qca_wlan_vendor_attr_offloaded_packets { |
| QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0, |
| QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL, |
| QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID, |
| |
| /* Packet in hex format */ |
| QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA, |
| QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR, |
| QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR, |
| QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD, |
| |
| /* keep last */ |
| QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX = |
| QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1, |
| }; |
| #endif |
| |
| /** |
| * enum qca_wlan_rssi_monitoring_control - rssi control commands |
| * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid |
| * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start |
| * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop |
| */ |
| enum qca_wlan_rssi_monitoring_control { |
| QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0, |
| QCA_WLAN_RSSI_MONITORING_START, |
| QCA_WLAN_RSSI_MONITORING_STOP, |
| }; |
| |
| /** |
| * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring |
| * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid |
| * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control |
| * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi |
| * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi |
| * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid |
| * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi |
| * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last |
| * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max |
| */ |
| enum qca_wlan_vendor_attr_rssi_monitoring { |
| QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0, |
| |
| QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL, |
| QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID, |
| |
| QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI, |
| QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI, |
| |
| /* attributes to be used/received in callback */ |
| QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID, |
| QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI, |
| |
| /* keep last */ |
| QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX = |
| QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1, |
| }; |
| |
| /** |
| * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list |
| * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value |
| * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type |
| * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list |
| * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last |
| * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max |
| */ |
| 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 both south- and north-bound. |
| */ |
| QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE, |
| /* An array of 32-unsigned values; values are frequency (MHz); used |
| * in north-bound only. |
| */ |
| 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 - channel hint |
| * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value |
| * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type |
| * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value |
| * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last |
| * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max |
| */ |
| 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_wlan_vendor_attr_gw_param_config - gateway param config |
| * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid |
| * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr |
| * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr |
| * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr |
| */ |
| enum qca_wlan_vendor_attr_gw_param_config { |
| QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0, |
| QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR, |
| QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR, |
| QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR, |
| QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST, |
| QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX = |
| QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1, |
| }; |
| |
| /** |
| * enum drv_dbs_capability - DBS capability |
| * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled |
| * @DRV_DBS_CAPABILITY_1X1: 1x1 |
| * @DRV_DBS_CAPABILITY_2X2: 2x2 |
| */ |
| enum drv_dbs_capability { |
| DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */ |
| DRV_DBS_CAPABILITY_1X1, |
| DRV_DBS_CAPABILITY_2X2, |
| }; |
| |
| /** |
| * enum qca_vendor_attr_ota_test - Enable OTA test |
| * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value |
| * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test |
| * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last |
| * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max |
| */ |
| 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 |
| }; |
| |
| struct cfg80211_bss *wlan_hdd_cfg80211_update_bss_db(hdd_adapter_t *pAdapter, |
| tCsrRoamInfo *pRoamInfo); |
| |
| #ifdef FEATURE_WLAN_LFR |
| int wlan_hdd_cfg80211_pmksa_candidate_notify(hdd_adapter_t *pAdapter, |
| tCsrRoamInfo *pRoamInfo, |
| int index, bool preauth); |
| #endif |
| |
| #ifdef FEATURE_WLAN_LFR_METRICS |
| CDF_STATUS wlan_hdd_cfg80211_roam_metrics_preauth(hdd_adapter_t *pAdapter, |
| tCsrRoamInfo *pRoamInfo); |
| |
| CDF_STATUS wlan_hdd_cfg80211_roam_metrics_preauth_status(hdd_adapter_t * |
| pAdapter, |
| tCsrRoamInfo * |
| pRoamInfo, |
| bool preauth_status); |
| |
| CDF_STATUS wlan_hdd_cfg80211_roam_metrics_handover(hdd_adapter_t *pAdapter, |
| tCsrRoamInfo *pRoamInfo); |
| #endif |
| |
| #ifdef FEATURE_WLAN_WAPI |
| void wlan_hdd_cfg80211_set_key_wapi(hdd_adapter_t *pAdapter, uint8_t key_index, |
| const uint8_t *mac_addr, const uint8_t *key, |
| int key_Len); |
| #endif |
| struct wiphy *wlan_hdd_cfg80211_wiphy_alloc(int priv_size); |
| |
| int wlan_hdd_cfg80211_scan(struct wiphy *wiphy, |
| struct cfg80211_scan_request *request); |
| |
| int wlan_hdd_cfg80211_init(struct device *dev, |
| struct wiphy *wiphy, struct hdd_config *pCfg); |
| |
| void wlan_hdd_update_wiphy(struct wiphy *wiphy, struct hdd_config *pCfg); |
| |
| int wlan_hdd_cfg80211_register(struct wiphy *wiphy); |
| void wlan_hdd_cfg80211_register_frames(hdd_adapter_t *pAdapter); |
| |
| void wlan_hdd_cfg80211_deregister_frames(hdd_adapter_t *pAdapter); |
| |
| void hdd_reg_notifier(struct wiphy *wiphy, |
| struct regulatory_request *request); |
| |
| extern void hdd_conn_set_connection_state(hdd_adapter_t *pAdapter, |
| eConnectionState connState); |
| CDF_STATUS wlan_hdd_validate_operation_channel(hdd_adapter_t *pAdapter, |
| int channel); |
| #ifdef FEATURE_WLAN_TDLS |
| int wlan_hdd_cfg80211_send_tdls_discover_req(struct wiphy *wiphy, |
| struct net_device *dev, u8 *peer); |
| #endif |
| #ifdef WLAN_FEATURE_GTK_OFFLOAD |
| extern void wlan_hdd_cfg80211_update_replay_counter_callback(void |
| *callbackContext, |
| tpSirGtkOffloadGetInfoRspParams |
| pGtkOffloadGetInfoRsp); |
| #endif |
| void *wlan_hdd_change_country_code_cb(void *pAdapter); |
| void hdd_select_cbmode(hdd_adapter_t *pAdapter, uint8_t operationChannel); |
| |
| uint8_t *wlan_hdd_cfg80211_get_ie_ptr(const uint8_t *ies_ptr, int length, |
| uint8_t eid); |
| |
| #ifdef CFG80211_DEL_STA_V2 |
| int wlan_hdd_cfg80211_del_station(struct wiphy *wiphy, |
| struct net_device *dev, |
| struct station_del_parameters *param); |
| #else |
| #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0)) |
| int wlan_hdd_cfg80211_del_station(struct wiphy *wiphy, |
| struct net_device *dev, |
| const uint8_t *mac); |
| #else |
| int wlan_hdd_cfg80211_del_station(struct wiphy *wiphy, |
| struct net_device *dev, |
| uint8_t *mac); |
| #endif |
| #endif |
| |
| #if defined(QCA_WIFI_FTM) && defined(CONFIG_NL80211_TESTMODE) |
| void wlan_hdd_testmode_rx_event(void *buf, size_t buf_len); |
| #endif |
| |
| #if defined(FEATURE_WLAN_CH_AVOID) || defined(FEATURE_WLAN_FORCE_SAP_SCC) |
| int wlan_hdd_send_avoid_freq_event(hdd_context_t *pHddCtx, |
| tHddAvoidFreqList * pAvoidFreqList); |
| #endif /* FEATURE_WLAN_CH_AVOID || FEATURE_WLAN_FORCE_SAP_SCC */ |
| |
| #ifdef FEATURE_WLAN_EXTSCAN |
| void wlan_hdd_cfg80211_extscan_callback(void *ctx, |
| const uint16_t evType, void *pMsg); |
| #endif /* FEATURE_WLAN_EXTSCAN */ |
| |
| void hdd_rssi_threshold_breached(void *hddctx, |
| struct rssi_breach_event *data); |
| |
| struct cfg80211_bss *wlan_hdd_cfg80211_update_bss_list(hdd_adapter_t *pAdapter, |
| tCsrRoamInfo *pRoamInfo); |
| |
| int wlan_hdd_cfg80211_update_bss(struct wiphy *wiphy, |
| hdd_adapter_t *pAdapter, |
| uint32_t scan_timestamp); |
| |
| void wlan_hdd_cfg80211_acs_ch_select_evt(hdd_adapter_t *adapter); |
| |
| #ifdef WLAN_FEATURE_ROAM_OFFLOAD |
| int wlan_hdd_send_roam_auth_event(hdd_context_t *hdd_ctx_ptr, uint8_t *bssid, |
| uint8_t *req_rsn_ie, uint32_t req_rsn_length, uint8_t |
| *rsp_rsn_ie, uint32_t rsp_rsn_length, tCsrRoamInfo |
| *roam_info_ptr); |
| #else |
| static inline int wlan_hdd_send_roam_auth_event(hdd_context_t *hdd_ctx_ptr, |
| uint8_t *bssid, uint8_t *req_rsn_ie, uint32_t req_rsn_length, |
| uint8_t *rsp_rsn_ie, uint32_t rsp_rsn_length, tCsrRoamInfo |
| *roam_info_ptr) |
| { |
| return 0; |
| } |
| #endif |
| |
| int wlan_hdd_cfg80211_update_apies(hdd_adapter_t *adapter); |
| |
| #if !(defined (SUPPORT_WDEV_CFG80211_VENDOR_EVENT_ALLOC)) |
| static inline struct sk_buff * |
| backported_cfg80211_vendor_event_alloc(struct wiphy *wiphy, |
| struct wireless_dev *wdev, |
| int approxlen, |
| int event_idx, gfp_t gfp) |
| { |
| return cfg80211_vendor_event_alloc(wiphy, approxlen, event_idx, gfp); |
| } |
| #define cfg80211_vendor_event_alloc backported_cfg80211_vendor_event_alloc |
| #endif |
| int wlan_hdd_sap_cfg_dfs_override(hdd_adapter_t *adapter); |
| |
| enum cds_con_mode wlan_hdd_convert_nl_iftype_to_hdd_type( |
| enum nl80211_iftype type); |
| |
| int wlan_hdd_disable_dfs_chan_scan(hdd_context_t *hdd_ctx, |
| hdd_adapter_t *adapter, |
| uint32_t no_dfs_flag); |
| |
| #endif |