Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp254288imn; Wed, 27 Jul 2022 22:36:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vPWjuV2lHhrtFxMX3UDSBTb3XVM+o5w/d3htkguWgivTiX+rIifvEM5bUKb9FSteFEQ4/Y X-Received: by 2002:a17:90b:3e83:b0:1f0:4233:b222 with SMTP id rj3-20020a17090b3e8300b001f04233b222mr8445956pjb.218.1658986583794; Wed, 27 Jul 2022 22:36:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658986583; cv=none; d=google.com; s=arc-20160816; b=pQkucVXNdaQyDhCSK/m+4JowC6WfWwEaxipVnB8zmoG29Aq0WrB9lhbILF3GbDegpr pIOYX21jTOL4ltKkqFqOZM+g/91j+o5zDCmIiWX2r2o6tTrxXPdEqXaO18OXiZGm2nKh zG1H7Am/Hv9OGIbMUQc065VOv5bbJt4LdBy1d59xOn3XIRDcPyUPjXcG3A/JWzjUAgwQ U5eAQT8wBiHJTVTsN0AG25cnE0693uO7NoRKVwOFJIl6+3pbaH/cBHfmC+PXiOO7XmFy uNuoq+gAPWEkHHLiFOlmwid0etgy73Wjlyh0VHcBw3m5wLEZUkh6Swuqdt+BYwA2b+26 590w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=SSJ204reivPelopB1pXCFgPd7f13wB6wLLNe5zQqhSU=; b=ZTnu7Zt8DD93fXqbi8mE/lPg+R+UIW7xFh3MpYsGY+9wkHtkXIOzzJijKwdsemTQ9p JXEMiTWAt8+UMr4oX2Fc29HHgZUZYb0HHdPhPLBOt5H5ep7AMSHw/CxWFbM2QeWvkyS5 SYKKpVHXVRl62mzg3yHJKHqIAx6LXFGN33AiQA2bD3ALnwgWtgLzo/5KtCgcqwFPETxv m7DP7uPtQj2RypxgLq/fCPBYyiIbBf0pYk6emYfua+mFjzUpY3V4pXYv4WehY88X6FxS t0kGubDNRG2pJTB420funVe5L0Dpgf+K6wsEGCXei/0mEG1/Kn+HkA4fqOzzyY2xtCdG um2g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v62-20020a638941000000b0041b578f7150si66315pgd.701.2022.07.27.22.36.06; Wed, 27 Jul 2022 22:36:23 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230151AbiG1FZi (ORCPT + 99 others); Thu, 28 Jul 2022 01:25:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbiG1FZh (ORCPT ); Thu, 28 Jul 2022 01:25:37 -0400 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 436DD4C612 for ; Wed, 27 Jul 2022 22:25:34 -0700 (PDT) Received: from martin by viti.kaiser.cx with local (Exim 4.89) (envelope-from ) id 1oGw1L-0003jm-L2; Thu, 28 Jul 2022 07:25:15 +0200 Date: Thu, 28 Jul 2022 07:25:15 +0200 From: Martin Kaiser To: Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , Pavel Skripkin , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/5] staging: r8188eu: get da from ieee80211_mgmt Message-ID: <20220728052515.tmzztbha2ckwusd2@viti.kaiser.cx> References: <20220724153917.138848-1-martin@kaiser.cx> <20220724153917.138848-2-martin@kaiser.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: Martin Kaiser X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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-kernel@vger.kernel.org Thus wrote Greg Kroah-Hartman (gregkh@linuxfoundation.org): > On Sun, Jul 24, 2022 at 05:39:13PM +0200, Martin Kaiser wrote: > > Define a struct ieee80211_mgmt in the OnAssocRsp function. Read the > > destination address (da) from this struct. > This explains (sortta) what this patch does, but not why you are doing > this. There's a bunch of macros and functions in the r8188eu driver to parse standard messages. I'm trying to replace these driver-specific versions with the generic ones that are shared between several drivers. This patch removs one get_da call. It's not much but hopefully, we can eventually remove get_da itself. I know that we should leave the parsing of messages to mac80211 and get rid of OnAssocRsp etc. Until we're at this point, I hope that doing the parsing ourselves and using the generic helpers is a useful intermediate step. Would it make sense to rewrite the patch description or to summarize the patches in this series to something like "read some response message fields from struct ieee80211_mgmt"? Thanks, Martin > To me this looks like a step backwards, why is this change needed at > all? > thanks, > greg k-h