Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp843786rwb; Tue, 29 Nov 2022 06:08:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf7RsTd7FjaRmSOIWx4GUCoF9I8sj0w/AnMf3EHTyi1nJQboy1IUwz1E3sqt+lSfhnLzg/Od X-Received: by 2002:a17:90a:df06:b0:212:d299:4758 with SMTP id gp6-20020a17090adf0600b00212d2994758mr65327722pjb.120.1669730887176; Tue, 29 Nov 2022 06:08:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669730887; cv=none; d=google.com; s=arc-20160816; b=ZFBxJVTualh0sc+/KvZUP7BkO3eB5UffwdT4ksYuQ1w3RbkY3zeOo8AqIxgBU0TTMN uiuTgCYeoZL7i0GDSCsKvasECVnP2VBr2ooXo0dKxmwgEQEBjakzeeIIn/tO7ENUb04z 1mh9MvtJ7lYHXpB3E50NG/7iGr6875o2G68rXsNBxAmDalDk+pW/dEgCcpup9eZ7VDyq 5ths55r27gqrh3qhwmKsOMbZ5Vf1+RrrNfUgvSN3GMXaiOx0bebqXpvwXLnsm/JhPsDq ie6mBTnwCmekkhm3UN5Mob254vqiaHK02pEJPibxr2QPJ6Ns7YOZstDV4vw2V0XRsmNM 0Qtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=hmL1fhnE+p0KsqeCxjrzRVw7wn8P8LkuAKnfVeGOj2A=; b=xPbOXOVj8PToykTNtc7KIgYOzEHlpeBS7Hmvz7r0vrMI2E792YdW37L6IV/y4/KubE iWhe0zJIOLEdxch3X70XVeC4uNwKXa/yiNVmXbCkqW1gpUhJoXfq3YjjtKMp4Yf4NNcp EpD54/lDccIOhFkIXTdazpMAQKBh7Y4OHuWDQ/WrDtDg5QzY+9du2hv/GjdqN3yi6k9S pruCmo6XhGTkbY3KHAmoS8kvGwUADRAfJXKUWKeffNM+Qhj1dwsw6IiJxjVot1WmTvnY GLUUbsELYMZXYFbt0XTnGGv+YODigPjUbVpHSdZmCw5yVO3uklgIG48bM24x/3uSOlxw Owdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XTCemeXi; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ot1-20020a17090b3b4100b00213dce992c1si1856194pjb.7.2022.11.29.06.07.53; Tue, 29 Nov 2022 06:08:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-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=20210112 header.b=XTCemeXi; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-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 S234740AbiK2OGW (ORCPT + 67 others); Tue, 29 Nov 2022 09:06:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234098AbiK2OGU (ORCPT ); Tue, 29 Nov 2022 09:06:20 -0500 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D77E1BE98; Tue, 29 Nov 2022 06:06:18 -0800 (PST) Received: by mail-ed1-x529.google.com with SMTP id s5so19862917edc.12; Tue, 29 Nov 2022 06:06:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=hmL1fhnE+p0KsqeCxjrzRVw7wn8P8LkuAKnfVeGOj2A=; b=XTCemeXiOGKnvNbckv1301QKX5bIDcDqtA3c6/YSlrGtZU4X2mO+InaTAgY85JI2gY S/0E8Q919zpvoGBoXNdhdWLEKEsexc1o7MgLGyhZzyr70UgcDWaCmlFDSzoHY7uwsE2H n/shoVz9Hb5kw6B/F7ebZsE2nqqeokFQ1XBUC2AYZgQZDSVeZDCmPC6NPqSF79BlHWoJ ugUXUyTlBU4YJDTH7LEIWU2ImQ4Qr6KyVjMfNjG/Zlb1UcLXm1d69ssjE7cUf9LrWuvW 2GRWB5XqHnn0DdNLgkd2ZEtDue4ZwNMIOkJdIbOh8WVYKv381C0Km7Q9lRVxRYbp1OYS dvww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hmL1fhnE+p0KsqeCxjrzRVw7wn8P8LkuAKnfVeGOj2A=; b=420hhEGDGWDQBQMYmH8i4sbCZ6YNB9aHsQJb2ty1rWo9E4BOk9PQs+TaNZW4Em3JIM uv+D9GDKB/E6wBGoT+DW3ks3TCzKWoPgPijfbbA+rU5PgLI7RT1VTyFs1O0M+S7BxZ6W mV9lhemXcqaUdUlp4ZKstboo5VLwPaeSReJTmNxEiekbp5JnkyHWx/pkagTXW6maSbgk kSp0h37wRijd09gld28DncBAHKgRAGxCG7sTGhCUcm/ql4JjkteWQGXn3HvkyAItjKHC w03ARuJas0MTNOQDOChGN02KvaR3ukmccUIuj77xE6jbhm+eqqdlm9eWEJNG6HYB+QWn 5J5g== X-Gm-Message-State: ANoB5plI/zBrZ6UQGzBngmEfMBkW6/5evlvkRK7Dt1rdeZ9axvTcgBU8 E65qEdkVzVMCrmatQ3mxAnc7t40Umjc= X-Received: by 2002:a05:6402:120c:b0:46b:86:20b5 with SMTP id c12-20020a056402120c00b0046b008620b5mr12645010edw.130.1669730776585; Tue, 29 Nov 2022 06:06:16 -0800 (PST) Received: from [192.168.1.50] ([79.119.240.254]) by smtp.gmail.com with ESMTPSA id j17-20020a17090623f100b00741a251d9e8sm6193645ejg.171.2022.11.29.06.06.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Nov 2022 06:06:16 -0800 (PST) Message-ID: <9dc328a1-1d76-6b8b-041e-d20479f4ff56@gmail.com> Date: Tue, 29 Nov 2022 16:06:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [PATCH] drivers: rewrite and remove a superfluous parameter. To: JunASAKA , Jes.Sorensen@gmail.com Cc: kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221129043442.14717-1-JunASAKA@zzy040330.moe> Content-Language: en-US From: Bitterblue Smith In-Reply-To: <20221129043442.14717-1-JunASAKA@zzy040330.moe> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,NICE_REPLY_A,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: X-Mailing-List: linux-wireless@vger.kernel.org On 29/11/2022 06:34, JunASAKA wrote: > I noticed there is a superfluous "*hdr" parameter in rtl8xxxu module > when I am trying to fix some bugs for the rtl8192eu wifi dongle. This > parameter can be removed and then gained from the skb object to make the > function more beautiful. > > Signed-off-by: JunASAKA > --- > drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c > index ac641a56efb0..4c3d97e8e51f 100644 > --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c > +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c > @@ -4767,9 +4767,10 @@ static u32 rtl8xxxu_80211_to_rtl_queue(u32 queue) > return rtlqueue; > } > > -static u32 rtl8xxxu_queue_select(struct ieee80211_hdr *hdr, struct sk_buff *skb) > +static u32 rtl8xxxu_queue_select(struct sk_buff *skb) > { > u32 queue; > + struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; > > if (ieee80211_is_mgmt(hdr->frame_control)) > queue = TXDESC_QUEUE_MGNT; > @@ -5118,7 +5119,7 @@ static void rtl8xxxu_tx(struct ieee80211_hw *hw, > if (control && control->sta) > sta = control->sta; > > - queue = rtl8xxxu_queue_select(hdr, skb); > + queue = rtl8xxxu_queue_select(skb); > > tx_desc = skb_push(skb, tx_desc_size); > See the recent discussion about this here: https://lore.kernel.org/linux-wireless/acd30174-4541-7343-e49a-badd199f4151@gmail.com/ https://lore.kernel.org/linux-wireless/2af44c28-1c12-46b9-85b9-011560bf7f7e@gmail.com/ Any luck with the bugs?