| /* |
| * Copyright (c) 2012-2019 The Linux Foundation. All rights reserved. |
| * |
| * 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. |
| */ |
| |
| /** |
| * DOC: This file contains centralized definitions of converged configuration. |
| */ |
| |
| #ifndef __HDD_CONFIG_H |
| #define __HDD_CONFIG_H |
| |
| #if defined(CONFIG_HL_SUPPORT) |
| #include "wlan_tgt_def_config_hl.h" |
| #else |
| #include "wlan_tgt_def_config.h" |
| #endif |
| |
| #define CFG_QDF_TRACE_ENABLE_DEFAULT (0xffff) |
| #include <wlan_action_oui_public_struct.h> |
| |
| /** |
| * enum hdd_wext_control - knob for wireless extensions |
| * @hdd_wext_disabled - interface is completely disabled. An access |
| * control error log will be generated for each attempted use. |
| * @hdd_wext_deprecated - interface is available but should not be |
| * used. An access control warning log will be generated for each |
| * use. |
| * @hdd_wext_enabled - interface is available without restriction. No |
| * access control logs will be generated. |
| * |
| * enum hdd_wext_control is used to enable coarse grained control on |
| * wireless extensions ioctls. This control is used by configuration |
| * item private_wext_control. |
| * |
| */ |
| enum hdd_wext_control { |
| hdd_wext_disabled = 0, |
| hdd_wext_deprecated = 1, |
| hdd_wext_enabled = 2, |
| }; |
| |
| /* |
| * <ini> |
| * private_wext_control - Private wireless extensions control |
| * @Min: 0 |
| * @Max: 2 |
| * @Default: 1 |
| * |
| * Values are per enum hdd_wext_control. |
| * This ini is used to control access to private wireless extensions |
| * ioctls SIOCIWFIRSTPRIV (0x8BE0) thru SIOCIWLASTPRIV (0x8BFF). The |
| * functionality provided by some of these ioctls has been superceeded |
| * by cfg80211 (either standard commands or vendor commands), but many |
| * of the private ioctls do not have a cfg80211-based equivalent, so |
| * by default support for these ioctls is deprecated. |
| * |
| * Related: None |
| * |
| * Supported Feature: All |
| * |
| * Usage: Internal/External |
| * |
| * </ini> |
| */ |
| #define CFG_PRIVATE_WEXT_CONTROL CFG_INI_UINT( \ |
| "private_wext_control", \ |
| hdd_wext_disabled, \ |
| hdd_wext_enabled, \ |
| hdd_wext_deprecated, \ |
| CFG_VALUE_OR_DEFAULT, \ |
| "Private WEXT Control") |
| |
| enum hdd_dot11_mode { |
| eHDD_DOT11_MODE_AUTO = 0, /* covers all things we support */ |
| eHDD_DOT11_MODE_abg, /* 11a/b/g only, no HT, no proprietary */ |
| eHDD_DOT11_MODE_11b, |
| eHDD_DOT11_MODE_11g, |
| eHDD_DOT11_MODE_11n, |
| eHDD_DOT11_MODE_11g_ONLY, |
| eHDD_DOT11_MODE_11n_ONLY, |
| eHDD_DOT11_MODE_11b_ONLY, |
| eHDD_DOT11_MODE_11ac_ONLY, |
| eHDD_DOT11_MODE_11ac, |
| eHDD_DOT11_MODE_11a, |
| eHDD_DOT11_MODE_11ax_ONLY, |
| eHDD_DOT11_MODE_11ax, |
| }; |
| |
| /* |
| * <ini> |
| * gDot11Mode - Phymode of vdev |
| * @Min: 0 (auto) |
| * @Max: 12 (11ax) |
| * @Default: 12 (11ax) |
| * |
| * This ini is used to set Phy Mode (auto, b, g, n, etc/) Valid values are |
| * 0-12, with 0 = Auto, 12 = 11ax. |
| * |
| * Related: None. |
| * |
| * Supported Feature: SAP |
| * |
| * Usage: Internal/External |
| * |
| * </ini> |
| */ |
| #define CFG_HDD_DOT11_MODE CFG_INI_UINT( \ |
| "gDot11Mode", \ |
| eHDD_DOT11_MODE_AUTO, \ |
| eHDD_DOT11_MODE_11ax, \ |
| eHDD_DOT11_MODE_11ax, \ |
| CFG_VALUE_OR_DEFAULT, \ |
| "dot11 mode") |
| |
| /* |
| * <ini> |
| * gInterfaceChangeWait - Interface change wait |
| * @Min: 0, |
| * @Max: 500000 |
| * @Default: 10000 |
| * |
| * Timer waiting for interface up from the upper layer. If |
| * this timer expires all the cds modules shall be closed. |
| * Time Units: ms |
| * |
| * Value 0 can be used to disable idle module stop. |
| * |
| * Related: None |
| * |
| * Supported Feature: All |
| * |
| * </ini> |
| */ |
| #define CFG_INTERFACE_CHANGE_WAIT CFG_INI_UINT( \ |
| "gInterfaceChangeWait", \ |
| 0, \ |
| 500000, \ |
| 10000, \ |
| CFG_VALUE_OR_DEFAULT, \ |
| "Interface change wait") |
| |
| #ifdef QCA_WIFI_NAPIER_EMULATION |
| #define CFG_TIMER_MULTIPLIER_DEFAULT 100 |
| #else |
| #define CFG_TIMER_MULTIPLIER_DEFAULT 1 |
| #endif |
| |
| /* |
| * <ini> |
| * gTimerMultiplier - Scale QDF timers by this value |
| * @Min: 1 |
| * @Max: 0xFFFFFFFF |
| * @Default: 1 (100 for emulation) |
| * |
| * To assist in debugging emulation setups, scale QDF timers by this factor. |
| * |
| * @E.g. |
| * # QDF timers expire in real time |
| * gTimerMultiplier=1 |
| * # QDF timers expire after 100 times real time |
| * gTimerMultiplier=100 |
| * |
| * Related: None |
| * |
| * Usage: Internal |
| * |
| * </ini> |
| */ |
| #define CFG_TIMER_MULTIPLIER CFG_INI_UINT( \ |
| "gTimerMultiplier", \ |
| 1, \ |
| 0xFFFFFFFF, \ |
| CFG_TIMER_MULTIPLIER_DEFAULT, \ |
| CFG_VALUE_OR_DEFAULT, \ |
| "Timer Multiplier") |
| |
| #define CFG_BUG_ON_REINIT_FAILURE_DEFAULT 1 |
| /* |
| * <ini> |
| * g_bug_on_reinit_failure - Enable/Disable bug on reinit |
| * @Min: 0 |
| * @Max: 1 |
| * @Default: 1 |
| * |
| * This ini is used to debug ssr reinit failure issues by raising vos bug so |
| * dumps can be collected. |
| * g_bug_on_reinit_failure = 0 wlan driver will only recover after driver |
| * unload and load |
| * g_bug_on_reinit_failure = 1 raise vos bug to collect dumps |
| * |
| * Related: gEnableSSR |
| * |
| * Supported Feature: SSR |
| * |
| * Usage: External |
| * |
| * </ini> |
| */ |
| #define CFG_BUG_ON_REINIT_FAILURE CFG_INI_BOOL( \ |
| "g_bug_on_reinit_failure", \ |
| CFG_BUG_ON_REINIT_FAILURE_DEFAULT, \ |
| "BUG on reinit failure") |
| |
| /* |
| * <ini> |
| * gEnableDumpCollect - It will use for collect the dumps |
| * @Min: 0 |
| * @Max: 1 |
| * @Default: 1 |
| * |
| * This ini is used to set collect default dump |
| * |
| * Related: None |
| * |
| * Supported Feature: STA |
| * |
| * Usage: Internal/External |
| * |
| * </ini> |
| */ |
| #define CFG_ENABLE_RAMDUMP_COLLECTION CFG_INI_BOOL( \ |
| "gEnableDumpCollect", \ |
| 1, \ |
| "Enable dump collect") |
| |
| #if defined(MDM_PLATFORM) && !defined(FEATURE_MULTICAST_HOST_FW_MSGS) |
| #define CFG_MULTICAST_HOST_FW_MSGS_DEFAULT 0 |
| #else |
| #define CFG_MULTICAST_HOST_FW_MSGS_DEFAULT 1 |
| #endif |
| |
| /* |
| * <ini> |
| * gMulticastHostFwMsgs - Multicast host FW messages |
| * @Min: 0 |
| * @Max: 1 |
| * @Default: 0 for MDM platform and 1 for other |
| * |
| * </ini> |
| */ |
| #define CFG_MULTICAST_HOST_FW_MSGS CFG_INI_UINT( \ |
| "gMulticastHostFwMsgs", \ |
| 0, \ |
| 1, \ |
| CFG_MULTICAST_HOST_FW_MSGS_DEFAULT, \ |
| CFG_VALUE_OR_DEFAULT, \ |
| "Multicast host FW msgs") |
| |
| #ifdef WLAN_LOGGING_SOCK_SVC_ENABLE |
| /* |
| * <ini> |
| * wlanLoggingEnable - Wlan logging enable |
| * @Min: 0 |
| * @Max: 1 |
| * @Default: 1 |
| * |
| * </ini> |
| */ |
| #define CFG_WLAN_LOGGING_SUPPORT CFG_INI_BOOL( \ |
| "wlanLoggingEnable", \ |
| 1, \ |
| "Wlan logging enable") |
| |
| /* |
| * <ini> |
| * host_log_custom_nl_proto - Host log netlink protocol |
| * @Min: 0 |
| * @Max: 32 |
| * @Default: 2 |
| * |
| * This ini is used to set host log netlink protocol. The default |
| * value is 2 (NETLINK_USERSOCK), customer should avoid selecting the |
| * netlink protocol that already used on their platform by other |
| * applications or services. By choosing the non-default value(2), |
| * Customer need to change the netlink protocol of application receive |
| * tool(cnss_diag) accordingly. Available values could be: |
| * |
| * host_log_custom_nl_proto = 0 - NETLINK_ROUTE, Routing/device hook |
| * host_log_custom_nl_proto = 1 - NETLINK_UNUSED, Unused number |
| * host_log_custom_nl_proto = 2 - NETLINK_USERSOCK, Reserved for user |
| * mode socket protocols |
| * host_log_custom_nl_proto = 3 - NETLINK_FIREWALL, Unused number, |
| * formerly ip_queue |
| * host_log_custom_nl_proto = 4 - NETLINK_SOCK_DIAG, socket monitoring |
| * host_log_custom_nl_proto = 5 - NETLINK_NFLOG, netfilter/iptables ULOG |
| * host_log_custom_nl_proto = 6 - NETLINK_XFRM, ipsec |
| * host_log_custom_nl_proto = 7 - NETLINK_SELINUX, SELinux event |
| * notifications |
| * host_log_custom_nl_proto = 8 - NETLINK_ISCSI, Open-iSCSI |
| * host_log_custom_nl_proto = 9 - NETLINK_AUDIT, auditing |
| * host_log_custom_nl_proto = 10 - NETLINK_FIB_LOOKUP |
| * host_log_custom_nl_proto = 11 - NETLINK_CONNECTOR |
| * host_log_custom_nl_proto = 12 - NETLINK_NETFILTER, netfilter subsystem |
| * host_log_custom_nl_proto = 13 - NETLINK_IP6_FW |
| * host_log_custom_nl_proto = 14 - NETLINK_DNRTMSG, DECnet routing messages |
| * host_log_custom_nl_proto = 15 - NETLINK_KOBJECT_UEVENT, Kernel |
| * messages to userspace |
| * host_log_custom_nl_proto = 16 - NETLINK_GENERIC, leave room for |
| * NETLINK_DM (DM Events) |
| * host_log_custom_nl_proto = 18 - NETLINK_SCSITRANSPORT, SCSI Transports |
| * host_log_custom_nl_proto = 19 - NETLINK_ECRYPTFS |
| * host_log_custom_nl_proto = 20 - NETLINK_RDMA |
| * host_log_custom_nl_proto = 21 - NETLINK_CRYPTO, Crypto layer |
| * host_log_custom_nl_proto = 22 - NETLINK_SMC, SMC monitoring |
| * |
| * The max value is: MAX_LINKS which is 32 |
| * |
| * Related: None |
| * |
| * Supported Feature: STA |
| * |
| * Usage: Internal/External |
| * |
| * </ini> |
| */ |
| #define CFG_HOST_LOG_CUSTOM_NETLINK_PROTO CFG_INI_UINT( \ |
| "host_log_custom_nl_proto", \ |
| 0, \ |
| 32, \ |
| 2, \ |
| CFG_VALUE_OR_DEFAULT, \ |
| "host log custom netlink protocol") |
| |
| /* |
| * <ini> |
| * wlanLoggingToConsole - Wlan logging to console |
| * @Min: 0 |
| * @Max: 1 |
| * @Default: 1 |
| * |
| * </ini> |
| */ |
| #define CFG_WLAN_LOGGING_CONSOLE_SUPPORT CFG_INI_BOOL( \ |
| "wlanLoggingToConsole", \ |
| 1, \ |
| "Wlan logging to console") |
| |
| #define CFG_WLAN_LOGGING_SUPPORT_ALL \ |
| CFG(CFG_WLAN_LOGGING_SUPPORT) \ |
| CFG(CFG_WLAN_LOGGING_CONSOLE_SUPPORT) \ |
| CFG(CFG_HOST_LOG_CUSTOM_NETLINK_PROTO) |
| #else |
| #define CFG_WLAN_LOGGING_SUPPORT_ALL |
| #endif |
| |
| #ifdef FEATURE_WLAN_AUTO_SHUTDOWN |
| /* |
| * <ini> |
| * gWlanAutoShutdown - Wlan auto shutdown timer value |
| * @Min: 0 |
| * @Max: 86400 |
| * @Default: 0 |
| * |
| * This ini specifies the seconds of WLAN inactivity firmware has to wait |
| * before indicating WLAN idle event to driver. Upon receiving firmware's |
| * WLAN idle indication, driver may indicate similar event to upper layer |
| * daemons(SCM, or any other components working to achieve the same purpose), |
| * who may choose what to do next, e.g. whether to unload driver module or not. |
| * 0 indicates no auto shutdown will take place. |
| * |
| * </ini> |
| */ |
| #define CFG_WLAN_AUTO_SHUTDOWN CFG_INI_UINT( \ |
| "gWlanAutoShutdown", \ |
| 0, \ |
| 86400, \ |
| 0, \ |
| CFG_VALUE_OR_DEFAULT, \ |
| "Wlan auto shutdown") |
| #define CFG_WLAN_AUTO_SHUTDOWN_ALL \ |
| CFG(CFG_WLAN_AUTO_SHUTDOWN) |
| #else |
| #define CFG_WLAN_AUTO_SHUTDOWN_ALL |
| #endif |
| |
| /* |
| * <ini> |
| * gEnablefwprint - Enable FW uart print |
| * @Min: 0 |
| * @Max: 1 |
| * @Default: 0 |
| * |
| * </ini> |
| */ |
| #define CFG_ENABLE_FW_UART_PRINT CFG_INI_BOOL( \ |
| "gEnablefwprint", \ |
| 0, \ |
| "Enable FW uart print") |
| |
| /* |
| * <ini> |
| * gEnablefwlog - Enable FW log |
| * @Min: 0 |
| * @Max: 2 |
| * @Default: 1 |
| * |
| * </ini> |
| */ |
| #define CFG_ENABLE_FW_LOG CFG_INI_UINT( \ |
| "gEnablefwlog", \ |
| 0, \ |
| 2, \ |
| 1, \ |
| CFG_VALUE_OR_DEFAULT, \ |
| "Enable FW log") |
| |
| #ifndef REMOVE_PKT_LOG |
| |
| #ifdef FEATURE_PKTLOG |
| #define CFG_ENABLE_PACKET_LOG_DEFAULT 1 |
| #else |
| #define CFG_ENABLE_PACKET_LOG_DEFAULT 0 |
| #endif |
| |
| /* |
| * <ini> |
| * gEnablePacketLog - Enale packet log |
| * @Min: 0 |
| * @Max: 1 |
| * @Default: 1 if packet log code is enabled, 0 otherwise |
| * |
| * This option enables/disables packet log collecting. |
| * |
| * </ini> |
| */ |
| #define CFG_ENABLE_PACKET_LOG CFG_INI_BOOL( \ |
| "gEnablePacketLog", \ |
| CFG_ENABLE_PACKET_LOG_DEFAULT, \ |
| "Enable packet log") |
| |
| #define CFG_ENABLE_PACKET_LOG_ALL \ |
| CFG(CFG_ENABLE_PACKET_LOG) |
| #else |
| #define CFG_ENABLE_PACKET_LOG_ALL |
| #endif |
| |
| #ifdef FEATURE_RUNTIME_PM |
| /* |
| * <ini> |
| * gRuntimePM - enable runtime suspend |
| * @Min: 0 |
| * @Max: 1 |
| * @Default: 0 |
| * |
| * This ini is used to enable runtime_suspend |
| * |
| * Related: None |
| * |
| * Supported Feature: Power Save |
| * |
| * Usage: External |
| * |
| * </ini> |
| */ |
| #define CFG_ENABLE_RUNTIME_PM CFG_INI_BOOL( \ |
| "gRuntimePM", \ |
| 0, \ |
| "This ini is used to enable runtime_suspend") |
| #define CFG_ENABLE_RUNTIME_PM_ALL \ |
| CFG(CFG_ENABLE_RUNTIME_PM) |
| #else |
| #define CFG_ENABLE_RUNTIME_PM_ALL |
| #endif |
| |
| /* |
| * <ini> |
| * gInformBssRssiRaw - Report rssi in cfg80211_inform_bss_frame |
| * @Min: 0 |
| * @Max: 1 |
| * @Default: 1 |
| * |
| * Option to report rssi in cfg80211_inform_bss_frame() |
| * |
| * Related: None |
| * |
| * Supported Feature: N/A |
| * |
| * Usage: External |
| * |
| * </ini> |
| */ |
| #define CFG_INFORM_BSS_RSSI_RAW CFG_INI_BOOL( \ |
| "gInformBssRssiRaw", \ |
| 1, \ |
| "Option to report rssi in cfg80211_inform_bss_frame") |
| |
| #ifdef FEATURE_WLAN_DYNAMIC_CVM |
| /* |
| * <ini> |
| * gConfigVCmodeBitmap - Bitmap for operating voltage corner mode |
| * @Min: 0x00000000 |
| * @Max: 0x0fffffff |
| * @Default: 0x0000000a |
| * This ini is used to set operating voltage corner mode for differenet |
| * phymode and bw configurations. Every 2 bits till BIT27 are dedicated |
| * for a specific configuration. Bit values decide the type of voltage |
| * corner mode. All the details below - |
| * |
| * Configure operating voltage corner mode based on phymode and bw. |
| * bit 0-1 - operating voltage corner mode for 11a/b. |
| * bit 2-3 - operating voltage corner mode for 11g. |
| * bit 4-5 - operating voltage corner mode for 11n, 20MHz, 1x1. |
| * bit 6-7 - operating voltage corner mode for 11n, 20MHz, 2x2. |
| * bit 8-9 - operating voltage corner mode for 11n, 40MHz, 1x1. |
| * bit 10-11 - operating voltage corner mode for 11n, 40MHz, 2x2. |
| * bit 12-13 - operating voltage corner mode for 11ac, 20MHz, 1x1. |
| * bit 14-15 - operating voltage corner mode for 11ac, 20MHz, 2x2. |
| * bit 16-17 - operating voltage corner mode for 11ac, 40MHz, 1x1. |
| * bit 18-19 - operating voltage corner mode for 11ac, 40MHz, 2x2. |
| * bit 20-21 - operating voltage corner mode for 11ac, 80MHz, 1x1. |
| * bit 22-23 - operating voltage corner mode for 11ac, 80MHz, 2x2. |
| * bit 24-25 - operating voltage corner mode for 11ac, 160MHz, 1x1. |
| * bit 26-27 - operating voltage corner mode for 11ac, 160MHz, 2x2. |
| * --------------------------------------------- |
| * 00 - Static voltage corner SVS |
| * 01 - static voltage corner LOW SVS |
| * 10 - Dynamic voltage corner selection based on TPUT |
| * 11 - Dynamic voltage corner selection based on TPUT and Tx Flush counters |
| |
| * Related: None |
| * |
| * Supported Feature: None |
| * |
| * Usage: External |
| * |
| * </ini> |
| */ |
| #define CFG_VC_MODE_BITMAP CFG_INI_INT( \ |
| "gConfigVCmode", \ |
| 0x00000000, \ |
| 0x0fffffff, \ |
| 0x00000005, \ |
| CFG_VALUE_OR_DEFAULT, \ |
| "Bitmap for operating voltage corner mode") |
| |
| #define CFG_VC_MODE_BITMAP_ALL CFG(CFG_VC_MODE_BITMAP) |
| #else |
| #define CFG_VC_MODE_BITMAP_ALL |
| #endif |
| |
| /* |
| * <ini> |
| * gOperatingChannel- Default STA operating channel |
| * @Min: 0 |
| * @Max: 14 |
| * @Default: 1 |
| * |
| * This ini is used to specify the default operating channel of a STA during |
| * initialization. |
| * |
| * Related: None |
| * |
| * Supported Feature: STA |
| * |
| * Usage: External |
| * |
| * </ini> |
| */ |
| #define CFG_OPERATING_CHANNEL CFG_INI_UINT( \ |
| "gOperatingChannel", \ |
| 0, \ |
| 14, \ |
| 1, \ |
| CFG_VALUE_OR_DEFAULT, \ |
| "Default Operating Channel") |
| |
| #ifdef DHCP_SERVER_OFFLOAD |
| #define IPADDR_NUM_ENTRIES (4) |
| #define IPADDR_STRING_LENGTH (16) |
| #define CFG_DHCP_SERVER_IP_DEFAULT "" |
| |
| /* |
| * struct wlan_mlme_chainmask - All chainmask related cfg items |
| * @dhcpServerIP: Dhcp server IP address |
| * @is_dhcp_server_ip_valid: is dhcp server valid |
| */ |
| struct dhcp_server { |
| uint8_t dhcp_server_ip[IPADDR_NUM_ENTRIES]; |
| bool is_dhcp_server_ip_valid; |
| } |
| |
| /* |
| * <ini> |
| * gDHCPServerIP - Dhcp server Ip name |
| * @Default: |
| * |
| * This ini is used to give the DHCP IP server name |
| */ |
| #define CFG_DHCP_SERVER_IP_NAME \ |
| CFG_INI_STRING("gDHCPServerIP", \ |
| 0, IPADDR_STRING_LENGTH, CFG_DHCP_SERVER_IP_DEFAULT, "DHCP Server IP") |
| #endif /* DHCP_SERVER_OFFLOAD */ |
| |
| /* |
| * <ini> |
| * gNumVdevs - max number of VDEVs supported |
| * |
| * @Min: 0x1 |
| * @Max: 0x4 |
| * @Default: CFG_TGT_NUM_VDEV |
| * |
| * Usage: External |
| * |
| * </ini> |
| */ |
| #define CFG_NUM_VDEV_ENABLE CFG_INI_UINT( \ |
| "gNumVdevs", \ |
| 1, \ |
| 4, \ |
| CFG_TGT_NUM_VDEV, \ |
| CFG_VALUE_OR_DEFAULT, \ |
| "Number of VDEVs") |
| |
| #define CFG_CONCURRENT_IFACE_MAX_LEN 16 |
| /* |
| * <ini> |
| * gEnableConcurrentSTA - This will control the creation of concurrent STA |
| * interface |
| * @Default: NULL |
| * |
| * This ini is used for providing control to create a concurrent STA session |
| * along with the creation of wlan0 and p2p0. The name of the interface is |
| * specified as the parameter |
| * |
| * Usage: Internal |
| * |
| * </ini> |
| */ |
| |
| #define CFG_ENABLE_CONCURRENT_STA CFG_INI_STRING( \ |
| "gEnableConcurrentSTA", \ |
| 0, \ |
| CFG_CONCURRENT_IFACE_MAX_LEN, \ |
| "", \ |
| "Enable Concurrent STA") |
| |
| #define CFG_DBS_SCAN_PARAM_LENGTH 42 |
| /* |
| * <ini> |
| * gdbs_scan_selection - DBS Scan Selection. |
| * @Default: "" |
| * |
| * This ini is used to enable DBS scan selection. |
| * Example |
| * @Value: "5,2,2,16,2,2" |
| * 1st argument is module_id, 2nd argument is number of DBS scan, |
| * 3rd argument is number of non-DBS scan, |
| * and other arguments follows. |
| * 5,2,2,16,2,2 means: |
| * 5 is module id, 2 is num of DBS scan, 2 is num of non-DBS scan. |
| * 16 is module id, 2 is num of DBS scan, 2 is num of non-DBS scan. |
| * |
| * Related: None. |
| * |
| * Supported Feature: DBS Scan |
| * |
| * Usage: Internal/External |
| * |
| * </ini> |
| */ |
| #define CFG_DBS_SCAN_SELECTION CFG_INI_STRING( \ |
| "gdbs_scan_selection", \ |
| 0, \ |
| CFG_DBS_SCAN_PARAM_LENGTH, \ |
| "", \ |
| "DBS Scan Selection") |
| |
| /* |
| * </ini> |
| * enable_mac_provision - Enable/disable MAC address provisioning feature |
| * @Min: 0 |
| * @Max: 1 |
| * @Default: 0 |
| * |
| * This ini is used to enable/disable MAC address provisioning feature |
| * |
| * Supported Feature: STA/SAP/P2P |
| * |
| * Usage: External |
| * |
| * </ini> |
| */ |
| #define CFG_ENABLE_MAC_PROVISION CFG_INI_BOOL( \ |
| "enable_mac_provision", \ |
| 0, \ |
| "enable/disable MAC address provisioning feature") |
| |
| /* |
| * <ini> |
| * provisioned_intf_pool - It is bit mask value of Interfaces |
| * @Min: 0 |
| * @Max: 0xffffffff |
| * @Default: 0xffffffff |
| * |
| * This ini will contain the bitmask of all the interfaces |
| * which can use addresses from provisioned list. Using enum QDF_OPMODE |
| * for deciding the bit positions corresponding to each interface. |
| * Bit 0 : QDF_STA_MODE |
| * Bit 1 : QDF_SAP_MODE |
| * Bit 2 : QDF_P2P_CLIENT_MODE |
| * Bit 3 : QDF_P2P_GO_MODE |
| * Bit 4 : QDF_FTM_MODE |
| * Bit 5 : QDF_IBSS_MODE |
| * Bit 6 : QDF_MONITOR_MODE |
| * Bit 7 : QDF_P2P_DEVICE_MODE |
| * Bit 8 : QDF_OCB_MODE |
| * Bit 9 : QDF_EPPING_MODE |
| * Bit 10 : QDF_QVIT_MODE |
| * Bit 11 : QDF_NDI_MODE |
| * Bit 12 : QDF_MAX_NO_OF_MODE |
| * For example : |
| * If Bit 0 represents STA |
| * Bit 1 represents SAP |
| * Bit 2 represents P2PGO |
| * If only STA and SAP can use addresses from provisioned list then the value |
| * of ini should be 3 (00000011) as first and second bit should be set. |
| * If only STA and P2PGO can use addresses from provisioned list then the value |
| * of ini should be 5 (00000101) as first and third bit should be set. |
| * Similarly, for only SAP and P2PGO ini should be 6 (00000110) |
| * |
| * Supported Feature: STA/SAP/P2P |
| * |
| * Usage: External |
| * |
| * </ini> |
| */ |
| #define CFG_PROVISION_INTERFACE_POOL CFG_INI_UINT( \ |
| "provisioned_intf_pool", \ |
| 0, \ |
| 0xffffffff, \ |
| 0xffffffff, \ |
| CFG_VALUE_OR_DEFAULT, \ |
| "It is bit mask value of Interfaces") |
| |
| /* |
| * <ini> |
| * deriveded_intf_pool - It is bit mask value of Interfaces |
| * @Min: 0 |
| * @Max: 0xffffffff |
| * @Default: 0xffffffff |
| * |
| * This ini will contain the bitmask of all the interfaces |
| * which can use addresses from derived list |
| * |
| * |
| * Supported Feature: STA/SAP/P2P |
| * |
| * Usage: External |
| * |
| * </ini> |
| */ |
| #define CFG_DERIVED_INTERFACE_POOL CFG_INI_UINT( \ |
| "derived_intf_pool", \ |
| 0, \ |
| 0xffffffff, \ |
| 0xffffffff, \ |
| CFG_VALUE_OR_DEFAULT, \ |
| "It is bit mask value of Interfaces") |
| |
| /* |
| * Start of action oui inis |
| * |
| * To enable action oui feature, set gEnableActionOUI |
| * |
| * Each action oui is expected in the following format: |
| * <Extension 1> <Extension 2> ..... <Extension 10> (maximum 10) |
| * |
| * whereas, each Extension is separated by space and have the following format: |
| * <Token1> <Token2> <Token3> <Token4> <Token5> <Token6> <Token7> <Token8> |
| * where each Token is a string of hexa-decimal digits and |
| * following are the details about each token |
| * |
| * Token1 = OUI |
| * Token2 = Data_Length |
| * Token3 = Data |
| * Token4 = Data_Mask |
| * Token5 = Info_Presence_Bit |
| * Token6 = MAC_Address |
| * Token7 = Mac_Address Mask |
| * Token8 = Capability |
| * |
| * <OUI> is mandatory and it can be either 3 or 5 bytes means 6 or 10 |
| * hexa-decimal characters |
| * If the OUI and Data checks needs to be ignored, the oui FFFFFF |
| * needs to be provided as OUI and bit 0 of Info_Presence_Bit should |
| * be set to 0. |
| * |
| * <Data_Length> is mandatory field and should give length of |
| * the <Data> if present else zero |
| * |
| * Presence of <Data> is controlled by <Data_Length>, if <Data_Length> is 0, |
| * then <Data> is not expected else Data of the size Data Length bytes are |
| * expected which means the length of Data string is 2 * Data Length, |
| * since every byte constitutes two hexa-decimal characters. |
| * |
| * <Data_Mask> is mandatory if <Data> is present and length of the |
| * Data mask string depends on the <Data Length> |
| * If <Data Length> is 06, then length of Data Mask string is |
| * 2 characters (represents 1 byte) |
| * data_mask_length = ((Data_Length - (Data_Length % 8)) / 8) + |
| * ((Data_Length % 8) ? 1 : 0) |
| * and <Data_Mask> has to be constructed from left to right. |
| * |
| * Presence of <Mac_Address> and <Capability> is |
| * controlled by <Info_Presence_Bit> which is mandatory |
| * <Info_Presence_Bit> will give the information for |
| * OUI – bit 0 Should be set to 1 |
| * Setting to 0 will ignore OUI and data check |
| * Mac Address present – bit 1 |
| * NSS – bit 2 |
| * HT check – bit 3 |
| * VHT check – bit 4 |
| * Band info – bit 5 |
| * reserved – bit 6 (should always be zero) |
| * reserved – bit 7 (should always be zero) |
| * and should be constructed from right to left (b7b6b5b4b3b2b1b0) |
| * |
| * <Mac_Address_Mask> for <Mac_Address> should be constructed from left to right |
| * |
| * <Capability> is 1 byte long and it contains the below info |
| * NSS – 4 bits starting from LSB (b0 – b3) |
| * HT enabled – bit 4 |
| * VHT enabled – bit 5 |
| * 2G band – bit 6 |
| * 5G band – bit 7 |
| * and should be constructed from right to left (b7b6b5b4b3b2b1b0) |
| * <Capability> is present if atleast one of the bit is set |
| * from b2 - b6 in <Info_Presence_Bit> |
| * |
| * Example 1: |
| * |
| * OUI is 00-10-18, data length is 05 (hex form), data is 02-11-04-5C-DE and |
| * need to consider first 3 bytes and last byte of data for comparision |
| * mac-addr EE-1A-59-FE-FD-AF is present and first 3 bytes and last byte of |
| * mac address should be considered for comparision |
| * capability is not present |
| * then action OUI for gActionOUIITOExtension is as follows: |
| * |
| * gActionOUIITOExtension=001018 05 0211045CDE E8 03 EE1A59FEFDAF E4 |
| * |
| * data mask calculation in above example: |
| * Data[0] = 02 ---- d0 = 1 |
| * Data[1] = 11 ---- d1 = 1 |
| * Data[2] = 04 ---- d2 = 1 |
| * Data[3] = 5C ---- d3 = 0 |
| * Data[4] = DE ---- d4 = 1 |
| * data_mask = d0d1d2d3d4 + append with zeros to complete 8-bit = 11101000 = E8 |
| * |
| * mac mask calculation in above example: |
| * mac_addr[0] = EE ---- m0 = 1 |
| * mac_addr[1] = 1A ---- m1 = 1 |
| * mac_addr[2] = 59 ---- m2 = 1 |
| * mac_addr[3] = FE ---- m3 = 0 |
| * mac_addr[4] = FD ---- m4 = 0 |
| * mac_addr[5] = AF ---- m5 = 1 |
| * mac_mask = m0m1m2m3m4m5 + append with zeros to complete 8-bit = 11100100 = E4 |
| * |
| * Example 2: |
| * |
| * OUI is 00-10-18, data length is 00 and no Mac Address and capability |
| * |
| * gActionOUIITOExtension=001018 00 01 |
| * |
| */ |
| |
| /* |
| * <ini> |
| * gEnableActionOUI - Enable/Disable action oui feature |
| * @Min: 0 (disable) |
| * @Max: 1 (enable) |
| * @Default: 1 (enable) |
| * |
| * This ini is used to enable the action oui feature to control |
| * mode of connection, connected AP's in-activity time, Tx rate etc., |
| * |
| * Related: If gEnableActionOUI is set, then at least one of the following inis |
| * must be set with the proper action oui extensions: |
| * gActionOUIConnect1x1, gActionOUIITOExtension, gActionOUICCKM1X1 |
| * |
| * Supported Feature: action ouis |
| * |
| * Usage: External |
| * |
| * </ini> |
| */ |
| #define CFG_ENABLE_ACTION_OUI CFG_INI_BOOL( \ |
| "gEnableActionOUI", \ |
| 1, \ |
| "Enable/Disable action oui feature") |
| |
| /* |
| * <ini> |
| * gActionOUIConnect1x1 - Used to specify action OUIs for 1x1 connection |
| * @Default: 000C43 00 25 42 001018 06 02FFF02C0000 BC 25 42 001018 06 02FF040C0000 BC 25 42 00037F 00 35 6C |
| * Note: User should strictly add new action OUIs at the end of this |
| * default value. |
| * |
| * Default OUIs: (All values in Hex) |
| * OUI 1 : 000C43 |
| * OUI data Len : 00 |
| * Info Mask : 25 - Check for NSS and Band |
| * Capabilities: 42 - NSS == 2 && Band == 2G |
| * OUI 2 : 001018 |
| * OUI data Len : 06 |
| * OUI Data : 02FFF02C0000 |
| * OUI data Mask: BC - 10111100 |
| * Info Mask : 25 - Check for NSS and Band |
| * Capabilities: 42 - NSS == 2 && Band == 2G |
| * OUI 3 : 001018 |
| * OUI data Len : 06 |
| * OUI Data : 02FF040C0000 |
| * OUI data Mask: BC - 10111100 |
| * Info Mask : 25 - Check for NSS and Band |
| * Capabilities: 42 - NSS == 2 && Band == 2G |
| * OUI 4 : 00037F |
| * OUI data Len : 00 |
| * Info Mask : 35 - Check for NSS, VHT Caps and Band |
| * Capabilities: 6C - (NSS == 3 or 4) && VHT Caps Preset && Band == 2G |
| * OUI 5 : 001018 |
| * OUI data Len : 06 |
| * OUI Data : 02FF009C0000 |
| * OUI data Mask: BC - 10111100 |
| * Info Mask : 25 - Check for NSS and Band |
| * Capabilities: 48 - NSS == 4 && Band == 2G |
| * |
| * This ini is used to specify the AP OUIs with which only 1x1 connection |
| * is allowed. |
| * |
| * Related: None |
| * |
| * Supported Feature: Action OUIs |
| * |
| * Usage: External |
| * |
| * </ini> |
| */ |
| #define CFG_ACTION_OUI_CONNECT_1X1 CFG_INI_STRING( \ |
| "gActionOUIConnect1x1", \ |
| 0, \ |
| ACTION_OUI_MAX_STR_LEN, \ |
| "000C43 00 25 42 001018 06 02FFF02C0000 BC 25 42 001018 06 02FF040C0000 BC 25 42 00037F 00 35 6C 001018 06 02FF009C0000 BC 25 48", \ |
| "Used to specify action OUIs for 1x1 connection") |
| |
| /* |
| * <ini> |
| * gActionOUIITOExtension - Used to extend in-activity time for specified APs |
| * @Default: 00037F 06 01010000FF7F FC 01 000AEB 02 0100 C0 01 000B86 03 010408 E0 01 |
| * Note: User should strictly add new action OUIs at the end of this |
| * default value. |
| * |
| * Default OUIs: (All values in Hex) |
| * OUI 1: 00037F |
| * OUI data Len: 06 |
| * OUI Data: 01010000FF7F |
| * OUI data Mask: FC - 11111100 |
| * Info Mask : 01 - only OUI present in Info mask |
| * |
| * OUI 2: 000AEB |
| * OUI data Len: 02 |
| * OUI Data: 0100 |
| * OUI data Mask: C0 - 11000000 |
| * Info Mask : 01 - only OUI present in Info mask |
| * |
| * OUI 3: 000B86 |
| * OUI data Len: 03 |
| * OUI Data: 010408 |
| * OUI data Mask: E0 - 11100000 |
| * Info Mask : 01 - only OUI present in Info mask |
| * |
| * This ini is used to specify AP OUIs using which station's in-activity time |
| * can be extended with the respective APs |
| * |
| * Related: None |
| * |
| * Supported Feature: Action OUIs |
| * |
| * Usage: External |
| * |
| * </ini> |
| */ |
| #define CFG_ACTION_OUI_ITO_EXTENSION CFG_INI_STRING( \ |
| "gActionOUIITOExtension", \ |
| 0, \ |
| ACTION_OUI_MAX_STR_LEN, \ |
| "00037F 06 01010000FF7F FC 01 000AEB 02 0100 C0 01 000B86 03 010408 E0 01", \ |
| "Used to extend in-activity time for specified APs") |
| |
| /* |
| * <ini> |
| * gActionOUICCKM1X1 - Used to specify action OUIs to control station's TX rates |
| * |
| * This ini is used to specify AP OUIs for which station's CCKM TX rates |
| * should be 1x1 only. |
| * |
| * Related: None |
| * |
| * Supported Feature: Action OUIs |
| * |
| * Usage: External |
| * |
| * </ini> |
| */ |
| #define CFG_ACTION_OUI_CCKM_1X1 CFG_INI_STRING( \ |
| "gActionOUICCKM1X1", \ |
| 0, \ |
| ACTION_OUI_MAX_STR_LEN, \ |
| "", \ |
| "Used to specify action OUIs to control station's TX rates") |
| |
| /* |
| * <ini> |
| * gActionOUIITOAlternate - Used to specify action OUIs to have alternate ITO in |
| * weak RSSI state |
| * |
| * This ini is used to specify AP OUIs for which the stations will have |
| * alternate ITOs for the case when the RSSI is weak. |
| * |
| * Related: None |
| * |
| * Supported Feature: Action OUIs |
| * |
| * Usage: External |
| * |
| * </ini> |
| */ |
| #define CFG_ACTION_OUI_ITO_ALTERNATE CFG_INI_STRING( \ |
| "gActionOUIITOAlternate", \ |
| 0, \ |
| ACTION_OUI_MAX_STR_LEN, \ |
| "001018 06 0202001c0000 FC 01", \ |
| "Used to specify action OUIs to have alternate ITO") |
| |
| /* |
| * <ini> |
| * gActionOUISwitchTo11nMode - Used to specify action OUIs for switching to 11n |
| * |
| * This ini is used to specify which AP for which the connection has to be |
| * made in 2x2 mode with HT capabilities only and not VHT. |
| * |
| * Default OUIs: (All values in Hex) |
| * OUI 1 : 00904C |
| * OUI data Len : 03 |
| * OUI Data : 0418BF |
| * OUI data Mask: E0 - 11100000 |
| * Info Mask : 21 - Check for Band |
| * Capabilities: 40 - Band == 2G |
| * |
| * Related: None |
| * |
| * Supported Feature: Action OUIs |
| * |
| * Usage: External |
| * |
| * </ini> |
| */ |
| #define CFG_ACTION_OUI_SWITCH_TO_11N_MODE CFG_INI_STRING( \ |
| "gActionOUISwitchTo11nMode", \ |
| 0, \ |
| ACTION_OUI_MAX_STR_LEN, \ |
| "00904C 05 0418BF0CB2 F8 21 40", \ |
| "Used to specify action OUIs for switching to 11n") |
| |
| /* |
| * <ini> |
| * gActionOUIConnect1x1with1TxRxChain - Used to specify action OUIs for |
| * 1x1 connection with one Tx/Rx Chain |
| * @Default: |
| * Note: User should strictly add new action OUIs at the end of this |
| * default value. |
| * |
| * Default OUIs: (All values in Hex) |
| * OUI 1 : 001018 |
| * OUI data Len : 06 |
| * OUI Data : 02FFF0040000 |
| * OUI data Mask: BC - 10111100 |
| * Info Mask : 21 - Check for Band |
| * Capabilities: 40 - Band == 2G |
| * |
| * OUI 2 : 001018 |
| * OUI data Len : 06 |
| * OUI Data : 02FFF0050000 |
| * OUI data Mask: BC - 10111100 |
| * Info Mask : 21 - Check for Band |
| * Capabilities: 40 - Band == 2G |
| * |
| * OUI 3 : 001018 |
| * OUI data Len : 06 |
| * OUI Data : 02FFF4050000 |
| * OUI data Mask: BC - 10111100 |
| * Info Mask : 21 - Check for Band |
| * Capabilities: 40 - Band == 2G |
| * |
| * This ini is used to specify the AP OUIs with which only 1x1 connection |
| * with one Tx/Rx Chain is allowed. |
| * |
| * Related: gEnableActionOUI |
| * |
| * Supported Feature: Action OUIs |
| * |
| * Usage: External |
| * |
| * </ini> |
| */ |
| #define CFG_ACTION_OUI_CONNECT_1X1_WITH_1_CHAIN CFG_INI_STRING( \ |
| "gActionOUIConnect1x1with1TxRxChain", \ |
| 0, \ |
| ACTION_OUI_MAX_STR_LEN, \ |
| "001018 06 02FFF0040000 BC 21 40 001018 06 02FFF0050000 BC 21 40 001018 06 02FFF4050000 BC 21 40", \ |
| "Used to specify action OUIs for 1x1 connection with one Tx/Rx Chain") |
| |
| /* |
| * <ini> |
| * gActionOUIDisableAggressiveTX - Used to specify action OUIs to disable |
| * Aggressive TX feature when operating in softap. |
| * |
| * @Default: |
| * Note: User should strictly add new action OUIs at the end of this |
| * default value. |
| * |
| * Default OUIs: |
| * |
| * OUI 1 : FFFFFF |
| * OUI data Len : 00 |
| * OUI Data: No data |
| * OUI data Mask: No data mask |
| * Info Mask: 2A - Check for mac-addr, HT capability and Band |
| * Mac-addr: F8:59:71:00:00:00 - first 3 bytes |
| * Mac-mask: E0 - Match only first 3 bytes of peer mac-addr |
| * Capabilities: 50 – HT should be enabled, and band should be 2.4GHz |
| * |
| * OUI 2 : FFFFFF |
| * OUI data Len : 00 |
| * OUI Data: No data |
| * OUI data Mask: No data mask |
| * Info Mask: 2A - Check for mac-addr, HT capability and Band |
| * Mac-addr: 14:AB:C5:00:00:00 - first 3 bytes |
| * Mac-mask: E0 - Match only first 3 bytes of peer mac-addr |
| * Capabilities: 50 – HT should be enabled, and band should be 2.4GHz |
| * |
| * When operating in Softap mode, this ini is used to specify |
| * STA (peer) OUIs/mac-addr for which aggressive tx is disabled after |
| * association is successful. |
| * |
| * Related: gEnableActionOUI |
| * |
| * Supported Feature: Action OUIs |
| * |
| * Usage: External |
| * |
| * </ini> |
| */ |
| #define CFG_ACTION_OUI_DISABLE_AGGRESSIVE_TX CFG_INI_STRING( \ |
| "gActionOUIDisableAggressiveTX", \ |
| 0, \ |
| ACTION_OUI_MAX_STR_LEN, \ |
| "FFFFFF 00 2A F85971000000 E0 50 FFFFFF 00 2A 14ABC5000000 E0 50", \ |
| "Used to specify action OUIs to disable aggressive TX") |
| |
| /* End of action oui inis */ |
| #ifdef ENABLE_MTRACE_LOG |
| /* |
| * <ini> |
| * enable_mtrace - Enable Mtrace. |
| * @Default: 0 |
| * |
| * This ini is used to enable MTRACE logging |
| * |
| * Related: None. |
| * |
| * Supported Feature: MTRACE |
| * |
| * Usage: Internal/External |
| * |
| * </ini> |
| */ |
| #define CFG_ENABLE_MTRACE CFG_INI_BOOL( \ |
| "enable_mtrace", \ |
| false, \ |
| "Enable MTRACE") |
| #define CFG_ENABLE_MTRACE_ALL CFG(CFG_ENABLE_MTRACE) |
| #else |
| #define CFG_ENABLE_MTRACE_ALL |
| #endif |
| |
| /* |
| * <ini> |
| * gEnableRTTsupport |
| * |
| * @Min: 0 - Disabled |
| * @Max: 1 - Enabled |
| * @Default: 1 - Enabled |
| * |
| * The param is used to enable/disable support for RTT |
| * |
| * Related: None. |
| * |
| * Supported Feature: RTT |
| * |
| * Usage: Internal/External |
| * |
| * </ini> |
| */ |
| #define CFG_ENABLE_RTT_SUPPORT CFG_INI_BOOL( \ |
| "gEnableRTTSupport", \ |
| 1, \ |
| "The param is used to enable/disable support for RTT") |
| |
| /* |
| * <ini> |
| * gAdvertiseConcurrentOperation - Iface combination advertising |
| * @Min: 0 |
| * @Max: 1 |
| * @Default: 1 |
| * |
| * This ini is used to control whether driver should indicate to kernel |
| * wiphy layer the combination of all its interfaces' supportability. |
| * |
| * Related: None |
| * |
| * Supported Feature: STA |
| * |
| * Usage: Internal/External |
| * |
| * </ini> |
| */ |
| #define CFG_ADVERTISE_CONCURRENT_OPERATION CFG_INI_BOOL( \ |
| "gAdvertiseConcurrentOperation", \ |
| 1, \ |
| "Iface combination advertising") |
| |
| /* |
| * <ini> |
| * gEnableUnitTestFramework - Enable/Disable unit test framework |
| * @Min: 0 |
| * @Max: 1 |
| * @Default: 0 |
| * |
| * Related: None |
| * |
| * Supported Feature: unit test framework |
| * |
| * Usage: Internal (only for dev and test team) |
| * |
| * </ini> |
| */ |
| #define CFG_ENABLE_UNIT_TEST_FRAMEWORK CFG_INI_BOOL( \ |
| "gEnableUnitTestFramework", \ |
| 0, \ |
| "Enable/Disable unit test framework") |
| |
| /* |
| * <ini> |
| * gDisableChannel - Used to disable channels specified |
| * |
| * @Min: 0 |
| * @Max: 1 |
| * Default: 0 |
| * |
| * This ini is used to disable the channels given in the command |
| * SET_DISABLE_CHANNEL_LIST and to restore the channels when the |
| * command is given with channel list as 0 |
| * Usage: External |
| * |
| * </ini> |
| */ |
| #define CFG_ENABLE_DISABLE_CHANNEL CFG_INI_BOOL( \ |
| "gDisableChannel", \ |
| 0, \ |
| "Enable/Disable to disable channels specified") |
| |
| /* |
| * <ini> |
| * gSarVersion - Used to specify SAR version |
| * |
| * @Min: 1 |
| * @Max: 2 |
| * Default: 1 |
| * |
| * This ini is used to specify the SAR feature version. |
| * If value of this ini is set to 2, SAR version 2 will |
| * be used. |
| * Usage: External |
| * |
| * </ini> |
| */ |
| #define CFG_SAR_VERSION CFG_INI_UINT( \ |
| "gSarVersion", \ |
| 1, \ |
| 2, \ |
| 1, \ |
| CFG_VALUE_OR_DEFAULT, \ |
| "Specify the SAR version") |
| |
| /* |
| * <ini> |
| * gDisableWow - Used to disable wow feature |
| * |
| * @Min: 0 |
| * @Max: 1 |
| * Default: 0 |
| * |
| * This ini is used to disable wow feature for all modes |
| * that means hlos platform suspend(cfg80211 suspend) will |
| * be rejected by wifi kernel driver. |
| * |
| * Usage: External |
| * |
| * </ini> |
| */ |
| #define CFG_WOW_DISABLE CFG_INI_UINT( \ |
| "gDisableWow", \ |
| 0, \ |
| 1, \ |
| 0, \ |
| CFG_VALUE_OR_DEFAULT, \ |
| "Disable wow feature") |
| |
| /** |
| * enum host_log_level - Debug verbose level imposed by user |
| * @HOST_LOG_LEVEL_NONE: no trace will be logged. |
| * @HOST_LOG_LEVEL_FATAL: fatal error will be logged |
| * @HOST_LOG_LEVEL_ERROR: error(include level less than error) will be logged |
| * @HOST_LOG_LEVEL_WARN: warning(include level less than warning) will be logged |
| * @HOST_LOG_LEVEL_INFO: inform(include level less than inform) will be logged |
| * @HOST_LOG_LEVEL_DEBUG: debug(include level less than debug) will be logged |
| * @HOST_LOG_LEVEL_TRACE: trace(include level less than trace) will be logged |
| * @HOST_LOG_LEVEL_MAX: Max host log level |
| */ |
| enum host_log_level { |
| HOST_LOG_LEVEL_NONE = 0, |
| HOST_LOG_LEVEL_FATAL, |
| HOST_LOG_LEVEL_ERROR, |
| HOST_LOG_LEVEL_WARN, |
| HOST_LOG_LEVEL_INFO, |
| HOST_LOG_LEVEL_DEBUG, |
| HOST_LOG_LEVEL_TRACE, |
| HOST_LOG_LEVEL_MAX, |
| }; |
| |
| /* |
| * <ini> |
| * gHostModuleLoglevel - modulized host debug log level |
| * @Min: N/A |
| * @Max: N/A |
| * @Default: N/A |
| * |
| * This ini is used to set modulized host debug log level. |
| * WLAN host module log level input string format looks like below: |
| * gHostModuleLoglevel="<host Module ID>,<Log Level>,..." |
| * For example: |
| * gHostModuleLoglevel=51,1,52,2,53,3,54,4,55,5,56,6 |
| * The above input string means: |
| * For WLAN host module ID 51 enable log level HOST_LOG_LEVEL_FATAL |
| * For WLAN host module ID 52 enable log level HOST_LOG_LEVEL_ERROR |
| * For WLAN host module ID 53 enable log level HOST_LOG_LEVEL_WARN |
| * For WLAN host module ID 54 enable log level HOST_LOG_LEVEL_INFO |
| * For WLAN host module ID 55 enable log level HOST_LOG_LEVEL_DEBUG |
| * For WLAN host module ID 55 enable log level HOST_LOG_LEVEL_TRACE |
| * For valid values of module ids check enum QDF_MODULE_ID and |
| * for valid values of log levels check below. |
| * HOST_LOG_LEVEL_NONE = 0, No trace will be logged |
| * HOST_LOG_LEVEL_FATAL = 1, fatal error log |
| * HOST_LOG_LEVEL_ERROR = 2, error(include level less than error) log |
| * HOST_LOG_LEVEL_WARN = 3, warning(include level less than warning) log |
| * HOST_LOG_LEVEL_INFO = 4, inform(include level less than inform) log |
| * HOST_LOG_LEVEL_DEBUG = 5, debug(include level less than debug) log |
| * HOST_LOG_LEVEL_TRACE = 6, trace(include level less than trace) log |
| * |
| * Related: None |
| * |
| * Supported Feature: Debugging |
| * |
| * Usage: Internal |
| * |
| * </ini> |
| */ |
| |
| #define HOST_MODULE_LOG_LEVEL_STRING_MAX_LENGTH (QDF_MODULE_ID_MAX * 6) |
| #define CFG_ENABLE_HOST_MODULE_LOG_LEVEL CFG_INI_STRING( \ |
| "gHostModuleLoglevel", \ |
| 0, \ |
| HOST_MODULE_LOG_LEVEL_STRING_MAX_LENGTH, \ |
| "", \ |
| "Set modulized host debug log level") |
| |
| /* |
| * <ini> |
| * gActionOUIForceMaxNss - Used to specify action OUIs for Max NSS connection |
| * @Default: |
| * Note: User should strictly add new action OUIs at the end of this |
| * default value. |
| * |
| * Default OUIs: (All values in Hex) |
| * OUI 1 :001018 |
| * OUI data Len : 06 |
| * OUI Data : 0201009c0000 |
| * OUI data Mask: FC |
| * Info Mask : 01 - only OUI present in Info mask |
| * OUI 2 :001018 |
| * OUI data Len : 06 |
| * OUI Data : 0201001c0000 |
| * OUI data Mask: FC |
| * Info Mask : 01 - only OUI present in Info mask |
| * OUI 3 :001018 |
| * OUI data Len : 06 |
| * OUI Data : 0200009c0000 |
| * OUI data Mask: FC |
| * Info Mask : 01 - only OUI present in Info mask |
| * |
| * This ini is used to specify the AP OUIs with which max capability is |
| * sent in association request even though AP advertises 1x1 capability. |
| * |
| * Related: None |
| * |
| * Supported Feature: Action OUIs |
| * |
| * Usage: External |
| * |
| * </ini> |
| */ |
| #define CFG_ACTION_OUI_FORCE_MAX_NSS CFG_INI_STRING( \ |
| "gActionOUIForceMaxNss", \ |
| 0, \ |
| ACTION_OUI_MAX_STR_LEN, \ |
| "001018 06 0201009c0000 FC 01 001018 06 0201001c0000 FC 01 001018 06 0200009c0000 FC 01", \ |
| "Used to specify action OUIs for forcing max NSS connection") |
| |
| #define CFG_HDD_ALL \ |
| CFG_ENABLE_PACKET_LOG_ALL \ |
| CFG_ENABLE_RUNTIME_PM_ALL \ |
| CFG_VC_MODE_BITMAP_ALL \ |
| CFG_WLAN_AUTO_SHUTDOWN_ALL \ |
| CFG_WLAN_LOGGING_SUPPORT_ALL \ |
| CFG(CFG_ACTION_OUI_CCKM_1X1) \ |
| CFG(CFG_ACTION_OUI_CONNECT_1X1) \ |
| CFG(CFG_ACTION_OUI_CONNECT_1X1_WITH_1_CHAIN) \ |
| CFG(CFG_ACTION_OUI_ITO_ALTERNATE) \ |
| CFG(CFG_ACTION_OUI_ITO_EXTENSION) \ |
| CFG(CFG_ACTION_OUI_DISABLE_AGGRESSIVE_TX) \ |
| CFG(CFG_ACTION_OUI_FORCE_MAX_NSS) \ |
| CFG(CFG_ACTION_OUI_SWITCH_TO_11N_MODE) \ |
| CFG(CFG_ADVERTISE_CONCURRENT_OPERATION) \ |
| CFG(CFG_BUG_ON_REINIT_FAILURE) \ |
| CFG(CFG_DBS_SCAN_SELECTION) \ |
| CFG(CFG_DERIVED_INTERFACE_POOL) \ |
| CFG(CFG_ENABLE_CONCURRENT_STA) \ |
| CFG(CFG_ENABLE_ACTION_OUI) \ |
| CFG(CFG_ENABLE_FW_LOG) \ |
| CFG(CFG_ENABLE_FW_UART_PRINT) \ |
| CFG(CFG_ENABLE_MAC_PROVISION) \ |
| CFG_ENABLE_MTRACE_ALL \ |
| CFG(CFG_ENABLE_RAMDUMP_COLLECTION) \ |
| CFG(CFG_ENABLE_RTT_SUPPORT) \ |
| CFG(CFG_ENABLE_UNIT_TEST_FRAMEWORK) \ |
| CFG(CFG_INTERFACE_CHANGE_WAIT) \ |
| CFG(CFG_INFORM_BSS_RSSI_RAW) \ |
| CFG(CFG_MULTICAST_HOST_FW_MSGS) \ |
| CFG(CFG_NUM_VDEV_ENABLE) \ |
| CFG(CFG_OPERATING_CHANNEL) \ |
| CFG(CFG_PRIVATE_WEXT_CONTROL) \ |
| CFG(CFG_PROVISION_INTERFACE_POOL) \ |
| CFG(CFG_TIMER_MULTIPLIER) \ |
| CFG(CFG_HDD_DOT11_MODE) \ |
| CFG(CFG_ENABLE_DISABLE_CHANNEL) \ |
| CFG(CFG_SAR_VERSION) \ |
| CFG(CFG_WOW_DISABLE) \ |
| CFG(CFG_ENABLE_HOST_MODULE_LOG_LEVEL) |
| #endif |