Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1343355lqt; Wed, 20 Mar 2024 00:14:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVT9as6VTFD9gIyKeSMDhlg3GDTMFBjx6Ic6DUrVhxp9iPXiz+fIm2w6/3upUL6aiQ+AP6WjICYig4cB3ya8SZPsx/Jl0H4wfyt9Y/S/Q== X-Google-Smtp-Source: AGHT+IGbrOPi+x5lgy0V+49i1sVCbjfhMr3TxFpxcExi106N+I+8jsXJJuDtTnQy0/tPfBUuHTcN X-Received: by 2002:a17:907:9621:b0:a46:6f8f:d7f0 with SMTP id gb33-20020a170907962100b00a466f8fd7f0mr14397219ejc.3.1710918891014; Wed, 20 Mar 2024 00:14:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710918891; cv=pass; d=google.com; s=arc-20160816; b=xGCx3ylt2snadZHs0LYgxsHR5rUUHgJcXhCi2Jh+jncMiiXQGfsFCt01wzVz770h3m QoEEwVYL+ROKK+vfHAzUTRmj4Zn68BsCOJj38ET+jQgJ8BpZMVoXbv/8VQNZz5VR1Pdc q7yWHBr7hyeyuPTtZZcLPbs48EXojNk8YDRhbeqsB7msF+LGDSfjPykIpY6GvNffn4Fl XPztrISyrlSlHFE31lsl3ZaA8+igBJVgb6gpN2iVYeYOaLQnMRgA6w3PSU29JNqqc3Q7 OvvzMXUzC9FAVdcGsr5dC8IZfkJJnxU8zMQk6/7eU5P3AdvKTghViK/uAhkK7MZLqKL8 WWUw== 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=aAgvJJn8DGyJIEnkK6/NO1tcqs7EryT7uKZZWkJbAaM=; fh=o/jSBnEq+q6f0RIvwQCm9vXYTY2ht4wko+kYqXvm+0E=; b=ddJBpjYlQ1QPBXSJsHnHM0RCs3o8ZTM+TsjOPSp6VcEF3ycRWG/TUS2MH50y95jTEC RrXW60APU/N3Of48KxGd48kYrGSdmPW6bB+mnStnBPcAB53yXxEBi0+94mViaYG2vMDB CFeBJJSb4RXllKpk7w6gT40oW59btDUmHajfXdg4N0bCHm8fsavcvkL42y5fFShvLLEe pF4HRIpEHIkKeuNKEDY8dv3McAy0wCiu+K4EuhXu4QGp++zTsNDA+Cd3w3Wt1g2TwYk6 RKtI+/FPcCHcegjn6+J3AaTUoXGl2hNhE0IPxYihmAvxf8PPPHdCcv2HD3f2LuNAMnbC oTwQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=O0cRlVMI; 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-4946-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4946-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n16-20020a170906379000b00a46ea26f158si885463ejc.41.2024.03.20.00.14.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 00:14:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4946-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; dkim=pass header.i=@intel.com header.s=Intel header.b=O0cRlVMI; 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-4946-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4946-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 am.mirrors.kernel.org (Postfix) with ESMTPS id BE0101F23ABF for ; Wed, 20 Mar 2024 07:14:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F7712CCA4; Wed, 20 Mar 2024 07:14:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="O0cRlVMI" 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 A2AB42C6BB for ; Wed, 20 Mar 2024 07:14:23 +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=1710918865; cv=none; b=pbx9cMXudzOrA//Sg749ZZC9wv6gWxdAJNVQcKP7MxvYvQrZkKqmLsq5k4C3/PD+y96XhBB2Jd/iyrtAA5192J/0FyE0/hojxkGZz22AlC4ZY2NhUctegEDzBe8NHzSSdvBTT5iK+0xlsQnYojDDL2JHjLij6LhyG9neH+jjeSg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710918865; c=relaxed/simple; bh=tTL/viAfyjiu0dYZw/j1lxbLsfKv/fvkE2mrf9/csu4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=CiW7JGOfApxSLK7+5d1bncRk8sKMj3zYvgSb0oPq3oniMGpTF480Pp/gy8degxlALsPd0ExIs7uBMIfedd2HIIwxrPMBq/tEudals2TU9ryy8T1zo8gdIUB+QJRHwHGrskMAtCrAc1BAjCvdqzlk11Mbez9mTzD6iRZYNWhK2O8= 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=O0cRlVMI; 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=1710918864; x=1742454864; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=tTL/viAfyjiu0dYZw/j1lxbLsfKv/fvkE2mrf9/csu4=; b=O0cRlVMIPPvB0Ub3TjxMQW0dhhpsCDE0FyEV1uIfWOOT2BtwUvSrR1NM 1eBdEyk1jn441xXAbgC4mm5XdYB6EBalde5Q2oWa8vzfZDCTVc6OYWvyv a7DNY9V8fZc0xlEFyDZ3+jI6tOW2CkDvd8lfLv6B87InUrcbU/oEQ4iX7 CHStUH7mFa0hPPNBuMiXgq3JWpa+XQemoYyM9faGCSyrufACw+KTT5HKs jDbUW2xKSjMtnApLmD6JrwRaBzJl7/YXHFqy4VhTPqHxqptvdcTuuBrGH zxWS+FspyGRh4hKiN81CPYQekaq3fs5l1leJEhLJ9txRpaeVkxiP314Jw w==; X-IronPort-AV: E=McAfee;i="6600,9927,11018"; a="5763834" X-IronPort-AV: E=Sophos;i="6.07,139,1708416000"; d="scan'208";a="5763834" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2024 00:14:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,139,1708416000"; d="scan'208";a="14477407" Received: from unknown (HELO WEIS0040.iil.intel.com) ([10.12.217.108]) by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2024 00:14:21 -0700 From: Miri Korenblit To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Ilan Peer , Johannes Berg Subject: [PATCH 4/8] wifi: mac80211_hwsim: Declare HE/EHT capabilities support for P2P interfaces Date: Wed, 20 Mar 2024 09:14:01 +0200 Message-Id: <20240320091155.73ae309d27c2.I31ef6af2f1ebf54281858e2f63afcb10b61985fe@changeid> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240320071405.815427-1-miriam.rachel.korenblit@intel.com> References: <20240320071405.815427-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: Ilan Peer Declare HE/EHT capabilities support also for P2P client and P2P GO interface types. Signed-off-by: Ilan Peer Reviewed-by: Johannes Berg Signed-off-by: Miri Korenblit --- drivers/net/wireless/virtual/mac80211_hwsim.c | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/net/wireless/virtual/mac80211_hwsim.c b/drivers/net/wireless/virtual/mac80211_hwsim.c index 450913cf6583..30acd78926a6 100644 --- a/drivers/net/wireless/virtual/mac80211_hwsim.c +++ b/drivers/net/wireless/virtual/mac80211_hwsim.c @@ -4125,7 +4125,8 @@ static void hwsim_mcast_new_radio(int id, struct genl_info *info, static const struct ieee80211_sband_iftype_data sband_capa_2ghz[] = { { - .types_mask = BIT(NL80211_IFTYPE_STATION), + .types_mask = BIT(NL80211_IFTYPE_STATION) | + BIT(NL80211_IFTYPE_P2P_CLIENT), .he_cap = { .has_he = true, .he_cap_elem = { @@ -4232,7 +4233,8 @@ static const struct ieee80211_sband_iftype_data sband_capa_2ghz[] = { }, }, { - .types_mask = BIT(NL80211_IFTYPE_AP), + .types_mask = BIT(NL80211_IFTYPE_AP) | + BIT(NL80211_IFTYPE_P2P_GO), .he_cap = { .has_he = true, .he_cap_elem = { @@ -4383,8 +4385,8 @@ static const struct ieee80211_sband_iftype_data sband_capa_2ghz[] = { static const struct ieee80211_sband_iftype_data sband_capa_5ghz[] = { { - /* TODO: should we support other types, e.g., P2P? */ - .types_mask = BIT(NL80211_IFTYPE_STATION), + .types_mask = BIT(NL80211_IFTYPE_STATION) | + BIT(NL80211_IFTYPE_P2P_CLIENT), .he_cap = { .has_he = true, .he_cap_elem = { @@ -4508,7 +4510,8 @@ static const struct ieee80211_sband_iftype_data sband_capa_5ghz[] = { }, }, { - .types_mask = BIT(NL80211_IFTYPE_AP), + .types_mask = BIT(NL80211_IFTYPE_AP) | + BIT(NL80211_IFTYPE_P2P_GO), .he_cap = { .has_he = true, .he_cap_elem = { @@ -4679,8 +4682,8 @@ static const struct ieee80211_sband_iftype_data sband_capa_5ghz[] = { static const struct ieee80211_sband_iftype_data sband_capa_6ghz[] = { { - /* TODO: should we support other types, e.g., P2P? */ - .types_mask = BIT(NL80211_IFTYPE_STATION), + .types_mask = BIT(NL80211_IFTYPE_STATION) | + BIT(NL80211_IFTYPE_P2P_CLIENT), .he_6ghz_capa = { .capa = cpu_to_le16(IEEE80211_HE_6GHZ_CAP_MIN_MPDU_START | IEEE80211_HE_6GHZ_CAP_MAX_AMPDU_LEN_EXP | @@ -4825,7 +4828,8 @@ static const struct ieee80211_sband_iftype_data sband_capa_6ghz[] = { }, }, { - .types_mask = BIT(NL80211_IFTYPE_AP), + .types_mask = BIT(NL80211_IFTYPE_AP) | + BIT(NL80211_IFTYPE_P2P_GO), .he_6ghz_capa = { .capa = cpu_to_le16(IEEE80211_HE_6GHZ_CAP_MIN_MPDU_START | IEEE80211_HE_6GHZ_CAP_MAX_AMPDU_LEN_EXP | -- 2.34.1