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) From patchwork Wed Sep 9 15:36:02 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: 249472 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp523643ilg; Wed, 9 Sep 2020 08:35:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOCeOmLaitD9oFwBFtg8vbpelowiblY+uSnYe773mLJhJfB5v0fJwVFwNE4LGZdN9eLHCK X-Received: by 2002:a92:b109:: with SMTP id t9mr3926605ilh.191.1599665729818; Wed, 09 Sep 2020 08:35:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599665729; cv=none; d=google.com; s=arc-20160816; b=K2cCh5LFYcmRtd4bC19p4PP4ZUP4XEKuGROOCbfu6zl25qW4m5RVyv0anLs8Bg7xwD 8nPUFPzW14h30bMfsqbbiJ//Yj4azUkwyT5kkLNtPcrQZ5yzE61beL6ik3j7Zv6E9ByC +tKAapWuXx0JrwaLAIjpzn7h5aAQ4hPaCY7vx8T+4hQP79GBhBz8Re3z05agFh5dn4mi p5ujv1jujqFOJ2YKsfv9Y+CoViBhi0VJDTuPMjEj50UPz8YfKZhE5rw9TPxFs6nNIing 0LK2oS31Cjk9aBwDdy10F50dVpVYamwcbvanqPglxfuC1KML5b6DEGidAaTgGVPmm8dQ x8vw== 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=M1a8FriXqs3XJjafX+h2cYWgygRO9V/OqTsEwiJMg30=; b=R3xBmGNPADgHw3F99lJQw2kLz7HHLhiwXfOPHli/p8d0J3NYyBaAXPDRnPsKCznkh7 U6JPipaqH2AfD1Njhyf9+MbO9PL2/pDfpXLVjMX+PQLnR+L476uCw6rA0jFA1Ro9hT73 TlTUikZB/zh/fShRzqMpk0PgDMdj0SdG8shIfGD3btJCMkGfmfoYfZtutpFAj9WMViid 8oaaxL3TehYfZgckEIw7bBbjyQY9WoiXvxuqA+yO8BF7ZtOrFSpa2cTMASLCkFblGn7x S0OTdHfQ13bdOojCboiCZdcCky5dS1JOlqm6JK1glocbqRjzGW/hOz1LBhPgmCmz2uO+ gDUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=JenEEXnK; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=TcvelvCg; 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 n2si2254866iox.11.2020.09.09.08.35.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:35:29 -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=JenEEXnK; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=TcvelvCg; 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=M1a8FriXqs3XJjafX+h2cYWgygRO9V/OqTsEwiJMg30=; b=JenEEXnKQTCQqkHAeznfgSy6K QjGzeYYwb1n9+glPCpOsbyzxKFmsPAgIEpCnKrmONFGigEg6xYOfmcNPod8eQnpUmb7L3RCt1utgr Wwpg9RTd5Mvm06bEoYCYX4OqCnhc2Klby3tHRwDQrxLRGU63bXBkSJ4DMWkozQtrOpZIo/10k9FYf aIUZlj8AO0U5YBIShyO/4fExLgk51RUjLLXHhgqI0qziTeOq+6u1DfafjUzY8j3zfgdJB+uQB6Kbv PC4cfz9hDvmSTObSVHRj5wh25bVKoJZ85VO+6ovml5w+hUcQp697+CkxpQdbMk34VL5BEnYX+m7L+ S+sx/9h9Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG286-0006M0-Ab; Wed, 09 Sep 2020 15:35:26 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG282-0006K6-HF for wcn36xx@lists.infradead.org; Wed, 09 Sep 2020 15:35:24 +0000 Received: by mail-wr1-x441.google.com with SMTP id x14so3418452wrl.12 for ; Wed, 09 Sep 2020 08:35:22 -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=XRk+Q9bEx9jVxUktPh3Y718LsTPSVLh7wgm2w67dQZg=; b=TcvelvCgJwMqXFAmH7XepZ7yjnv4D3CBrQijZp4eWMuzGSj/4L853SV8BCJyqnU1sn k2AIp8mV5GWZvv2HWN8NziCzWxVHENTB+A9ZxGMY0FWSRM8Vs2H2ST/XJ4MihCeYCsB+ fI1wwfw1G5oa4ud+Dsg3lyzu5xiPZH6UTwgsxgZAEEs+UiBw50guYEUrDbmwRN057nSZ Z/VWJn4Psngsk51f7JU+vuqYqB4DRxtNloLlUFB+eRT+Xs6bC8aznWdeRnZ3jMXWhJmP pDN+S0CUsjyqvo5arv183dMW2eieV99JpKW7O7/M7LjTb3uHWitXk1ga8t2S+9AaCxJf RnYg== 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=XRk+Q9bEx9jVxUktPh3Y718LsTPSVLh7wgm2w67dQZg=; b=P8WggxoMyKSe4mvcGY/AYBJIjKIzGNp5nB/4NbfDxIi/YpMLAw64TJTvEANtcwN0xM XMXzBnW10gimfZimr01rueCtVL+Al6kIqlbYhdyLxaykmKumuQ3OUQTbQdjitYGTymTq 9spg5pvYPaNFF819RYFcXoHyVJ5sMp7YED97l+jcN2v4zL0/3sEifKTSLwnGSgyXLGOC OdmG9gNZbY/yJNjN9FUgRBH+k0GTDuPl7ljSMhQZDZ4uzmrq0LIp+96pKKv5mefs9+Bc Ux9CDhxWpgJ1w67vj7/fJ1Pr3g6Tt9wVQeKTa+TN763olg1jU1gDosaSErAJazttO+wG YfAw== X-Gm-Message-State: AOAM5317USFaRsgm9qsdBMoAD34gnjiCpOgFS9esxCvgO2lgkRUCbYtw SBeo22VSjaOAjtRJvnc/ylDbnQ== X-Received: by 2002:a5d:4949:: with SMTP id r9mr4646209wrs.27.1599665721708; Wed, 09 Sep 2020 08:35:21 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:35:21 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v4 2/7] wcn36xx: Add wcn36xx_smd_set_sta_default_vht_params() Date: Wed, 9 Sep 2020 16:36:02 +0100 Message-Id: <20200909153607.2904822-3-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_113522_575768_0F8D7237 X-CRM114-Status: GOOD ( 12.15 ) 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:441 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 This commit adds support for setting default VHT parameters, which are exposed by the extended version 1 STA parameter type. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 16 ++++++++++++++++ 1 file changed, 16 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/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index d5ca9907af86..bb31c4d4d9a8 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -190,6 +190,22 @@ static void wcn36xx_smd_set_sta_default_ht_params( sta_params->dsss_cck_mode_40mhz = 1; } +void wcn36xx_smd_set_sta_default_vht_params(struct wcn36xx *wcn, + struct wcn36xx_hal_config_sta_params_v1 *sta_params) +{ + if (wcn->rf_id == RF_IRIS_WCN3680) { + sta_params->vht_capable = 1; + sta_params->vht_tx_mu_beamformee_capable = 1; + } else { + sta_params->vht_capable = 0; + sta_params->vht_tx_mu_beamformee_capable = 0; + } + + sta_params->vht_ldpc_enabled = 0; + sta_params->vht_tx_channel_width_set = 0; + sta_params->vht_tx_bf_enabled = 0; +} + static void wcn36xx_smd_set_sta_params(struct wcn36xx *wcn, struct ieee80211_vif *vif, struct ieee80211_sta *sta, From patchwork Wed Sep 9 15:36:03 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: 249474 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp523663ilg; Wed, 9 Sep 2020 08:35:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4Qhih1lTWLK1VeNrQvRS3pPu0HHINZ4Oj7sBAZGI3fq+d0XIvcp1X1XPxFbm+RK3TueI/ X-Received: by 2002:a05:6602:1602:: with SMTP id x2mr3907803iow.22.1599665730530; Wed, 09 Sep 2020 08:35:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599665730; cv=none; d=google.com; s=arc-20160816; b=DXd6wg0nqeP/aXMt/Qj/2WJxqTMskVoh9uqMqgKSnN87QI2Sae2KKXhoK56F2C2RTI Bu+ViksKZHEmvvTidx6tEi8aTBM1oain3BBq5clKW24q23oMJDSXjEG2TrMiFTEvI8+r qL54lwgtDDPmzf77pPg715PMB6ZDuSC629Zym4BlPjfORcy/LBzEWZslkfTlUJ4V5Ybt BSefShFWOtoVZKnWwRuzBLJyTPYdUsNfkh8xpHQ7GYMZvLpfbFzlTFEu75KlG/vMFe7r ZRjS7ej/iZgp3zQuhZnL3NqJVCRS970qPfn0J4484BeLUbnRtkEMmBF5hwg+06VJnYQr haCw== 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=vNF8a1DJjFgP3RybtRwhN0d3/D9+PJ5WTJIHuvFRYic=; b=EML0w74F9KKKtDxvdWuThvPsHPROvogLI6SgROikCkYay/H2PXEnOm8jAGcG6KJeRE 31YQqhy6+BxpdB5/KHyVKhcd4YabnteQmb1LsqEq34GQhcTLuHsoX86x/gzFM3wWsrN7 sWb1oTEMsl86C4KDIg8vug5QmKjOB8tZFtHgTzWg02PXylIZi4vYIYrj1LvXfXq555Px B2b8GX6u5QRHHzgNT0oFaPHSebfeZwx+jsFn8B3UtFdM5S5wdxyuJElPY8L8wCCH2srm SZ8+av1kzVcw82FCcHadUzcAcaP/dW8bF16SPYk/35DYg/6RE3QlLfi/aP9E1Mi71XIq tyfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=1kdqMW2c; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=mrzHj7Pk; 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 q5si2086483ilj.97.2020.09.09.08.35.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:35:30 -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=1kdqMW2c; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=mrzHj7Pk; 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=vNF8a1DJjFgP3RybtRwhN0d3/D9+PJ5WTJIHuvFRYic=; b=1kdqMW2c/msAWhLlnIkabiTQr eu7dgdT8thJ4NnjNOmWPlWJgn857s8t5rXUOXPbBds3grb75eZD0m8S2zWl2Hjb0YOy15S5USHOE6 NZ+yWkVur/egFtyjtXBoAWwdCN4QHnKCyYNW51NcyOlwJpYLLiSKf9tRbHKEfnoeiMg89XzF79mfE qmAG1ovwYbLj9MPUb1u/skuR+v/WHsDeOEAfjtVvgbbORdoR6vN8U5HKw8VbNHNdMRs+InzWK9HWp nAO7OAHctqr/sStaPKk1iCRQl/BznibPVdXY42vKxQQYNwq7nvIOvP8aMRmeOwVR9Pzg9XcoIiDM9 rhlFrLr3Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG287-0006Mg-7t; Wed, 09 Sep 2020 15:35:27 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG283-0006KW-IW for wcn36xx@lists.infradead.org; Wed, 09 Sep 2020 15:35:25 +0000 Received: by mail-wr1-x441.google.com with SMTP id t10so3477633wrv.1 for ; Wed, 09 Sep 2020 08:35:23 -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=YvzZFSwrpgxQ+WGjQnmFyunvxfM/MsB1Cn6EiHCvmSY=; b=mrzHj7PkoKxaWbAiMRcoNDlZ2GZ8PDAayUNOVzfyIYiPaWME9V0JZp/E+cb7sSCYTg ICEb8H5GobNU/iI88f8jZP3S60JNE8EFmAvmBDm/AuWk022IU1Z/BUlZCtd+xCyji52o 92kOq7Oo9zF+XzYpwm0guUQZG/dJLXzWHKO7S32hmcJbu8o1V3qTcy4y6TEsojREDv/2 jOVoJNZGmAdYC6e0BFUB97mv0g7f791yygtQh0Jte+cFmS4+AwCfyfzwm2RTV+Gq5CA0 QhlGPfMRcgAd9+IZ+yU2iYsc/Z+eky6dToSGZ5GV3rp5uqvBX5blm7xlv1SY01sAgthv r0GA== 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=YvzZFSwrpgxQ+WGjQnmFyunvxfM/MsB1Cn6EiHCvmSY=; b=WvTK25FbScbLRDMRSRyBVBGpaIZZdHlMgJ4cyAox6yP7mnfPA2hcIUbOc5GQL8O0dJ vaUdF/IkIcxE2VqOtA4DkHol1UuATjMDAFpT0bnJiBhAdLwTes8pG0GkyuqZ3J+6Zewh QOWoBrb0L+sMuLScWH2vCsCk+j4jNi2yjDPLSOynpy6/2sIfY2xg2G6e/QR6rrDfE7Wm H8XN+Qkk28MYib71z+95B5GTapagBBYIDboXirWrc9aV257XTUbFOOMHXnBS9ODZ8eEC lDVE2e2vH/Xr30hZuDKPPGyn4MUMx+EqKGzbgFJKUKxS1YQK9oq8K0WO2rTUFAvo2Vlw wrsQ== X-Gm-Message-State: AOAM531tKsWyleiQtw80U7jWX6MWg2b+KxXfsJhFPDpnOLJXnIgsDt7W JCZb/jrT5c+bM2Fz5aknQqSHqA== X-Received: by 2002:a05:6000:100c:: with SMTP id a12mr4731941wrx.115.1599665722734; Wed, 09 Sep 2020 08:35:22 -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.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:35:22 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v4 3/7] wcn36xx: Add wcn36xx_smd_set_sta_default_ht_ldpc_params() Date: Wed, 9 Sep 2020 16:36:03 +0100 Message-Id: <20200909153607.2904822-4-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_113523_619461_0ED5854F X-CRM114-Status: GOOD ( 11.24 ) 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:441 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 Toggling the LDPC enabled bit is possible only via the extended V1 data-structure. This function provides a means of setting the default depending on chip-type. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 9 +++++++++ 1 file 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/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index bb31c4d4d9a8..3f57acfe11bb 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -206,6 +206,15 @@ void wcn36xx_smd_set_sta_default_vht_params(struct wcn36xx *wcn, sta_params->vht_tx_bf_enabled = 0; } +void wcn36xx_smd_set_sta_default_ht_ldpc_params(struct wcn36xx *wcn, + struct wcn36xx_hal_config_sta_params_v1 *sta_params) +{ + if (wcn->rf_id == RF_IRIS_WCN3680) + sta_params->ht_ldpc_enabled = 1; + else + sta_params->ht_ldpc_enabled = 0; +} + static void wcn36xx_smd_set_sta_params(struct wcn36xx *wcn, struct ieee80211_vif *vif, struct ieee80211_sta *sta, From patchwork Wed Sep 9 15:36:04 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: 249475 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp523671ilg; Wed, 9 Sep 2020 08:35:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKnVEaexpR3hV3QY8kQboV5sLgqcU5C6NpGZV0OZDMhEy35fsQWgkD7DwigSF4QCaqxgme X-Received: by 2002:a92:4001:: with SMTP id n1mr4231273ila.69.1599665730859; Wed, 09 Sep 2020 08:35:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599665730; cv=none; d=google.com; s=arc-20160816; b=Z8gq+7Ki4tW2ldBJ3nKsa5LNe5ZZj16ZNXJYyi6dQQjyZfIK77TmxmNsUjnc7K4Ai4 XPPGDAYlf/MDmQ6S2LoAVQRqU74M9MQmqHyhGTxHG8lpRRGoJ6D9x4n2C6PsKC2OFRRW 5+XH+HY4Mxcq63WzFyFepmrp4KoB5WI+yc/fT5FYMchv3Hmr6+7SjJYD6/IrKHKwaTLp XGlXlzHS7AtrVDgEMCjsvCU6ccs4X7+7TLma5W+fBeTu5xcrKsf+QIq0Tp3nfJFhE54W l1esIb5en5E15X4yzyclLFkwR332RWi8WgejWIM7ws4h/j2nFex6JQ/teqLZWkgEknZR 0MSg== 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=lzrAu7tVpkLLeh6cP2kuuoTAkCI97ffnY/3EfoVpLz0=; b=PVYDwQfPnKICxjv3d4nIqMCx8Yl3IThCIWoGw2+6ZZIaK68+cXAXtfwZbDJoIHv1w4 IzLEaUYuwFPI8R6P5083P6BjMUdIPrhFhDq31LIcZqjYbeMYjRK53a1m1lLgyl+DPF6H 328W2XWQZ1vZSROTvyJ0DrTWWi3lTSrzcq2RY0PGe47yUaIAgTRh469JDl1iHdD4bsGS Gs4B6koIWPeggDVK1jgYtrKQeUb0jBQiM5RcyeU0cAVxbgSxEZZbYdII5WPkMHDa2S8d Iv1+XGIgEsuWn+hPC9r4q/DU77LMQMjuL/v2Rgl03vWhDjEVk4XyINLacWkgut/QGgUB qegA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=iwxfkQ5Q; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="aQ8/qJTn"; 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 g12si2236162iow.85.2020.09.09.08.35.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:35:30 -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=iwxfkQ5Q; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="aQ8/qJTn"; 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=lzrAu7tVpkLLeh6cP2kuuoTAkCI97ffnY/3EfoVpLz0=; b=iwxfkQ5QFoS3uvLbCcNXe9EMB o6JrCDb9Dc2YVmWBmeSJkMV8NORKSCR8acYgg2w0uOn5em2VBxsu6G558/8qb14RQp/4TJflNJU5o kMf0IOvqkMX239HDNPYVLQvAs5CP3zf8pNb/XF48JHiUNygVSS0sYTXQojacr4QA4+0fQ9y+3awtL mCpn6Hf+29T7SxTNT0kv5EeeEFwP7ywOGhflqACcWeEGUcEyxvOFDzkAK5GrJ7r4AHMpfl2DTmkMc CJt2at5KJLuowWo90yZhRz1pYL3cKlhO1q2cCzHpXJQYyiYdqTM02d3bkuciPWppcIp+Oi6PXkG5q eeY4z+V9w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG287-0006Mu-Ls; Wed, 09 Sep 2020 15:35:27 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG284-0006Kv-Py for wcn36xx@lists.infradead.org; Wed, 09 Sep 2020 15:35:25 +0000 Received: by mail-wm1-x344.google.com with SMTP id a9so2833900wmm.2 for ; Wed, 09 Sep 2020 08:35:24 -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=0kUBjvvwl59BwNDewkzvG1ZSSZyLN3Mzs35/KuiVmWA=; b=aQ8/qJTnIosWf8oaUZYlsVXTXol7ua5ZbHXFTI2Txf0+d87Iak0A0pgHxBuBO3wR6v 4jSFPyDL5RG7JZ/4F3ILmdgo4J2pJtVeTUuo/np/+tYy2acon7gLX1Vczazf2bIjUUQM 2aspNUTnkPsshWET/2uiWme4dlj4LhZOmwgXcnS9cV/lQfPw8JuLEfmz34tpRvECrOo6 OENWY6IdANrg59qeUhih4d2HHK+VasFrft8qcO1DgexWNK+3pqtmhvnBJ2g0OaIrIp9G 9LsZ+vVTZsmKZUBg0YBKhlAUvUjUw4jGPvSbaKHTWP36e2F/JeIIntK2ribRNG+w7oqv UDwg== 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=0kUBjvvwl59BwNDewkzvG1ZSSZyLN3Mzs35/KuiVmWA=; b=t538WwWE1tKjCuny10I/+MP6fQ5TCxA1n7qKPiNi/TZNZqRmD4HrnmKQUNDJRlfoqR YoR/eI46jmXo8kA4Y60lvu0Jycawi1PewBySaStn17HnJk5S4Pa9C93ejZv3Lfs/9vp8 s9UTeiiPlbpZobueLEpfNUgR16xZu31SckR+KhHiLdNVWaFXRIFMhW4BI3TGHF/tip7e wp88mmPRm0z7RIP2fhnv/0xzBsCjjlVJpOFC/qwpg+e3eSpkcboKB42AkZr0QhvjiGxl 8erLw7O1PqeX5d8oW8GQ1iuK6k9bpQRKcuUY2nLq/duFTJMF8MWpYjaAhgHZI+SPUk6h ySiw== X-Gm-Message-State: AOAM532vFsk+YX4qg+9trP5oh79ECn4Iruurm/oX6EO4ltLBcf57Xk2a RvKAOeM2bXQbxNbYWIY6HFfLew== X-Received: by 2002:a05:600c:2257:: with SMTP id a23mr4297084wmm.102.1599665723762; Wed, 09 Sep 2020 08:35:23 -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.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:35:23 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v4 4/7] wcn36xx: Add wcn36xx_smd_set_sta_vht_params() Date: Wed, 9 Sep 2020 16:36:04 +0100 Message-Id: <20200909153607.2904822-5-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_113524_859183_B2A50020 X-CRM114-Status: GOOD ( 12.67 ) 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:344 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 This commit adds support for setting VHT parameters based on the declared VHT capability bits in the VHT capability structure. We cannot do 160MHz so VHT Channel width set should be zero. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 22 ++++++++++++++++++++++ 1 file changed, 22 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/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index 3f57acfe11bb..a563a30c3a0c 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -174,6 +174,28 @@ static void wcn36xx_smd_set_sta_ht_params(struct ieee80211_sta *sta, } } +void wcn36xx_smd_set_sta_vht_params(struct wcn36xx *wcn, + struct ieee80211_sta *sta, + struct wcn36xx_hal_config_sta_params_v1 *sta_params) +{ + if (sta->vht_cap.vht_supported) { + unsigned long caps = sta->vht_cap.cap; + + sta_params->vht_capable = sta->vht_cap.vht_supported; + sta_params->vht_ldpc_enabled = + is_cap_supported(caps, IEEE80211_VHT_CAP_RXLDPC); + if (get_feat_caps(wcn->fw_feat_caps, MU_MIMO)) { + sta_params->vht_tx_mu_beamformee_capable = + is_cap_supported(caps, IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE); + if (sta_params->vht_tx_mu_beamformee_capable) + sta_params->vht_tx_bf_enabled = 1; + } else { + sta_params->vht_tx_mu_beamformee_capable = 0; + } + sta_params->vht_tx_channel_width_set = 0; + } +} + static void wcn36xx_smd_set_sta_default_ht_params( struct wcn36xx_hal_config_sta_params *sta_params) { From patchwork Wed Sep 9 15:36:05 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: 249476 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp523695ilg; Wed, 9 Sep 2020 08:35:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPkUULoQQ8fakjMyZju1yh9ByZYWUYnmLa2MMTR9V6Js5952PBjTNvXsPLRioizgx8k4lA X-Received: by 2002:a05:6638:d0b:: with SMTP id q11mr4397874jaj.68.1599665732346; Wed, 09 Sep 2020 08:35:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599665732; cv=none; d=google.com; s=arc-20160816; b=Nk1uga5NKBBUNFCw7hrPUj95cnQMNnI/Dqmf2bcIQEYqrDi092FI/5svr3Pxbcrt1U wpZlBXuwGF614Jsvtkgt+fE3BXv6ghrApU54dsk1Yj4vuZMWubxqOHPsjuFheEUOaNDk 9t/ON0tX3e9u5LZuZyHzvCyvYl+eXmbkpyEGMqMhPohqhoAJMJyJH9af7Flpn02KAxXQ 8Uq9X48jfIpgCqX94QKvxCUF5MSREp6/6gLzNd5UdV3PCIqIoOinDSZOxkdGrdWgDSdi yrsSdcu+UmDIiO4eX1P6EZzbnAFF81664fecY0ngBlcIKU2jA4x26sOXcvwrruFO7qAM /XQg== 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=7mNMrvRHusLK5PKvS4xfE1QIDKkj1K+A0fRoc9pJfx8=; b=E3vatsAQgMMfjsmI2beKb3NQ3EMGAG5oojNUDK8Ue6ZqD2brfK8wxisBQwO7p0s+h4 IiidhxgvKoGYJRmcKVRPGOKk9puzogSu+xUfCEGGMQBzAIxiIhxsjPGmZAOBIa3M5Cuq GzUVdIc9pd7f6maznNY0YiJs3Rrv+PDpRxi9ToHDc8v0ksLVf76/fKzvv+2sBb82lzwC E0QymIna5ev/6XFSorEIwuC8J59dNo4hBCy/lNDWsDSu8oXQwFXZHDItdW0oHvg1QPvG /xMSx0/YN7gayYEdva2NGAjyCauogNth6hLDli+pVGAq+B1bc9+yuPweF+pUB+/01kXR wx3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=JSEVhNuW; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=eKRhlStC; 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 l11si2230448ils.85.2020.09.09.08.35.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:35:32 -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=JSEVhNuW; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=eKRhlStC; 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=7mNMrvRHusLK5PKvS4xfE1QIDKkj1K+A0fRoc9pJfx8=; b=JSEVhNuWOOfLDSb0j1hrjy28M 7AXOg+B8Bqzi+92o3LGic0VjpuJd1XrWsUyNMrV6uH+xxMT4SgB9ZG+LdD48kVbWCNSt3TaqdP8cB 08X/mMSjTr9zHDIWEU/czIQDUy/5V7pGq5GAS6JI3Mzyukevcvz6ziwPmNcMXR5soIXMU17Umotbb oNl4zGXe2E4zHeVsZJyBvexCJuO5aEgXrgtCzIDVwdvgdJE1jfitywnRtblkMHnVP9e+yl71RR1FD Tk/ufDY8XhqeQcXfPnzwz/BuQhxAvuUdg+9IbFEqHTN4S+NGtiJaqL8avlh/gPmeohinRq2yILarX MTtPKbV8g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG289-0006Np-Cj; Wed, 09 Sep 2020 15:35:29 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG285-0006LV-MX for wcn36xx@lists.infradead.org; Wed, 09 Sep 2020 15:35:27 +0000 Received: by mail-wr1-x442.google.com with SMTP id t10so3477745wrv.1 for ; Wed, 09 Sep 2020 08:35:25 -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=FIXgUDCAw5H+6nCd7qyCvsfy5qAJIAQL+JK4lt32D9s=; b=eKRhlStCkuMr4/tC8YCMRh8j107aOkvK4lTslY4lHfiqyORjUsWw0n4xOrCbIeLPia ld3FttlmTezZROqvALiXJ/c7uhXy15aBv2sNwszWS55pd+M0U1YlQvgBQlytYGbXvIqd c7xin0waA46/jJbIKSmuWVMh6H8u2l6PkVELk9XpO+dTxjg8rGdXt6ZcdmFRATcrI9Gy NGc0gajAN9o2SlQSIh2GZLRvYcazLUU2HefEv7Z5H5/9SvcGPVvpyQZTrhO8AOqYdaKa juXWNt1e4HldFXPKB1xop5hwi8TqFrR4BorIzNGuSzo5yqUjNC0lIw4qO8KIIU/Gy2Dx YUmQ== 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=FIXgUDCAw5H+6nCd7qyCvsfy5qAJIAQL+JK4lt32D9s=; b=Rz/SarhjMDKAUemco/WUfQxcRr0U+ai1zVvgWU1JPYPHzAKHnQpE+F1wYiqI9erbZk fsSdrB4ORl5QTwIENfaJkptBeyjZYxSsBvJtm18B+5mFSj2h4DoJNNvPkZurNO9r9Jum IFYiY4EM6EVVy59VA8SJaIR5ZkXbv/7EavHOU1vwnohrJ7qM6dMKiakJAR60ZBzE76N+ 4+6nDYYa0nmKIyVaPzutktut/s8M+vgwZEV4bupufVRAfXnjamC0WPFK2+0AnATk0p0i AXvwJM2dWWXWwNemBFscYRfucFXcpcijKzF3dHOGdCQnpMhma01PCz0SSdhV6gb66Zgs ZtDw== X-Gm-Message-State: AOAM531Gtjg49v43Lwt3Q16ZhAhHk+9phRNpB1gXAOPKGJBwC5Y/Cp/L xq/6yBfnbWLbjuiZPblUFUFuVA== X-Received: by 2002:a5d:540e:: with SMTP id g14mr4778533wrv.148.1599665724737; Wed, 09 Sep 2020 08:35:24 -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.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:35:24 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v4 5/7] wcn36xx: Add wcn36xx_smd_set_sta_ht_ldpc_params() Date: Wed, 9 Sep 2020 16:36:05 +0100 Message-Id: <20200909153607.2904822-6-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_113525_757914_6BA5F6F1 X-CRM114-Status: GOOD ( 11.42 ) 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:442 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 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 _______________________________________________ wcn36xx mailing list wcn36xx@lists.infradead.org http://lists.infradead.org/mailman/listinfo/wcn36xx diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index a563a30c3a0c..14af98af42f3 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -196,6 +196,15 @@ void wcn36xx_smd_set_sta_vht_params(struct wcn36xx *wcn, } } +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) { From patchwork Wed Sep 9 15:36:06 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: 249477 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp523710ilg; Wed, 9 Sep 2020 08:35:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCat4Q8AxLE10Hs0/57t4dQ+XRM/MsEICSQSX4DqYgMwfn/z4P5CEgyc5+AvXrJYlS05ml X-Received: by 2002:a05:6e02:bc9:: with SMTP id c9mr4015748ilu.150.1599665733648; Wed, 09 Sep 2020 08:35:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599665733; cv=none; d=google.com; s=arc-20160816; b=C0/DoSp2XRXNEtvG2uKJyigFGYh+j4boyf749oL/oXtQrPb2ZOROYi49LoFj3vNMwK Qkpdf2axGPAjV92XIvcX2z727hK8iRN8YCZRqFRRisN276RQf34eGy851d9TcjuAWv/2 c2VWOnNsV7K30torxe28gwExd3LZfERmMZS7maKJqGdwQQz8kbpalHFUI1pqMUhFo+ji xaMzGNs9WUGfGyqvkNsfMXe6SvAsfSh7KyGFtuAuC25cEvzMBb0UVfmUtQPZgc4ngagY nfqbUBf+v6PJ44bQjNRcNs0bqKRt/IJu4TmTiub+fyJX25uDpnDWxL2vLVZbCbK4Dadl rUSw== 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=OoF4O0dmsqj6ZQGvcGV5NapfAjtfjHkgwCWxRUl4QcM=; b=H6oOe20/vVL+43KIZ6aTaFkpeY6fMo65429vo6ksmIU4iK9B3nCKkpjO7PU0B96LDW lEFUyLr1kBOpGXM3xnETT+5+6S0Vpw/JGLxDqVz97SgqEwyJTAYd3ODiHU+eZd0NrXq3 /WSBG3jgLyieDxmnDoxcVpSkDD2av+14yL1Q0keNYXB6fhey44ijzVVP/syttoq+RUO9 YD8y7A3zhB2BmwMVkzkrzWSz6t979ZmqBvquXaRdpBySfyS7j8XX/EGrqg/aeD/gQT2Y OWnW0coxKYwolqA8lMA2jtqZKvS73dT+bS2XEkmjrPhOc6U0d6iLRDMqeYp0XZmEhnKq FMPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=qUFeMx88; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=sNE+b88z; 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 i14si1916199jaq.50.2020.09.09.08.35.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:35:33 -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=qUFeMx88; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=sNE+b88z; 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=OoF4O0dmsqj6ZQGvcGV5NapfAjtfjHkgwCWxRUl4QcM=; b=qUFeMx88AR6hZS0IDyQYjR3W5 CnySGsjsjjLWSuzJxG4ZSC3SWHjn2/8RV9Y23lEatttEMDpaVWjDGLR69GWfT6z3G5oFmEk9D8887 gxoh/XZIca1OMuDUgpLvLXtfAB/DwtpKfLLEm66a3l2sYzeILVs/emTec2xIcNh6Eb8oXY7LtBBRc hdD6eqy/jg4GDFiYzv8FIBK3MS8V2fLio4+z6qrXPb4th4UiaDQogxBGyMbaRaXfuxvTv3kz14kiw dSQqhb4sMuX/IpXf51ND92gAuticboe2fboXibpIO0kKvHIbVHWVPgZo7XxqsA2sBaZgIUqv5YswL bahC19RAw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG28A-0006O9-1f; Wed, 09 Sep 2020 15:35:30 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG286-0006Ly-MH for wcn36xx@lists.infradead.org; Wed, 09 Sep 2020 15:35:28 +0000 Received: by mail-wm1-x341.google.com with SMTP id b79so2820046wmb.4 for ; Wed, 09 Sep 2020 08:35:26 -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=Z7Rx0C6d6/7/5yg3uB9kdCw4d9C0cgfMEPvtmg+zlZY=; b=sNE+b88z3vCssUNGhpsNU9MhqJzm1UaC03/QDnRE3Y22nZjT/1Amo6qflrLXB15Otz q41O3aV10K2m9xekepIcIa6kiViE5QwUJtKCjk7RWf9bsUamNWyAvLdnuV6PEKjFCXaq DAZlUlqQ2WKtOhnFAY1J/lTgUGzcI5Omw1opccMqyh4W4rvXlEIRiB0Q8+mD/kfKiO/7 Kaq7lqwsmtLUGXviTuVdU2S+SluDGjK7k5XbjSGn+HuepKXAeSopPZ+6gj+aV2mLOIBX cdubXu9zNtDMrANpXSICedKOdOZl02PS46qlS0zvl/uH+kMmztYsIhHrcK5xddxNHrRA cSTw== 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=Z7Rx0C6d6/7/5yg3uB9kdCw4d9C0cgfMEPvtmg+zlZY=; b=DgRHnHb3A+fjyUTCXhcIE6Q0T9oP/KqYrQ/BqtwfM+hpRLkTnLWLc1cPq5hQ2ONdpQ 2O9kvFR1weFYwdiLXIdacGHfCj701jhob716sKbLV17vxAgsbgtaL5SnYbKMy1CCCUYA OJRRIaOMsZTxnQcsEVEFFeJXLQwcb4KXqzv3G6m1BYIWqVifp864Ip76TrgHpJg2WvKu siByM4Ai15XF4PxnXA/XAgaAqtBRPv3dcGwLMjfMtPB2fIGytwrmqHtridytGMdlRNHO S8H7e8TQEMVAsmNmIyo9ibmOUsNnYmm0yPMbHGz7F2055u61286Rsg8Kz+1G+7AmBz2n T0XA== X-Gm-Message-State: AOAM5309zZ8j8k2HU+HkiZtVko26o5zJS8lA94weWFQEHFpSkhWNWupT CWh1PSv8YbDNUq/nTiWRomriIQ== X-Received: by 2002:a1c:7c1a:: with SMTP id x26mr4322697wmc.112.1599665725760; Wed, 09 Sep 2020 08:35:25 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:35:25 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v4 6/7] wcn36xx: Add wcn36xx_smd_set_bss_vht_params() Date: Wed, 9 Sep 2020 16:36:06 +0100 Message-Id: <20200909153607.2904822-7-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_113526_760903_5754B07B X-CRM114-Status: GOOD ( 11.70 ) 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:341 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 This commit adds wcn36xx_smd_set_bss_vht_params(). The job of this function is to decide if the BSS is VHT capable and if so set the appropriate bit in the BSS parameter structure for passing to the firmware. VHT Channel width set is not set since we don't support 160MHz. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 9 +++++++++ 1 file 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/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index 14af98af42f3..fa6f5943a43d 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -146,6 +146,15 @@ static void wcn36xx_smd_set_bss_ht_params(struct ieee80211_vif *vif, } } +void +wcn36xx_smd_set_bss_vht_params(struct ieee80211_vif *vif, + struct ieee80211_sta *sta, + struct wcn36xx_hal_config_bss_params_v1 *bss) +{ + if (sta && sta->vht_cap.vht_supported) + bss->vht_capable = 1; +} + static void wcn36xx_smd_set_sta_ht_params(struct ieee80211_sta *sta, struct wcn36xx_hal_config_sta_params *sta_params) { From patchwork Wed Sep 9 15:36:07 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: 249478 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp523720ilg; Wed, 9 Sep 2020 08:35:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+ThixuaxmRWVHKHZBPe0IAIsU8/v2WRocAoQxCabd5UGuDFL5QGDlPJsvdwJNG9IKXVa7 X-Received: by 2002:a6b:197:: with SMTP id 145mr3745463iob.100.1599665734224; Wed, 09 Sep 2020 08:35:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599665734; cv=none; d=google.com; s=arc-20160816; b=PZ99iaagN+ugEgyKvzMB4j5yuBNVLkPfA7YSavtneNbwpgE5G69LIR7WGKcWJ9NCF2 GNpRETQS0jO7IrmbwAWxC5BGucJ/WHw/H3FqbuA+SpyT34iYk2ddIJRnXOLUbbTvvXVp Uk52+DspBpSDy04K+SjnUmcxTZNbERnf3DyNWc+qDcq65kqJGvlepOU/5uxEj6v9JWun FXVyeWoGWG+05iECJt0B6pW6DcsXdIdmqrDbYrqIwaPN3wb5JX9NK7cpoPmrZpWCdlgM jdk59KmRblQ33yCl7LU8wbVJYta3VDnWjvy9dbTkm6BfATfw0cpwAPnx3Ij60jYI2Aqv 3Xhg== 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=VMmNVFZWRU+zpvuT/erCCg/NctFOZsTKj+YoqNjPfSk=; b=tL46CKnZJ/5CnUtKTPL7NTpd02312IzCFwrB8Kb4+6PkkAELehbolxx6wEz23maRMt HWILstJICCln5t0fVxF3K+MoPtpyq0UvpNHg+ooBqpor8tJzKpq9vAd+Gjp/B1bf2kr9 MDi+4e+kB1hrnXtGG6MKdNHmdJ1ibZqcl22KrcqFtqKCrm0nkTfnfxbT8QVPk7ua/j/k q9RP9RZ+OPUN06L0ADECPoOtvjxmUXvqy534XajAfmx0QXEk1EeOwN2vghK1uW6YURnQ BYQYZZrLS/x0c47QJEN/MYnZj+M3LUQOsAE5QTkrCXVPUKqATvD4w1u8I81eu8YuYTzT PPZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=T8lyguTE; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=p1F1j9GB; 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 k18si2260072ilk.39.2020.09.09.08.35.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:35:34 -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=T8lyguTE; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=p1F1j9GB; 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=VMmNVFZWRU+zpvuT/erCCg/NctFOZsTKj+YoqNjPfSk=; b=T8lyguTE614Y+cmOJ4Pzjxp9H isgMP4pFa0TU4EccOjljvdcHv2ePpePMczQzzPKMLqqotlLIbReu7Mww68VwXd52OPs2YoYA8v6nQ BNvwTfB68fdDcHblLUT1oWBgQTFX3xQ7omdiI+P3YeMDHoKMSeoJjHX/0bUG32A6vKypWlv3sJsVr IASDR0cESeA5t+oh+hweXoos8+8GeiKrbXtGku+qQEGxKwGtms079ggSxL4uTplUr9AvFHhE3Y1LV Ff5rTgby4uiBzO9tGfGEWvX2R1wMZ0Nv0Ta3uG8m/S/YkVb8I/7wc4vwfzKRa+ejIJ9gVLSC21dL5 rdU4PaZOg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG28B-0006Od-82; Wed, 09 Sep 2020 15:35:31 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG287-0006Ml-RK for wcn36xx@lists.infradead.org; Wed, 09 Sep 2020 15:35:28 +0000 Received: by mail-wm1-x344.google.com with SMTP id b79so2820114wmb.4 for ; Wed, 09 Sep 2020 08:35:27 -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=oIyFTjtZqqz1/a9JDLpNoneKVIe4xiF8cj2LgmPKQKo=; b=p1F1j9GBStbqTAuf9N1+OYnjS5Oeo1GPYEvtZT/s0ZGkdaAvZxEXQyHqiJd5ztC2Pm G5HJASnm2OzOyhKv2IikPx3E79fI0HNY5/F6GcN4fqFQPJ7Mq3Gg6kVLljpJ9SCpylGi cKoZ1eyKPCmuUWR0VPD+uLqqHcZ2ZbMS614LUaKGBNcRdU80dCeHxHlqukYcqVxPyv/H 5eS27dXazUDRzlydUeQ2Vy/k5d3cgbflfbDvFQBYz67A0VVXOY8vYvl60AuNgbfje4ax hCg+dQyi5TRlAIUPgOSvQAocGm2AJ0eP6xgDOo2BigtjCIktuClHQ3C+t87Brh+skky6 BC/w== 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=oIyFTjtZqqz1/a9JDLpNoneKVIe4xiF8cj2LgmPKQKo=; b=Rr1uGNnyA5SKlRH6to1XOKU/19F9m1aBRAKKjl6b5egN85zksKKqYscA8Nvfedl5wJ uKjFsi8G7n6k9tJri0pRHQpcVvoVKkpH3PLN4p0OI+z2nhMPU5n+h5Qyo/xL0ggY+GEb y/xAEARwk5dGJ87PRUNQAfZA6E4auMZEEJfG3V6oBqwWPGXTUhH/LGz9N9AA5zdwXHGp +hTXBR12Xz/RLbtOkqhol3ViykD1J9FpJ7144JS8zd10ilACF4em6KFaAom96g+yD9jU qBLQXjqf1IriYZ49lFck8zKNjXYJQlKi46ol6hvHhDwM6Hb1mp25QzhQSg0ZsTRKMKOk NZlw== X-Gm-Message-State: AOAM530xuBXBT3NxpolBNcqBJy4vAnosa8csauXKG2wtz5P9zybadIPC ttcqWB3sDlPulxzRLU9jtrn7qQ== X-Received: by 2002:a1c:63c1:: with SMTP id x184mr4147993wmb.138.1599665727018; Wed, 09 Sep 2020 08:35:27 -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.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:35:26 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v4 7/7] wcn36xx: Add wrapper function wcn36xx_smd_set_sta_params_v1() Date: Wed, 9 Sep 2020 16:36:07 +0100 Message-Id: <20200909153607.2904822-8-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_113527_921320_0AA8B44B X-CRM114-Status: GOOD ( 12.44 ) 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:344 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 This commit adds a wrapper function wcn36xx_smd_set_sta_params_v1() which calls into wcn36xx_smd_set_sta_params() and then subsequently sets version-1 specific parameters. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 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/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index fa6f5943a43d..f434c355d32d 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -1249,6 +1249,31 @@ static void wcn36xx_smd_convert_sta_to_v1(struct wcn36xx *wcn, v1->p2p = orig->p2p; } +void +wcn36xx_smd_set_sta_params_v1(struct wcn36xx *wcn, + struct ieee80211_vif *vif, + struct ieee80211_sta *sta, + struct wcn36xx_hal_config_sta_params_v1 *sta_par) +{ + struct wcn36xx_sta *sta_priv = NULL; + struct wcn36xx_hal_config_sta_params sta_par_v0; + + wcn36xx_smd_set_sta_params(wcn, vif, sta, &sta_par_v0); + wcn36xx_smd_convert_sta_to_v1(wcn, &sta_par_v0, sta_par); + + if (sta) { + sta_priv = wcn36xx_sta_to_priv(sta); + wcn36xx_smd_set_sta_vht_params(wcn, sta, sta_par); + wcn36xx_smd_set_sta_ht_ldpc_params(sta, sta_par); + memcpy(&sta_par->supported_rates, &sta_priv->supported_rates, + sizeof(sta_par->supported_rates)); + } else { + wcn36xx_set_default_rates_v1(&sta_par->supported_rates); + wcn36xx_smd_set_sta_default_vht_params(wcn, sta_par); + wcn36xx_smd_set_sta_default_ht_ldpc_params(wcn, sta_par); + } +} + static int wcn36xx_smd_config_sta_rsp(struct wcn36xx *wcn, struct ieee80211_sta *sta, void *buf,