18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef HOSTAP_CONFIG_H
38c2ecf20Sopenharmony_ci#define HOSTAP_CONFIG_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci/* In the previous versions of Host AP driver, support for user space version
68c2ecf20Sopenharmony_ci * of IEEE 802.11 management (hostapd) used to be disabled in the default
78c2ecf20Sopenharmony_ci * configuration. From now on, support for hostapd is always included and it is
88c2ecf20Sopenharmony_ci * possible to disable kernel driver version of IEEE 802.11 management with a
98c2ecf20Sopenharmony_ci * separate define, PRISM2_NO_KERNEL_IEEE80211_MGMT. */
108c2ecf20Sopenharmony_ci/* #define PRISM2_NO_KERNEL_IEEE80211_MGMT */
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci/* Maximum number of events handler per one interrupt */
138c2ecf20Sopenharmony_ci#define PRISM2_MAX_INTERRUPT_EVENTS 20
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci/* Include code for downloading firmware images into volatile RAM. */
168c2ecf20Sopenharmony_ci#define PRISM2_DOWNLOAD_SUPPORT
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci/* Allow kernel configuration to enable download support. */
198c2ecf20Sopenharmony_ci#if !defined(PRISM2_DOWNLOAD_SUPPORT) && defined(CONFIG_HOSTAP_FIRMWARE)
208c2ecf20Sopenharmony_ci#define PRISM2_DOWNLOAD_SUPPORT
218c2ecf20Sopenharmony_ci#endif
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci/* Allow kernel configuration to enable non-volatile download support. */
248c2ecf20Sopenharmony_ci#ifdef CONFIG_HOSTAP_FIRMWARE_NVRAM
258c2ecf20Sopenharmony_ci#define PRISM2_NON_VOLATILE_DOWNLOAD
268c2ecf20Sopenharmony_ci#endif
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci/* Save low-level I/O for debugging. This should not be enabled in normal use.
298c2ecf20Sopenharmony_ci */
308c2ecf20Sopenharmony_ci/* #define PRISM2_IO_DEBUG */
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci/* Following defines can be used to remove unneeded parts of the driver, e.g.,
338c2ecf20Sopenharmony_ci * to limit the size of the kernel module. Definitions can be added here in
348c2ecf20Sopenharmony_ci * hostap_config.h or they can be added to make command with ccflags-y,
358c2ecf20Sopenharmony_ci * e.g.,
368c2ecf20Sopenharmony_ci * 'make pccard ccflags-y="-DPRISM2_NO_DEBUG -DPRISM2_NO_PROCFS_DEBUG"'
378c2ecf20Sopenharmony_ci */
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci/* Do not include debug messages into the driver */
408c2ecf20Sopenharmony_ci/* #define PRISM2_NO_DEBUG */
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci/* Do not include /proc/net/prism2/wlan#/{registers,debug} */
438c2ecf20Sopenharmony_ci/* #define PRISM2_NO_PROCFS_DEBUG */
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci/* Do not include station functionality (i.e., allow only Master (Host AP) mode
468c2ecf20Sopenharmony_ci */
478c2ecf20Sopenharmony_ci/* #define PRISM2_NO_STATION_MODES */
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ci#endif /* HOSTAP_CONFIG_H */
50