資源簡(jiǎn)介
atheros 無(wú)線WIFI 測(cè)試工具ART 的源碼,和nart.out 的源碼,這個(gè)資料包括中電都是沒(méi)有的喲。調(diào)試atheros WIFI 時(shí)必需的文件。
代碼片段和文件信息
#include?
#include?
#include?
#include?
#include?
#include?
#include?“wlantype.h“
#include?“mlibif.h“ //?for?OScfgRead()
#include?“NewArt.h“
#include?“smatch.h“
#include?“UserPrint.h“
#include?“ah_osdep.h“
#include?“AnwiDriverInterface.h“
#include?“common_hwext.h“
#define?MBUFFER?1024
//?index?for?the?ANWI?driver?stuff
//
static?short?devIndex=0; //?this?has?to?be?0
#define?A_swap32(x)?\
????????????((A_UINT32)(?\
?????????????????????????????????????????(((A_UINT32)(x)?&?(A_UINT32)0x000000ffUL)?<24)?|?\
?????????????????????????????????????????(((A_UINT32)(x)?&?(A_UINT32)0x0000ff00UL)?<?8)?|?\
?????????????????????????????????????????(((A_UINT32)(x)?&?(A_UINT32)0x00ff0000UL)?>>??8)?|?\
?????????????????????????????????????????(((A_UINT32)(x)?&?(A_UINT32)0xff000000UL)?>>?24)?))
//
//?Returns?1?is?there?is?a?valid?card?loaded?and?ready?for?operation.
//
int?AnwiDriverValid()
{
????if(globDrvInfo.pDevInfoArray[devIndex]!=0)
{
if(globDrvInfo.pDevInfoArray[devIndex]->pdkInfo!=0)
{
if(globDrvInfo.pDevInfoArray[devIndex]->pdkInfo->memVirAddr!=0)
{
if(globDrvInfo.pDevInfoArray[devIndex]->pdkInfo->aregVirAddr[0]!=0)
{
return?1;
}
}
}
}
return?0;
}
#ifdef?UNUSED
//
//?Returns?1?is?there?is?a?valid?card?loaded?and?ready?for?operation.
//
int?CardValidReset()
{
????return?CardValid()?&?ResetDone;
}
#endif
static?FILE?*_RegisterDebug=0;
static?int?_RegisterDebugState=0; //?1?means?write?file?2?means?print?on?screen?4?means?send?to?cart
//
//?Set?the?time?used?in?file?names
//
static?void?MyRegisterFileName(char?*buffer?int?max)
{
????time_t?now=0;
????struct?tm?*lnow;
????//
//?get?time?since?we‘re?probably?going?to?use?it
//
now=time(0);
lnow=localtime(&now);
SformatOutput(buffermax-1“%02d%02d%02d%02d%02d%02d.rw“
lnow->tm_year-100lnow->tm_mon+1lnow->tm_mdaylnow->tm_hourlnow->tm_minlnow->tm_sec);
}
void?MyRegisterPrint(unsigned?long?address?unsigned?long?before?unsigned?long?after)
{
char?buffer[MBUFFER];
SformatOutput(bufferMBUFFER-1“%04lx:?%08lx?->?%08lx“addressbeforeafter);
//
//?put?in?file
//
if(_RegisterDebugState&0x1?&&?_RegisterDebug)
{
fprintf(_RegisterDebug“%s\n“buffer);
fflush(_RegisterDebug);
}
//
//?show?in?window
//
if(_RegisterDebugState&0x2)
{
UserPrint(“%s\n“buffer);
}
//
//?return?to?cart
//
if(_RegisterDebugState&0x4)
{
????SendDebug(0buffer); //?need?to?record?which?client
}
}
//
//?turn?on/off?output?of?all?register?writes?to?a?file
//
void?MyRegisterDebug(int?state)
{
char?buffer[MBUFFER];
if(state)
{
//
//?correct?state?of?file.
//?open?it?if?we?need?it?and?it?is?not?open
//?or?close?it?if?it?is?open?and?we?don‘t?need?it
//
if(state&0x1)
{
if(_RegisterDebug==0)
{
????MyRegisterFileName(bufferMBUFFER);
????????_RegisterDebug=fopen(buffer“w+“);
}
}
else
{
if(_RegisterDebug!=0)
{
? fclose(_RegisterDebug);
????????_
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????????1196??2010-11-04?16:52??art2_ver2_23.1ap_src\AP_nart_build_instuction.txt
?????目錄???????????0??2011-11-11?11:21??art2_ver2_23.1ap_src\art\
?????文件????????9934??2011-10-18?12:21??art2_ver2_23.1ap_src\art\AnwiDriverInterface.c
?????文件?????????513??2011-10-18?12:21??art2_ver2_23.1ap_src\art\AnwiDriverInterface.h
?????文件???????11590??2011-10-18?12:21??art2_ver2_23.1ap_src\art\art_if.h
?????文件????????4259??2011-10-18?12:21??art2_ver2_23.1ap_src\art\Calibrate.c
?????文件?????????383??2011-10-18?12:21??art2_ver2_23.1ap_src\art\Calibrate.h
?????文件???????35717??2011-10-18?12:21??art2_ver2_23.1ap_src\art\Card.c
?????文件????????2474??2011-10-18?12:21??art2_ver2_23.1ap_src\art\Card.h
?????文件????????4536??2011-10-18?12:21??art2_ver2_23.1ap_src\art\configCmd.c
?????文件??????????88??2011-10-18?12:21??art2_ver2_23.1ap_src\art\configCmd.h
?????文件???????81910??2011-10-18?12:21??art2_ver2_23.1ap_src\art\ConfigurationCommand.c
?????文件????????1615??2011-10-18?12:21??art2_ver2_23.1ap_src\art\ConfigurationCommand.h
?????文件????????9866??2011-10-18?12:21??art2_ver2_23.1ap_src\art\Field.c
?????文件?????????582??2011-10-18?12:21??art2_ver2_23.1ap_src\art\Field.h
?????文件????????4215??2011-10-18?12:21??art2_ver2_23.1ap_src\art\GainTable.c
?????文件??????????97??2011-10-18?12:21??art2_ver2_23.1ap_src\art\GainTable.h
?????文件???????52929??2011-10-18?12:21??art2_ver2_23.1ap_src\art\li
?????文件?????????370??2011-10-18?12:21??art2_ver2_23.1ap_src\art\li
?????文件????????4552??2011-11-11?11:19??art2_ver2_23.1ap_src\art\makefile.nart
?????文件???????22190??2011-10-18?12:21??art2_ver2_23.1ap_src\art\mlibif.c
?????文件????????1923??2011-10-18?12:21??art2_ver2_23.1ap_src\art\mlibif.h
?????文件?????????553??2011-10-18?12:21??art2_ver2_23.1ap_src\art\MyDelay.c
?????文件??????????31??2011-10-18?12:21??art2_ver2_23.1ap_src\art\MyDelay.h
?????文件????????2398??2011-10-18?12:21??art2_ver2_23.1ap_src\art\nart.c
?????文件???????53159??2011-10-18?12:21??art2_ver2_23.1ap_src\art\NartRegister.c
?????文件????????1243??2011-10-18?12:21??art2_ver2_23.1ap_src\art\NartRegister.h
?????文件?????????312??2011-10-18?12:21??art2_ver2_23.1ap_src\art\NartVersion.c
?????文件?????????129??2011-10-18?12:21??art2_ver2_23.1ap_src\art\NartVersion.h
?????文件???????29808??2011-10-18?12:21??art2_ver2_23.1ap_src\art\NewArt.c
?????文件?????????481??2011-10-18?12:21??art2_ver2_23.1ap_src\art\NewArt.h
............此處省略313個(gè)文件信息
評(píng)論
共有 條評(píng)論