Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2062240rwl; Thu, 13 Apr 2023 00:46:33 -0700 (PDT) X-Google-Smtp-Source: AKy350bbIgghIkdbvBIF4auYtmMsDIsFEFqB9uSeCGkq4BXUsLLlqdF0NP+I074ux2Mk0bpNYREe X-Received: by 2002:a17:906:5849:b0:94e:4c8f:759 with SMTP id h9-20020a170906584900b0094e4c8f0759mr1683122ejs.38.1681371993728; Thu, 13 Apr 2023 00:46:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681371993; cv=none; d=google.com; s=arc-20160816; b=c8tv3Tar2Qu3z8zhEpv+N+0WE/M5gLKRsvnDKwSSbbdPNIPn4X1B0OcCrqF16tvPci nEY0u1703yAsU46EYMS0td9ikl7he16tI+PbqudnuUoNRAdOuopf8erj/vHNd2QcsHtJ 08qvSn6/WCSq7dEXoiyOT5zrpbtZmyl9vj/bWp/rlNaVMOaPS1vPDqYgTrwz8NWx+XOZ 5YXr4ksbN4+2+UoXDl56VZkSkEDoFEsr+zyjW2atkc+dVxkrZ276C7qSP9NyemXSfBns cPWdtcvU2QXBgR1ZUE4lORQ3fDETaZeBBFAV2wAZI2AN7qQnglWzRWNjQgusthF61/hI CkKg== 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=EwOEHCCXYNFilkpCA/TMeD8eZFsfX2nH6vuT/Sr0/6Y=; b=RYRufbJSFUFuMxP0/L2cYiXwqokHGrM+Ica8OZv7BTTI1gHqbDdZt0Bl/QCDDVUqV3 53l1B6s6iXizdKsMghzPfLGI9uucd3XqGcKVvVjMpG5GpxPIY0loXG+BxE2Ji9ij7Vd/ BvEVYJ+EugGfkfAneIE2uuA/gVebtA6X8LXsdvxkWHlVKA1vAFWv06dPL+Sg7Zs/FJzE ECu/PxYqEFNdtrJ5sXxHyogmT0rZcAZZjPdQa+gsFCfK+Be8UqJSqWDnYHqZJ9J6Jwg7 eis4zHGmczebpx+HLqDSiCiBCLzgBoeGnX6ddQB7FJsK573QGdGUvHoZH8/34l19sYmf qLnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XSvRFr4u; 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 ay16-20020a170907901000b0093397c2c553si1152162ejc.289.2023.04.13.00.46.18; Thu, 13 Apr 2023 00:46:33 -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=XSvRFr4u; 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 S230020AbjDMHpZ (ORCPT + 61 others); Thu, 13 Apr 2023 03:45:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230031AbjDMHpY (ORCPT ); Thu, 13 Apr 2023 03:45:24 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8F0786BA for ; Thu, 13 Apr 2023 00:45:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681371922; x=1712907922; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1vLplp7zZrbo9e9pka3AD+Moj+9roOddUH6BPcrsQFI=; b=XSvRFr4uMLZu+XwvDSPUC+fZ2kUwQY+67FuqL01LRFW6j6HXT6V2k/xe /9GN6xs4W7n/2icfikpSh6A0qzvvXfnsXE3A05Mc3eczPMDOqEwNG3eqe LBOWvr4LOgqOOZ7CStEESIAUpEqLX0ljrEButuFmsHHRNMXQfsmB3wUY7 Qs+2Xk9lmNSjheJ5esEuN8nrlU9bvYi4zv35Sc8HHlcv/bYucx9g7iEU7 P0CRhpsdoUP22yMOsRTJaYs1sQL2pPLOWf58ZN3NgA5E4EK7loWP+i65p yqCdNV+E9A0PGW0A/AijVdrQoMUIeJg/vC93rpDFRUCKPEgJMK88xLyux A==; X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="323735968" X-IronPort-AV: E=Sophos;i="5.98,341,1673942400"; d="scan'208";a="323735968" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2023 00:45:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="833034732" X-IronPort-AV: E=Sophos;i="5.98,341,1673942400"; d="scan'208";a="833034732" Received: from apeled2-mobl.ger.corp.intel.com (HELO ggreenma-mobl2.lan) ([10.251.184.75]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2023 00:45:20 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Avraham Stern , Gregory Greenman Subject: [PATCH 06/15] wifi: iwlwifi: mvm: use OFDM rate if IEEE80211_TX_CTL_NO_CCK_RATE is set Date: Thu, 13 Apr 2023 10:44:06 +0300 Message-Id: <20230413102635.a322d18b5eb1.Icc46027a03f90feffb6fab49a5d82e54829d3dd9@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230413074415.1054160-1-gregory.greenman@intel.com> References: <20230413074415.1054160-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_PASS,SPF_NONE,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: Avraham Stern IEEE80211_TX_CTL_NO_CCK_RATE indicates that CCK rates should not be used, but is ignored by the driver. Fix it. Signed-off-by: Avraham Stern Signed-off-by: Gregory Greenman --- drivers/net/wireless/intel/iwlwifi/mvm/tx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/tx.c b/drivers/net/wireless/intel/iwlwifi/mvm/tx.c index 2c842938656d..9a6e7dd166c0 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/tx.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/tx.c @@ -343,7 +343,8 @@ static u32 iwl_mvm_get_tx_rate(struct iwl_mvm *mvm, * For non 2 GHZ band, remap mac80211 rate * indices into driver indices */ - if (info->band != NL80211_BAND_2GHZ) + if (info->band != NL80211_BAND_2GHZ || + (info->flags & IEEE80211_TX_CTL_NO_CCK_RATE)) rate_idx += IWL_FIRST_OFDM_RATE; /* For 2.4 GHZ band, check that there is no need to remap */ -- 2.38.1