]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl8192e: Remove dead code associated with CONFIG_RTLLIB_CRYPT_TKIP
authorLarry Finger <Larry.Finger@lwfinger.net>
Thu, 14 Jul 2011 22:18:14 +0000 (17:18 -0500)
committerLarry Finger <Larry.Finger@lwfinger.net>
Wed, 24 Aug 2011 02:17:33 +0000 (21:17 -0500)
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
drivers/staging/rtl8192e/rtllib_rx.c
drivers/staging/rtl8192e/rtllib_tx.c

index cef04e59515fec023f9219513c2abcda55c6a045..b6e23a2ab08f02e7e5d88e6a40e379d4ac522a59 100644 (file)
@@ -301,18 +301,6 @@ rtllib_rx_frame_decrypt(struct rtllib_device* ieee, struct sk_buff *skb,
        hdr = (struct rtllib_hdr_4addr *) skb->data;
        hdrlen = rtllib_get_hdrlen(le16_to_cpu(hdr->frame_ctl));
 
-#ifdef CONFIG_RTLLIB_CRYPT_TKIP
-       if (ieee->tkip_countermeasures &&
-           strcmp(crypt->ops->name, "TKIP") == 0) {
-               if (net_ratelimit()) {
-                       printk(KERN_DEBUG "%s: TKIP countermeasures: dropped "
-                              "received packet from " MAC_FMT "\n",
-                              ieee->dev->name, MAC_ARG(hdr->addr2));
-               }
-               return -1;
-       }
-#endif
-
        atomic_inc(&crypt->refcnt);
        res = crypt->ops->decrypt_mpdu(skb, hdrlen, crypt->priv);
        atomic_dec(&crypt->refcnt);
index 0f724caaf6f834e5a2228c9340c9abab4503d6d5..ae9f7727ed3a50c420e6263d33a74501e233f477 100644 (file)
@@ -192,20 +192,6 @@ int rtllib_encrypt_fragment(
                printk("=========>%s(), crypt is null\n", __func__);
                return -1;
        }
-#ifdef CONFIG_RTLLIB_CRYPT_TKIP
-       struct rtllib_hdr_1addr *header;
-
-       if (ieee->tkip_countermeasures &&
-           crypt && crypt->ops && strcmp(crypt->ops->name, "TKIP") == 0) {
-               header = (struct rtllib_hdr_1addr *) frag->data;
-               if (net_ratelimit()) {
-                       printk(KERN_DEBUG "%s: TKIP countermeasures: dropped "
-                              "TX packet to " MAC_FMT "\n",
-                              ieee->dev->name, MAC_ARG(header->addr1));
-               }
-               return -1;
-       }
-#endif
        /* To encrypt, frame format is:
         * IV (4 bytes), clear payload (including SNAP), ICV (4 bytes) */