Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp740400rwd; Thu, 8 Jun 2023 07:10:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6yB6O5bv73+A/cQiGTedOXWXqhrRLkxl76IgGOcB3b3uaOFC22Jh1FzfNPKse5ny/PBoMS X-Received: by 2002:a17:90a:6348:b0:253:727e:4b41 with SMTP id v8-20020a17090a634800b00253727e4b41mr3940665pjs.34.1686233457427; Thu, 08 Jun 2023 07:10:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686233457; cv=none; d=google.com; s=arc-20160816; b=LbQDIQqjKKuA7H8n6+xrmql7wIdaZRLxvPDvu4b0LSaTI+xwvlf8Hhssj3j6bQ2x+y H7hHZbe9EqMwJ8oUbdWdQpwm3NcdXPM29/Lp7GIs7kZ0Oh9Z/NyokAGy8ZubjJJME4rh kNOoy4e6oDy7Qo9yDSB1VzqkSrpIdqfTow+lzP5ekJ7OCjJBL9miKN8kW1GDOjv21Zoi DlhvWJYGRE2a3WVrKdh99jMVRyIwPgAk2NEFQe4wnEoovhg1V1NB5suN5atfOSbVHP1x Qj4FlDTwle+KIH7iT8eN/x+vkqGdcwRqBZ/yTF0+9PVACoi3vt5kk8dxFsrpfj2k/+bn t2sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eBG+BJDXMbRMO7QvkCfpRidiD0j4CZjCm8sgfZg3Gq0=; b=i1mefGrAsaPSZfQQVwbV41ovYJd3zK7tt0dLcS4GJV9dkUgfQQUDOmtpamWKTtAsfs AB+57G/wLp3oMppXfBcbZNmfyec3/Em8zNdQKIwq+hGI6oMGNtpX7HsNYzXbfdeZXHtZ UAY467iNzgd1D7TDU27reY8TsqzUKpCJVdNlwOne20WUJCj+MMwOrgrg1PuBk2I+Dr+q 0W8Z9Kwh5xVj7vyum5Ce9/ye2Wmwr/uyHwmnlSonGZJ8ecjWCCMQUsvtgY0mZd4VT9Fu QPLmdLDJ0sUjAsNZaXCw9MOCcw3ZR64hZMSdxoqy91T6MsH384mODV0+jJl7aHegRpdj wxbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="eUFs/RRq"; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 66-20020a630045000000b0051b1966e6b6si1011394pga.521.2023.06.08.07.10.47; Thu, 08 Jun 2023 07:10:57 -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=@intel.com header.s=Intel header.b="eUFs/RRq"; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236884AbjFHOH2 (ORCPT + 61 others); Thu, 8 Jun 2023 10:07:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236879AbjFHOHT (ORCPT ); Thu, 8 Jun 2023 10:07:19 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19E5A2D48 for ; Thu, 8 Jun 2023 07:07:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686233238; x=1717769238; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=SqtDcCwwTpIJROydmrh15+R8hdfBeaMUaSKcQo13a4M=; b=eUFs/RRqOp3aEasMw0qcYztQlZ0q6kv+e17lDWfrHXm99wU1d804R1Qp 6Wt9xa3VZPiUkDmLZN2JqnGIOYy6MaQpZaOCTk88kYgFeFn7JC7k5Gsiu ef5sQEEUcYjvJ/WXOJMbGhlWqaGwAMrQhyEznrd9E2ar0TgehNsxPS7rI nu10MoBKtLT2UAg1URbWuUXy+l+CC2jX+7XCw52CgSUGsRHeqz9/WoHMz CS2R8dcZpo14/yoBlu9pTiYkX66PUcf/sryNaelbrEN6aDP+i1PtmMNRq Gqn5XK4molEWjkoi7hgYenKfTFzkyE1ltqK9ZPje5f6x6XQlwe1kwTBku A==; X-IronPort-AV: E=McAfee;i="6600,9927,10734"; a="423176267" X-IronPort-AV: E=Sophos;i="6.00,226,1681196400"; d="scan'208";a="423176267" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2023 06:36:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10734"; a="956706315" X-IronPort-AV: E=Sophos;i="6.00,226,1681196400"; d="scan'208";a="956706315" Received: from unknown (HELO ggreenma-mobl2.intel.com) ([10.249.94.100]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2023 06:36:45 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Ilan Peer , Gregory Greenman Subject: [PATCH 11/15] wifi: mac80211: Use active_links instead of valid_links in Tx Date: Thu, 8 Jun 2023 16:36:07 +0300 Message-Id: <20230608163202.e24832691fc8.I9ac10dc246d7798a8d26b1a94933df5668df63fc@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230608133611.1303724-1-gregory.greenman@intel.com> References: <20230608133611.1303724-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,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 From: Ilan Peer Fix few places on the Tx path where the valid_links were used instead of active links. Signed-off-by: Ilan Peer Signed-off-by: Gregory Greenman --- net/mac80211/tx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 148a0e2aa740..7972de64e779 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -4429,7 +4429,7 @@ static void ieee80211_mlo_multicast_tx(struct net_device *dev, struct sk_buff *skb) { struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); - unsigned long links = sdata->vif.valid_links; + unsigned long links = sdata->vif.active_links; unsigned int link; u32 ctrl_flags = IEEE80211_TX_CTRL_MCAST_MLO_FIRST_TX; @@ -6024,7 +6024,7 @@ void __ieee80211_tx_skb_tid_band(struct ieee80211_sub_if_data *sdata, rcu_read_unlock(); if (WARN_ON_ONCE(link == ARRAY_SIZE(sdata->vif.link_conf))) - link = ffs(sdata->vif.valid_links) - 1; + link = ffs(sdata->vif.active_links) - 1; } IEEE80211_SKB_CB(skb)->control.flags |= @@ -6060,7 +6060,7 @@ void ieee80211_tx_skb_tid(struct ieee80211_sub_if_data *sdata, band = chanctx_conf->def.chan->band; } else { WARN_ON(link_id >= 0 && - !(sdata->vif.valid_links & BIT(link_id))); + !(sdata->vif.active_links & BIT(link_id))); /* MLD transmissions must not rely on the band */ band = 0; } -- 2.38.1