Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2440976rwd; Wed, 14 Jun 2023 02:55:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5OQZFCPVejjEE7EeDveNANlFW9uro7oUfWtqjesUCMr/4kzsZNenW8idoSwN1d6bt2BfOK X-Received: by 2002:a05:6359:639f:b0:123:26fe:3346 with SMTP id sg31-20020a056359639f00b0012326fe3346mr8960552rwb.2.1686736544698; Wed, 14 Jun 2023 02:55:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686736544; cv=none; d=google.com; s=arc-20160816; b=0i4UgHYaaoRv6kU/zi275eH4HfkD9bAVX/EA2YYzS20D4AHjGVQsBkBv+2pq1FX00K ZhMb+oaXi0SH/+LRV8GJosyaSu/EzMUq6YWqHhIz3MO1DVuhb2ugQIRiunjvK+EAH5xY bfLI/azxmMYtPTgTaSiYR5/BmaQk6qtC1+0IL4Bjb1pnaLudXc3t2mMsNIjzz5B0bM7v qJE36PS12+9qFXh80OJu+msyj2iGdRma6UmsD2k46BfYWr7FRxxDGh+RxYFczy/MldIS mt8+Kh1o5UWp3yFbIguyKILrYb1bmrjkmLrNCLf4DcZ+OkN6yvPISNovemQvqe5zU9eq d4LA== 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=vAjEe8yiYf1avdWRSPR+B5XF88GuRJMcA2bjrf+c//A=; b=OBzGyyHJDysNjrKgDxTxTreGdGN3YpqCoUwIA42/7xkzBXgJ1S97a3KzOiPBoxSJIa NnoElBEdQr+nlXHR2Dy7u2JkVqvEAj2BbJgyW8z9u3wIIGnEOR8byfbD9Sz8Gn26BaOx e/8jJ60h7he2ZffWr0clTKoXSRKtNqopEcicyE5i2JIJDj3+0Uk9Q0LPhfgOirmzv1u2 hv17EeXMGUAcRff2CgCwjlqJl21GGiSTDAZ8zPvYlc13Rmx95fFwbmaMOiKBtBK6aX8S 7wbWUMfrEQI1KbjLUr3MOFg6XniW4TMl2B+a5YnLKoao2RPr+PeGa0TF/e2zVYNE1ZbH GCaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TNpiiekv; 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 d190-20020a6336c7000000b00542b2e4c95esi10082790pga.591.2023.06.14.02.55.37; Wed, 14 Jun 2023 02:55:44 -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=TNpiiekv; 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 S244216AbjFNJpk (ORCPT + 61 others); Wed, 14 Jun 2023 05:45:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235995AbjFNJoe (ORCPT ); Wed, 14 Jun 2023 05:44:34 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A653D2962 for ; Wed, 14 Jun 2023 02:43:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686735787; x=1718271787; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=r/OFzp6H6DaurPne6LXrcFZrgYlAF+loDzSXiCigTew=; b=TNpiiekvj0M7rO4EnU6km7+zdIbVDzh+jcNSux7uX0KIDTDDj+RvvKZ2 sQ8KRzy/kanY6o/AAXmNsDuxjvYv8GmQV1m68gHV0G8YhP0unHkQ9t1M9 l8aeWKbur4MOOiZrBOSG6R+akbd3Hi8lb9ZcIpaEZ0z9lMvxWJzEuLuYJ xCYul/Ik2AD2+d0TYjrfNE34qN2wbaOPYO3vOwuI6G1PlbPuyKDsDhYG3 p/e9SRgGQtSaSm/2xOajSmdKkuPITx/ZqrtRfJxrgguZdPFbht7vxnGDj t+JhjXUinKrAnyYs4Yoojt+9IZPq86GKFDzUGGrXwd8pZFeU5QSaIfqVd g==; X-IronPort-AV: E=McAfee;i="6600,9927,10740"; a="361049805" X-IronPort-AV: E=Sophos;i="6.00,242,1681196400"; d="scan'208";a="361049805" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2023 02:41:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10740"; a="711989779" X-IronPort-AV: E=Sophos;i="6.00,242,1681196400"; d="scan'208";a="711989779" Received: from basharil-mobl.ger.corp.intel.com (HELO ggreenma-mobl2.lan) ([10.214.203.45]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2023 02:41:57 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Ilan Peer , Gregory Greenman Subject: [PATCH 02/20] wifi: iwlwifi: Correctly indicate support for VHT TX STBC Date: Wed, 14 Jun 2023 12:41:19 +0300 Message-Id: <20230614123446.b24b5fba6fab.I116617875eb4a9d520df23a8c49a6594f9d8b2c6@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230614094137.379897-1-gregory.greenman@intel.com> References: <20230614094137.379897-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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: Ilan Peer If HT STBC is not supported, do not indicate support for VHT TX STBC. Signed-off-by: Ilan Peer Signed-off-by: Gregory Greenman --- drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c b/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c index fad71f490313..d79d5453c2dc 100644 --- a/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c +++ b/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause /* - * Copyright (C) 2005-2014, 2018-2022 Intel Corporation + * Copyright (C) 2005-2014, 2018-2023 Intel Corporation * Copyright (C) 2013-2015 Intel Mobile Communications GmbH * Copyright (C) 2016-2017 Intel Deutschland GmbH */ @@ -516,7 +516,7 @@ static void iwl_init_vht_hw_capab(struct iwl_trans *trans, num_tx_ants = 1; } - if (num_tx_ants > 1) + if (trans->cfg->ht_params->stbc && num_tx_ants > 1) vht_cap->cap |= IEEE80211_VHT_CAP_TXSTBC; else vht_cap->cap |= IEEE80211_VHT_CAP_TX_ANTENNA_PATTERN; -- 2.38.1