From patchwork Mon Aug 3 03:11:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 247319 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp860581ilo; Sun, 2 Aug 2020 20:11:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwg19MOBrj7rd965tuxuAiJoxthn2xsds5TYsCEZJ3+lPaO48pWht06FNeiYwcf00ZO1LOA X-Received: by 2002:a17:906:5c52:: with SMTP id c18mr14664358ejr.168.1596424267434; Sun, 02 Aug 2020 20:11:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596424267; cv=none; d=google.com; s=arc-20160816; b=PZTphdQ2mYOdOSHPF19LfZyHV1c57s3eKSaDKD+eDfzQjL/+4Ov6SpMDN5MPEdX6J2 u1ojsqnR1t7NlaI1zGwF5u80Q/fh6r7xG2lfkVfxJa0hY61mt+1tJx6ZFrkNVItZZ0GE uTUVNDVLPddd61xdME9XEh7LP+i0+VRxOesb9F9OWgrgnb6OdKB0XcPPsnQlnm81aPc7 0I/D0mZ135+T7fzlhJ4gbotzRoOede2LW8vnlnZUHtY+6QhHkFczjms9ZQL4A05O905q SjA0YKqdA1wqWNTqczpk/UZQRyf+0MqczkqGV+8MiZtvf9OIc6xj91RfHr2FblMvUXcU PCEg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VtjPUnCQUJ2Xqmf1HBNfL/7o3eTpGJ7VqulMTNQ/Ev0=; b=UlkbX7C8dmgurInZP64YQ+/WvTTULnVCslhzFrjgM4qcUy5rlAdPCb9PIO374fzL+Q fxhEu5/rY4TAH9caWP7zj18uKUkQWuvrN96vHjAuGft2pyTGyMvETkmWZ35MALDtIRiO id11yg0/g5xPZj4vHExGPkwlzjrd083ss4XrwWKp++zD0k6aeHxS3MnC+u3GQg+A1P1K 8q2GRzK9KloHPvdGEEYQn+AicfFm1g+e1DN9S46dBjHS1i0DfgmLTw1C73i3jNDGDBB8 59FmxJzZeaBMElee6ov4Xj/YtLlzLbOAqxaypjmnLMDG36RYMuAm/q+/X2dv1cYoZ/Iy /SgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KC6bgnUX; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz19si10235393ejb.34.2020.08.02.20.11.07; Sun, 02 Aug 2020 20:11:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KC6bgnUX; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727118AbgHCDLG (ORCPT + 2 others); Sun, 2 Aug 2020 23:11:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727077AbgHCDLF (ORCPT ); Sun, 2 Aug 2020 23:11:05 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86452C06174A for ; Sun, 2 Aug 2020 20:11:05 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id 88so32762332wrh.3 for ; Sun, 02 Aug 2020 20:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VtjPUnCQUJ2Xqmf1HBNfL/7o3eTpGJ7VqulMTNQ/Ev0=; b=KC6bgnUX94nR12VYj/AbBBrbijB1bxi+D66PsiUbvfpTkrjg4Hhe7I1Pg20yJQvE5g 55oSJ8HXXp0zG/Jso1ZfJf233vNTiHX+Sl6MqGfGhHGFTl84gUpk9ve3n72ZRhEEarr8 Cm9mQV86Q6/NE9ZdAH5WyOHtEzVOeFGEsiijHiKSwh8hK8EL6Mwh067fJ9u3IiSRv9Cs bBxEQW4b0CDETjtCYsku7a8laxPT64EKI982qdvxoSmtcYA/p1/0DGI2gpqCLJsu0L4x yVLce1lf1Ebuv+lGvnx16th/cOwc7NatSWcSe4JbHGCiYWCBZQZxSypTA9v4i6I/Nvvd WF/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=VtjPUnCQUJ2Xqmf1HBNfL/7o3eTpGJ7VqulMTNQ/Ev0=; b=t+fQlC3wqsXguFeZ64WAtCVSWYxiJ48Webg91B545eD6ENvLaqGYWgYz0mCupsylVy 8J/Jannovvof17V3AnEUASz3HYNnlE39/hMeWMu5xj1I4YdJ+Xb1pxPX6E/q5jSasFzK FuNs7E++79R6/Nn6EYBmggp8FUc+GLAvmLHCb0EQCqZwv6WahFC0Z7GHniBxf6co0+wJ daDEbDOIOhigXGP8XSK9r7LSOhYRhIhCSGUP7MYIJq4gEdjbI/sPC3NxI4LsrpLfCGmI KfUVTrLskXzn6Pjn605niXiIKc4YGs+aG+oNBzbwAztKAemg2G7GDf/vtTKbZW6Y7UIa Hsig== X-Gm-Message-State: AOAM533kOh//51rIgiD57JTjM2mZek8lQFRyUwCPSMVQWnNrQYYi/o9s hnEBCm0zvFbNoIv6ODZ2yCIjkA== X-Received: by 2002:a05:6000:118c:: with SMTP id g12mr12882764wrx.212.1596424264279; Sun, 02 Aug 2020 20:11:04 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id q2sm21956857wro.8.2020.08.02.20.11.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Aug 2020 20:11:03 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org Cc: wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, bryan.odonoghue@linaro.org, shawn.guo@linaro.org Subject: [PATCH 16/36] wcn36xx: Add wcn36xx_smd_set_sta_ht_ldpc_params() Date: Mon, 3 Aug 2020 04:11:12 +0100 Message-Id: <20200803031132.1427063-17-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200803031132.1427063-1-bryan.odonoghue@linaro.org> References: <20200803031132.1427063-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Adds a routine to allow setting the LDPC bit for HT parameter passing inside the version 1 STA parameters data structure. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.27.0 diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index 2632ea2ad9fa..8bb24fe9bde3 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -188,6 +188,15 @@ static void wcn36xx_smd_set_sta_vht_params(struct ieee80211_sta *sta, } } +static void wcn36xx_smd_set_sta_ht_ldpc_params(struct ieee80211_sta *sta, + struct wcn36xx_hal_config_sta_params_v1 *sta_params) +{ + if (sta->ht_cap.ht_supported) { + sta_params->ht_ldpc_enabled = + is_cap_supported(sta->ht_cap.cap, IEEE80211_HT_CAP_LDPC_CODING); + } +} + static void wcn36xx_smd_set_sta_default_ht_params( struct wcn36xx_hal_config_sta_params *sta_params) {