OSDN Git Service

staging: rtl8192e: Remove RX: IEEE802.1X EAPOL frame! warning.
authorMalcolm Priestley <tvboxspy@gmail.com>
Sat, 13 May 2017 16:41:17 +0000 (17:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 May 2017 11:29:01 +0000 (13:29 +0200)
RX will receive countless EAPOL frames over the life of the connection.

A number of conditional calls to rtllib_is_eapol_frame are made in this function.

So this call serves no purpose other than to spam logs with false warning that
it is indeed a EAPOL frame, remove it.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_rx.c

index 43a7774..0033dc6 100644 (file)
@@ -1214,9 +1214,6 @@ static int rtllib_rx_decrypt(struct rtllib_device *ieee, struct sk_buff *skb,
                return -1;
        }
 
-       if (rtllib_is_eapol_frame(ieee, skb, hdrlen))
-               netdev_warn(ieee->dev, "RX: IEEE802.1X EAPOL frame!\n");
-
        return 0;
 }