Skip to contentSkip to conversation

staging: vt6656: dead code byCntMeasure/TKIPCounterMeasuresInvoked

PATCH New Malcolm Priestley 1 participant 1 message Nov 4, 2012 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: vt6656: dead code byCntMeasure/TKIPCounterMeasuresInvoked

remove TKIPCounterMeasuresInvoked and byCntMeasure

---
 drivers/staging/vt6656/device.h |    1 -
 drivers/staging/vt6656/mib.h    |    1 -
 drivers/staging/vt6656/rxtx.c   |    5 -----
 3 files changed, 7 deletions(-)
drivers/staging/vt6656/device.h +0 -1
index 8d9b9c1..f334e64 100644
@@ -733,7 +733,6 @@ typedef struct __device_info {
     BYTE                    byKeyIndex;
 
     BOOL                    bAES;
-    BYTE                    byCntMeasure;
 
     unsigned int                    uKeyLength;
     BYTE                    abyKey[WLAN_WEP232_KEYLEN];
drivers/staging/vt6656/mib.h +0 -1
index 82d69a9..85c28e9 100644
@@ -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;
drivers/staging/vt6656/rxtx.c +0 -5
index a54c0c1..3a4933e 100644
@@ -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)) {
Signature · 1 line
1.7.10.4