Received: by 2002:ac8:3b51:0:b0:3f3:9eb6:4eb6 with SMTP id r17csp2747028qtf; Mon, 12 Jun 2023 09:11:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6NevHXLzlX7kQ/BsV4/of4HHZLUhkoFYqcMROmHChOqg/u3TXI0VwSsCsrkA4x/6MrQMuw X-Received: by 2002:a17:907:360c:b0:96a:48ed:531d with SMTP id bk12-20020a170907360c00b0096a48ed531dmr10651724ejc.27.1686586292876; Mon, 12 Jun 2023 09:11:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686586292; cv=none; d=google.com; s=arc-20160816; b=g2TcsYDsdHQ1OuHXlthSWLKKm2VZmOSOy+L9AD2RDfuxr0kUBrfxENXStMvGygFFvg Vsxw1RPi4/UZjf++a+smzc0kxZFkC0L00Eat2kMuYA6rasBzq81yKT3d4DZ+T4AHYwb5 Pv9fqUTUZDXILzYbCDIBjzjrhD5dBWpAOkdwLeltmKqQ7UWKnSVleVU1hmCMBnn4CbVQ pon2U0/FD79Fa3rzH3KK5Il7O1MxpYbvnOM17VYffNoZLtidT7XAlyrZ26Clb/7m/r1L TKwm+qoPpsuGTG1SY1WxVP1elwFiA6+IlEI1CV8QDbB2rPQ7Apo8UrmqexXS1GmZkj4f zSoA== 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=CkDJhFH3DlCyYiA4t6EZ74ru866YiEiXVtYf2YRHfFU=; b=pFmMdgQHdhW15WeNV9wzLAfiRWSv0GwCtHivtfCGkDoVnrgj4o5+sBpquTQhXnZWSi DXqW7avxPw2SlQ1S9sankz5Kx2aza+lHIhBTc7srQiBUpNGUZvvuSil8K6LkMUqJepd1 8L0urd0CwORCRA7xkId8q51wtWfHKqP8CbsBySecACkAsj882Q3J7D43hwRsYEsvhCrc TKKa8ChmMoZPS+XHJsmOgzKEjqs/BqSt8y1CezsDgRgW/JCKJtckzK1j9lo5AK+sVSHT V2TGZTUJoR0HhHXDssfgLFPUBqwhQkVMjtlqLaY2eUFq9eG6bswJhs09KbYe8+DpvuEK D8Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="b6XBQQV/"; 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 dx11-20020a170906a84b00b00969f26bad70si5122982ejb.306.2023.06.12.09.10.50; Mon, 12 Jun 2023 09:11:32 -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="b6XBQQV/"; 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 S237670AbjFLPvv (ORCPT + 61 others); Mon, 12 Jun 2023 11:51:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237808AbjFLPvu (ORCPT ); Mon, 12 Jun 2023 11:51:50 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0279ACA for ; Mon, 12 Jun 2023 08:51:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686585106; x=1718121106; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VhjU8x+TFm14+FhzchqbvbRFCgIWzI9qsjyKva6DRok=; b=b6XBQQV/P+gPPgFpV0hbEN6CblSyTSOmT2pRUCBdYspdgv+uG6IeDvuw NWKql4paEempefpxI6iFsMckIvpHkXzj3y66NQ0q5DbLyHmvf/W8wFgwl 6InAMxNK2pwOYst8neR7YeaR3sQbCpUIs+xTFRkuzXrpKL86pQUULbwBL TZ/gb+T0lxanXRWbE8bpDAYQsqsVE147XIoPxMJBSj/rN6aHGvGDk1FxE tn83EywPh08bhDMSoSF4fk1t23pLn810U3c7xdEtCIyR+LUisH/sCQWGG LN1pQ5gcR4d1gEGfNqSXlESiHqQTuX0Ce+u+t+eg43h74mtsZvm5N/WCS w==; X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="421674224" X-IronPort-AV: E=Sophos;i="6.00,236,1681196400"; d="scan'208";a="421674224" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2023 08:51:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="885499324" X-IronPort-AV: E=Sophos;i="6.00,236,1681196400"; d="scan'208";a="885499324" Received: from azvuluno-mobl2.ger.corp.intel.com (HELO ggreenma-mobl2.lan) ([10.214.202.109]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2023 08:51:43 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Mukesh Sisodiya , Gregory Greenman Subject: [PATCH 07/15] wifi: iwlwifi: mvm: fix getting LDPC/STBC support Date: Mon, 12 Jun 2023 18:51:08 +0300 Message-Id: <20230612184434.5a8856739b11.I6af4a55b22ed856f484ba77f87723dceec4904f2@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230612155116.168000-1-gregory.greenman@intel.com> References: <20230612155116.168000-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, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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: Mukesh Sisodiya Use flags field from struct ieee80211_tx_info in order to get LDPC/STBC support. The rate parameter, used originally, is 16 bits only and does not have details of LDPC/STBC support. Signed-off-by: Mukesh Sisodiya Signed-off-by: Gregory Greenman --- drivers/net/wireless/intel/iwlwifi/mvm/tx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/tx.c b/drivers/net/wireless/intel/iwlwifi/mvm/tx.c index 5fa6f98b8e55..ccd1e41604f3 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/tx.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/tx.c @@ -343,9 +343,9 @@ static u32 iwl_mvm_get_inject_tx_rate(struct iwl_mvm *mvm, result |= RATE_MCS_SGI_MSK_V1; if (rate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH) result |= u32_encode_bits(1, RATE_MCS_CHAN_WIDTH_MSK_V1); - if (rate->flags & IEEE80211_TX_CTL_LDPC) + if (info->flags & IEEE80211_TX_CTL_LDPC) result |= RATE_MCS_LDPC_MSK_V1; - if (u32_get_bits(rate->flags, IEEE80211_TX_CTL_STBC)) + if (u32_get_bits(info->flags, IEEE80211_TX_CTL_STBC)) result |= RATE_MCS_STBC_MSK; } else { return 0; -- 2.38.1