Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp287956imn; Thu, 28 Jul 2022 00:04:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1snCOmS+iZhFkcL+yDCJ3O4lHZ8FFYnPCM4qmtNnyWYSIWVywDLZDufOpLOcb8l+d1oc2je X-Received: by 2002:a63:8bc3:0:b0:41a:49f9:77ad with SMTP id j186-20020a638bc3000000b0041a49f977admr22759232pge.255.1658991845495; Thu, 28 Jul 2022 00:04:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658991845; cv=none; d=google.com; s=arc-20160816; b=c7IZ7bEsqiA5sAyij/OsQQUhAt2hndcZOJX8rI3hzDtYYYMYRYtBpk4aMvLsg5nkpl 3v4yRj5rn8mYEGI/HKq9M4wjdV3jjl2b3ZQ3c8pMfmccebe+PJK2/2PlZigvDSvlFM73 /Qs/nCi2ir8fnjH4e1UZQOCdTvJ5cBnaotaqdTQ87O5o6HBX9NzmlAOXu6IgBRxnXkGl vmnklLSJRYLz7oZhv0yhGzldmVImtVVkdSLJOVbG3WDxlmPdfubwrWr7UPEwN8XTJXOz CFXrYXZi45DHMXATYbQY6m2CTR2ElpNLgzvSiwJMOe3IS9/i6cHlQlm8VhMOIaQmxmR4 0gIw== 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:cc:to:from:date:dkim-signature; bh=j1i6is8O2gREGwxYkScSOkETqAfAyjJbFRLS/IZiWss=; b=QmIpzdgJ584TNnEq+LtYo4FFUFulJOELA8JWumIWC9U6xbG5HXFFfUY/lXF3VBY3GM roaMN2iXWS0dGhWeYnxC95jcu8qygBEfP+dh63ha4YmRS7eKE31FFDUllWehOt+OF7iT EGEDdmXWQELfhT/wiAmDs4LiVL8GdQdX1K4I28+0ZoXmc8VBty+NFJTxZ7jQ0Md2waeB nq1bVTCUKn+glqTZli0pUDNr6iQNjdbX6lBWHoFn/OpK2ALGP5dblO+SP8NfrJDcdBi8 UjhdhlFFujq7R7XlteQQvTCVkzf28EVy9rCV0yotkFiSpZhSvjFEdwW8f3SU2EY1HtvJ HT1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=curQK1W9; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z18-20020a170902ccd200b0016d856c7ce7si223580ple.407.2022.07.28.00.03.49; Thu, 28 Jul 2022 00:04:05 -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=@linuxfoundation.org header.s=korg header.b=curQK1W9; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234427AbiG1G61 (ORCPT + 99 others); Thu, 28 Jul 2022 02:58:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233283AbiG1G6Z (ORCPT ); Thu, 28 Jul 2022 02:58:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F6D1558DA for ; Wed, 27 Jul 2022 23:58:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D114C61B03 for ; Thu, 28 Jul 2022 06:58:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8AA5C433D7; Thu, 28 Jul 2022 06:58:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658991504; bh=9VtPWDr71X6cu20A7g8i4Z19oj5u5gdAoplvwb8bcDk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=curQK1W9PBsTNWLk/jhbQnrodc2Ty0zLzbkxqCVkbCgpNHDtpZ/2loC4SEkiuDxBQ QGzRL2Orfu2+1GYvoabCA8qwVYW6Oder7Ll+TISokUjczDizH7xseyenwZA4xs1R/a qpgQF4IK8vKsmn0MFWsCxZ5Xkl9B0maAtb0ti/nc= Date: Thu, 28 Jul 2022 08:58:21 +0200 From: Greg Kroah-Hartman To: Martin Kaiser 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: References: <20220724153917.138848-1-martin@kaiser.cx> <20220724153917.138848-2-martin@kaiser.cx> <20220728052515.tmzztbha2ckwusd2@viti.kaiser.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220728052515.tmzztbha2ckwusd2@viti.kaiser.cx> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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-kernel@vger.kernel.org On Thu, Jul 28, 2022 at 07:25:15AM +0200, Martin Kaiser wrote: > 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"? As is, the patch description is not acceptable, so yes, it needs to change :) thanks, greg k-h