Message ID | dc6a0ac89970f5b80a552453a9d057c24f53f43b.1691908402.git.philipp.g.hortmann@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp2075243vqi; Sun, 13 Aug 2023 00:33:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHXLp2sx45qjjYp+TpSnnq2scLczUIsJbDbQDfc0SemH3LBMaPEy/Z06wsuud5hErRBdVSx X-Received: by 2002:a05:6a20:2445:b0:144:3272:31ec with SMTP id t5-20020a056a20244500b00144327231ecmr632468pzc.23.1691912020895; Sun, 13 Aug 2023 00:33:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691912020; cv=none; d=google.com; s=arc-20160816; b=kNDyKcf5xqCjyW5pNWMuw6s2dC06o+3VI77g4S0TLgM2w5WChRUiBuqTz3NVmzy8Ze 9HSjVzjh5N0ySyIPfMlrJkcSR0zVKmfOt9Yn9bR5w8gGxDptOmEJB8bQxb0cUB0K1q2L pxuCTKiX2IHIpS4MrRPvZYJC/RrAcZ1tixc3tN6IcZeJ/7HGIUcjXgKMrtfleSQHiH9N PxtzEZu4kIkTWzjkwzA+YDpoSpz1rd1Yls3tcpmO7NaoLQu24q+M/ZSgQH8IkpUrwcCI DYGR6UULBmB6FA3KrkuFCiyVorPRIKtogqZBWLydMnIMatRQK60hE6EU4zojb0OwDNkh HO6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=hZksEFWs5gcqXs2RD9fx1RHaWOhTjp65n9mM6G9h1Zg=; fh=1cdBMIz85FPYRj3yPieCu5zLx1nt70pcoGPlugZXEIc=; b=XQ/3chNgN8jqhbiqzAj+B3cWQmKk3fHpwVqAxQIhGBrmAz9AjIiV8mugq7R9jdrJR5 yjJAoPyVZ8oanDrTCXHNyR/8u10rz6E5s8T63qFrDGjFv3Shc+bOLccgBCuj4B/SWEUK TTuhIrKtyB6+KEhufj7XlseNSY+E+YlEnIExaa+Vnbj1GpF8rJ7Gwvm67O7uuu34bzUc Kvb3Uk21W3KQ+vF8/UURwPfjnlqnSBcS7jaqTtQIcYTkAOH0t8buX2l9mcg1Ldlf75Dc wx0qUbgNXoOI5mjv7TM1ZCpizDubRh2tWq6+OPHOEJr4eGVlxFZ0AmfV72VMel0Z5aM6 BiIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=p1pJseAx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z21-20020aa78895000000b0065b4e2b52c5si6083775pfe.196.2023.08.13.00.33.26; Sun, 13 Aug 2023 00:33:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=p1pJseAx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230110AbjHMGgu (ORCPT <rfc822;274620705z@gmail.com> + 99 others); Sun, 13 Aug 2023 02:36:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbjHMGgs (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 13 Aug 2023 02:36:48 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E083173C for <linux-kernel@vger.kernel.org>; Sat, 12 Aug 2023 23:36:44 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-3177d3bdfb3so682958f8f.0 for <linux-kernel@vger.kernel.org>; Sat, 12 Aug 2023 23:36:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691908603; x=1692513403; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=hZksEFWs5gcqXs2RD9fx1RHaWOhTjp65n9mM6G9h1Zg=; b=p1pJseAx73KAkF1sWsnQDTQr2UKK8diUs5kBL6oo27OcK7q2qwt7eYq9fdb1hCpAMu vcxuLSFJqJHoa4MQt08pViRS6/AJ8qwKiDjktyzTV1/Tq/IF/hjwm9beZmtlqroJnO2l Bq96rnZNwfMVdy6Uv2mBuJgTYJ9dlbeBcwrxuSSvqVQGzjnRV+/ZGevkB7Rq9brmhOIY Mo+k4BnWinE36K2tRLzXoRyNwykdWyz0OtUvDwhPjCOUvDwOoUJWT/bRiqQJqnIvY6kS sU7aLqMudBU5nAmKDkdzOfqQfENfOOZAsSMmD96iwgbDeLnqYImKApgsYX3YJlIdl1vU z/qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691908603; x=1692513403; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=hZksEFWs5gcqXs2RD9fx1RHaWOhTjp65n9mM6G9h1Zg=; b=Ep9JYhuMi98Vf+a2G6cF+FxmUUR5mc3/UJa5yziUVFxB5tpJxLhk8/Wc9t3toGEOsu nOzz9/HUPTplotewcw8Sukxvgq2XMtX2zqEEFJJZJQPL+Xem8xlZuxZyJ0RS+4+V0e5f w+FILPN8Zb32cBgcvbOVFIEyylFAgWavYFmKDMi6ZmwnVvM++xklGVIZ1jGgRFA6LzUc JYOPu/bUAfZvoLBj654F+JWIofO472gOOMQbXza0n7Mq58i0oDK2mXXPi/pmw8qS9GoQ 5MnswOMzpzpbH950jWrV0y0HH6vHH3saqUAUH+VG0AkW1uvncRSXZ2AsWCcKUqrIXvmd 7GMw== X-Gm-Message-State: AOJu0YzWKHEt2VuAwVPRc5aJ7FS03kK8DXU3xmaMAzBaJLEypqIBiH4t mr2zC63OwB6seEcTkKgDVS2H3cIQLHo= X-Received: by 2002:a05:600c:354c:b0:3fb:a651:c153 with SMTP id i12-20020a05600c354c00b003fba651c153mr6265295wmq.2.1691908602760; Sat, 12 Aug 2023 23:36:42 -0700 (PDT) Received: from matrix-ESPRIMO-P710 (p579356c7.dip0.t-ipconnect.de. [87.147.86.199]) by smtp.gmail.com with ESMTPSA id p4-20020a1c7404000000b003fe1a092925sm10259669wmc.19.2023.08.12.23.36.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Aug 2023 23:36:42 -0700 (PDT) Date: Sun, 13 Aug 2023 08:36:40 +0200 From: Philipp Hortmann <philipp.g.hortmann@gmail.com> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] staging: rtl8192e: Remove unsupported mode IW_MODE_REPEAT Message-ID: <dc6a0ac89970f5b80a552453a9d057c24f53f43b.1691908402.git.philipp.g.hortmann@gmail.com> References: <cover.1691908402.git.philipp.g.hortmann@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <cover.1691908402.git.philipp.g.hortmann@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774098338869322242 X-GMAIL-MSGID: 1774098338869322242 |
Series |
Remove unsupported mode IW_MODE_MASTER
|
|
Commit Message
Philipp Hortmann
Aug. 13, 2023, 6:36 a.m. UTC
Tasklet irq_rx_tasklet is scheduled when hw is receiving frames. Function
_rtl92e_irq_rx_tasklet() is then called which calls then
_rtl92e_rx_normal(). In _rtl92e_rx_normal() all frames are processed by
rtllib_rx(). When ieee->iw_mode is IW_MODE_REPEAT the function returns
0. The calling function then calls: dev_kfree_skb_any() which clears
the skb. So the driver clears all packets received in this mode. Remove
dead code in mode IW_MODE_REPEAT.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
---
drivers/staging/rtl8192e/rtllib_rx.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c index b3f5ab33603e..322e603237d4 100644 --- a/drivers/staging/rtl8192e/rtllib_rx.c +++ b/drivers/staging/rtl8192e/rtllib_rx.c @@ -1496,8 +1496,6 @@ int rtllib_rx(struct rtllib_device *ieee, struct sk_buff *skb, case IW_MODE_INFRA: ret = rtllib_rx_InfraAdhoc(ieee, skb, rx_stats); break; - case IW_MODE_REPEAT: - break; case IW_MODE_MONITOR: ret = rtllib_rx_Monitor(ieee, skb, rx_stats); break;