资源简介
MT7601U_LinuxAP_3.0.0.1_20130802.tar.bz2
代码片段和文件信息
/****************************************************************************
* Ralink Tech Inc.
* 4F No. 2 Technology 5th Rd.
* Science-based Industrial Park
* Hsin-chu Taiwan R.O.C.
* (c) Copyright 2002 Ralink Technology Inc.
*
* All rights reserved. Ralink‘s source code is an unpublished work and the
* use of a copyright notice does not imply otherwise. This source code
* contains confidential trade secret material of Ralink Tech. Any attemp
* or participation in deciphering decoding reverse engineering or in any
* way altering the source code is stricitly prohibited unless the prior
* written consent of Ralink Technology Inc. is obtained.
****************************************************************************
Module Name:
soft_ap.c
Abstract:
Access Point specific routines and MAC table maintenance routines
Revision History:
Who When What
-------- ---------- ----------------------------------------------
John Chang 08-04-2003 created for 11g soft-AP
*/
#include “rt_config.h“
BOOLEAN ApCheckLongPreambleSTA(
IN PRTMP_ADAPTER pAd);
char const *pEventText[EVENT_MAX_EVENT_TYPE] = {
“restart access point“
“successfully associated“
“has disassociated“
“has been aged-out and disassociated“
“active countermeasures“
“has disassociated with invalid PSK password“};
/*
==========================================================================
Description:
Initialize AP specific data especially the NDIS packet pool that‘s
used for wireless client bridging.
==========================================================================
*/
NDIS_STATUS APInitialize(
IN PRTMP_ADAPTER pAd)
{
NDIS_STATUS Status = NDIS_STATUS_SUCCESS;
INT i;
DBGPRINT(RT_DEBUG_TRACE (“---> APInitialize\n“));
/* Init Group key update timer and countermeasures timer */
for (i = 0; i < MAX_MBSSID_NUM(pAd); i++)
RTMPInitTimer(pAd &pAd->ApCfg.MBSSID[i].REKEYTimer GET_TIMER_FUNCTION(GREKEYPeriodicExec) pAd TRUE);
RTMPInitTimer(pAd &pAd->ApCfg.CounterMeasureTimer GET_TIMER_FUNCTION(CMTimerExec) pAd FALSE);
#ifdef RTMP_MAC_USB
RTMPInitTimer(pAd &pAd->CommonCfg.BeaconUpdateTimer GET_TIMER_FUNCTION(BeaconUpdateExec) pAd TRUE);
/*RTUSBBssBeaconInit(pAd); */
#endif /* RTMP_MAC_USB */
#ifdef IDS_SUPPORT
/* Init intrusion detection timer */
RTMPInitTimer(pAd &pAd->ApCfg.IDSTimer GET_TIMER_FUNCTION(RTMPIdsPeriodicExec) pAd FALSE);
pAd->ApCfg.IDSTimerRunning = FALSE;
#endif /* IDS_SUPPORT */
#ifdef WAPI_SUPPORT
/* Init WAPI rekey timer */
RTMPInitWapiRekeyTimerAction(pAd NULL);
#endif /* WAPI_SUPPORT */
#ifdef WDS_SUPPORT
APWdsInitialize(pAd);
#endif /* WDS_SUPPORT */
#ifdef IGMP_SNOOP_SUPPORT
MulticastFilterTableInit(pAd &pAd->pMulticastFilterTable);
#endif /* IGMP_SNOOP_SUPPORT */
#ifdef WDS_SUPPORT
NdisAllocateSpinLock(pAd &pAd->WdsTabLock);
#endif /* WDS_SUPPORT */
DBGPRINT(RT_DEBUG_TRACE (“<--- APInitialize
- 上一篇:采用TVAL_3算法
- 下一篇:bui+bootstrap 后台完整界面 API
评论
共有 条评论