Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp739272rwd; Thu, 8 Jun 2023 07:10:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ47cqS7bxYld44eJXbxskLssSkuQ3I6J0L6NMSQyXHdZzUfk82KvbNpJ/j8aS7b5J2CnEzq X-Received: by 2002:a05:6a00:99b:b0:64c:ae1c:33ac with SMTP id u27-20020a056a00099b00b0064cae1c33acmr6103773pfg.25.1686233416539; Thu, 08 Jun 2023 07:10:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686233416; cv=none; d=google.com; s=arc-20160816; b=tRdLUROIwS54TyIhiCPpUpXzSKP4RA57jPYpc3/RWX9b0r6y02G/BXRommcsgZyCUr vr5trtzfalYc0kX0dsJJqUlPtgCc/UunvC0fnuFN2TKCqnW3+HBsf2Nio0xUcWYkxGng lSIoSpyXcbm4Jo6pmE1iUr27mRtxL2m/LkZjN2T/ltmAgR4KkEwrPNaaeFjKHA2aI1HL CrX3GvYHf5qTpVwGShs8tqJ9Ma4E13sI39ZATFcSYl6cHET68O0XB0/15qGkp+IPjTVz 7f7e76XTF8BAGTn0lut/Lo4PbRLOcIyYYRlXYntZsAtWijzLfIuELkbjZLGcCYUms3c6 ougg== 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=jyJD09gM4ULnrgz7aG4yEfl579suJxyM5G5UcyCNSXQ=; b=JI/4opBmNMLZ02sIyN/F2VWdDlGaZtNpYepdUkvisxe/ZKBrZuaUANI4XhRkoMzum2 tROnajtSz+Ar1AdWp+4ItlOEtZW+D/j66FMcF23wj42l+6a/AMtmHJtW+uuM3oFgWFZ7 60BvIe+vBcRHC0s/u4Y9Rfez2S6qDNcxL9sbnlsiAntM8c8kQ4qx5MtdB+NCSfhxUX0u jtemMkQYpRVgJQDkXS0maS9cn566BqPSc+jzGY/NulPUw4S5LZzug1wm2bDfrrmrRG7U WuD6r9NvmJXUd7Fc4JRKe0T/+PXHWmWUAypOLPa5x9wUVivLelxanNv9QsKMHrBla+7c hvvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QSUlZmyW; 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 f127-20020a625185000000b00660c0e2d5a8si870793pfb.232.2023.06.08.07.10.08; Thu, 08 Jun 2023 07:10:16 -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=QSUlZmyW; 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 S236859AbjFHOHT (ORCPT + 61 others); Thu, 8 Jun 2023 10:07:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236824AbjFHOHO (ORCPT ); Thu, 8 Jun 2023 10:07:14 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC37A2D65 for ; Thu, 8 Jun 2023 07:07:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686233232; x=1717769232; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=PBf8o4UIHJ1SpzQxBrOKGTFKRGA9K39gDcYNf0ypHyo=; b=QSUlZmyW1sJFRqlNRdRo4iK5JMLhPlMTxWW+R2JUjFxRFsJgdMjYxovH pv+oCQsje/EgaaHfNr+t+hMJmZozCZ9Nbn82LAYjKqwfvovEFUrfF//I8 iL2FZra9SYbCQKO+gaKtscWoVVmOQsP/dyFaAIrjKofxJneXiklvbSTti 38XAcbJU/lodTLPgoJGqtVQgIvnIeMHtUHQtv0tmVKzEp1djwF+qNRCG4 yPdUKYE5Z26QgJHga+MOGnRcYbIBjcY7vFpbG98Y2YxVOXb+P9JZ8ky7o YTG+mq5ShWTYQz8YwlwENgKs7BpBHWPxNkoqNyofV3DtYfiNFIJ8YZY8s g==; X-IronPort-AV: E=McAfee;i="6600,9927,10734"; a="423176202" X-IronPort-AV: E=Sophos;i="6.00,226,1681196400"; d="scan'208";a="423176202" 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:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10734"; a="956706145" X-IronPort-AV: E=Sophos;i="6.00,226,1681196400"; d="scan'208";a="956706145" 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:29 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Johannes Berg , Gregory Greenman Subject: [PATCH 03/15] wifi: mac80211: fix link activation settings order Date: Thu, 8 Jun 2023 16:35:59 +0300 Message-Id: <20230608163202.a2a86bba2f80.Iac97e04827966d22161e63bb6e201b4061e9651b@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: Johannes Berg In the normal MLME code we always call ieee80211_mgd_set_link_qos_params() before ieee80211_link_info_change_notify() and some drivers, notably iwlwifi, rely on that as they don't do anything (but store the data) in their conf_tx. Fix the order here to be the same as in the normal code paths, so this isn't broken. Fixes: 3d9011029227 ("wifi: mac80211: implement link switching") Signed-off-by: Johannes Berg Signed-off-by: Gregory Greenman --- net/mac80211/link.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/mac80211/link.c b/net/mac80211/link.c index e82db88a47f8..40f030b8ece9 100644 --- a/net/mac80211/link.c +++ b/net/mac80211/link.c @@ -2,7 +2,7 @@ /* * MLO link handling * - * Copyright (C) 2022 Intel Corporation + * Copyright (C) 2022-2023 Intel Corporation */ #include #include @@ -409,6 +409,7 @@ static int _ieee80211_set_active_links(struct ieee80211_sub_if_data *sdata, IEEE80211_CHANCTX_SHARED); WARN_ON_ONCE(ret); + ieee80211_mgd_set_link_qos_params(link); ieee80211_link_info_change_notify(sdata, link, BSS_CHANGED_ERP_CTS_PROT | BSS_CHANGED_ERP_PREAMBLE | @@ -423,7 +424,6 @@ static int _ieee80211_set_active_links(struct ieee80211_sub_if_data *sdata, BSS_CHANGED_TWT | BSS_CHANGED_HE_OBSS_PD | BSS_CHANGED_HE_BSS_COLOR); - ieee80211_mgd_set_link_qos_params(link); } old_active = sdata->vif.active_links; -- 2.38.1