162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef HOSTAP_CONFIG_H 362306a36Sopenharmony_ci#define HOSTAP_CONFIG_H 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci/* In the previous versions of Host AP driver, support for user space version 662306a36Sopenharmony_ci * of IEEE 802.11 management (hostapd) used to be disabled in the default 762306a36Sopenharmony_ci * configuration. From now on, support for hostapd is always included and it is 862306a36Sopenharmony_ci * possible to disable kernel driver version of IEEE 802.11 management with a 962306a36Sopenharmony_ci * separate define, PRISM2_NO_KERNEL_IEEE80211_MGMT. */ 1062306a36Sopenharmony_ci/* #define PRISM2_NO_KERNEL_IEEE80211_MGMT */ 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci/* Maximum number of events handler per one interrupt */ 1362306a36Sopenharmony_ci#define PRISM2_MAX_INTERRUPT_EVENTS 20 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ci/* Include code for downloading firmware images into volatile RAM. */ 1662306a36Sopenharmony_ci#define PRISM2_DOWNLOAD_SUPPORT 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ci/* Allow kernel configuration to enable download support. */ 1962306a36Sopenharmony_ci#if !defined(PRISM2_DOWNLOAD_SUPPORT) && defined(CONFIG_HOSTAP_FIRMWARE) 2062306a36Sopenharmony_ci#define PRISM2_DOWNLOAD_SUPPORT 2162306a36Sopenharmony_ci#endif 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ci/* Allow kernel configuration to enable non-volatile download support. */ 2462306a36Sopenharmony_ci#ifdef CONFIG_HOSTAP_FIRMWARE_NVRAM 2562306a36Sopenharmony_ci#define PRISM2_NON_VOLATILE_DOWNLOAD 2662306a36Sopenharmony_ci#endif 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ci/* Save low-level I/O for debugging. This should not be enabled in normal use. 2962306a36Sopenharmony_ci */ 3062306a36Sopenharmony_ci/* #define PRISM2_IO_DEBUG */ 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ci/* Following defines can be used to remove unneeded parts of the driver, e.g., 3362306a36Sopenharmony_ci * to limit the size of the kernel module. Definitions can be added here in 3462306a36Sopenharmony_ci * hostap_config.h or they can be added to make command with ccflags-y, 3562306a36Sopenharmony_ci * e.g., 3662306a36Sopenharmony_ci * 'make pccard ccflags-y="-DPRISM2_NO_DEBUG -DPRISM2_NO_PROCFS_DEBUG"' 3762306a36Sopenharmony_ci */ 3862306a36Sopenharmony_ci 3962306a36Sopenharmony_ci/* Do not include debug messages into the driver */ 4062306a36Sopenharmony_ci/* #define PRISM2_NO_DEBUG */ 4162306a36Sopenharmony_ci 4262306a36Sopenharmony_ci/* Do not include /proc/net/prism2/wlan#/{registers,debug} */ 4362306a36Sopenharmony_ci/* #define PRISM2_NO_PROCFS_DEBUG */ 4462306a36Sopenharmony_ci 4562306a36Sopenharmony_ci/* Do not include station functionality (i.e., allow only Master (Host AP) mode 4662306a36Sopenharmony_ci */ 4762306a36Sopenharmony_ci/* #define PRISM2_NO_STATION_MODES */ 4862306a36Sopenharmony_ci 4962306a36Sopenharmony_ci#endif /* HOSTAP_CONFIG_H */ 50