Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2076260rdb; Sun, 4 Feb 2024 14:07:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IGeRjpuwD0/uJFUyaKgu+GwoHBerTIToSbNLnHTmXzmUruFVqEq9L8XA48LyaOtaS7bRD65 X-Received: by 2002:a05:620a:4494:b0:785:3f20:207d with SMTP id x20-20020a05620a449400b007853f20207dmr15193693qkp.22.1707084457946; Sun, 04 Feb 2024 14:07:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707084457; cv=pass; d=google.com; s=arc-20160816; b=R+xvkZnFdNnzO6+hnwoWLZTk36SOGemcQKGio+tjIo3BLbbUaRgZ57RWJYD4/Os7ne NlgQNeFO1corCirM3jr1ykeu7OjuUjxQ6agtgH9p54OZTf2DpzN5rBfQq83BY+NXT1H0 h4QJikpWtreTwhWXCSEo1domgbFUJi8MQ2AhhmsX3mCBcjKMv8bNfMUOGQ7wRChdS9+M 36/xYtzHfb67w/VL15cXhOMgA3NAAvNzwiHiRtn5oaCnUvwNpb57/CsE3bi8gFPSNTMN CBTXwFEhCqOIioJdvsoym/bZL8SbQDt/y1yZrqTutsCqG/gOIF/d7D2UsuBARkM9CeU5 J7zA== 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=nNzOxvNjEGYiwIjulWvmunweptnMZpNzTfnIbp/r6U4=; fh=g84dldETYu3gxz5H6RcFqc9GNVECX9m8Sa7f6hovtgU=; b=e/wGwTQbmCEnm/qrJPY1iCirebewEluM6rXwbU/ERfN5m2B96ta8j7knyriP7qqigS Vkdwlhlo+V967qzup7XvUKqBpa8I5B1zhXbOTXKr5+caEPdhxetROhJztKSXVpLIHOt1 yD5ooEcJxqDnyseuVmPrdrzz0PGPj0Ft0Kn6KvhxGKSFfmdP2BhJEx5bNq9urBu5SmDB 0+dXdVSycwi5Aulp1aSeZLQP1dy8z4OHknkfxHgL80WNFCD9a3dYad9DgQuhDm2aq+qe /aSqDaOtHf00H+C+CzKzFtX/0xl8lWZDON/QYbqI2KlhskIB7IsFdpHJhWGtxbzdItet 85Sw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YhY2jJcR; 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-3113-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3113-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCXG0W7eG2SPkSGrE3KMB6EBhdkjDnmWx7fnkRNq+PREt/YhKdHaFSqW6w17FEkmDh/ZALBwiPCGxem8d7F+hSpYPXcnqTzkOvfct9+7bQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h2-20020a37c442000000b00783f02397fbsi7177638qkm.460.2024.02.04.14.07.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 14:07:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3113-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=YhY2jJcR; 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-3113-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3113-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 B225C1C21E05 for ; Sun, 4 Feb 2024 22:07:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 29C9140BE4; Sun, 4 Feb 2024 22:06:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="YhY2jJcR" X-Original-To: linux-wireless@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (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 9D0A5405DE for ; Sun, 4 Feb 2024 22:06:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707084418; cv=none; b=IyvkugnDBAgkW5dTPnJpzVXh0/bQYqXPwwdrnKiQc5UL//xC6gSMkiEOWzZW4UNOVq3lzdRg9YUq3IsCHfTbRm8gdyOJueDfNF1/S5QuedcVYr2Zj12FS1rkrxQcKijopwhHMJSO3GxQKMsSyp1/lbyvu0zO4ziv5imM6boJKE8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707084418; c=relaxed/simple; bh=UJHOdjgKS0zRo9VDXtrvWArJBGvfAzirM7XVlgi2mG0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hlmewbwQ5kIuCIOcZBzOdpKQBm+YSr6z+HTDLZUsVYcSf3CIKLPwBTEqwqx9AAVbk00KmdQxjYsLxpr6DNWN3dSM75wzRwPwGjH2NuZ5w4gLxQBA5Ig8D1dwKXVGgNFjqT+7mmcBU6DsjBgPhi1CS8450cOmdiCKVHMtti/32eI= 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=YhY2jJcR; arc=none smtp.client-ip=192.198.163.7 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=1707084417; x=1738620417; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=UJHOdjgKS0zRo9VDXtrvWArJBGvfAzirM7XVlgi2mG0=; b=YhY2jJcRvNQR7xVrbNQn2zGG0SiECZ5O/DuhnvAmCoyLQDnlzoVhR2OD dltD27KeZEFMVO5t5IlpTZjJHZ82RPtAQi27533lcxQOrz1eMyI7q74EG cpWGYZlkUiK4nDKKY+OvUEnGHTTYxgRog44K1lyELUBrtb0brug15dUwf AtNl0quu6MVW/cSOf/u6StJDHK5d8/70zbYQs5NvWTVgJYoeOyi6ZmF0a N+yUS5HKgQrpEveU27xX7EDvAxPOwavwsKpIkFQ1/Z173N584aZL/8Z+F j8thttBEJt3QBGkdo/beXNN0s1kuSqNDsXR9lljjgQ68qigiQzQLcmmQN g==; X-IronPort-AV: E=McAfee;i="6600,9927,10973"; a="25869392" X-IronPort-AV: E=Sophos;i="6.05,242,1701158400"; d="scan'208";a="25869392" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2024 14:06:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,242,1701158400"; d="scan'208";a="23815905" Received: from unknown (HELO WEIS0040.iil.intel.com) ([10.12.217.108]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2024 14:06:55 -0800 From: Miri Korenblit To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Avraham Stern , Luciano Coelho Subject: [PATCH 12/15] iwlwifi: mvm: advertise support for protected ranging negotiation Date: Mon, 5 Feb 2024 00:06:14 +0200 Message-Id: <20240204235836.608a307e4dd0.I578af1c9836e91069ce318b265bd221f42955992@changeid> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240204220617.1456895-1-miriam.rachel.korenblit@intel.com> References: <20240204220617.1456895-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: Avraham Stern Advertise support for protected ranging negotiation if the firmware supports it. Signed-off-by: Avraham Stern Reviewed-by: Luciano Coelho Signed-off-by: Miri Korenblit --- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c index bc8d1760f36c..e62fcfd1a65f 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c @@ -705,6 +705,13 @@ int iwl_mvm_mac_setup_register(struct iwl_mvm *mvm) } } + if (iwl_fw_lookup_cmd_ver(mvm->fw, WIDE_ID(LOCATION_GROUP, + TOF_RANGE_REQ_CMD), + IWL_FW_CMD_VER_UNKNOWN) >= 11) { + wiphy_ext_feature_set(hw->wiphy, + NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE); + } + mvm->rts_threshold = IEEE80211_MAX_RTS_THRESHOLD; #ifdef CONFIG_PM_SLEEP -- 2.34.1