Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4233017ybb; Tue, 7 Apr 2020 03:30:05 -0700 (PDT) X-Google-Smtp-Source: APiQypJZ2+n4DdaW0TxJTLWxCGfacoJ7jq2pFsYXARe1NPILAK3tTCC9+D8xuRT/WYswEQdwPxLi X-Received: by 2002:aca:3b41:: with SMTP id i62mr1033520oia.55.1586255405184; Tue, 07 Apr 2020 03:30:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586255405; cv=none; d=google.com; s=arc-20160816; b=WELg4fda4y809/PGt6wnyyLAlgjulxkHiE002Dw1U2NccksG0EXOiQtFLgW9O5d1Wk 2gpDRgntHsO/6uXx6ORDO/snQLfBFz+JpO2x0vktVQrE1PkBgPFC+/QfnU8Y5C8fD2ms bxa+I/oW9xsir/1tth1YqjaMDfQ0JKnFjLT+EYz9eyRpDTa5jR5PGavdJ+HaSMk98qeC Z8GGHQPQPxDPLFfg+rRdx/ZZ45Q+HK9fOdTRFg7ut7e/1iTaYdxE61ifWTYkeRqE6sr9 sASuRiEEcgm5/tdmxOKdrxLbE23CplzoqO/XkgV8TPIFQoZkW0Snbzi6BGE1N25RlRrh U5/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5dctfK23cjt6g1lvuwdzHeNoQM2B5fZlEHnj8duyji8=; b=W/EbDpYFtAXWqIO+Uco9QWnQiij08jFENz4GsR3k3l4cOaXT+o38eozC4eXzWNPMXN uHpQaJZi2nGdxpoyOyFcGbDi/IN32bn5Tdy485vRwgbmzZdihnPFtAeyACh+yBPlE3Ir u6GF64Hr665I3teGuA6TwFJJXj7x8va49pX524D45HifPvpNrKs8WYkYshht2YqKSR6g FaOHY2jN48w4koDR/tA9SUSdooLGSoOILvOCXVHHpSFwM3ajSKOSJLR2JS1CjtcGvCZa 4KTd0CHL116Uw+vHwTCVTw13FIROPSLVYpI/iMZsLda3gnsP1Vz0aUJUstfL56ve+Hwu iWHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EIdUbJiJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j25si1056330otk.154.2020.04.07.03.29.53; Tue, 07 Apr 2020 03:30:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EIdUbJiJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729062AbgDGKZ7 (ORCPT + 99 others); Tue, 7 Apr 2020 06:25:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:36724 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729060AbgDGKZ5 (ORCPT ); Tue, 7 Apr 2020 06:25:57 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 589492074F; Tue, 7 Apr 2020 10:25:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586255156; bh=5/sL9mCXly5jrq1A3Z9N4VVG6JUPKXdB9TUdv7LPc+4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EIdUbJiJPT78BdFcL1S7HXCMq2aHT6E6mRM/jQNup6YOQTW0lBF0+eFq/oqyB2rxf XMBQvH+gfRMj0WExnIWSnuQcI0Kg46FBOYRo85OWSKRRKR5v8A5cOCircp9Bpy/kJi O/MnT+5Gf5Eh0xJ535n1TWlbrzskg6WomhjpsWvo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mordechay Goodstein , Luca Coelho Subject: [PATCH 5.5 35/46] iwlwifi: consider HE capability when setting LDPC Date: Tue, 7 Apr 2020 12:22:06 +0200 Message-Id: <20200407101503.219777386@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200407101459.502593074@linuxfoundation.org> References: <20200407101459.502593074@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mordechay Goodstein commit cb377dfda1755b3bc01436755d866c8e5336a762 upstream. The AP may set the LDPC capability only in HE (IEEE80211_HE_PHY_CAP1), but we were checking it only in the HT capabilities. If we don't use this capability when required, the DSP gets the wrong configuration in HE and doesn't work properly. Signed-off-by: Mordechay Goodstein Fixes: befebbb30af0 ("iwlwifi: rs: consider LDPC capability in case of HE") Signed-off-by: Luca Coelho Link: https://lore.kernel.org/r/iwlwifi.20200306151128.492d167c1a25.I1ad1353dbbf6c99ae57814be750f41a1c9f7f4ac@changeid Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- a/drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c @@ -147,7 +147,11 @@ static u16 rs_fw_get_config_flags(struct (vht_ena && (vht_cap->cap & IEEE80211_VHT_CAP_RXLDPC)))) flags |= IWL_TLC_MNG_CFG_FLAGS_LDPC_MSK; - /* consider our LDPC support in case of HE */ + /* consider LDPC support in case of HE */ + if (he_cap->has_he && (he_cap->he_cap_elem.phy_cap_info[1] & + IEEE80211_HE_PHY_CAP1_LDPC_CODING_IN_PAYLOAD)) + flags |= IWL_TLC_MNG_CFG_FLAGS_LDPC_MSK; + if (sband->iftype_data && sband->iftype_data->he_cap.has_he && !(sband->iftype_data->he_cap.he_cap_elem.phy_cap_info[1] & IEEE80211_HE_PHY_CAP1_LDPC_CODING_IN_PAYLOAD))