Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1756005rdd; Thu, 11 Jan 2024 08:20:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IESwbsrJq2qrvls3PGb33aFM5gOnJhXw9PiE1fZqHqQTnMeEroCrq+VjpsPyGwmeLXZ0AI2 X-Received: by 2002:a05:620a:458d:b0:783:2a18:d864 with SMTP id bp13-20020a05620a458d00b007832a18d864mr11480qkb.146.1704990035828; Thu, 11 Jan 2024 08:20:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704990035; cv=none; d=google.com; s=arc-20160816; b=dz5SVLVjqAcgo1AZPVtq8LbbYw/tE7f9ffGOhlgKyHz4HHfedG6D1Vn42WlkaTeoat JfgMs6CtsARmN9Qh4XJIu3mvwngu66lxbnrFt9aWbtO+At8uq4pTo6N7RvcNr9dFlYAR ib4Zlj5YjEss6ZxYxFkVYuZ3iKwFe7EZxlucQyMOsmhw5n/JVF9YbbzpP5ncR9k/s9Is L360ygtX06CqV4UD4YiSVh215LK03QB2Y18otzhKUQUvq79CYBnFtPG2bpr2sqeVb1e6 uQv/VTdwjS6k/jTSna2+d124IFeyQHI52vp4R32Zvb3ri5AB2SKkuiAkvx0Lx9eoTlm2 99wQ== ARC-Message-Signature: i=1; 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=1eV/K971sZDtwOEF5XF9hNsB+btQva7eo4FeJLrzYPs=; fh=NDlaSzgstteYXPVn+wdA6E13vXJ4dZ/Hzq8K3kT0PqA=; b=sJpMS4ROXwlFLazE38VVJoM2yDVITlKnksW2+H5Pjk1bCKQjdbbrrcl/kztJaXuGY+ 5gg4JMLpcxQmVvAJyKfifnLE0hd4YcM2FRqck8iNl2As1+H5cnh5tsM3NWqibGgHul1f 1sZ74hBVRv/+eyMYLmhSyP6+0zGqqn9qqpvOGvF1NrIJ7K41yF2zrU9rIwJlSdGPVxUp D0twC0R0uYdSVJZuoF+ocFDVGGRtzGST7wJq5iE3n99+aF5fl7fdq2OCYtVGes1wVDp/ Frk5Fk3QudUUanbAFn3gNh1UwueBsSSXrqAGGkdJ0smMLOmZauPQILo1crAf7box6XwW uYPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=leIEvn6B; spf=pass (google.com: domain of linux-wireless+bounces-1727-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1727-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id os29-20020a05620a811d00b00783264580b0si1153056qkn.57.2024.01.11.08.20.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 08:20:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1727-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=leIEvn6B; spf=pass (google.com: domain of linux-wireless+bounces-1727-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1727-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 91CF81C226BC for ; Thu, 11 Jan 2024 16:20:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2123D42066; Thu, 11 Jan 2024 16:18:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="leIEvn6B" X-Original-To: linux-wireless@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) (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 8E7F64F889 for ; Thu, 11 Jan 2024 16:18:24 +0000 (UTC) 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=1704989904; x=1736525904; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=A8Kz8Qa2DDI0a0eZKuRKxQJpuKnhmJBWjEFF9XHZ0Y0=; b=leIEvn6BO+qT7eOYYRAtCcHWb/5ItJSUtAH42BEoJhWcgiJi+AD73LYn Bj7kDSvH+NVno1vHQELo8b2g1Xn5gKDOYb05njR4Ary4Yv/aHEZakWAyk vag0CkRq1sA9L8395i2+nFsGgyMnIMmluR9vaBsYksN44sKYkbPly7xz/ DwvN75xXg/8/HMosd/Vt4kMO+HKYGg63wceEusqPjf3yTL2h2cFNYS5O5 FqdUNQvF3QS3ZqfN1VumI29/b910cmX/RAHTd/DZpNyBxpebbWQid7iHn KmcFQuSYs6rtbjKZxcolLAQB/0KgISP/hkXfyEK4nXandVGVwbhywjy9v w==; X-IronPort-AV: E=McAfee;i="6600,9927,10950"; a="463182479" X-IronPort-AV: E=Sophos;i="6.04,186,1695711600"; d="scan'208";a="463182479" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2024 08:18:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10950"; a="1029606458" X-IronPort-AV: E=Sophos;i="6.04,186,1695711600"; d="scan'208";a="1029606458" Received: from unknown (HELO WEIS0040.iil.intel.com) ([10.12.217.108]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2024 08:18:10 -0800 From: Miri Korenblit To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Johannes Berg , Gregory Greenman , Ilan Peer Subject: [PATCH 1/8] wifi: mac80211_hwsim: advertise 15 simultaneous links Date: Thu, 11 Jan 2024 18:17:39 +0200 Message-Id: <20240111181514.52a1d48b67e6.Ie459df742944d24d6401683d54d2f3ac44834803@changeid> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240111161746.3978601-1-miriam.rachel.korenblit@intel.com> References: <20240111161746.3978601-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 From: Johannes Berg Advertise MLD capabilities and operations in AP mode that say that up to 15 links are supported simultaneously. Signed-off-by: Johannes Berg Reviewed-by: Gregory Greenman Reviewed-by: Ilan Peer Signed-off-by: Miri Korenblit --- drivers/net/wireless/virtual/mac80211_hwsim.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/virtual/mac80211_hwsim.c b/drivers/net/wireless/virtual/mac80211_hwsim.c index 304dc96fc3bb..403d892c0468 100644 --- a/drivers/net/wireless/virtual/mac80211_hwsim.c +++ b/drivers/net/wireless/virtual/mac80211_hwsim.c @@ -4993,9 +4993,11 @@ static const u8 iftypes_ext_capa_ap[] = { [9] = WLAN_EXT_CAPA10_TWT_RESPONDER_SUPPORT, }; -#define MAC80211_HWSIM_MLD_CAPA_OPS FIELD_PREP_CONST( \ - IEEE80211_MLD_CAP_OP_TID_TO_LINK_MAP_NEG_SUPP, \ - IEEE80211_MLD_CAP_OP_TID_TO_LINK_MAP_NEG_SUPP_SAME) +#define MAC80211_HWSIM_MLD_CAPA_OPS \ + FIELD_PREP_CONST(IEEE80211_MLD_CAP_OP_TID_TO_LINK_MAP_NEG_SUPP, \ + IEEE80211_MLD_CAP_OP_TID_TO_LINK_MAP_NEG_SUPP_SAME) | \ + FIELD_PREP_CONST(IEEE80211_MLD_CAP_OP_MAX_SIMUL_LINKS, \ + IEEE80211_MLD_MAX_NUM_LINKS - 1) static const struct wiphy_iftype_ext_capab mac80211_hwsim_iftypes_ext_capa[] = { { -- 2.34.1