Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp708302pxb; Fri, 13 Aug 2021 04:45:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZ9xvQg//FsfZQXmMxg0orJOQwnifkssHYRz3jZ4af0Hq4yhtbtleH6srpCb5+V3oeNpv9 X-Received: by 2002:a05:6e02:160f:: with SMTP id t15mr398013ilu.60.1628855100276; Fri, 13 Aug 2021 04:45:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628855100; cv=none; d=google.com; s=arc-20160816; b=s8cYNIWoZxuTIi3VWozIsiwDwfTX/bs3LuDk8vZEWkikEl6iLidM4wFHflNJYzuwrR m/LxVXaZ+J5XJ4ym2/QLGfnQtT383rEblPCb3KXdyv6T9jSh49Fxbu4YwvfIRs3YB49O DTqFCFT2kq1sORpmTEMnP81lFSRZQi0FYjgmdMUBMiaJ+fIifB45AgfcMfu/A56s6XTb e0F3KsFxIbx1ZfIoEvYqqM+PmvFd0w1PNWmt1tBTsZzxuBLENhWUtLRVaagmIwn8vAHB LrCf+j8OgPBwtyz5zOIkoj3RqN03rpxCoLbNeJ90C6srooWUiNWOC2R3JWhFcnTiDSb8 k9Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=JFELaOrc4/QFqYmVPpsvH4IhzGuMZEqR40eN7dP8G1s=; b=qJbP4471drXaQYe68vDrB+nA26AMV2zQQIH4XZEzhNavnUqxTL/FOv8q/qrpbQnYDJ Y0uKHqaK8kGQ5Yq96Q3p+I/wzkQ7BK/l0IhZic4ykmGCkfUsjHczVCS0DY5Zc38+NIdr JQpjcg/n3tW4dW0B38KLAQhztRozhgTtQBvJ/rmXndZ0NOCnOdjoVv8lAEqYZpfoBZO+ mtx7WmCuAtDmObHYrqIZBUCkbvEOkB6sjSBILWjXruzLrhGwO89ijy09CECucaHKIng4 I9j78DkThW4V71e+IYWWxMOnmY4n8jJ2DSaopGoEmMMZq7DlNkaT/MYmTZS/uOWhMzLd Hzrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=pWhozETI; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si1310109ilc.54.2021.08.13.04.44.47; Fri, 13 Aug 2021 04:45:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=pWhozETI; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240116AbhHMKeA (ORCPT + 99 others); Fri, 13 Aug 2021 06:34:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240139AbhHMKd7 (ORCPT ); Fri, 13 Aug 2021 06:33:59 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5620C0617AE for ; Fri, 13 Aug 2021 03:33:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=JFELaOrc4/QFqYmVPpsvH4IhzGuMZEqR40eN7dP8G1s=; b=pWhozETI3zBxWz582CC/MN3/aR Z8JrxkI7Ai9gYgxVNsmRI6KZu8O3/UktQLU+Jv3Pl0ZCpD4rvtc+BxLbxlQvBzwxFHAXn+P+qiuJg YLrL4GHuvJkSmjSf4OyG43tMH3Q+l44CyeTPCERAyvI7Dn6kBp750myKk0ibrCLlOkJc=; Received: from p4ff13206.dip0.t-ipconnect.de ([79.241.50.6] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1mEUVF-0007Cd-35; Fri, 13 Aug 2021 12:33:29 +0200 Subject: Re: [PATCH] mt76: fix determining multicast frame in sta mode To: sean.wang@mediatek.com, lorenzo.bianconi@redhat.com Cc: Soul.Huang@mediatek.com, YN.Chen@mediatek.com, Leon.Yen@mediatek.com, Eric-SY.Chang@mediatek.com, Deren.Wu@mediatek.com, km.lin@mediatek.com, robin.chiu@mediatek.com, ch.yeh@mediatek.com, posh.sun@mediatek.com, Eric.Liang@mediatek.com, Stella.Chang@mediatek.com, jemele@google.com, yenlinlai@google.com, linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org References: From: Felix Fietkau Message-ID: <6c6ba2fd-3952-3c44-6c6d-51f77eb66828@nbd.name> Date: Fri, 13 Aug 2021 12:33:27 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2021-08-09 23:13, sean.wang@mediatek.com wrote: > From: Sean Wang > > We should use hdr->addr3 as the destination address to determine the frame > is multicast frame or not when the device is running in sta mode. > > We can simply use ieee80211_get_DA for ap mode and sta mode both cases. That does not make any sense to me. When a sta sends a packet with DA set to a multicast address, it will be sent as unicast to the AP. Why should it be treated as multicast by the driver? - Felix