Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp129735lqq; Wed, 12 Jun 2024 20:04:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWcqpjShlsMojCwGEmBULzxaYnhQ2ZcHFifCM7fGFHq8gJcrNsg8lXgquawXc25setLfj0ePTmZ8bOUubKLRJ708fW8QwLG3krnpSRQbQ== X-Google-Smtp-Source: AGHT+IFk7g3sYFPAQ5ClY2MIts5LemLLTmVhFYQD+GQSEm/uImQPQ3NILvtl4AUuJvqMFYi+roX0 X-Received: by 2002:a17:906:26c1:b0:a6f:1727:cf4b with SMTP id a640c23a62f3a-a6f5242bd33mr85854666b.23.1718247883206; Wed, 12 Jun 2024 20:04:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718247883; cv=pass; d=google.com; s=arc-20160816; b=z25f+sL14+MXVaG64l3q1s8aZMqD1IIWn3F8ntqQM0/Fe6Hqz0CDsPuPZNZEVJzm3C Ma7eMoQBlaHYBxsRr6UgnIsrgD1JqsalUlzuocUiUGKp32Kr5C2uyW9PZzEERrnkvu04 NB0Sc+5t0c00cTAYBQSJQyNra7R0vVtATxeQsIe3K02pH/3nsaUjjBmUHyc57tkEwZ19 SpuE1LUXYx4hEXhb50r/dVRSS6mi5BJKZE1EGUy4Piz3/y+ihU1cudyHZozvV7mDHjEe quwwp2MIyMQBZoHejSmHgW4bu8NTXhJxlQUav9jshIXsAXHMrH403ayNk/LNqGDbrDjr azKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=uoEs7B6T1gVNEXMq3665UB7KgLCGFV0A9uQvetVLP78=; fh=c6UuCLXNJ/neVXbs5pnc8piB9fqaAQTHznLs07B32/o=; b=epvqDW//0EALxBBqumMuc4cOxMP5LK0yBCOnnVPXMTp17wXC9+zUllyvfr08kLfnOv cDIiaoYlll+fE/DT1RY8JASfP2haGgj9JeVBoZ/LwSjNCvbj9rLty1tj82B7pOvoHw2t 56lVo25I0c0/arJk+bDcAE+dbZZtdBESAlqqppxqyNNP6Uzda6qBbAZ108RrfiuOGQxS PbmZFEqyPO3sEp+JZt1EATYZu8FIIM6Ad6c8SnCDF3LGTqbDEqDs+pCTuoqBhIpmPX8l InaggwsTu5b2T0tFLiHxkVraOgG131zz6z/cIM/xFndCLLZND9/SHAU30TokXsGVhEs+ zrCg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-wireless+bounces-8938-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8938-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56dd6f74si19308266b.420.2024.06.12.20.04.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 20:04:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8938-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-wireless+bounces-8938-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8938-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EA8601F2255E for ; Thu, 13 Jun 2024 03:04:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A32B12D755; Thu, 13 Jun 2024 03:03:48 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from mail-oo1-f46.google.com (mail-oo1-f46.google.com [209.85.161.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D02AD12DD9F for ; Thu, 13 Jun 2024 03:03:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718247828; cv=none; b=Sgg2qLsC9ZgtVo9v2a/7UstcI6Fv0V78LgfkSs1rOJHwXXJXPI3i116WAEavKLBph09oNuryrOA34ovoLiourAlJ8U/hEc9u0/cFV4cBsTWINltR8R9nh370ZlGFAqwLd/Tov2H+V6kTNOeYJdmPhv+35xPjMHt68/mMihf3MeM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718247828; c=relaxed/simple; bh=/TdxytPw+HcqbotxdzWcjrgM/Dd+D2SprKJCoBdPAJM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=TLvOIAJezX37mN10AJWqtmXuy2GfHZ69EPrtAW5S69YnzRYSXdhlkvJf0v12eJHoU5SpYPgMCwmJtGywz70u9qh5pMWIhHvUa7qec9sDVUjF/iT8DRbg0PT8emaYBOTMvB1/z5eyh9MgEg1tzbOK2cfav97fC+oNeZDEApLdS4o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.161.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oo1-f46.google.com with SMTP id 006d021491bc7-5bad7941dcfso26257eaf.3 for ; Wed, 12 Jun 2024 20:03:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718247826; x=1718852626; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uoEs7B6T1gVNEXMq3665UB7KgLCGFV0A9uQvetVLP78=; b=dx2CX6ToAkvInjKIxfGV3vI2BCOxsxY2dcBHjibuSukWWQRT3KWmAsRikxhlATx/MR g7EOH0rim3LfimNlFJBmN23+0CJoDeNJRZ1V/FqW3hZdOoGjxj5nKkcpm+34rl42e1L1 g3z1WYs9ui5naOjuWSk/bAKaz6jP0rDM+Z9sVElF9ZhULkmm0PKQUGfdaDUHF8DYQY9a CuaqneYV8m0rJyspLlar0sjXAQwn0jqk7FleUEUOTjQLQuJDiBo0NANJapFgQMbxN5XB X65gSCcCn8HUd2BoRyjP4XmmDk2GbO7bESwugfrGb/7WElQiFPHCqBud0ISgtiCoJ4iv UIsQ== X-Forwarded-Encrypted: i=1; AJvYcCXFxDBeFBroXHriTmi4Zh7DEyP30wmx1HPHjWttuvGreFNR0/8eHbCzf1X60ttn5Z03Fv3k0/lRvM3L+ESDX00AphMe+eVH2PF1HCa+mzo= X-Gm-Message-State: AOJu0YzKNYh/JpsSXNCXAMqTcJuZSxosmxeZfuYTQrCbccg0N51msMi3 ZmbhzNmMtxJ4RaaXLS+DCvvHdHHvu0sWqFLvzA/ZFvzYgnvnuiKU X-Received: by 2002:a4a:d196:0:b0:5bd:87a0:66d with SMTP id 006d021491bc7-5bd87a01b93mr286222eaf.1.1718247825880; Wed, 12 Jun 2024 20:03:45 -0700 (PDT) Received: from sean-ThinkPad-T450s.lan ([207.191.35.252]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5bd629263c5sm67685eaf.46.2024.06.12.20.03.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 20:03:44 -0700 (PDT) From: sean.wang@kernel.org To: nbd@nbd.name, lorenzo.bianconi@redhat.com Cc: sean.wang@mediatek.com, deren.wu@mediatek.com, mingyen.hsieh@mediatek.com, linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH 28/47] wifi: mt76: mt7925: extend mt7925_mcu_sta_he_6g_tlv for per-link STA Date: Wed, 12 Jun 2024 20:02:22 -0700 Message-Id: <20240613030241.5771-29-sean.wang@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240613030241.5771-1-sean.wang@kernel.org> References: <20240613030241.5771-1-sean.wang@kernel.org> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Sean Wang Extend mt7925_mcu_sta_he_6g_tlv with the per-link STA configuration. The patch we created is a prerequisite to enable the MLO function in the driver. It is purely a refactoring patch so the functionality should remain unchanged. Co-developed-by: Ming Yen Hsieh Signed-off-by: Ming Yen Hsieh Co-developed-by: Deren Wu Signed-off-by: Deren Wu Signed-off-by: Sean Wang --- drivers/net/wireless/mediatek/mt76/mt7925/mcu.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7925/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7925/mcu.c index 0c9cebd3ee71..e1dc8452468c 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7925/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7925/mcu.c @@ -1389,18 +1389,19 @@ mt7925_mcu_sta_he_tlv(struct sk_buff *skb, struct ieee80211_sta *sta) } static void -mt7925_mcu_sta_he_6g_tlv(struct sk_buff *skb, struct ieee80211_sta *sta) +mt7925_mcu_sta_he_6g_tlv(struct sk_buff *skb, + struct ieee80211_link_sta *link_sta) { struct sta_rec_he_6g_capa *he_6g; struct tlv *tlv; - if (!sta->deflink.he_6ghz_capa.capa) + if (!link_sta->he_6ghz_capa.capa) return; tlv = mt76_connac_mcu_add_tlv(skb, STA_REC_HE_6G, sizeof(*he_6g)); he_6g = (struct sta_rec_he_6g_capa *)tlv; - he_6g->capa = sta->deflink.he_6ghz_capa.capa; + he_6g->capa = link_sta->he_6ghz_capa.capa; } static void @@ -1640,7 +1641,7 @@ mt7925_mcu_sta_cmd(struct mt76_phy *phy, mt76_connac_mcu_sta_uapsd(skb, info->vif, info->link_sta->sta); mt7925_mcu_sta_amsdu_tlv(skb, info->vif, info->link_sta->sta); mt7925_mcu_sta_he_tlv(skb, info->link_sta->sta); - mt7925_mcu_sta_he_6g_tlv(skb, info->link_sta->sta); + mt7925_mcu_sta_he_6g_tlv(skb, info->link_sta); mt7925_mcu_sta_eht_tlv(skb, info->link_sta); mt7925_mcu_sta_rate_ctrl_tlv(skb, info->vif, info->link_sta); -- 2.34.1