Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1219105lqh; Mon, 6 May 2024 00:04:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUTfVqgc2k1gW91SQXE13yfJgbeRe1Y1SXSP61Gw/yux8OQtaqy+oYbu1CmTi66CHQ+fe2cHduEkhdzDtagwV/Z6nu8FVNVBl1d1md5IA== X-Google-Smtp-Source: AGHT+IEQK8ecn9u9JI9suuvzxVqT5ouweYw6tp3OsXrNL3k4X3tYC4y8e8Biyyx2eo+/mhaNV+JW X-Received: by 2002:a05:6a00:3d0b:b0:6ed:9158:774e with SMTP id lo11-20020a056a003d0b00b006ed9158774emr14820611pfb.20.1714979096825; Mon, 06 May 2024 00:04:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714979096; cv=pass; d=google.com; s=arc-20160816; b=R7iKquq51rRVkAzXJJiiAhRl/pmKN0JJjIoip2cTpGUn5aMF0eSzakAQk6Bkpk23zQ 1ZGuRxaopv492XG15jLXZaKzhQI35g0CTUIBrUEherQeeLrbTspaJJQ0TsPUDcoJlzBg OPoCWKtQVF6LEavBXelsCT4eU+lYBzKMC6Ukb6paIhKibXrhr9eziPJqVI8N9Gla8smz wunFqnxCuCgwImUQTRqG25kXsRQNtWFa/aiNTYnnMn7SXjllGb0viWIAiKLHBtCZK5Kb qt/oUg3V417HZ4A56W+DIOWiV+08+DzzQxItBopYnomlos6Ft3H9kxHpuyG2N68DvG4Y ++6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:organization:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=UQyyzsNDVXL7UP6CpLR8mwnM6iz7ptPEoF6KV7F1E88=; fh=TquNsOiV+zNY1csTpltVB6A9QFW5SbuNs6JlqcKCQkw=; b=FplVSgNM8aTR0E1r9AyPhOa2uM74vUOndyBGJIBA19K3bfr0A1NxhScYZ5NmDNfxqY FSuYQQkD83liIjQnvBYjESz8Vihuv1SDEhhRh2h8UsfyOQaXIWQSwUh7V13MPAHthJbp KrZ26bHUsDcCgeGuRo+NAzIZfMtTW9Z3bcbjr1XEQSl0GTmyV6RyCJDSUa3/kysReu5a mpKHAfs3uVKG6ib/bZrlMZP5RHZL0B7GFIMLge/XA6tJuf2yJxNA8TEPnkvpbiQMPgcv Pn/OOziJfqj3957GehxmJwGNAOXlTZTu7QJSUoRX0rrP5/pkwgxzu8XKp1EXaaT4x+XG B77w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bgOasywn; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-wireless+bounces-7199-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7199-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k11-20020aa788cb000000b006f482b60887si672235pff.23.2024.05.06.00.04.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 00:04:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7199-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bgOasywn; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-wireless+bounces-7199-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7199-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 58F4028158F for ; Mon, 6 May 2024 07:04:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 673377E58D; Mon, 6 May 2024 07:04:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="bgOasywn" X-Original-To: linux-wireless@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 97D68524AE for ; Mon, 6 May 2024 07:04:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714979073; cv=none; b=QT6mg9qNPD+dpsK4K3baFTIo8gP16+bzame+Dmh7fyHmr+ZJKguFJtf+STCa3J5E9Y2tWWoPTHNl0Mm5J84Tungt6aEWIZUc+3N3hOmt3/OTkFan6EnUBLN98+N6WuhrNURfYxBIp1zygg+cMDhEGiG2kdzS/wLxxwpOq8gO0ws= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714979073; c=relaxed/simple; bh=Hi4BDeSPRAiODk56O95/3/fxkoo18zgixTcnLoXqqUI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Y+TdlVB66F2f4xNRygMUbSQXZ6Z55qbsY6d8uvesb7LJp/iqG9IwCJfS/HY8C9XxQwkWgVgM9xJp2cnAHdRB371QF6CLtIF7lPapaedRt8+I+clxhUPgoemgGonJbpvxrz2Yb6lMgKXJfIoNezgcnur/Y5I363anYMljBHhojWI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=bgOasywn; arc=none smtp.client-ip=198.175.65.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714979072; x=1746515072; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Hi4BDeSPRAiODk56O95/3/fxkoo18zgixTcnLoXqqUI=; b=bgOasywnOV8s3n9nUoS5vStcxQ6NjXT2Kt6yApxJkd4bIQxhUMV0/6d+ TV9ScHwsXsB2ZrZAPX8ZAYrb2ry0oKT+GSOxkyq8BPhshA7S9OsFRnvvs 3ezq8Oj2yup9YO02SVUfIjgquFQkoI1RFGdfGo03ViiCxVWmqmOBO5Qon zYYZ+f3Xc3QlkhCO6Pp3mPLnfBkWAjVlyQsNUa/JXcIOOWS8bJ38FOrat ++eiNqhQUgvQ4u00WWIMVzdaO/u7j136sBeWIzHdnGbv71VnKjcDxclOs iyPMuoqhghtykBFPEqpa//ipaGTm6n73hDCi4jobC7JVX+3RlhRXalT91 Q==; X-CSE-ConnectionGUID: hv+6SW5WSG2rLazD7Tkt6A== X-CSE-MsgGUID: Ajg2Lp5tQMOXjbzXQNK2fQ== X-IronPort-AV: E=McAfee;i="6600,9927,11064"; a="10638153" X-IronPort-AV: E=Sophos;i="6.07,257,1708416000"; d="scan'208";a="10638153" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2024 00:04:32 -0700 X-CSE-ConnectionGUID: yVqy1g7JRmi9gUCVFIqNlA== X-CSE-MsgGUID: ERNn4i8wRA+yLmTOYAHvmw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,257,1708416000"; d="scan'208";a="59264867" Received: from weis0040.iil.intel.com ([10.12.217.108]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2024 00:04:30 -0700 From: Miri Korenblit To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Johannes Berg Subject: [PATCH 02/15] wifi: iwlwifi: mvm: fix primary link setting Date: Mon, 6 May 2024 10:04:06 +0300 Message-Id: <20240506095953.779bf6949053.Ia9297991ff2fdc82ae7c730e0069e2dd6e5f2902@changeid> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240506070419.1821330-1-miriam.rachel.korenblit@intel.com> References: <20240506070419.1821330-1-miriam.rachel.korenblit@intel.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Organization: Intel Israel (74) Limited Content-Transfer-Encoding: 8bit mvmvif::primary link holds the ID and not a bitmap. Fix this Fixes: 07bf5297d392 ("wifi: iwlwifi: mvm: Implement new link selection algorithm") Signed-off-by: Miri Korenblit Reviewed-by: Johannes Berg --- drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c b/drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c index bceafd551e8f..0a3b7284eedd 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c @@ -1212,7 +1212,7 @@ iwl_mvm_mld_change_vif_links(struct ieee80211_hw *hw, * Ensure we always have a valid primary_link, the real * decision happens later when PHY is activated. */ - mvmvif->primary_link = BIT(__ffs(new_links)); + mvmvif->primary_link = __ffs(new_links); } out_err: -- 2.34.1