staging:vt6655:mib: Whitespace cleanups
Neatening only. git diff -w shows no differences. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c3504bfd11
commit
fd0badb8ed
2 changed files with 552 additions and 552 deletions
|
@ -45,7 +45,7 @@
|
||||||
#include "baseband.h"
|
#include "baseband.h"
|
||||||
|
|
||||||
/*--------------------- Static Definitions -------------------------*/
|
/*--------------------- Static Definitions -------------------------*/
|
||||||
static int msglevel =MSG_LEVEL_INFO;
|
static int msglevel = MSG_LEVEL_INFO;
|
||||||
/*--------------------- Static Classes ----------------------------*/
|
/*--------------------- Static Classes ----------------------------*/
|
||||||
|
|
||||||
/*--------------------- Static Variables --------------------------*/
|
/*--------------------- Static Variables --------------------------*/
|
||||||
|
@ -70,9 +70,9 @@ static int msglevel =MSG_LEVEL_INFO;
|
||||||
* Return Value: none
|
* Return Value: none
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void STAvClearAllCounter (PSStatCounter pStatistic)
|
void STAvClearAllCounter(PSStatCounter pStatistic)
|
||||||
{
|
{
|
||||||
// set memory to zero
|
// set memory to zero
|
||||||
memset(pStatistic, 0, sizeof(SStatCounter));
|
memset(pStatistic, 0, sizeof(SStatCounter));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -90,54 +90,54 @@ void STAvClearAllCounter (PSStatCounter pStatistic)
|
||||||
* Return Value: none
|
* Return Value: none
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void STAvUpdateIsrStatCounter (PSStatCounter pStatistic, unsigned long dwIsr)
|
void STAvUpdateIsrStatCounter(PSStatCounter pStatistic, unsigned long dwIsr)
|
||||||
{
|
{
|
||||||
/**********************/
|
/**********************/
|
||||||
/* ABNORMAL interrupt */
|
/* ABNORMAL interrupt */
|
||||||
/**********************/
|
/**********************/
|
||||||
// not any IMR bit invoke irq
|
// not any IMR bit invoke irq
|
||||||
|
|
||||||
if (dwIsr == 0) {
|
if (dwIsr == 0) {
|
||||||
pStatistic->ISRStat.dwIsrUnknown++;
|
pStatistic->ISRStat.dwIsrUnknown++;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Added by Kyle
|
//Added by Kyle
|
||||||
if (dwIsr & ISR_TXDMA0) // ISR, bit0
|
if (dwIsr & ISR_TXDMA0) // ISR, bit0
|
||||||
pStatistic->ISRStat.dwIsrTx0OK++; // TXDMA0 successful
|
pStatistic->ISRStat.dwIsrTx0OK++; // TXDMA0 successful
|
||||||
|
|
||||||
if (dwIsr & ISR_AC0DMA) // ISR, bit1
|
if (dwIsr & ISR_AC0DMA) // ISR, bit1
|
||||||
pStatistic->ISRStat.dwIsrAC0TxOK++; // AC0DMA successful
|
pStatistic->ISRStat.dwIsrAC0TxOK++; // AC0DMA successful
|
||||||
|
|
||||||
if (dwIsr & ISR_BNTX) // ISR, bit2
|
if (dwIsr & ISR_BNTX) // ISR, bit2
|
||||||
pStatistic->ISRStat.dwIsrBeaconTxOK++; // BeaconTx successful
|
pStatistic->ISRStat.dwIsrBeaconTxOK++; // BeaconTx successful
|
||||||
|
|
||||||
if (dwIsr & ISR_RXDMA0) // ISR, bit3
|
if (dwIsr & ISR_RXDMA0) // ISR, bit3
|
||||||
pStatistic->ISRStat.dwIsrRx0OK++; // Rx0 successful
|
pStatistic->ISRStat.dwIsrRx0OK++; // Rx0 successful
|
||||||
|
|
||||||
if (dwIsr & ISR_TBTT) // ISR, bit4
|
if (dwIsr & ISR_TBTT) // ISR, bit4
|
||||||
pStatistic->ISRStat.dwIsrTBTTInt++; // TBTT successful
|
pStatistic->ISRStat.dwIsrTBTTInt++; // TBTT successful
|
||||||
|
|
||||||
if (dwIsr & ISR_SOFTTIMER) // ISR, bit6
|
if (dwIsr & ISR_SOFTTIMER) // ISR, bit6
|
||||||
pStatistic->ISRStat.dwIsrSTIMERInt++;
|
pStatistic->ISRStat.dwIsrSTIMERInt++;
|
||||||
|
|
||||||
if (dwIsr & ISR_WATCHDOG) // ISR, bit7
|
if (dwIsr & ISR_WATCHDOG) // ISR, bit7
|
||||||
pStatistic->ISRStat.dwIsrWatchDog++;
|
pStatistic->ISRStat.dwIsrWatchDog++;
|
||||||
|
|
||||||
if (dwIsr & ISR_FETALERR) // ISR, bit8
|
if (dwIsr & ISR_FETALERR) // ISR, bit8
|
||||||
pStatistic->ISRStat.dwIsrUnrecoverableError++;
|
pStatistic->ISRStat.dwIsrUnrecoverableError++;
|
||||||
|
|
||||||
if (dwIsr & ISR_SOFTINT) // ISR, bit9
|
if (dwIsr & ISR_SOFTINT) // ISR, bit9
|
||||||
pStatistic->ISRStat.dwIsrSoftInterrupt++; // software interrupt
|
pStatistic->ISRStat.dwIsrSoftInterrupt++; // software interrupt
|
||||||
|
|
||||||
if (dwIsr & ISR_MIBNEARFULL) // ISR, bit10
|
if (dwIsr & ISR_MIBNEARFULL) // ISR, bit10
|
||||||
pStatistic->ISRStat.dwIsrMIBNearfull++;
|
pStatistic->ISRStat.dwIsrMIBNearfull++;
|
||||||
|
|
||||||
if (dwIsr & ISR_RXNOBUF) // ISR, bit11
|
if (dwIsr & ISR_RXNOBUF) // ISR, bit11
|
||||||
pStatistic->ISRStat.dwIsrRxNoBuf++; // Rx No Buff
|
pStatistic->ISRStat.dwIsrRxNoBuf++; // Rx No Buff
|
||||||
|
|
||||||
if (dwIsr & ISR_RXDMA1) // ISR, bit12
|
if (dwIsr & ISR_RXDMA1) // ISR, bit12
|
||||||
pStatistic->ISRStat.dwIsrRx1OK++; // Rx1 successful
|
pStatistic->ISRStat.dwIsrRx1OK++; // Rx1 successful
|
||||||
|
|
||||||
// if (dwIsr & ISR_ATIMTX) // ISR, bit13
|
// if (dwIsr & ISR_ATIMTX) // ISR, bit13
|
||||||
// pStatistic->ISRStat.dwIsrATIMTxOK++; // ATIMTX successful
|
// pStatistic->ISRStat.dwIsrATIMTxOK++; // ATIMTX successful
|
||||||
|
@ -154,8 +154,8 @@ void STAvUpdateIsrStatCounter (PSStatCounter pStatistic, unsigned long dwIsr)
|
||||||
// if (dwIsr & ISR_SYNCFLUSHOK) // ISR, bit20
|
// if (dwIsr & ISR_SYNCFLUSHOK) // ISR, bit20
|
||||||
// pStatistic->ISRStat.dwIsrSYNCFlushOK++;
|
// pStatistic->ISRStat.dwIsrSYNCFlushOK++;
|
||||||
|
|
||||||
if (dwIsr & ISR_SOFTTIMER1) // ISR, bit21
|
if (dwIsr & ISR_SOFTTIMER1) // ISR, bit21
|
||||||
pStatistic->ISRStat.dwIsrSTIMER1Int++;
|
pStatistic->ISRStat.dwIsrSTIMER1Int++;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -176,194 +176,194 @@ void STAvUpdateIsrStatCounter (PSStatCounter pStatistic, unsigned long dwIsr)
|
||||||
* Return Value: none
|
* Return Value: none
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void STAvUpdateRDStatCounter (PSStatCounter pStatistic,
|
void STAvUpdateRDStatCounter(PSStatCounter pStatistic,
|
||||||
unsigned char byRSR, unsigned char byNewRSR, unsigned char byRxRate,
|
unsigned char byRSR, unsigned char byNewRSR, unsigned char byRxRate,
|
||||||
unsigned char *pbyBuffer, unsigned int cbFrameLength)
|
unsigned char *pbyBuffer, unsigned int cbFrameLength)
|
||||||
{
|
{
|
||||||
//need change
|
//need change
|
||||||
PS802_11Header pHeader = (PS802_11Header)pbyBuffer;
|
PS802_11Header pHeader = (PS802_11Header)pbyBuffer;
|
||||||
|
|
||||||
if (byRSR & RSR_ADDROK)
|
if (byRSR & RSR_ADDROK)
|
||||||
pStatistic->dwRsrADDROk++;
|
pStatistic->dwRsrADDROk++;
|
||||||
if (byRSR & RSR_CRCOK) {
|
if (byRSR & RSR_CRCOK) {
|
||||||
pStatistic->dwRsrCRCOk++;
|
pStatistic->dwRsrCRCOk++;
|
||||||
|
|
||||||
pStatistic->ullRsrOK++;
|
pStatistic->ullRsrOK++;
|
||||||
|
|
||||||
if (cbFrameLength >= ETH_ALEN) {
|
if (cbFrameLength >= ETH_ALEN) {
|
||||||
// update counters in case of successful transmit
|
// update counters in case of successful transmit
|
||||||
if (byRSR & RSR_ADDRBROAD) {
|
if (byRSR & RSR_ADDRBROAD) {
|
||||||
pStatistic->ullRxBroadcastFrames++;
|
pStatistic->ullRxBroadcastFrames++;
|
||||||
pStatistic->ullRxBroadcastBytes += (unsigned long long) cbFrameLength;
|
pStatistic->ullRxBroadcastBytes += (unsigned long long) cbFrameLength;
|
||||||
}
|
}
|
||||||
else if (byRSR & RSR_ADDRMULTI) {
|
else if (byRSR & RSR_ADDRMULTI) {
|
||||||
pStatistic->ullRxMulticastFrames++;
|
pStatistic->ullRxMulticastFrames++;
|
||||||
pStatistic->ullRxMulticastBytes += (unsigned long long) cbFrameLength;
|
pStatistic->ullRxMulticastBytes += (unsigned long long) cbFrameLength;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
pStatistic->ullRxDirectedFrames++;
|
pStatistic->ullRxDirectedFrames++;
|
||||||
pStatistic->ullRxDirectedBytes += (unsigned long long) cbFrameLength;
|
pStatistic->ullRxDirectedBytes += (unsigned long long) cbFrameLength;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(byRxRate==22) {
|
if (byRxRate == 22) {
|
||||||
pStatistic->CustomStat.ullRsr11M++;
|
pStatistic->CustomStat.ullRsr11M++;
|
||||||
if(byRSR & RSR_CRCOK) {
|
if (byRSR & RSR_CRCOK) {
|
||||||
pStatistic->CustomStat.ullRsr11MCRCOk++;
|
pStatistic->CustomStat.ullRsr11MCRCOk++;
|
||||||
}
|
}
|
||||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"11M: ALL[%d], OK[%d]:[%02x]\n", (int)pStatistic->CustomStat.ullRsr11M, (int)pStatistic->CustomStat.ullRsr11MCRCOk, byRSR);
|
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "11M: ALL[%d], OK[%d]:[%02x]\n", (int)pStatistic->CustomStat.ullRsr11M, (int)pStatistic->CustomStat.ullRsr11MCRCOk, byRSR);
|
||||||
}
|
}
|
||||||
else if(byRxRate==11) {
|
else if (byRxRate == 11) {
|
||||||
pStatistic->CustomStat.ullRsr5M++;
|
pStatistic->CustomStat.ullRsr5M++;
|
||||||
if(byRSR & RSR_CRCOK) {
|
if (byRSR & RSR_CRCOK) {
|
||||||
pStatistic->CustomStat.ullRsr5MCRCOk++;
|
pStatistic->CustomStat.ullRsr5MCRCOk++;
|
||||||
}
|
}
|
||||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" 5M: ALL[%d], OK[%d]:[%02x]\n", (int)pStatistic->CustomStat.ullRsr5M, (int)pStatistic->CustomStat.ullRsr5MCRCOk, byRSR);
|
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " 5M: ALL[%d], OK[%d]:[%02x]\n", (int)pStatistic->CustomStat.ullRsr5M, (int)pStatistic->CustomStat.ullRsr5MCRCOk, byRSR);
|
||||||
}
|
}
|
||||||
else if(byRxRate==4) {
|
else if (byRxRate == 4) {
|
||||||
pStatistic->CustomStat.ullRsr2M++;
|
pStatistic->CustomStat.ullRsr2M++;
|
||||||
if(byRSR & RSR_CRCOK) {
|
if (byRSR & RSR_CRCOK) {
|
||||||
pStatistic->CustomStat.ullRsr2MCRCOk++;
|
pStatistic->CustomStat.ullRsr2MCRCOk++;
|
||||||
}
|
}
|
||||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" 2M: ALL[%d], OK[%d]:[%02x]\n", (int)pStatistic->CustomStat.ullRsr2M, (int)pStatistic->CustomStat.ullRsr2MCRCOk, byRSR);
|
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " 2M: ALL[%d], OK[%d]:[%02x]\n", (int)pStatistic->CustomStat.ullRsr2M, (int)pStatistic->CustomStat.ullRsr2MCRCOk, byRSR);
|
||||||
}
|
}
|
||||||
else if(byRxRate==2){
|
else if (byRxRate == 2) {
|
||||||
pStatistic->CustomStat.ullRsr1M++;
|
pStatistic->CustomStat.ullRsr1M++;
|
||||||
if(byRSR & RSR_CRCOK) {
|
if (byRSR & RSR_CRCOK) {
|
||||||
pStatistic->CustomStat.ullRsr1MCRCOk++;
|
pStatistic->CustomStat.ullRsr1MCRCOk++;
|
||||||
}
|
}
|
||||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" 1M: ALL[%d], OK[%d]:[%02x]\n", (int)pStatistic->CustomStat.ullRsr1M, (int)pStatistic->CustomStat.ullRsr1MCRCOk, byRSR);
|
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " 1M: ALL[%d], OK[%d]:[%02x]\n", (int)pStatistic->CustomStat.ullRsr1M, (int)pStatistic->CustomStat.ullRsr1MCRCOk, byRSR);
|
||||||
}
|
}
|
||||||
else if(byRxRate==12){
|
else if (byRxRate == 12) {
|
||||||
pStatistic->CustomStat.ullRsr6M++;
|
pStatistic->CustomStat.ullRsr6M++;
|
||||||
if(byRSR & RSR_CRCOK) {
|
if (byRSR & RSR_CRCOK) {
|
||||||
pStatistic->CustomStat.ullRsr6MCRCOk++;
|
pStatistic->CustomStat.ullRsr6MCRCOk++;
|
||||||
}
|
}
|
||||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" 6M: ALL[%d], OK[%d]\n", (int)pStatistic->CustomStat.ullRsr6M, (int)pStatistic->CustomStat.ullRsr6MCRCOk);
|
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " 6M: ALL[%d], OK[%d]\n", (int)pStatistic->CustomStat.ullRsr6M, (int)pStatistic->CustomStat.ullRsr6MCRCOk);
|
||||||
}
|
}
|
||||||
else if(byRxRate==18){
|
else if (byRxRate == 18) {
|
||||||
pStatistic->CustomStat.ullRsr9M++;
|
pStatistic->CustomStat.ullRsr9M++;
|
||||||
if(byRSR & RSR_CRCOK) {
|
if (byRSR & RSR_CRCOK) {
|
||||||
pStatistic->CustomStat.ullRsr9MCRCOk++;
|
pStatistic->CustomStat.ullRsr9MCRCOk++;
|
||||||
}
|
}
|
||||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" 9M: ALL[%d], OK[%d]\n", (int)pStatistic->CustomStat.ullRsr9M, (int)pStatistic->CustomStat.ullRsr9MCRCOk);
|
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " 9M: ALL[%d], OK[%d]\n", (int)pStatistic->CustomStat.ullRsr9M, (int)pStatistic->CustomStat.ullRsr9MCRCOk);
|
||||||
}
|
}
|
||||||
else if(byRxRate==24){
|
else if (byRxRate == 24) {
|
||||||
pStatistic->CustomStat.ullRsr12M++;
|
pStatistic->CustomStat.ullRsr12M++;
|
||||||
if(byRSR & RSR_CRCOK) {
|
if (byRSR & RSR_CRCOK) {
|
||||||
pStatistic->CustomStat.ullRsr12MCRCOk++;
|
pStatistic->CustomStat.ullRsr12MCRCOk++;
|
||||||
}
|
}
|
||||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"12M: ALL[%d], OK[%d]\n", (int)pStatistic->CustomStat.ullRsr12M, (int)pStatistic->CustomStat.ullRsr12MCRCOk);
|
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "12M: ALL[%d], OK[%d]\n", (int)pStatistic->CustomStat.ullRsr12M, (int)pStatistic->CustomStat.ullRsr12MCRCOk);
|
||||||
}
|
}
|
||||||
else if(byRxRate==36){
|
else if (byRxRate == 36) {
|
||||||
pStatistic->CustomStat.ullRsr18M++;
|
pStatistic->CustomStat.ullRsr18M++;
|
||||||
if(byRSR & RSR_CRCOK) {
|
if (byRSR & RSR_CRCOK) {
|
||||||
pStatistic->CustomStat.ullRsr18MCRCOk++;
|
pStatistic->CustomStat.ullRsr18MCRCOk++;
|
||||||
}
|
}
|
||||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"18M: ALL[%d], OK[%d]\n", (int)pStatistic->CustomStat.ullRsr18M, (int)pStatistic->CustomStat.ullRsr18MCRCOk);
|
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "18M: ALL[%d], OK[%d]\n", (int)pStatistic->CustomStat.ullRsr18M, (int)pStatistic->CustomStat.ullRsr18MCRCOk);
|
||||||
}
|
}
|
||||||
else if(byRxRate==48){
|
else if (byRxRate == 48) {
|
||||||
pStatistic->CustomStat.ullRsr24M++;
|
pStatistic->CustomStat.ullRsr24M++;
|
||||||
if(byRSR & RSR_CRCOK) {
|
if (byRSR & RSR_CRCOK) {
|
||||||
pStatistic->CustomStat.ullRsr24MCRCOk++;
|
pStatistic->CustomStat.ullRsr24MCRCOk++;
|
||||||
}
|
}
|
||||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"24M: ALL[%d], OK[%d]\n", (int)pStatistic->CustomStat.ullRsr24M, (int)pStatistic->CustomStat.ullRsr24MCRCOk);
|
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "24M: ALL[%d], OK[%d]\n", (int)pStatistic->CustomStat.ullRsr24M, (int)pStatistic->CustomStat.ullRsr24MCRCOk);
|
||||||
}
|
}
|
||||||
else if(byRxRate==72){
|
else if (byRxRate == 72) {
|
||||||
pStatistic->CustomStat.ullRsr36M++;
|
pStatistic->CustomStat.ullRsr36M++;
|
||||||
if(byRSR & RSR_CRCOK) {
|
if (byRSR & RSR_CRCOK) {
|
||||||
pStatistic->CustomStat.ullRsr36MCRCOk++;
|
pStatistic->CustomStat.ullRsr36MCRCOk++;
|
||||||
}
|
}
|
||||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"36M: ALL[%d], OK[%d]\n", (int)pStatistic->CustomStat.ullRsr36M, (int)pStatistic->CustomStat.ullRsr36MCRCOk);
|
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "36M: ALL[%d], OK[%d]\n", (int)pStatistic->CustomStat.ullRsr36M, (int)pStatistic->CustomStat.ullRsr36MCRCOk);
|
||||||
}
|
}
|
||||||
else if(byRxRate==96){
|
else if (byRxRate == 96) {
|
||||||
pStatistic->CustomStat.ullRsr48M++;
|
pStatistic->CustomStat.ullRsr48M++;
|
||||||
if(byRSR & RSR_CRCOK) {
|
if (byRSR & RSR_CRCOK) {
|
||||||
pStatistic->CustomStat.ullRsr48MCRCOk++;
|
pStatistic->CustomStat.ullRsr48MCRCOk++;
|
||||||
}
|
}
|
||||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"48M: ALL[%d], OK[%d]\n", (int)pStatistic->CustomStat.ullRsr48M, (int)pStatistic->CustomStat.ullRsr48MCRCOk);
|
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "48M: ALL[%d], OK[%d]\n", (int)pStatistic->CustomStat.ullRsr48M, (int)pStatistic->CustomStat.ullRsr48MCRCOk);
|
||||||
}
|
}
|
||||||
else if(byRxRate==108){
|
else if (byRxRate == 108) {
|
||||||
pStatistic->CustomStat.ullRsr54M++;
|
pStatistic->CustomStat.ullRsr54M++;
|
||||||
if(byRSR & RSR_CRCOK) {
|
if (byRSR & RSR_CRCOK) {
|
||||||
pStatistic->CustomStat.ullRsr54MCRCOk++;
|
pStatistic->CustomStat.ullRsr54MCRCOk++;
|
||||||
}
|
}
|
||||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"54M: ALL[%d], OK[%d]\n", (int)pStatistic->CustomStat.ullRsr54M, (int)pStatistic->CustomStat.ullRsr54MCRCOk);
|
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "54M: ALL[%d], OK[%d]\n", (int)pStatistic->CustomStat.ullRsr54M, (int)pStatistic->CustomStat.ullRsr54MCRCOk);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Unknown: Total[%d], CRCOK[%d]\n", (int)pStatistic->dwRsrRxPacket+1, (int)pStatistic->dwRsrCRCOk);
|
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Unknown: Total[%d], CRCOK[%d]\n", (int)pStatistic->dwRsrRxPacket+1, (int)pStatistic->dwRsrCRCOk);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (byRSR & RSR_BSSIDOK)
|
if (byRSR & RSR_BSSIDOK)
|
||||||
pStatistic->dwRsrBSSIDOk++;
|
pStatistic->dwRsrBSSIDOk++;
|
||||||
|
|
||||||
if (byRSR & RSR_BCNSSIDOK)
|
if (byRSR & RSR_BCNSSIDOK)
|
||||||
pStatistic->dwRsrBCNSSIDOk++;
|
pStatistic->dwRsrBCNSSIDOk++;
|
||||||
if (byRSR & RSR_IVLDLEN) //invalid len (> 2312 byte)
|
if (byRSR & RSR_IVLDLEN) //invalid len (> 2312 byte)
|
||||||
pStatistic->dwRsrLENErr++;
|
pStatistic->dwRsrLENErr++;
|
||||||
if (byRSR & RSR_IVLDTYP) //invalid packet type
|
if (byRSR & RSR_IVLDTYP) //invalid packet type
|
||||||
pStatistic->dwRsrTYPErr++;
|
pStatistic->dwRsrTYPErr++;
|
||||||
if (byRSR & (RSR_IVLDTYP | RSR_IVLDLEN))
|
if (byRSR & (RSR_IVLDTYP | RSR_IVLDLEN))
|
||||||
pStatistic->dwRsrErr++;
|
pStatistic->dwRsrErr++;
|
||||||
|
|
||||||
if (byNewRSR & NEWRSR_DECRYPTOK)
|
if (byNewRSR & NEWRSR_DECRYPTOK)
|
||||||
pStatistic->dwNewRsrDECRYPTOK++;
|
pStatistic->dwNewRsrDECRYPTOK++;
|
||||||
if (byNewRSR & NEWRSR_CFPIND)
|
if (byNewRSR & NEWRSR_CFPIND)
|
||||||
pStatistic->dwNewRsrCFP++;
|
pStatistic->dwNewRsrCFP++;
|
||||||
if (byNewRSR & NEWRSR_HWUTSF)
|
if (byNewRSR & NEWRSR_HWUTSF)
|
||||||
pStatistic->dwNewRsrUTSF++;
|
pStatistic->dwNewRsrUTSF++;
|
||||||
if (byNewRSR & NEWRSR_BCNHITAID)
|
if (byNewRSR & NEWRSR_BCNHITAID)
|
||||||
pStatistic->dwNewRsrHITAID++;
|
pStatistic->dwNewRsrHITAID++;
|
||||||
if (byNewRSR & NEWRSR_BCNHITAID0)
|
if (byNewRSR & NEWRSR_BCNHITAID0)
|
||||||
pStatistic->dwNewRsrHITAID0++;
|
pStatistic->dwNewRsrHITAID0++;
|
||||||
|
|
||||||
// increase rx packet count
|
// increase rx packet count
|
||||||
pStatistic->dwRsrRxPacket++;
|
pStatistic->dwRsrRxPacket++;
|
||||||
pStatistic->dwRsrRxOctet += cbFrameLength;
|
pStatistic->dwRsrRxOctet += cbFrameLength;
|
||||||
|
|
||||||
|
|
||||||
if (IS_TYPE_DATA(pbyBuffer)) {
|
if (IS_TYPE_DATA(pbyBuffer)) {
|
||||||
pStatistic->dwRsrRxData++;
|
pStatistic->dwRsrRxData++;
|
||||||
} else if (IS_TYPE_MGMT(pbyBuffer)){
|
} else if (IS_TYPE_MGMT(pbyBuffer)) {
|
||||||
pStatistic->dwRsrRxManage++;
|
pStatistic->dwRsrRxManage++;
|
||||||
} else if (IS_TYPE_CONTROL(pbyBuffer)){
|
} else if (IS_TYPE_CONTROL(pbyBuffer)) {
|
||||||
pStatistic->dwRsrRxControl++;
|
pStatistic->dwRsrRxControl++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (byRSR & RSR_ADDRBROAD)
|
if (byRSR & RSR_ADDRBROAD)
|
||||||
pStatistic->dwRsrBroadcast++;
|
pStatistic->dwRsrBroadcast++;
|
||||||
else if (byRSR & RSR_ADDRMULTI)
|
else if (byRSR & RSR_ADDRMULTI)
|
||||||
pStatistic->dwRsrMulticast++;
|
pStatistic->dwRsrMulticast++;
|
||||||
else
|
else
|
||||||
pStatistic->dwRsrDirected++;
|
pStatistic->dwRsrDirected++;
|
||||||
|
|
||||||
if (WLAN_GET_FC_MOREFRAG(pHeader->wFrameCtl))
|
if (WLAN_GET_FC_MOREFRAG(pHeader->wFrameCtl))
|
||||||
pStatistic->dwRsrRxFragment++;
|
pStatistic->dwRsrRxFragment++;
|
||||||
|
|
||||||
if (cbFrameLength < ETH_ZLEN + 4) {
|
if (cbFrameLength < ETH_ZLEN + 4) {
|
||||||
pStatistic->dwRsrRunt++;
|
pStatistic->dwRsrRunt++;
|
||||||
}
|
}
|
||||||
else if (cbFrameLength == ETH_ZLEN + 4) {
|
else if (cbFrameLength == ETH_ZLEN + 4) {
|
||||||
pStatistic->dwRsrRxFrmLen64++;
|
pStatistic->dwRsrRxFrmLen64++;
|
||||||
}
|
}
|
||||||
else if ((65 <= cbFrameLength) && (cbFrameLength <= 127)) {
|
else if ((65 <= cbFrameLength) && (cbFrameLength <= 127)) {
|
||||||
pStatistic->dwRsrRxFrmLen65_127++;
|
pStatistic->dwRsrRxFrmLen65_127++;
|
||||||
}
|
}
|
||||||
else if ((128 <= cbFrameLength) && (cbFrameLength <= 255)) {
|
else if ((128 <= cbFrameLength) && (cbFrameLength <= 255)) {
|
||||||
pStatistic->dwRsrRxFrmLen128_255++;
|
pStatistic->dwRsrRxFrmLen128_255++;
|
||||||
}
|
}
|
||||||
else if ((256 <= cbFrameLength) && (cbFrameLength <= 511)) {
|
else if ((256 <= cbFrameLength) && (cbFrameLength <= 511)) {
|
||||||
pStatistic->dwRsrRxFrmLen256_511++;
|
pStatistic->dwRsrRxFrmLen256_511++;
|
||||||
}
|
}
|
||||||
else if ((512 <= cbFrameLength) && (cbFrameLength <= 1023)) {
|
else if ((512 <= cbFrameLength) && (cbFrameLength <= 1023)) {
|
||||||
pStatistic->dwRsrRxFrmLen512_1023++;
|
pStatistic->dwRsrRxFrmLen512_1023++;
|
||||||
}
|
}
|
||||||
else if ((1024 <= cbFrameLength) && (cbFrameLength <= ETH_FRAME_LEN + 4)) {
|
else if ((1024 <= cbFrameLength) && (cbFrameLength <= ETH_FRAME_LEN + 4)) {
|
||||||
pStatistic->dwRsrRxFrmLen1024_1518++;
|
pStatistic->dwRsrRxFrmLen1024_1518++;
|
||||||
} else if (cbFrameLength > ETH_FRAME_LEN + 4) {
|
} else if (cbFrameLength > ETH_FRAME_LEN + 4) {
|
||||||
pStatistic->dwRsrLong++;
|
pStatistic->dwRsrLong++;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -387,28 +387,28 @@ void STAvUpdateRDStatCounter (PSStatCounter pStatistic,
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void
|
void
|
||||||
STAvUpdateRDStatCounterEx (
|
STAvUpdateRDStatCounterEx(
|
||||||
PSStatCounter pStatistic,
|
PSStatCounter pStatistic,
|
||||||
unsigned char byRSR,
|
unsigned char byRSR,
|
||||||
unsigned char byNewRSR,
|
unsigned char byNewRSR,
|
||||||
unsigned char byRxRate,
|
unsigned char byRxRate,
|
||||||
unsigned char *pbyBuffer,
|
unsigned char *pbyBuffer,
|
||||||
unsigned int cbFrameLength
|
unsigned int cbFrameLength
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
STAvUpdateRDStatCounter(
|
STAvUpdateRDStatCounter(
|
||||||
pStatistic,
|
pStatistic,
|
||||||
byRSR,
|
byRSR,
|
||||||
byNewRSR,
|
byNewRSR,
|
||||||
byRxRate,
|
byRxRate,
|
||||||
pbyBuffer,
|
pbyBuffer,
|
||||||
cbFrameLength
|
cbFrameLength
|
||||||
);
|
);
|
||||||
|
|
||||||
// rx length
|
// rx length
|
||||||
pStatistic->dwCntRxFrmLength = cbFrameLength;
|
pStatistic->dwCntRxFrmLength = cbFrameLength;
|
||||||
// rx pattern, we just see 10 bytes for sample
|
// rx pattern, we just see 10 bytes for sample
|
||||||
memcpy(pStatistic->abyCntRxPattern, (unsigned char *)pbyBuffer, 10);
|
memcpy(pStatistic->abyCntRxPattern, (unsigned char *)pbyBuffer, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -430,77 +430,77 @@ STAvUpdateRDStatCounterEx (
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
STAvUpdateTDStatCounter (
|
STAvUpdateTDStatCounter(
|
||||||
PSStatCounter pStatistic,
|
PSStatCounter pStatistic,
|
||||||
unsigned char byTSR0,
|
unsigned char byTSR0,
|
||||||
unsigned char byTSR1,
|
unsigned char byTSR1,
|
||||||
unsigned char *pbyBuffer,
|
unsigned char *pbyBuffer,
|
||||||
unsigned int cbFrameLength,
|
unsigned int cbFrameLength,
|
||||||
unsigned int uIdx
|
unsigned int uIdx
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PWLAN_80211HDR_A4 pHeader;
|
PWLAN_80211HDR_A4 pHeader;
|
||||||
unsigned char *pbyDestAddr;
|
unsigned char *pbyDestAddr;
|
||||||
unsigned char byTSR0_NCR = byTSR0 & TSR0_NCR;
|
unsigned char byTSR0_NCR = byTSR0 & TSR0_NCR;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
pHeader = (PWLAN_80211HDR_A4) pbyBuffer;
|
pHeader = (PWLAN_80211HDR_A4) pbyBuffer;
|
||||||
if (WLAN_GET_FC_TODS(pHeader->wFrameCtl) == 0) {
|
if (WLAN_GET_FC_TODS(pHeader->wFrameCtl) == 0) {
|
||||||
pbyDestAddr = &(pHeader->abyAddr1[0]);
|
pbyDestAddr = &(pHeader->abyAddr1[0]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
pbyDestAddr = &(pHeader->abyAddr3[0]);
|
pbyDestAddr = &(pHeader->abyAddr3[0]);
|
||||||
}
|
}
|
||||||
// increase tx packet count
|
// increase tx packet count
|
||||||
pStatistic->dwTsrTxPacket[uIdx]++;
|
pStatistic->dwTsrTxPacket[uIdx]++;
|
||||||
pStatistic->dwTsrTxOctet[uIdx] += cbFrameLength;
|
pStatistic->dwTsrTxOctet[uIdx] += cbFrameLength;
|
||||||
|
|
||||||
if (byTSR0_NCR != 0) {
|
if (byTSR0_NCR != 0) {
|
||||||
pStatistic->dwTsrRetry[uIdx]++;
|
pStatistic->dwTsrRetry[uIdx]++;
|
||||||
pStatistic->dwTsrTotalRetry[uIdx] += byTSR0_NCR;
|
pStatistic->dwTsrTotalRetry[uIdx] += byTSR0_NCR;
|
||||||
|
|
||||||
if (byTSR0_NCR == 1)
|
if (byTSR0_NCR == 1)
|
||||||
pStatistic->dwTsrOnceRetry[uIdx]++;
|
pStatistic->dwTsrOnceRetry[uIdx]++;
|
||||||
else
|
else
|
||||||
pStatistic->dwTsrMoreThanOnceRetry[uIdx]++;
|
pStatistic->dwTsrMoreThanOnceRetry[uIdx]++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((byTSR1&(TSR1_TERR|TSR1_RETRYTMO|TSR1_TMO|ACK_DATA)) == 0) {
|
if ((byTSR1&(TSR1_TERR|TSR1_RETRYTMO|TSR1_TMO|ACK_DATA)) == 0) {
|
||||||
pStatistic->ullTsrOK[uIdx]++;
|
pStatistic->ullTsrOK[uIdx]++;
|
||||||
pStatistic->CustomStat.ullTsrAllOK =
|
pStatistic->CustomStat.ullTsrAllOK =
|
||||||
(pStatistic->ullTsrOK[TYPE_AC0DMA] + pStatistic->ullTsrOK[TYPE_TXDMA0]);
|
(pStatistic->ullTsrOK[TYPE_AC0DMA] + pStatistic->ullTsrOK[TYPE_TXDMA0]);
|
||||||
// update counters in case that successful transmit
|
// update counters in case that successful transmit
|
||||||
if (is_broadcast_ether_addr(pbyDestAddr)) {
|
if (is_broadcast_ether_addr(pbyDestAddr)) {
|
||||||
pStatistic->ullTxBroadcastFrames[uIdx]++;
|
pStatistic->ullTxBroadcastFrames[uIdx]++;
|
||||||
pStatistic->ullTxBroadcastBytes[uIdx] += (unsigned long long) cbFrameLength;
|
pStatistic->ullTxBroadcastBytes[uIdx] += (unsigned long long) cbFrameLength;
|
||||||
}
|
}
|
||||||
else if (is_multicast_ether_addr(pbyDestAddr)) {
|
else if (is_multicast_ether_addr(pbyDestAddr)) {
|
||||||
pStatistic->ullTxMulticastFrames[uIdx]++;
|
pStatistic->ullTxMulticastFrames[uIdx]++;
|
||||||
pStatistic->ullTxMulticastBytes[uIdx] += (unsigned long long) cbFrameLength;
|
pStatistic->ullTxMulticastBytes[uIdx] += (unsigned long long) cbFrameLength;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
pStatistic->ullTxDirectedFrames[uIdx]++;
|
pStatistic->ullTxDirectedFrames[uIdx]++;
|
||||||
pStatistic->ullTxDirectedBytes[uIdx] += (unsigned long long) cbFrameLength;
|
pStatistic->ullTxDirectedBytes[uIdx] += (unsigned long long) cbFrameLength;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (byTSR1 & TSR1_TERR)
|
if (byTSR1 & TSR1_TERR)
|
||||||
pStatistic->dwTsrErr[uIdx]++;
|
pStatistic->dwTsrErr[uIdx]++;
|
||||||
if (byTSR1 & TSR1_RETRYTMO)
|
if (byTSR1 & TSR1_RETRYTMO)
|
||||||
pStatistic->dwTsrRetryTimeout[uIdx]++;
|
pStatistic->dwTsrRetryTimeout[uIdx]++;
|
||||||
if (byTSR1 & TSR1_TMO)
|
if (byTSR1 & TSR1_TMO)
|
||||||
pStatistic->dwTsrTransmitTimeout[uIdx]++;
|
pStatistic->dwTsrTransmitTimeout[uIdx]++;
|
||||||
if (byTSR1 & ACK_DATA)
|
if (byTSR1 & ACK_DATA)
|
||||||
pStatistic->dwTsrACKData[uIdx]++;
|
pStatistic->dwTsrACKData[uIdx]++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_broadcast_ether_addr(pbyDestAddr))
|
if (is_broadcast_ether_addr(pbyDestAddr))
|
||||||
pStatistic->dwTsrBroadcast[uIdx]++;
|
pStatistic->dwTsrBroadcast[uIdx]++;
|
||||||
else if (is_multicast_ether_addr(pbyDestAddr))
|
else if (is_multicast_ether_addr(pbyDestAddr))
|
||||||
pStatistic->dwTsrMulticast[uIdx]++;
|
pStatistic->dwTsrMulticast[uIdx]++;
|
||||||
else
|
else
|
||||||
pStatistic->dwTsrDirected[uIdx]++;
|
pStatistic->dwTsrDirected[uIdx]++;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -520,20 +520,20 @@ STAvUpdateTDStatCounter (
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
STAvUpdateTDStatCounterEx (
|
STAvUpdateTDStatCounterEx(
|
||||||
PSStatCounter pStatistic,
|
PSStatCounter pStatistic,
|
||||||
unsigned char *pbyBuffer,
|
unsigned char *pbyBuffer,
|
||||||
unsigned long cbFrameLength
|
unsigned long cbFrameLength
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
unsigned int uPktLength;
|
unsigned int uPktLength;
|
||||||
|
|
||||||
uPktLength = (unsigned int)cbFrameLength;
|
uPktLength = (unsigned int)cbFrameLength;
|
||||||
|
|
||||||
// tx length
|
// tx length
|
||||||
pStatistic->dwCntTxBufLength = uPktLength;
|
pStatistic->dwCntTxBufLength = uPktLength;
|
||||||
// tx pattern, we just see 16 bytes for sample
|
// tx pattern, we just see 16 bytes for sample
|
||||||
memcpy(pStatistic->abyCntTxPattern, pbyBuffer, 16);
|
memcpy(pStatistic->abyCntTxPattern, pbyBuffer, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -553,28 +553,28 @@ STAvUpdateTDStatCounterEx (
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
STAvUpdate802_11Counter(
|
STAvUpdate802_11Counter(
|
||||||
PSDot11Counters p802_11Counter,
|
PSDot11Counters p802_11Counter,
|
||||||
PSStatCounter pStatistic,
|
PSStatCounter pStatistic,
|
||||||
unsigned long dwCounter
|
unsigned long dwCounter
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//p802_11Counter->TransmittedFragmentCount
|
//p802_11Counter->TransmittedFragmentCount
|
||||||
p802_11Counter->MulticastTransmittedFrameCount = (unsigned long long) (pStatistic->dwTsrBroadcast[TYPE_AC0DMA] +
|
p802_11Counter->MulticastTransmittedFrameCount = (unsigned long long) (pStatistic->dwTsrBroadcast[TYPE_AC0DMA] +
|
||||||
pStatistic->dwTsrBroadcast[TYPE_TXDMA0] +
|
pStatistic->dwTsrBroadcast[TYPE_TXDMA0] +
|
||||||
pStatistic->dwTsrMulticast[TYPE_AC0DMA] +
|
pStatistic->dwTsrMulticast[TYPE_AC0DMA] +
|
||||||
pStatistic->dwTsrMulticast[TYPE_TXDMA0]);
|
pStatistic->dwTsrMulticast[TYPE_TXDMA0]);
|
||||||
p802_11Counter->FailedCount = (unsigned long long) (pStatistic->dwTsrErr[TYPE_AC0DMA] + pStatistic->dwTsrErr[TYPE_TXDMA0]);
|
p802_11Counter->FailedCount = (unsigned long long) (pStatistic->dwTsrErr[TYPE_AC0DMA] + pStatistic->dwTsrErr[TYPE_TXDMA0]);
|
||||||
p802_11Counter->RetryCount = (unsigned long long) (pStatistic->dwTsrRetry[TYPE_AC0DMA] + pStatistic->dwTsrRetry[TYPE_TXDMA0]);
|
p802_11Counter->RetryCount = (unsigned long long) (pStatistic->dwTsrRetry[TYPE_AC0DMA] + pStatistic->dwTsrRetry[TYPE_TXDMA0]);
|
||||||
p802_11Counter->MultipleRetryCount = (unsigned long long) (pStatistic->dwTsrMoreThanOnceRetry[TYPE_AC0DMA] +
|
p802_11Counter->MultipleRetryCount = (unsigned long long) (pStatistic->dwTsrMoreThanOnceRetry[TYPE_AC0DMA] +
|
||||||
pStatistic->dwTsrMoreThanOnceRetry[TYPE_TXDMA0]);
|
pStatistic->dwTsrMoreThanOnceRetry[TYPE_TXDMA0]);
|
||||||
//p802_11Counter->FrameDuplicateCount
|
//p802_11Counter->FrameDuplicateCount
|
||||||
p802_11Counter->RTSSuccessCount += (unsigned long long) (dwCounter & 0x000000ff);
|
p802_11Counter->RTSSuccessCount += (unsigned long long) (dwCounter & 0x000000ff);
|
||||||
p802_11Counter->RTSFailureCount += (unsigned long long) ((dwCounter & 0x0000ff00) >> 8);
|
p802_11Counter->RTSFailureCount += (unsigned long long) ((dwCounter & 0x0000ff00) >> 8);
|
||||||
p802_11Counter->ACKFailureCount += (unsigned long long) ((dwCounter & 0x00ff0000) >> 16);
|
p802_11Counter->ACKFailureCount += (unsigned long long) ((dwCounter & 0x00ff0000) >> 16);
|
||||||
p802_11Counter->FCSErrorCount += (unsigned long long) ((dwCounter & 0xff000000) >> 24);
|
p802_11Counter->FCSErrorCount += (unsigned long long) ((dwCounter & 0xff000000) >> 24);
|
||||||
//p802_11Counter->ReceivedFragmentCount
|
//p802_11Counter->ReceivedFragmentCount
|
||||||
p802_11Counter->MulticastReceivedFrameCount = (unsigned long long) (pStatistic->dwRsrBroadcast +
|
p802_11Counter->MulticastReceivedFrameCount = (unsigned long long) (pStatistic->dwRsrBroadcast +
|
||||||
pStatistic->dwRsrMulticast);
|
pStatistic->dwRsrMulticast);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -592,6 +592,6 @@ STAvUpdate802_11Counter(
|
||||||
void
|
void
|
||||||
STAvClear802_11Counter(PSDot11Counters p802_11Counter)
|
STAvClear802_11Counter(PSDot11Counters p802_11Counter)
|
||||||
{
|
{
|
||||||
// set memory to zero
|
// set memory to zero
|
||||||
memset(p802_11Counter, 0, sizeof(SDot11Counters));
|
memset(p802_11Counter, 0, sizeof(SDot11Counters));
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,28 +39,28 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
typedef struct tagSDot11Counters {
|
typedef struct tagSDot11Counters {
|
||||||
unsigned long Length; // Length of structure
|
unsigned long Length; // Length of structure
|
||||||
unsigned long long TransmittedFragmentCount;
|
unsigned long long TransmittedFragmentCount;
|
||||||
unsigned long long MulticastTransmittedFrameCount;
|
unsigned long long MulticastTransmittedFrameCount;
|
||||||
unsigned long long FailedCount;
|
unsigned long long FailedCount;
|
||||||
unsigned long long RetryCount;
|
unsigned long long RetryCount;
|
||||||
unsigned long long MultipleRetryCount;
|
unsigned long long MultipleRetryCount;
|
||||||
unsigned long long RTSSuccessCount;
|
unsigned long long RTSSuccessCount;
|
||||||
unsigned long long RTSFailureCount;
|
unsigned long long RTSFailureCount;
|
||||||
unsigned long long ACKFailureCount;
|
unsigned long long ACKFailureCount;
|
||||||
unsigned long long FrameDuplicateCount;
|
unsigned long long FrameDuplicateCount;
|
||||||
unsigned long long ReceivedFragmentCount;
|
unsigned long long ReceivedFragmentCount;
|
||||||
unsigned long long MulticastReceivedFrameCount;
|
unsigned long long MulticastReceivedFrameCount;
|
||||||
unsigned long long FCSErrorCount;
|
unsigned long long FCSErrorCount;
|
||||||
unsigned long long TKIPLocalMICFailures;
|
unsigned long long TKIPLocalMICFailures;
|
||||||
unsigned long long TKIPRemoteMICFailures;
|
unsigned long long TKIPRemoteMICFailures;
|
||||||
unsigned long long TKIPICVErrors;
|
unsigned long long TKIPICVErrors;
|
||||||
unsigned long long TKIPCounterMeasuresInvoked;
|
unsigned long long TKIPCounterMeasuresInvoked;
|
||||||
unsigned long long TKIPReplays;
|
unsigned long long TKIPReplays;
|
||||||
unsigned long long CCMPFormatErrors;
|
unsigned long long CCMPFormatErrors;
|
||||||
unsigned long long CCMPReplays;
|
unsigned long long CCMPReplays;
|
||||||
unsigned long long CCMPDecryptErrors;
|
unsigned long long CCMPDecryptErrors;
|
||||||
unsigned long long FourWayHandshakeFailures;
|
unsigned long long FourWayHandshakeFailures;
|
||||||
// unsigned long long WEPUndecryptableCount;
|
// unsigned long long WEPUndecryptableCount;
|
||||||
// unsigned long long WEPICVErrorCount;
|
// unsigned long long WEPICVErrorCount;
|
||||||
// unsigned long long DecryptSuccessCount;
|
// unsigned long long DecryptSuccessCount;
|
||||||
|
@ -72,29 +72,29 @@ typedef struct tagSDot11Counters {
|
||||||
// MIB2 counter
|
// MIB2 counter
|
||||||
//
|
//
|
||||||
typedef struct tagSMib2Counter {
|
typedef struct tagSMib2Counter {
|
||||||
long ifIndex;
|
long ifIndex;
|
||||||
char ifDescr[256]; // max size 255 plus zero ending
|
char ifDescr[256]; // max size 255 plus zero ending
|
||||||
// e.g. "interface 1"
|
// e.g. "interface 1"
|
||||||
long ifType;
|
long ifType;
|
||||||
long ifMtu;
|
long ifMtu;
|
||||||
unsigned long ifSpeed;
|
unsigned long ifSpeed;
|
||||||
unsigned char ifPhysAddress[ETH_ALEN];
|
unsigned char ifPhysAddress[ETH_ALEN];
|
||||||
long ifAdminStatus;
|
long ifAdminStatus;
|
||||||
long ifOperStatus;
|
long ifOperStatus;
|
||||||
unsigned long ifLastChange;
|
unsigned long ifLastChange;
|
||||||
unsigned long ifInOctets;
|
unsigned long ifInOctets;
|
||||||
unsigned long ifInUcastPkts;
|
unsigned long ifInUcastPkts;
|
||||||
unsigned long ifInNUcastPkts;
|
unsigned long ifInNUcastPkts;
|
||||||
unsigned long ifInDiscards;
|
unsigned long ifInDiscards;
|
||||||
unsigned long ifInErrors;
|
unsigned long ifInErrors;
|
||||||
unsigned long ifInUnknownProtos;
|
unsigned long ifInUnknownProtos;
|
||||||
unsigned long ifOutOctets;
|
unsigned long ifOutOctets;
|
||||||
unsigned long ifOutUcastPkts;
|
unsigned long ifOutUcastPkts;
|
||||||
unsigned long ifOutNUcastPkts;
|
unsigned long ifOutNUcastPkts;
|
||||||
unsigned long ifOutDiscards;
|
unsigned long ifOutDiscards;
|
||||||
unsigned long ifOutErrors;
|
unsigned long ifOutErrors;
|
||||||
unsigned long ifOutQLen;
|
unsigned long ifOutQLen;
|
||||||
unsigned long ifSpecific;
|
unsigned long ifSpecific;
|
||||||
} SMib2Counter, *PSMib2Counter;
|
} SMib2Counter, *PSMib2Counter;
|
||||||
|
|
||||||
// Value in the ifType entry
|
// Value in the ifType entry
|
||||||
|
@ -110,64 +110,64 @@ typedef struct tagSMib2Counter {
|
||||||
// RMON counter
|
// RMON counter
|
||||||
//
|
//
|
||||||
typedef struct tagSRmonCounter {
|
typedef struct tagSRmonCounter {
|
||||||
long etherStatsIndex;
|
long etherStatsIndex;
|
||||||
unsigned long etherStatsDataSource;
|
unsigned long etherStatsDataSource;
|
||||||
unsigned long etherStatsDropEvents;
|
unsigned long etherStatsDropEvents;
|
||||||
unsigned long etherStatsOctets;
|
unsigned long etherStatsOctets;
|
||||||
unsigned long etherStatsPkts;
|
unsigned long etherStatsPkts;
|
||||||
unsigned long etherStatsBroadcastPkts;
|
unsigned long etherStatsBroadcastPkts;
|
||||||
unsigned long etherStatsMulticastPkts;
|
unsigned long etherStatsMulticastPkts;
|
||||||
unsigned long etherStatsCRCAlignErrors;
|
unsigned long etherStatsCRCAlignErrors;
|
||||||
unsigned long etherStatsUndersizePkts;
|
unsigned long etherStatsUndersizePkts;
|
||||||
unsigned long etherStatsOversizePkts;
|
unsigned long etherStatsOversizePkts;
|
||||||
unsigned long etherStatsFragments;
|
unsigned long etherStatsFragments;
|
||||||
unsigned long etherStatsJabbers;
|
unsigned long etherStatsJabbers;
|
||||||
unsigned long etherStatsCollisions;
|
unsigned long etherStatsCollisions;
|
||||||
unsigned long etherStatsPkt64Octets;
|
unsigned long etherStatsPkt64Octets;
|
||||||
unsigned long etherStatsPkt65to127Octets;
|
unsigned long etherStatsPkt65to127Octets;
|
||||||
unsigned long etherStatsPkt128to255Octets;
|
unsigned long etherStatsPkt128to255Octets;
|
||||||
unsigned long etherStatsPkt256to511Octets;
|
unsigned long etherStatsPkt256to511Octets;
|
||||||
unsigned long etherStatsPkt512to1023Octets;
|
unsigned long etherStatsPkt512to1023Octets;
|
||||||
unsigned long etherStatsPkt1024to1518Octets;
|
unsigned long etherStatsPkt1024to1518Octets;
|
||||||
unsigned long etherStatsOwners;
|
unsigned long etherStatsOwners;
|
||||||
unsigned long etherStatsStatus;
|
unsigned long etherStatsStatus;
|
||||||
} SRmonCounter, *PSRmonCounter;
|
} SRmonCounter, *PSRmonCounter;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Custom counter
|
// Custom counter
|
||||||
//
|
//
|
||||||
typedef struct tagSCustomCounters {
|
typedef struct tagSCustomCounters {
|
||||||
unsigned long Length;
|
unsigned long Length;
|
||||||
|
|
||||||
unsigned long long ullTsrAllOK;
|
unsigned long long ullTsrAllOK;
|
||||||
|
|
||||||
unsigned long long ullRsr11M;
|
unsigned long long ullRsr11M;
|
||||||
unsigned long long ullRsr5M;
|
unsigned long long ullRsr5M;
|
||||||
unsigned long long ullRsr2M;
|
unsigned long long ullRsr2M;
|
||||||
unsigned long long ullRsr1M;
|
unsigned long long ullRsr1M;
|
||||||
|
|
||||||
unsigned long long ullRsr11MCRCOk;
|
unsigned long long ullRsr11MCRCOk;
|
||||||
unsigned long long ullRsr5MCRCOk;
|
unsigned long long ullRsr5MCRCOk;
|
||||||
unsigned long long ullRsr2MCRCOk;
|
unsigned long long ullRsr2MCRCOk;
|
||||||
unsigned long long ullRsr1MCRCOk;
|
unsigned long long ullRsr1MCRCOk;
|
||||||
|
|
||||||
unsigned long long ullRsr54M;
|
unsigned long long ullRsr54M;
|
||||||
unsigned long long ullRsr48M;
|
unsigned long long ullRsr48M;
|
||||||
unsigned long long ullRsr36M;
|
unsigned long long ullRsr36M;
|
||||||
unsigned long long ullRsr24M;
|
unsigned long long ullRsr24M;
|
||||||
unsigned long long ullRsr18M;
|
unsigned long long ullRsr18M;
|
||||||
unsigned long long ullRsr12M;
|
unsigned long long ullRsr12M;
|
||||||
unsigned long long ullRsr9M;
|
unsigned long long ullRsr9M;
|
||||||
unsigned long long ullRsr6M;
|
unsigned long long ullRsr6M;
|
||||||
|
|
||||||
unsigned long long ullRsr54MCRCOk;
|
unsigned long long ullRsr54MCRCOk;
|
||||||
unsigned long long ullRsr48MCRCOk;
|
unsigned long long ullRsr48MCRCOk;
|
||||||
unsigned long long ullRsr36MCRCOk;
|
unsigned long long ullRsr36MCRCOk;
|
||||||
unsigned long long ullRsr24MCRCOk;
|
unsigned long long ullRsr24MCRCOk;
|
||||||
unsigned long long ullRsr18MCRCOk;
|
unsigned long long ullRsr18MCRCOk;
|
||||||
unsigned long long ullRsr12MCRCOk;
|
unsigned long long ullRsr12MCRCOk;
|
||||||
unsigned long long ullRsr9MCRCOk;
|
unsigned long long ullRsr9MCRCOk;
|
||||||
unsigned long long ullRsr6MCRCOk;
|
unsigned long long ullRsr6MCRCOk;
|
||||||
|
|
||||||
} SCustomCounters, *PSCustomCounters;
|
} SCustomCounters, *PSCustomCounters;
|
||||||
|
|
||||||
|
@ -176,30 +176,30 @@ typedef struct tagSCustomCounters {
|
||||||
// Custom counter
|
// Custom counter
|
||||||
//
|
//
|
||||||
typedef struct tagSISRCounters {
|
typedef struct tagSISRCounters {
|
||||||
unsigned long Length;
|
unsigned long Length;
|
||||||
|
|
||||||
unsigned long dwIsrTx0OK;
|
unsigned long dwIsrTx0OK;
|
||||||
unsigned long dwIsrAC0TxOK;
|
unsigned long dwIsrAC0TxOK;
|
||||||
unsigned long dwIsrBeaconTxOK;
|
unsigned long dwIsrBeaconTxOK;
|
||||||
unsigned long dwIsrRx0OK;
|
unsigned long dwIsrRx0OK;
|
||||||
unsigned long dwIsrTBTTInt;
|
unsigned long dwIsrTBTTInt;
|
||||||
unsigned long dwIsrSTIMERInt;
|
unsigned long dwIsrSTIMERInt;
|
||||||
unsigned long dwIsrWatchDog;
|
unsigned long dwIsrWatchDog;
|
||||||
unsigned long dwIsrUnrecoverableError;
|
unsigned long dwIsrUnrecoverableError;
|
||||||
unsigned long dwIsrSoftInterrupt;
|
unsigned long dwIsrSoftInterrupt;
|
||||||
unsigned long dwIsrMIBNearfull;
|
unsigned long dwIsrMIBNearfull;
|
||||||
unsigned long dwIsrRxNoBuf;
|
unsigned long dwIsrRxNoBuf;
|
||||||
|
|
||||||
unsigned long dwIsrUnknown; // unknown interrupt count
|
unsigned long dwIsrUnknown; // unknown interrupt count
|
||||||
|
|
||||||
unsigned long dwIsrRx1OK;
|
unsigned long dwIsrRx1OK;
|
||||||
unsigned long dwIsrATIMTxOK;
|
unsigned long dwIsrATIMTxOK;
|
||||||
unsigned long dwIsrSYNCTxOK;
|
unsigned long dwIsrSYNCTxOK;
|
||||||
unsigned long dwIsrCFPEnd;
|
unsigned long dwIsrCFPEnd;
|
||||||
unsigned long dwIsrATIMEnd;
|
unsigned long dwIsrATIMEnd;
|
||||||
unsigned long dwIsrSYNCFlushOK;
|
unsigned long dwIsrSYNCFlushOK;
|
||||||
unsigned long dwIsrSTIMER1Int;
|
unsigned long dwIsrSTIMER1Int;
|
||||||
/////////////////////////////////////
|
/////////////////////////////////////
|
||||||
} SISRCounters, *PSISRCounters;
|
} SISRCounters, *PSISRCounters;
|
||||||
|
|
||||||
|
|
||||||
|
@ -213,125 +213,125 @@ typedef struct tagSISRCounters {
|
||||||
// statistic counter
|
// statistic counter
|
||||||
//
|
//
|
||||||
typedef struct tagSStatCounter {
|
typedef struct tagSStatCounter {
|
||||||
//
|
//
|
||||||
// ISR status count
|
// ISR status count
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
// RSR status count
|
// RSR status count
|
||||||
//
|
//
|
||||||
unsigned long dwRsrFrmAlgnErr;
|
unsigned long dwRsrFrmAlgnErr;
|
||||||
unsigned long dwRsrErr;
|
unsigned long dwRsrErr;
|
||||||
unsigned long dwRsrCRCErr;
|
unsigned long dwRsrCRCErr;
|
||||||
unsigned long dwRsrCRCOk;
|
unsigned long dwRsrCRCOk;
|
||||||
unsigned long dwRsrBSSIDOk;
|
unsigned long dwRsrBSSIDOk;
|
||||||
unsigned long dwRsrADDROk;
|
unsigned long dwRsrADDROk;
|
||||||
unsigned long dwRsrBCNSSIDOk;
|
unsigned long dwRsrBCNSSIDOk;
|
||||||
unsigned long dwRsrLENErr;
|
unsigned long dwRsrLENErr;
|
||||||
unsigned long dwRsrTYPErr;
|
unsigned long dwRsrTYPErr;
|
||||||
|
|
||||||
unsigned long dwNewRsrDECRYPTOK;
|
unsigned long dwNewRsrDECRYPTOK;
|
||||||
unsigned long dwNewRsrCFP;
|
unsigned long dwNewRsrCFP;
|
||||||
unsigned long dwNewRsrUTSF;
|
unsigned long dwNewRsrUTSF;
|
||||||
unsigned long dwNewRsrHITAID;
|
unsigned long dwNewRsrHITAID;
|
||||||
unsigned long dwNewRsrHITAID0;
|
unsigned long dwNewRsrHITAID0;
|
||||||
|
|
||||||
unsigned long dwRsrLong;
|
unsigned long dwRsrLong;
|
||||||
unsigned long dwRsrRunt;
|
unsigned long dwRsrRunt;
|
||||||
|
|
||||||
unsigned long dwRsrRxControl;
|
unsigned long dwRsrRxControl;
|
||||||
unsigned long dwRsrRxData;
|
unsigned long dwRsrRxData;
|
||||||
unsigned long dwRsrRxManage;
|
unsigned long dwRsrRxManage;
|
||||||
|
|
||||||
unsigned long dwRsrRxPacket;
|
unsigned long dwRsrRxPacket;
|
||||||
unsigned long dwRsrRxOctet;
|
unsigned long dwRsrRxOctet;
|
||||||
unsigned long dwRsrBroadcast;
|
unsigned long dwRsrBroadcast;
|
||||||
unsigned long dwRsrMulticast;
|
unsigned long dwRsrMulticast;
|
||||||
unsigned long dwRsrDirected;
|
unsigned long dwRsrDirected;
|
||||||
// 64-bit OID
|
// 64-bit OID
|
||||||
unsigned long long ullRsrOK;
|
unsigned long long ullRsrOK;
|
||||||
|
|
||||||
// for some optional OIDs (64 bits) and DMI support
|
// for some optional OIDs (64 bits) and DMI support
|
||||||
unsigned long long ullRxBroadcastBytes;
|
unsigned long long ullRxBroadcastBytes;
|
||||||
unsigned long long ullRxMulticastBytes;
|
unsigned long long ullRxMulticastBytes;
|
||||||
unsigned long long ullRxDirectedBytes;
|
unsigned long long ullRxDirectedBytes;
|
||||||
unsigned long long ullRxBroadcastFrames;
|
unsigned long long ullRxBroadcastFrames;
|
||||||
unsigned long long ullRxMulticastFrames;
|
unsigned long long ullRxMulticastFrames;
|
||||||
unsigned long long ullRxDirectedFrames;
|
unsigned long long ullRxDirectedFrames;
|
||||||
|
|
||||||
unsigned long dwRsrRxFragment;
|
unsigned long dwRsrRxFragment;
|
||||||
unsigned long dwRsrRxFrmLen64;
|
unsigned long dwRsrRxFrmLen64;
|
||||||
unsigned long dwRsrRxFrmLen65_127;
|
unsigned long dwRsrRxFrmLen65_127;
|
||||||
unsigned long dwRsrRxFrmLen128_255;
|
unsigned long dwRsrRxFrmLen128_255;
|
||||||
unsigned long dwRsrRxFrmLen256_511;
|
unsigned long dwRsrRxFrmLen256_511;
|
||||||
unsigned long dwRsrRxFrmLen512_1023;
|
unsigned long dwRsrRxFrmLen512_1023;
|
||||||
unsigned long dwRsrRxFrmLen1024_1518;
|
unsigned long dwRsrRxFrmLen1024_1518;
|
||||||
|
|
||||||
// TSR status count
|
// TSR status count
|
||||||
//
|
//
|
||||||
unsigned long dwTsrTotalRetry[TYPE_MAXTD]; // total collision retry count
|
unsigned long dwTsrTotalRetry[TYPE_MAXTD]; // total collision retry count
|
||||||
unsigned long dwTsrOnceRetry[TYPE_MAXTD]; // this packet only occur one collision
|
unsigned long dwTsrOnceRetry[TYPE_MAXTD]; // this packet only occur one collision
|
||||||
unsigned long dwTsrMoreThanOnceRetry[TYPE_MAXTD]; // this packet occur more than one collision
|
unsigned long dwTsrMoreThanOnceRetry[TYPE_MAXTD]; // this packet occur more than one collision
|
||||||
unsigned long dwTsrRetry[TYPE_MAXTD]; // this packet has ever occur collision,
|
unsigned long dwTsrRetry[TYPE_MAXTD]; // this packet has ever occur collision,
|
||||||
// that is (dwTsrOnceCollision0 + dwTsrMoreThanOnceCollision0)
|
// that is (dwTsrOnceCollision0 + dwTsrMoreThanOnceCollision0)
|
||||||
unsigned long dwTsrACKData[TYPE_MAXTD];
|
unsigned long dwTsrACKData[TYPE_MAXTD];
|
||||||
unsigned long dwTsrErr[TYPE_MAXTD];
|
unsigned long dwTsrErr[TYPE_MAXTD];
|
||||||
unsigned long dwAllTsrOK[TYPE_MAXTD];
|
unsigned long dwAllTsrOK[TYPE_MAXTD];
|
||||||
unsigned long dwTsrRetryTimeout[TYPE_MAXTD];
|
unsigned long dwTsrRetryTimeout[TYPE_MAXTD];
|
||||||
unsigned long dwTsrTransmitTimeout[TYPE_MAXTD];
|
unsigned long dwTsrTransmitTimeout[TYPE_MAXTD];
|
||||||
|
|
||||||
unsigned long dwTsrTxPacket[TYPE_MAXTD];
|
unsigned long dwTsrTxPacket[TYPE_MAXTD];
|
||||||
unsigned long dwTsrTxOctet[TYPE_MAXTD];
|
unsigned long dwTsrTxOctet[TYPE_MAXTD];
|
||||||
unsigned long dwTsrBroadcast[TYPE_MAXTD];
|
unsigned long dwTsrBroadcast[TYPE_MAXTD];
|
||||||
unsigned long dwTsrMulticast[TYPE_MAXTD];
|
unsigned long dwTsrMulticast[TYPE_MAXTD];
|
||||||
unsigned long dwTsrDirected[TYPE_MAXTD];
|
unsigned long dwTsrDirected[TYPE_MAXTD];
|
||||||
|
|
||||||
// RD/TD count
|
// RD/TD count
|
||||||
unsigned long dwCntRxFrmLength;
|
unsigned long dwCntRxFrmLength;
|
||||||
unsigned long dwCntTxBufLength;
|
unsigned long dwCntTxBufLength;
|
||||||
|
|
||||||
unsigned char abyCntRxPattern[16];
|
unsigned char abyCntRxPattern[16];
|
||||||
unsigned char abyCntTxPattern[16];
|
unsigned char abyCntTxPattern[16];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Software check....
|
// Software check....
|
||||||
unsigned long dwCntRxDataErr; // rx buffer data software compare CRC err count
|
unsigned long dwCntRxDataErr; // rx buffer data software compare CRC err count
|
||||||
unsigned long dwCntDecryptErr; // rx buffer data software compare CRC err count
|
unsigned long dwCntDecryptErr; // rx buffer data software compare CRC err count
|
||||||
unsigned long dwCntRxICVErr; // rx buffer data software compare CRC err count
|
unsigned long dwCntRxICVErr; // rx buffer data software compare CRC err count
|
||||||
unsigned int idxRxErrorDesc[TYPE_MAXRD]; // index for rx data error RD
|
unsigned int idxRxErrorDesc[TYPE_MAXRD]; // index for rx data error RD
|
||||||
|
|
||||||
// 64-bit OID
|
// 64-bit OID
|
||||||
unsigned long long ullTsrOK[TYPE_MAXTD];
|
unsigned long long ullTsrOK[TYPE_MAXTD];
|
||||||
|
|
||||||
// for some optional OIDs (64 bits) and DMI support
|
// for some optional OIDs (64 bits) and DMI support
|
||||||
unsigned long long ullTxBroadcastFrames[TYPE_MAXTD];
|
unsigned long long ullTxBroadcastFrames[TYPE_MAXTD];
|
||||||
unsigned long long ullTxMulticastFrames[TYPE_MAXTD];
|
unsigned long long ullTxMulticastFrames[TYPE_MAXTD];
|
||||||
unsigned long long ullTxDirectedFrames[TYPE_MAXTD];
|
unsigned long long ullTxDirectedFrames[TYPE_MAXTD];
|
||||||
unsigned long long ullTxBroadcastBytes[TYPE_MAXTD];
|
unsigned long long ullTxBroadcastBytes[TYPE_MAXTD];
|
||||||
unsigned long long ullTxMulticastBytes[TYPE_MAXTD];
|
unsigned long long ullTxMulticastBytes[TYPE_MAXTD];
|
||||||
unsigned long long ullTxDirectedBytes[TYPE_MAXTD];
|
unsigned long long ullTxDirectedBytes[TYPE_MAXTD];
|
||||||
|
|
||||||
// unsigned long dwTxRetryCount[8];
|
// unsigned long dwTxRetryCount[8];
|
||||||
//
|
//
|
||||||
// ISR status count
|
// ISR status count
|
||||||
//
|
//
|
||||||
SISRCounters ISRStat;
|
SISRCounters ISRStat;
|
||||||
|
|
||||||
SCustomCounters CustomStat;
|
SCustomCounters CustomStat;
|
||||||
|
|
||||||
#ifdef Calcu_LinkQual
|
#ifdef Calcu_LinkQual
|
||||||
//Tx count:
|
//Tx count:
|
||||||
unsigned long TxNoRetryOkCount; //success tx no retry !
|
unsigned long TxNoRetryOkCount; //success tx no retry !
|
||||||
unsigned long TxRetryOkCount; //success tx but retry !
|
unsigned long TxRetryOkCount; //success tx but retry !
|
||||||
unsigned long TxFailCount; //fail tx ?
|
unsigned long TxFailCount; //fail tx ?
|
||||||
//Rx count:
|
//Rx count:
|
||||||
unsigned long RxOkCnt; //success rx !
|
unsigned long RxOkCnt; //success rx !
|
||||||
unsigned long RxFcsErrCnt; //fail rx ?
|
unsigned long RxFcsErrCnt; //fail rx ?
|
||||||
//statistic
|
//statistic
|
||||||
unsigned long SignalStren;
|
unsigned long SignalStren;
|
||||||
unsigned long LinkQuality;
|
unsigned long LinkQuality;
|
||||||
#endif
|
#endif
|
||||||
} SStatCounter, *PSStatCounter;
|
} SStatCounter, *PSStatCounter;
|
||||||
|
|
||||||
/*--------------------- Export Classes ----------------------------*/
|
/*--------------------- Export Classes ----------------------------*/
|
||||||
|
@ -345,27 +345,27 @@ void STAvClearAllCounter(PSStatCounter pStatistic);
|
||||||
void STAvUpdateIsrStatCounter(PSStatCounter pStatistic, unsigned long dwIsr);
|
void STAvUpdateIsrStatCounter(PSStatCounter pStatistic, unsigned long dwIsr);
|
||||||
|
|
||||||
void STAvUpdateRDStatCounter(PSStatCounter pStatistic,
|
void STAvUpdateRDStatCounter(PSStatCounter pStatistic,
|
||||||
unsigned char byRSR, unsigned char byNewRSR, unsigned char byRxRate,
|
unsigned char byRSR, unsigned char byNewRSR, unsigned char byRxRate,
|
||||||
unsigned char *pbyBuffer, unsigned int cbFrameLength);
|
unsigned char *pbyBuffer, unsigned int cbFrameLength);
|
||||||
|
|
||||||
void STAvUpdateRDStatCounterEx(PSStatCounter pStatistic,
|
void STAvUpdateRDStatCounterEx(PSStatCounter pStatistic,
|
||||||
unsigned char byRSR, unsigned char byNewRsr, unsigned char byRxRate,
|
unsigned char byRSR, unsigned char byNewRsr, unsigned char byRxRate,
|
||||||
unsigned char *pbyBuffer, unsigned int cbFrameLength);
|
unsigned char *pbyBuffer, unsigned int cbFrameLength);
|
||||||
|
|
||||||
void STAvUpdateTDStatCounter(PSStatCounter pStatistic, unsigned char byTSR0, unsigned char byTSR1,
|
void STAvUpdateTDStatCounter(PSStatCounter pStatistic, unsigned char byTSR0, unsigned char byTSR1,
|
||||||
unsigned char *pbyBuffer, unsigned int cbFrameLength, unsigned int uIdx);
|
unsigned char *pbyBuffer, unsigned int cbFrameLength, unsigned int uIdx);
|
||||||
|
|
||||||
void STAvUpdateTDStatCounterEx(
|
void STAvUpdateTDStatCounterEx(
|
||||||
PSStatCounter pStatistic,
|
PSStatCounter pStatistic,
|
||||||
unsigned char *pbyBuffer,
|
unsigned char *pbyBuffer,
|
||||||
unsigned long cbFrameLength
|
unsigned long cbFrameLength
|
||||||
);
|
);
|
||||||
|
|
||||||
void STAvUpdate802_11Counter(
|
void STAvUpdate802_11Counter(
|
||||||
PSDot11Counters p802_11Counter,
|
PSDot11Counters p802_11Counter,
|
||||||
PSStatCounter pStatistic,
|
PSStatCounter pStatistic,
|
||||||
unsigned long dwCounter
|
unsigned long dwCounter
|
||||||
);
|
);
|
||||||
|
|
||||||
void STAvClear802_11Counter(PSDot11Counters p802_11Counter);
|
void STAvClear802_11Counter(PSDot11Counters p802_11Counter);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue