1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */ 2*4882a593Smuzhiyun #ifndef HOSTAP_CONFIG_H 3*4882a593Smuzhiyun #define HOSTAP_CONFIG_H 4*4882a593Smuzhiyun 5*4882a593Smuzhiyun /* In the previous versions of Host AP driver, support for user space version 6*4882a593Smuzhiyun * of IEEE 802.11 management (hostapd) used to be disabled in the default 7*4882a593Smuzhiyun * configuration. From now on, support for hostapd is always included and it is 8*4882a593Smuzhiyun * possible to disable kernel driver version of IEEE 802.11 management with a 9*4882a593Smuzhiyun * separate define, PRISM2_NO_KERNEL_IEEE80211_MGMT. */ 10*4882a593Smuzhiyun /* #define PRISM2_NO_KERNEL_IEEE80211_MGMT */ 11*4882a593Smuzhiyun 12*4882a593Smuzhiyun /* Maximum number of events handler per one interrupt */ 13*4882a593Smuzhiyun #define PRISM2_MAX_INTERRUPT_EVENTS 20 14*4882a593Smuzhiyun 15*4882a593Smuzhiyun /* Include code for downloading firmware images into volatile RAM. */ 16*4882a593Smuzhiyun #define PRISM2_DOWNLOAD_SUPPORT 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun /* Allow kernel configuration to enable download support. */ 19*4882a593Smuzhiyun #if !defined(PRISM2_DOWNLOAD_SUPPORT) && defined(CONFIG_HOSTAP_FIRMWARE) 20*4882a593Smuzhiyun #define PRISM2_DOWNLOAD_SUPPORT 21*4882a593Smuzhiyun #endif 22*4882a593Smuzhiyun 23*4882a593Smuzhiyun /* Allow kernel configuration to enable non-volatile download support. */ 24*4882a593Smuzhiyun #ifdef CONFIG_HOSTAP_FIRMWARE_NVRAM 25*4882a593Smuzhiyun #define PRISM2_NON_VOLATILE_DOWNLOAD 26*4882a593Smuzhiyun #endif 27*4882a593Smuzhiyun 28*4882a593Smuzhiyun /* Save low-level I/O for debugging. This should not be enabled in normal use. 29*4882a593Smuzhiyun */ 30*4882a593Smuzhiyun /* #define PRISM2_IO_DEBUG */ 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun /* Following defines can be used to remove unneeded parts of the driver, e.g., 33*4882a593Smuzhiyun * to limit the size of the kernel module. Definitions can be added here in 34*4882a593Smuzhiyun * hostap_config.h or they can be added to make command with ccflags-y, 35*4882a593Smuzhiyun * e.g., 36*4882a593Smuzhiyun * 'make pccard ccflags-y="-DPRISM2_NO_DEBUG -DPRISM2_NO_PROCFS_DEBUG"' 37*4882a593Smuzhiyun */ 38*4882a593Smuzhiyun 39*4882a593Smuzhiyun /* Do not include debug messages into the driver */ 40*4882a593Smuzhiyun /* #define PRISM2_NO_DEBUG */ 41*4882a593Smuzhiyun 42*4882a593Smuzhiyun /* Do not include /proc/net/prism2/wlan#/{registers,debug} */ 43*4882a593Smuzhiyun /* #define PRISM2_NO_PROCFS_DEBUG */ 44*4882a593Smuzhiyun 45*4882a593Smuzhiyun /* Do not include station functionality (i.e., allow only Master (Host AP) mode 46*4882a593Smuzhiyun */ 47*4882a593Smuzhiyun /* #define PRISM2_NO_STATION_MODES */ 48*4882a593Smuzhiyun 49*4882a593Smuzhiyun #endif /* HOSTAP_CONFIG_H */ 50