Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162331
b: refs/heads/master
c: 8a3d91b
h: refs/heads/master
i:
  162329: 653c659
  162327: 3aeaa1e
v: v3
  • Loading branch information
Jim Lieb authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent b7f7087 commit dcb80c8
Show file tree
Hide file tree
Showing 18 changed files with 56 additions and 146 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dad72fed3692a918fb567915f110ae71fb7ffe32
refs/heads/master: 8a3d91b02830dd7c58d27e5de65222219ac2163f
1 change: 0 additions & 1 deletion trunk/drivers/staging/vt6656/baseband.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
*/

#include "tmacro.h"
#include "tbit.h"
#include "tether.h"
#include "mac.h"
#include "baseband.h"
Expand Down
5 changes: 2 additions & 3 deletions trunk/drivers/staging/vt6656/bssdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
#include "card.h"
#include "mac.h"
#include "wpa2.h"
#include "tbit.h"
#include "control.h"
#include "rndis.h"
#include "iowpa.h"
Expand Down Expand Up @@ -1437,7 +1436,7 @@ BSSvUpdateNodeTxCounter(
//DBG_PRN_GRP21(("Device %08X, wRate %04X, byTSR %02X\n", hDeviceContext, wRate, byTSR));
if (pMgmt->eCurrMode == WMAC_MODE_ESS_STA) {
pMgmt->sNodeDBTable[0].uTxAttempts += 1;
if (BITbIsAllBitsOff(byTSR, (TSR_TMO | TSR_RETRYTMO))) {
if ( !(byTSR & (TSR_TMO | TSR_RETRYTMO))) {
// transmit success, TxAttempts at least plus one
pMgmt->sNodeDBTable[0].uTxOk[MAX_RATE]++;
if ( (byFallBack == AUTO_FB_NONE) ||
Expand Down Expand Up @@ -1489,7 +1488,7 @@ BSSvUpdateNodeTxCounter(

if (BSSbIsSTAInNodeDB((HANDLE)pDevice, pbyDestAddr, &uNodeIndex)){
pMgmt->sNodeDBTable[uNodeIndex].uTxAttempts += 1;
if (BITbIsAllBitsOff(byTSR, (TSR_TMO | TSR_RETRYTMO))) {
if ( !(byTSR & (TSR_TMO | TSR_RETRYTMO))) {
// transmit success, TxAttempts at least plus one
pMgmt->sNodeDBTable[uNodeIndex].uTxOk[MAX_RATE]++;
if ( (byFallBack == AUTO_FB_NONE) ||
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/vt6656/card.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@

#include "tmacro.h"
#include "card.h"
#include "tbit.h"
#include "baseband.h"
#include "mac.h"
#include "desc.h"
Expand Down
9 changes: 4 additions & 5 deletions trunk/drivers/staging/vt6656/dpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
#include "tkip.h"
#include "tcrc.h"
#include "wctl.h"
#include "tbit.h"
#include "hostap.h"
#include "rf.h"
#include "iowpa.h"
Expand Down Expand Up @@ -568,7 +567,7 @@ RXbBulkInProcessData (
//remove the CRC length
FrameSize -= U_CRC_LEN;

if ((BITbIsAllBitsOff(*pbyRsr, (RSR_ADDRBROAD | RSR_ADDRMULTI))) && // unicast address
if ( !(*pbyRsr & (RSR_ADDRBROAD | RSR_ADDRMULTI)) && // unicast address
(IS_FRAGMENT_PKT((pbyFrame)))
) {
// defragment
Expand Down Expand Up @@ -663,7 +662,7 @@ RXbBulkInProcessData (
else {
if (pMgmt->eCurrMode == WMAC_MODE_ESS_AP) {
//In AP mode, hw only check addr1(BSSID or RA) if equal to local MAC.
if (BITbIsBitOff(*pbyRsr, RSR_BSSIDOK)) {
if ( !(*pbyRsr & RSR_BSSIDOK)) {
if (bDeFragRx) {
if (!device_alloc_frag_buf(pDevice, &pDevice->sRxDFCB[pDevice->uCurrentDFCBIdx])) {
DBG_PRT(MSG_LEVEL_ERR,KERN_ERR "%s: can not alloc more frag bufs\n",
Expand All @@ -676,7 +675,7 @@ RXbBulkInProcessData (
else {
// discard DATA packet while not associate || BSSID error
if ((pDevice->bLinkPass == FALSE) ||
BITbIsBitOff(*pbyRsr, RSR_BSSIDOK)) {
!(*pbyRsr & RSR_BSSIDOK)) {
if (bDeFragRx) {
if (!device_alloc_frag_buf(pDevice, &pDevice->sRxDFCB[pDevice->uCurrentDFCBIdx])) {
DBG_PRT(MSG_LEVEL_ERR,KERN_ERR "%s: can not alloc more frag bufs\n",
Expand Down Expand Up @@ -724,7 +723,7 @@ RXbBulkInProcessData (

if (pDevice->bEnablePSMode) {
if (IS_FC_MOREDATA((pbyFrame))) {
if (BITbIsBitOn(*pbyRsr, RSR_ADDROK)) {
if (*pbyRsr & RSR_ADDROK) {
//PSbSendPSPOLL((PSDevice)pDevice);
}
}
Expand Down
15 changes: 7 additions & 8 deletions trunk/drivers/staging/vt6656/int.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@

#include "int.h"
#include "mib.h"
#include "tbit.h"
#include "tmacro.h"
#include "mac.h"
#include "power.h"
Expand Down Expand Up @@ -112,28 +111,28 @@ INTnsProcessData(
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->s_nsInterruptProcessData\n");

pINTData = (PSINTData) pDevice->intBuf.pDataBuf;
if (BITbIsBitOn(pINTData->byTSR0, TSR_VALID)) {
if (pINTData->byTSR0 & TSR_VALID) {
STAvUpdateTDStatCounter (&(pDevice->scStatistic), (BYTE) (pINTData->byPkt0 & 0x0F), (BYTE) (pINTData->byPkt0>>4), pINTData->byTSR0);
BSSvUpdateNodeTxCounter (pDevice, &(pDevice->scStatistic), pINTData->byTSR0, pINTData->byPkt0);
//DBG_PRN_GRP01(("TSR0 %02x\n", pINTData->byTSR0));
}
if (BITbIsBitOn(pINTData->byTSR1, TSR_VALID)) {
if (pINTData->byTSR1 & TSR_VALID) {
STAvUpdateTDStatCounter (&(pDevice->scStatistic), (BYTE) (pINTData->byPkt1 & 0x0F), (BYTE) (pINTData->byPkt1>>4), pINTData->byTSR1);
BSSvUpdateNodeTxCounter (pDevice, &(pDevice->scStatistic), pINTData->byTSR1, pINTData->byPkt1);
//DBG_PRN_GRP01(("TSR1 %02x\n", pINTData->byTSR1));
}
if (BITbIsBitOn(pINTData->byTSR2, TSR_VALID)) {
if (pINTData->byTSR2 & TSR_VALID) {
STAvUpdateTDStatCounter (&(pDevice->scStatistic), (BYTE) (pINTData->byPkt2 & 0x0F), (BYTE) (pINTData->byPkt2>>4), pINTData->byTSR2);
BSSvUpdateNodeTxCounter (pDevice, &(pDevice->scStatistic), pINTData->byTSR2, pINTData->byPkt2);
//DBG_PRN_GRP01(("TSR2 %02x\n", pINTData->byTSR2));
}
if (BITbIsBitOn(pINTData->byTSR3, TSR_VALID)) {
if (pINTData->byTSR3 & TSR_VALID) {
STAvUpdateTDStatCounter (&(pDevice->scStatistic), (BYTE) (pINTData->byPkt3 & 0x0F), (BYTE) (pINTData->byPkt3>>4), pINTData->byTSR3);
BSSvUpdateNodeTxCounter (pDevice, &(pDevice->scStatistic), pINTData->byTSR3, pINTData->byPkt3);
//DBG_PRN_GRP01(("TSR3 %02x\n", pINTData->byTSR3));
}
if ( pINTData->byISR0 != 0 ) {
if ( BITbIsBitOn(pINTData->byISR0, ISR_BNTX) ) {
if (pINTData->byISR0 & ISR_BNTX) {

if (pDevice->eOPMode == OP_MODE_AP) {
if(pMgmt->byDTIMCount > 0) {
Expand All @@ -154,7 +153,7 @@ INTnsProcessData(
} else {
pDevice->bBeaconSent = FALSE;
}
if ( BITbIsBitOn(pINTData->byISR0, ISR_TBTT) ) {
if (pINTData->byISR0 & ISR_TBTT) {
if ( pDevice->bEnablePSMode ) {
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_TBTT_WAKEUP, NULL);
}
Expand All @@ -176,7 +175,7 @@ INTnsProcessData(
}

if ( pINTData->byISR1 != 0 ) {
if ( BITbIsBitOn(pINTData->byISR1, ISR_GPIO3) ) {
if (pINTData->byISR1 & ISR_GPIO3) {
bScheduleCommand((HANDLE) pDevice, WLAN_CMD_RADIO, NULL);
}
}
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/vt6656/key.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
*/

#include "tmacro.h"
#include "tbit.h"
#include "key.h"
#include "mac.h"
#include "rndis.h"
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/vt6656/mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
*/

#include "tmacro.h"
#include "tbit.h"
#include "tether.h"
#include "desc.h"
#include "mac.h"
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/vt6656/main_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@

#include "device.h"
#include "card.h"
#include "tbit.h"
#include "baseband.h"
#include "mac.h"
#include "tether.h"
Expand Down
Loading

0 comments on commit dcb80c8

Please sign in to comment.