Files
m241Neelima/components/ip_net2-6.9/ipwps/config/ipwps_config.h
T
2026-07-30 11:19:44 +05:30

176 lines
5.3 KiB
C

/* ipwps_config.h - IPWPS Configuration header file */
/*
* Copyright (c) 2008 Wind River Systems, Inc.
*
* The right to copy, distribute, modify, or otherwise make use
* of this software may be licensed only pursuant to the terms
* of an applicable Wind River license agreement.
*
*/
/*
modification history
--------------------
01b,05mar09,mry Add priliminary enrollee support
01a,24Dec08,mry Created
*/
#ifndef IPWPS_CONFIG_H
#define IPWPS_CONFIG_H
/*
****************************************************************************
* 1 DESCRIPTION
****************************************************************************
*/
/*
****************************************************************************
* 2 INCLUDE FILES
****************************************************************************
*/
#include <vsbConfig.h>
#include "ipwps_sysvar.h"
#ifdef __cplusplus
extern "C" {
#endif
/*
****************************************************************************
* 3 DEFINES
****************************************************************************
*/
#ifdef IPCOM_SYSLOG_PRIORITY
#undef IPCOM_SYSLOG_PRIORITY
#endif
#if defined(_WRS_CONFIG_IPWPS_SYSLOG_PRIORITY)
#define IPCOM_SYSLOG_PRIORITY _WRS_CONFIG_IPWPS_SYSLOG_PRIORITY
#else
#define IPCOM_SYSLOG_PRIORITY IPCOM_LOG_ERR
#endif
#ifdef IPCOM_SYSLOG_FACILITY
#undef IPCOM_SYSLOG_FACILITY
#endif
#define IPCOM_SYSLOG_FACILITY IPCOM_LOG_IPWPS
#ifndef _WRS_CONFIG_COMPONENT_IPWPS
#warning VSB Config was not used to build IPWPS. Make sure you set the appropriate IPWPS_USE_xxx defines manually.
#endif
/*
*===========================================================================
* IPWPS_USE_WPS_PROTOCOL
*===========================================================================
* Set this define to enable WPS Protocol support.
* Remove to reduce code footprint if WPS Protocol support is not required.
* Required when IPEAP_USE_EAP_WSC is defined in ipeap_config.h
*/
#ifdef _WRS_CONFIG_IPWPS_USE_WPS_PROTOCOL
#define IPWPS_USE_WPS_PROTOCOL
#endif
/*
*===========================================================================
* IPWPS_USE_WPS_ENROLLEE
*===========================================================================
* Set this define to enable WPS Enrollee support.
* Remove to reduce code footprint if WPS Enrollee support is not required.
*/
#ifdef _WRS_CONFIG_IPWPS_USE_WPS_ENROLLEE
#define IPWPS_USE_WPS_ENROLLEE
#endif
#if defined(IPWPS_USE_WPS_ENROLLEE) && !defined(IPWPS_USE_WPS_PROTOCOL)
#error Enrollee support requires IPWPS_USE_WPS_PROTOCOL to be defined
#endif
/*
*===========================================================================
* IPWPS_USE_WPS_AP
*===========================================================================
* Set this define to enable WPS AP support.
* Remove to reduce code footprint if WPS AP support is not required.
*/
#ifdef _WRS_CONFIG_IPWPS_USE_WPS_AP
#define IPWPS_USE_WPS_AP
#endif
/*
*===========================================================================
* IPWPS_USE_WPS_REGISTRAR
*===========================================================================
* Set this define to enable WPS Registrar support.
* Remove to reduce code footprint if WPS Registrar support is not required.
*/
#ifdef _WRS_CONFIG_IPWPS_USE_WPS_REGISTRAR
#define IPWPS_USE_WPS_REGISTRAR
#endif
#if defined(IPWPS_USE_WPS_REGISTRAR) && !defined(IPWPS_USE_WPS_PROTOCOL)
#error Registrar support requires IPWPS_USE_WPS_PROTOCOL to be defined
#endif
#if defined(IPWPS_USE_WPS_AP) && !defined(IPWPS_USE_WPS_AP)
#error Registrar support currently requires IPWPS_USE_WPS_AP to be defined
#endif
#if defined(IPWPS_USE_WPS_DRV_IF) && !defined(IPWPS_USE_WPS_DRV_IF)
#error Registrar support currently requires IPWPS_USE_WPS_DRV_IF to be defined
#endif
/*
*===========================================================================
* IPWPS_USE_WPS_DRV_IF
*===========================================================================
* Set this define to enable WPS Drv Interface support.
*/
#ifdef _WRS_CONFIG_IPWPS_USE_WPS_DRV_IF
#define IPWPS_USE_WPS_DRV_IF
#endif
/*
*===========================================================================
* IPWPS_USE_STATS
*===========================================================================
* Set this define to enable WPS statistics counters.
*/
#ifdef _WRS_CONFIG_IPWPS_USE_STATS
#define IPWPS_USE_STATS
#endif
#ifdef IPWPS_USE_STATS
#warning IPWPS Statistics not supported in current version
#endif
/*
****************************************************************************
* 4 TYPES
****************************************************************************
*/
/* Forward declarations */
/*
****************************************************************************
* 5 FUNCTIONS
****************************************************************************
*/
#ifdef __cplusplus
}
#endif
#endif
/*
****************************************************************************
* END OF FILE
****************************************************************************
*/