From patchwork Wed Sep 9 15:36:01 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: 249471 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp523596ilg; Wed, 9 Sep 2020 08:35:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+/RHqm1+iiykbjsKsAEPsdAoATNh+qv6Fml1CHi7ldKxj+SaJ+ymP43QGJ7+21B9dseBs X-Received: by 2002:a92:d407:: with SMTP id q7mr1879244ilm.81.1599665726800; Wed, 09 Sep 2020 08:35:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599665726; cv=none; d=google.com; s=arc-20160816; b=vpcjzoLK7rW5GlwqHpHnBzFywleAf5ULooslxClHO2qNYq1325vqWfpHamkXWYnIQs 0pZw7moQ9Ku2u9shCJAvdD5z1DWoCwhByMj2EYgrMZWzF/d5COqj1PTEyyQI5oHxGY8/ 9C1ZpaYVfU0aCptKhxMWYTWjBDyc1eTnm7J2MBOk+mPWymhOgdw7DjrsjD0QCSAVqV0s jtw2xmc9X7X97rdGMr5JLZ0zI14DB2VuZWtcq76kTnirWr8Udsi9O5U695Yo9ROOD5XS op/E1lYeOZOexXFwcn4HiNiMRNs11YRjsUmRaZ3uX1VivnN5hLCNqT0nunruf9k4KMnS 7Y+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:dkim-signature; bh=rYpp8L7UZ3eCF2VxL/xXgRQagMSfisauHAqqMfu3WzM=; b=QE1owDM6Jmq+L8eu/a2YcReNemS4ik1HVdih4AXZJLhQt8TPD1eEk1si33Vj3pzO7h 6XhAgImEYYwblnSnJREy1fMCFpVg0Mo7d57JAauhAURR5FC351PCBg+5nuExHX9x3N3k Nyo64ZBSi2AFnamD+d6VEpO+A9lImNoWjEAcx9NkXtgwGZwvHg5neljbxtjOAGZsmeI4 bbJrj0dj+hjLko3C71JVPLNNmU6MIEkAaVmsgHCdtzBLdt0WQN58anpvIXM3S4o5XL0P wAOtH8BU9ZTE17o/9zjRMmZsVmNhIBNFaGUNW0DgUAOI44EJ2Og+wBJzueph/qGOEAC7 x3gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=Xt8cRNqG; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bsHZas5H; spf=pass (google.com: best guess record for domain of wcn36xx-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) smtp.mailfrom="wcn36xx-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from merlin.infradead.org (merlin.infradead.org. [2001:8b0:10b:1231::1]) by mx.google.com with ESMTPS id a4si2012516ili.111.2020.09.09.08.35.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:35:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of wcn36xx-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) client-ip=2001:8b0:10b:1231::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=Xt8cRNqG; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bsHZas5H; spf=pass (google.com: best guess record for domain of wcn36xx-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1231::1 as permitted sender) smtp.mailfrom="wcn36xx-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=rYpp8L7UZ3eCF2VxL/xXgRQagMSfisauHAqqMfu3WzM=; b=Xt8cRNqG/2F7Q0FBA1xNGjKN2 etEvB0uFLqEe919mEnsu0weZqGPGybFkTh5SBBpGHsGautg07agsL1nyhBBtM/Vk4LiEOZkfl0BOb mNr/Bn5vibqm7Htq9xYhgaoXX3XInaSBU5TxTmWYFQVPHl4WRbtkRic17WcFMgDq0ODr7PdlcAUBl zqG5IOkToBD2GYShXsjJ7lFxKlYdo79TMQc3cJAIHzRE22t+ifEFrbK5NQB5Pw35NSwFaFoXkwfjF kH1Seu6nsCP9H39VvtSiYKAL5PpxRzIhL+lKt8MWCg5DU+PxwImfKKqY+EqYd17uK8tkUob9sSJj0 YvphS5Piw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG283-0006Kl-Lb; Wed, 09 Sep 2020 15:35:23 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG281-0006Jn-Kl for wcn36xx@lists.infradead.org; Wed, 09 Sep 2020 15:35:22 +0000 Received: by mail-wm1-x343.google.com with SMTP id b79so2819679wmb.4 for ; Wed, 09 Sep 2020 08:35:21 -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=OT/7V+2xByy/9ST9yJhKKgW312HrOX/Xe+N2WUGIkkU=; b=bsHZas5H2PogNEUA6W0g82l8+D6alBojgldv7kndyF6dhnS7zVICdOWB2x63LbOvpx Sf/9x9WfAYKNaGD2z1Zx639CL3W6BBtuCcrciQxqVmVHWLxbYb8K7a+vdrUjacc6/9wP rP3RPbwCKmNTwjRA30X9y8akpVYQL+MEs7Nho79dkUeV8Bf+4qQcCil2LovECX1HBAWE 3Q5yfX+/oLFKwTNAlu4Wfl9fQbvQjLqlIOFVYe6A8hJy+JpEcRZOQiO6nbw6nMjxLxxv EhZbCNeHySRJMLH/3OnOgbSjrkFMZA06ifT+yYTgA2vxGgITVtLIa46vD0BzP+Yr9AqD azYg== 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=OT/7V+2xByy/9ST9yJhKKgW312HrOX/Xe+N2WUGIkkU=; b=JavPgARMXOfnQ52eU/AmWI3sVCFL/ARk1pQnqCYCIuNZ9M6QlLF99+QZlyFhP4lAjM 30jo2y89t3+sH9Sat4Mo6huGZp39FCvHe/mP27qhI8ayda9A0kq5WQMEaR7nhpmRsog6 8fN3dc8YonfNjZ/83JRjKpM3UpohzNncUEeFnA4auSLSr/z+i+MWOquBo/9v4YVy/ojF 8rfCW3nIznJ8Z2cAyb5EXlMYVsVcizxNxCkrbHkUJjplSmaVQUf60rwlIRoCy7O9zbc2 jKgL1LqC7SLVOVPN3P5R8L8yFescxTI1NpGgEeaTGbduffdZphquAuu93kglu5vKEhwP 2VJw== X-Gm-Message-State: AOAM53074fh8S0yHke6LK8Ps/t2YEJ01ho4FirsJGaqEb+5Ekia0mHwl rzfP5VsTFIP+Fw8tDqyyQgfYxw== X-Received: by 2002:a05:600c:2146:: with SMTP id v6mr3992097wml.159.1599665720668; Wed, 09 Sep 2020 08:35:20 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id s2sm4473335wrw.96.2020.09.09.08.35.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:35:20 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v4 1/7] wcn36xx: Add wcn36xx_set_default_rates_v1 Date: Wed, 9 Sep 2020 16:36:01 +0100 Message-Id: <20200909153607.2904822-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200909153607.2904822-1-bryan.odonoghue@linaro.org> References: <20200909153607.2904822-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200909_113521_697790_D057B498 X-CRM114-Status: GOOD ( 11.04 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:343 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: wcn36xx@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bryan.odonoghue@linaro.org, shawn.guo@linaro.org, loic.poulain@linaro.org Sender: "wcn36xx" Errors-To: wcn36xx-bounces+patch=linaro.org@lists.infradead.org Add a routine to set some additional default parameters associated with the V1 data structure. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/main.c | 8 ++++++++ drivers/net/wireless/ath/wcn36xx/wcn36xx.h | 1 + 2 files changed, 9 insertions(+) -- 2.27.0 _______________________________________________ wcn36xx mailing list wcn36xx@lists.infradead.org http://lists.infradead.org/mailman/listinfo/wcn36xx diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index c5e94ba8f941..ab6685dc956b 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -793,6 +793,14 @@ void wcn36xx_set_default_rates(struct wcn36xx_hal_supported_rates *rates) sizeof(*ofdm_rates) * WCN36XX_HAL_NUM_OFDM_RATES); rates->supported_mcs_set[0] = 0xFF; } + +void wcn36xx_set_default_rates_v1(struct wcn36xx_hal_supported_rates_v1 *rates) +{ + rates->op_rate_mode = STA_11ac; + rates->vht_rx_mcs_map = IEEE80211_VHT_MCS_SUPPORT_0_9; + rates->vht_tx_mcs_map = IEEE80211_VHT_MCS_SUPPORT_0_9; +} + static void wcn36xx_bss_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_bss_conf *bss_conf, diff --git a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h index d7d349de20e6..2da81d9926c4 100644 --- a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h +++ b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h @@ -271,6 +271,7 @@ static inline bool wcn36xx_is_fw_version(struct wcn36xx *wcn, wcn->fw_revision == revision); } void wcn36xx_set_default_rates(struct wcn36xx_hal_supported_rates *rates); +void wcn36xx_set_default_rates_v1(struct wcn36xx_hal_supported_rates_v1 *rates); static inline struct ieee80211_sta *wcn36xx_priv_to_sta(struct wcn36xx_sta *sta_priv)