Commit fd0badb8 authored by Joe Perches's avatar Joe Perches Committed by Greg Kroah-Hartman

staging:vt6655:mib: Whitespace cleanups

Neatening only.
git diff -w shows no differences.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c3504bfd
...@@ -45,7 +45,7 @@ ...@@ -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,7 +70,7 @@ static int msglevel =MSG_LEVEL_INFO; ...@@ -70,7 +70,7 @@ 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,7 +90,7 @@ void STAvClearAllCounter (PSStatCounter pStatistic) ...@@ -90,7 +90,7 @@ 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 */
...@@ -176,7 +176,7 @@ void STAvUpdateIsrStatCounter (PSStatCounter pStatistic, unsigned long dwIsr) ...@@ -176,7 +176,7 @@ 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)
{ {
...@@ -207,92 +207,92 @@ void STAvUpdateRDStatCounter (PSStatCounter pStatistic, ...@@ -207,92 +207,92 @@ void STAvUpdateRDStatCounter (PSStatCounter pStatistic,
} }
} }
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)
...@@ -325,9 +325,9 @@ void STAvUpdateRDStatCounter (PSStatCounter pStatistic, ...@@ -325,9 +325,9 @@ void STAvUpdateRDStatCounter (PSStatCounter pStatistic,
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++;
} }
...@@ -387,14 +387,14 @@ void STAvUpdateRDStatCounter (PSStatCounter pStatistic, ...@@ -387,14 +387,14 @@ 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,
...@@ -403,7 +403,7 @@ STAvUpdateRDStatCounterEx ( ...@@ -403,7 +403,7 @@ STAvUpdateRDStatCounterEx (
byRxRate, byRxRate,
pbyBuffer, pbyBuffer,
cbFrameLength cbFrameLength
); );
// rx length // rx length
pStatistic->dwCntRxFrmLength = cbFrameLength; pStatistic->dwCntRxFrmLength = cbFrameLength;
...@@ -430,14 +430,14 @@ STAvUpdateRDStatCounterEx ( ...@@ -430,14 +430,14 @@ 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;
...@@ -520,11 +520,11 @@ STAvUpdateTDStatCounter ( ...@@ -520,11 +520,11 @@ 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;
...@@ -556,7 +556,7 @@ STAvUpdate802_11Counter( ...@@ -556,7 +556,7 @@ 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] +
......
...@@ -320,7 +320,7 @@ typedef struct tagSStatCounter { ...@@ -320,7 +320,7 @@ typedef struct tagSStatCounter {
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 !
...@@ -331,7 +331,7 @@ typedef struct tagSStatCounter { ...@@ -331,7 +331,7 @@ typedef struct tagSStatCounter {
//statistic //statistic
unsigned long SignalStren; unsigned long SignalStren;
unsigned long LinkQuality; unsigned long LinkQuality;
#endif #endif
} SStatCounter, *PSStatCounter; } SStatCounter, *PSStatCounter;
/*--------------------- Export Classes ----------------------------*/ /*--------------------- Export Classes ----------------------------*/
...@@ -359,13 +359,13 @@ void STAvUpdateTDStatCounterEx( ...@@ -359,13 +359,13 @@ 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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment