Skip to content

Commit

Permalink
staging: vt6656: dead code byCntMeasure/TKIPCounterMeasuresInvoked
Browse files Browse the repository at this point in the history
remove TKIPCounterMeasuresInvoked and byCntMeasure

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Malcolm Priestley authored and Greg Kroah-Hartman committed Nov 13, 2012
1 parent 95e40c7 commit bebbb29
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion drivers/staging/vt6656/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,6 @@ typedef struct __device_info {
BYTE byKeyIndex;

BOOL bAES;
BYTE byCntMeasure;

unsigned int uKeyLength;
BYTE abyKey[WLAN_WEP232_KEYLEN];
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/vt6656/mib.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ typedef struct tagSDot11Counters {
unsigned long long TKIPLocalMICFailures;
unsigned long long TKIPRemoteMICFailures;
unsigned long long TKIPICVErrors;
unsigned long long TKIPCounterMeasuresInvoked;
unsigned long long TKIPReplays;
unsigned long long CCMPFormatErrors;
unsigned long long CCMPReplays;
Expand Down
5 changes: 0 additions & 5 deletions drivers/staging/vt6656/rxtx.c
Original file line number Diff line number Diff line change
Expand Up @@ -3033,11 +3033,6 @@ int nsDMA_tx_packet(PSDevice pDevice, unsigned int uDMAIdx, struct sk_buff *skb)
}
}

if (pDevice->byCntMeasure == 2) {
bNeedDeAuth = TRUE;
pDevice->s802_11Counter.TKIPCounterMeasuresInvoked++;
}

if (pDevice->bEnableHostWEP) {
if ((uNodeIndex != 0) &&
(pMgmt->sNodeDBTable[uNodeIndex].dwKeyIndex & PAIRWISE_KEY)) {
Expand Down

0 comments on commit bebbb29

Please sign in to comment.