Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1769038rwo; Wed, 2 Aug 2023 22:05:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlER/L193FL6cYE9nDgeoZJ64/3PN5okHWq5zqvVkcu3WEMzahlDTqSuSSB4I03kSnjcV+AT X-Received: by 2002:a9d:67d8:0:b0:6b8:794e:f1ff with SMTP id c24-20020a9d67d8000000b006b8794ef1ffmr18200938otn.34.1691039146475; Wed, 02 Aug 2023 22:05:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691039146; cv=none; d=google.com; s=arc-20160816; b=UrWFP2gVIW6CO6yd6Z6s6Z4kvnfIRXLI9a6+6rePqPWgNk8jZWhrawqf9qfdVKKkqe CLn/lh01B9loXqWV2KjFDD/G4mapXwncTtCmj+8deNc1njb4m9rAdBZOk86NE96/gwJW y+TqYuRZXbEU+UIHr8lM8WBNRqtgjVKNYwCsnDh0WdLuY0R7TIIyTCzDB69h8sxkaGng 59LseYGkgF8yqK5zzxvEdpGVVLDW2Fk57G9GGwFpIVcmq28orZf0cuupsj5lKuJPV5AX iaUrlf/8xLzxcK4lEnM4rz2OQakl5MRj5xU6616I9DyTopC8uMpsDdozZVX7g2kBHcNs y3EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=GGqErloYwrbXUxMLMFvmaAe2Hxyh/wgUo5745N2j3QY=; fh=WV/f4NcJO/i6UgPNYHA+xP7xnXQgnSPUpiptzs7FSmo=; b=q+z3lD8fp177z4hittM34Pag8KPScZ1pq8SSuGSeLKUvmIf2nX7xiciHLzEBROZpW6 e30gjI6XzOAvMIoSGwoeSMpLDrDPCnhOL7ZQ55ps67jj3ZYCsgvQtoP7zmS1pA8NfRSh MOXFaXGuRh/6yKPIUImX6lomUDrYKMbJoadj/aZtOiCh0CqZRSRcLgdVyvssHemUxmDk Xa8rrHq2RE60JYWqt5diowRYiETKfI9vDyI6S8nGO5dsAKZw6XOA2l1q/bTihI8E7chL KoFr06Umc7Kvqf/VTaZtE5Si0Rod3qMcNyThjhlAHU9NjbMmyOu7N+kqRb8+OSlpaS+/ jpBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sZfGRrT+; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v9-20020a63f209000000b00563de199316si11997264pgh.558.2023.08.02.22.05.34; Wed, 02 Aug 2023 22:05:46 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=sZfGRrT+; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231347AbjHCE5u (ORCPT + 58 others); Thu, 3 Aug 2023 00:57:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbjHCE5t (ORCPT ); Thu, 3 Aug 2023 00:57:49 -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 AD3C6E42 for ; Wed, 2 Aug 2023 21:57:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 39EA861BD2 for ; Thu, 3 Aug 2023 04:57:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1FDE8C433C8; Thu, 3 Aug 2023 04:57:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691038667; bh=yew0nIIdv5+4cZdHKECsN2/+DIEEPUIsBer6rmfZnuQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=sZfGRrT+SOUTRe8tt6a0byCjSYAkLQ+OIBSAyZzxMVkpnzuynGE8YsPTu+xOyZP3p hkrqR15pNZOVnRaV16erWiKaDOt3iftzNWAsvwre5cpPlHOV/32O3b34tn2Q0jAsMi 3qnKBtOyc3rf6Ic9LW6SsmRxyZ/Qvj7qBXdAhgxwA3JQtLT+2xgdNpY4RqaJzamb9Y n3tWEy9MblzCaO1VK9Lh+ZHNgggafqeuPyZC6T9AsInpj5qaYybmFYqvQ/60+sa+XJ VTxNePln3pYzM2GfdrrYh2aoY/rvWSbVOYGQnllU0XZdMeU9lCYZZB0A7c15eIir9f 21jGc3tjyvxSQ== From: Kalle Valo To: Ryder Lee Cc: Felix Fietkau , , Lorenzo Bianconi , Shayne Chen , Evelyn Tsai , Subject: Re: [PATCH] wifi: mt76: mt7915: enable BSS_CHANGED_MU_GROUPS support References: Date: Thu, 03 Aug 2023 07:58:07 +0300 In-Reply-To: (Ryder Lee's message of "Thu, 3 Aug 2023 02:49:44 +0800") Message-ID: <87bkfozpr4.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Ryder Lee writes: > The Group ID Management frame is an Action frame of category VHT. > It is transmitted by the AP to assign or change the user position > of a STA for one or more group IDs. > > Also, sniffer can use a given group id to monitor STA that belongs > to that group. > > Notify underlying driver of changes via BSS_CHANGED_MU_GROUPS. > > Signed-off-by: Ryder Lee > Change-Id: I3d2f5508a2b6eb7c929c3997c31a9285713c8bea No Change-Id, please. > --- a/drivers/net/wireless/mediatek/mt76/mt7915/main.c > +++ b/drivers/net/wireless/mediatek/mt76/mt7915/main.c > @@ -593,6 +593,34 @@ mt7915_update_bss_color(struct ieee80211_hw *hw, > } > } > > +static void > +mt7915_update_mu_group(struct ieee80211_hw *hw, struct ieee80211_vif *vif, > + struct ieee80211_bss_conf *info) > +{ > + struct mt7915_phy *phy = mt7915_hw_phy(hw); > + struct mt7915_dev *dev = mt7915_hw_dev(hw); > + u8 i, band = phy->mt76->band_idx; > + u32 *mu; > + > + mu = (u32 *)info->mu_group.membership; Is this safe on big endian? > + for (i = 0; i < WLAN_MEMBERSHIP_LEN / sizeof(*mu); i++) { > + if (is_mt7916(&dev->mt76)) > + mt76_wr(dev, MT_WF_PHY_RX_GID_TAB_VLD_MT7916(band, i), > + mu[i]); > + else > + mt76_wr(dev, MT_WF_PHY_RX_GID_TAB_VLD(band, i), mu[i]); > + } > + > + mu = (u32 *)info->mu_group.position; And this? -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches