From patchwork Sat May 13 16:41:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 9725387 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6A158601E7 for ; Sat, 13 May 2017 16:41:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 50C4828894 for ; Sat, 13 May 2017 16:41:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 42C57288C6; Sat, 13 May 2017 16:41:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C2A4828894 for ; Sat, 13 May 2017 16:41:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752541AbdEMQlh (ORCPT ); Sat, 13 May 2017 12:41:37 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:35816 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751519AbdEMQlg (ORCPT ); Sat, 13 May 2017 12:41:36 -0400 Received: by mail-wr0-f195.google.com with SMTP id g12so10240195wrg.2 for ; Sat, 13 May 2017 09:41:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=FBs0SZ7jMSh102c+Gwoe+bzh30yPu6mjGQhb5hNKeng=; b=g3NRBybE7EbTy8frWibB5LC+GnRyo2u6BzNn3v/X1aioahUkueTl0+NjlXRNpTHQd4 HOTFBzbKUjBfhg9eGnhaUubjTDs4s9vV6PElG8Wsc1Vy3onlHIiHe2ODgqr/lLYZR6iF vPzUuyeZ/2OOG244vqgFVeyihvt1LLEYLFrO38znHq91Opp4wGBftmmMHt92FMZ/d5dV ft0R4VhaADL5UvUGl5/z7F8K0drAkdsQORReTQnAnEVsjmCEYOA6vyiuEji8LtDOkymY v4bbObQ5ku+VG/DZYOpP1FvTCPuil90xLs5ZyxGc+C3jEGLNSjM7B5j06mmGDpRtatb8 R4Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=FBs0SZ7jMSh102c+Gwoe+bzh30yPu6mjGQhb5hNKeng=; b=mxSA+lypOmJg10UCSmeIiwY5SK2dROeWx5sgi4x5P7J8Dmu9X8FkzKABkwR77cWhwo +RqanGzWSVrl+OZONcfUU5YNtJMRNLmvUQdVEmVVnQHH1DBuzd5McebBE1xrPEept7vL pQ63VnJxL6uAKSVQkJ+xN71ViyhW7nBfF8Y6R+Rs5bjdWzMFTJwRW8YzFLlhOZGgO0bK yrSEGtGDdjelpMiUbf1bPWALvyo3aav2zY/LQVuvFyzmFtRblCGFP5GrAzCLvryReElt IxELpIifUEdk6dosQ3StjRi6WD5xgsy/RmH/sGqyUmmDfetdoH4AW8hDGeeBHjvAsfi8 YDxg== X-Gm-Message-State: AODbwcDF0vxMYgQRGZyLePzi7x3JJhYxdU/Ilf2RMDvmhKZC1XTm1iWl eYZQD94O7bE/Eg== X-Received: by 10.223.179.199 with SMTP id x7mr7104910wrd.72.1494693695411; Sat, 13 May 2017 09:41:35 -0700 (PDT) Received: from localhost.localdomain (94.197.120.114.threembb.co.uk. [94.197.120.114]) by smtp.gmail.com with ESMTPSA id a197sm5767303wma.1.2017.05.13.09.41.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 May 2017 09:41:34 -0700 (PDT) From: Malcolm Priestley To: gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, Malcolm Priestley Subject: [PATCH 1/5] staging: rtl8192e: Remove RX: IEEE802.1X EAPOL frame! warning. Date: Sat, 13 May 2017 17:41:17 +0100 Message-Id: <20170513164121.14373-1-tvboxspy@gmail.com> X-Mailer: git-send-email 2.11.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/staging/rtl8192e/rtllib_rx.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c index 43a77745e6fb..0033dc6979e7 100644 --- a/drivers/staging/rtl8192e/rtllib_rx.c +++ b/drivers/staging/rtl8192e/rtllib_rx.c @@ -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; }