From patchwork Thu Sep 10 15:05:46 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: 249630 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp825262ilk; Thu, 10 Sep 2020 08:05:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzM5KK0Qv4XNPGddx0fDH47OtNfj2pZ1JOugQq/FXqNBNB1ZoCD3dnEIGxdUb1r6kaMgCKB X-Received: by 2002:aca:4ec9:: with SMTP id c192mr321447oib.2.1599750311316; Thu, 10 Sep 2020 08:05:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599750311; cv=none; d=google.com; s=arc-20160816; b=aYkuJWTvB/RAuRVJ1qNqOzAiKrA7o2Kr/JJsBCqvNgkSSIJLwKEJWE0E2kiDYg8lWO /1lL6uLlOeQ4WpUz4zip9XhPVZzAPNGCLf04jqse5c7hhtVbIVIQ9LAdZs8tQI4sDRyn NhLvFME66hDoQ1GqHLwh2VmW00d3p61SZY6eh9K5n322gjyBy5Q31CbBW8eeA/7fLuHa 00JDtjQP9i/mN9GPcZ6uH9Nu6ozF4ePnFqVOG9bHpkJtIqU8t11bz9M3wIjwRPoqYsJ5 teOMy5J4a4L7UaZxZ84rXtJ+d0UIjTcf5HU71hKt32bsgg24ROBkM4VxqA6gfQ6pxBy9 Yuxw== 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=kQcStYKPGk0dR5jXuEut1p+sbedUHJMHCoIP/sm0qgJTPETX78/W7cU7qqBy9Bgvi6 OUtsgCT2wx2HVwno74yPUYiRrosTz6/WglesvreHXK+aVLo+b0Yja2LFRTOXZY6XdQEt BCWfBWb1uxbtVkk9HGdJEzmU2Kc8dtQDfVxCLZrogIZjl7Da+jmdr9hN8uemqcSdJ648 Xi6Cw7aQiX4hujplp0Aa5cNcbi/JXlY+7wIVP4WtNv7KBSGJQXeuMMx5K9dM/ZxZfI3m dzL5823NQxNuGDo7nTzu65H0032s3ghPHoh0a4Bfsss0Vk42z2X3PtlynNdOhqx5YGiD HFEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=xMEA6mB0; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Gr9fnaA8; 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 m25si2985147ots.144.2020.09.10.08.05.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:05:11 -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=xMEA6mB0; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Gr9fnaA8; 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=xMEA6mB0QiC/2VINwsZ5PsuOo G3uLBdazcLwChfX9iDyaQhN9lom7/EjgSnNGiUdr086il8mvMd/kG9W94kuGX11qvOMOar9ivD84f cqvugnLaB3EFHgdB+vMcbHpBzhpttXprx5Ji7xUZHte+u+f6FPM/xwf2DNOoZjNaVnZja14qYSleE 962+kvJmlUySfiHaDtvVK/Pw3j78QihWBnZIAGZ5VUVSHQb93OirfJ63AgoRUDWVJ79MKUssBrFXk zJvP7yG5dmY2HK7BAjEXS855bbDZq4WYzsj8PBSPPMFNqeXieXuvUrzbJPazxhle5CeguaGgOGlPh H1FLcla7A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGO8K-0007Ss-8r; Thu, 10 Sep 2020 15:05:08 +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 1kGO8I-0007Rk-B6 for wcn36xx@lists.infradead.org; Thu, 10 Sep 2020 15:05:07 +0000 Received: by mail-wm1-x341.google.com with SMTP id a9so379069wmm.2 for ; Thu, 10 Sep 2020 08:05:06 -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=Gr9fnaA8iYTG7yRNU7GaGAoTGRg9cvsIndyipmaOrtLFe31rtUOq/Q7bZhEvNvs02v BhULYhRWwO7RdZXHX4AQXq5Wi5TPiSZHUibwrhwGb8hd8Czgm49kss6B8GurM4K3utLX pSJNrVpzviXq7hfQodkVFP26uefiy/e1ihVZG4y+WUO1ECYP1nbnlxpPsLKxq7Rv00EH 9hPelMGvMVa81CCdpGMtNSnu8CHQXSGI7GnV8gvV7+VEVLnLmPJ4FkT6gSvSudTC2f2q VDACqYjN4J95mFxKjCeN0NyWPhCOJEv/mzu59qXnxvA+7DE4Q+ip5YGkBTjYdPb8dNwL TYzQ== 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=TBwddA+iwo6OCgp6LQTJBh4rnFnsiGi0y49nKabEJKqjH8Map+usXFDNoUUy0edo4g tjmIeKnNzIYyE3h5wdUZ+PrO0m/sePOBYKcxCeAS3eVIMgS7tk7x1Ic8vRlYP33bowyR A708Y+OrllEUvDWU6TKLdFbZ252EkmPIB0ijVxoRgINlWDlyOC4t5aIzg3mMMJnZUNXf p3OlAQwfqQ6PBcdr98nn4IVfYn6slnMjbaLwhRM/wqU1/1KuEb75a9tT2ftE3N32uNs6 oZQiAZ87slIYoIV7I5Sg3TuBr6I6KAYlsUNoSbpwTEaEn3Lo6Cdnd3ZkR9fewg6i6dFI AItQ== X-Gm-Message-State: AOAM533McTdD9dtuiOAjMm5vvY4fsh64Y1IfSWtVRzrY7A0Hap+2UIIk ObWBfc2saRZf5YyuR0W5Rhr4CA== X-Received: by 2002:a1c:a107:: with SMTP id k7mr407052wme.67.1599750305565; Thu, 10 Sep 2020 08:05:05 -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 g8sm3852620wmd.12.2020.09.10.08.05.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:05:04 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v5 1/7] wcn36xx: Add wcn36xx_set_default_rates_v1 Date: Thu, 10 Sep 2020 16:05:46 +0100 Message-Id: <20200910150552.2178882-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200910150552.2178882-1-bryan.odonoghue@linaro.org> References: <20200910150552.2178882-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-20200910_110506_418962_4BCBEABA X-CRM114-Status: GOOD ( 11.80 ) 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 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 Thu Sep 10 15:05:47 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: 249633 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp825334ilk; Thu, 10 Sep 2020 08:05:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuOpFUt8lBdZlRvaNPmc6h+xhgpcx6OpqGCJdAUiHUlgSRH4XJOQsGbg49nQzOp1PKwtfI X-Received: by 2002:a67:8882:: with SMTP id k124mr4149217vsd.27.1599750316354; Thu, 10 Sep 2020 08:05:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599750316; cv=none; d=google.com; s=arc-20160816; b=tc8FWoV9RRKQL+oaDXtFYiXgACxJKX+2y5zQWi1TzzMdlnBgAAWxZA4bk0e7Wq1nPx dWeegZfeNkxsl1v+q/Q23R/rb8k4UtJnGCMkcUBBKPGcueSXGjy6yUezsw1MSDgThEKC TwYBVBbqYP98UWsKWi3uyARhly7DtldpiOVxOELpsd35f3a7PwXBmsKoXB2M/iKKIQte rPQZssydfMLEuX0DFyIZY4Bwhvpymsin/B4ygjviVSXk/tPfQZDoI53/qxKx3H8aJUvZ sKXoBh7oNxT0HdCfaGzVHWaabBrUk+IGIyRxNYEJ0NUCNII3va2gLmcc+Yf0h7y5CtnL q2ug== 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=p+eouTk+stCSpG6+U4OVt6dEzbRylwEo+s6ScLvo3xQ=; b=tnnfNlvnf7j5mk0I6vKMT5BqFTtAgR3npVgJUs1zGlrGGCLAbnRCA5kikUlC3vLlB/ 6Pbf0OYTwJN4L6XrmL1CGXwXrYjdLCNy2hebnsvbebgWTDUwAqXhhRLuKUHUboIP/Wyr hwZS+mW1GscL6+SFV1G82dffQcgeRPYFzxqrbFPVgTc+y1+rKWClxWUDyt7v77OF2OOg VJJwRXb/InM3CndoaFWAgpy63gz56N5gNA/HyE8+pGr9z1QZ63YzIE8br2xoYzspU79+ Gi2iTYWTUg2tfat3mRBuswvZM0fSh6EEqrC/ooOideLHtc/1hPeHJrA540F/UQE8VhHG Y3zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=WRi8Th21; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=RZt1wPIm; 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 y8si922320vsn.258.2020.09.10.08.05.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:05:16 -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=WRi8Th21; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=RZt1wPIm; 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=p+eouTk+stCSpG6+U4OVt6dEzbRylwEo+s6ScLvo3xQ=; b=WRi8Th21nMsYm++3gHBLvJIi/ M8VOrIJfbc49G+52q7D+0C/oZNLPCk4q3aj0v8IvXgNs2JJw0Sn/45oWWECoeyY9o+gNaEqNWrqYg KViEczZLHvQwLOaApZkQbyJ/7AY9cL5HG7i5xaaWc9hwFOye+l6c8r7/VpznLL59ZQVPstd+MhbKO DQh53o1lwJI2oB5oH5A4jV+/0YsdxA6xDOHEqoi2DqXcyLPDmwvSat3OEaBXZ5Ax5Eg1QlzpmSKuf IqLG3blBwFst602m46yEUMKoGevDjSvvvOKLw24dJ14vllyFJHBgs+cuI0RHgZzWo8zzMcmiP3jgC V4eqLdNHA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGO8N-0007Us-NP; Thu, 10 Sep 2020 15:05:11 +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 1kGO8J-0007S7-KR for wcn36xx@lists.infradead.org; Thu, 10 Sep 2020 15:05:08 +0000 Received: by mail-wr1-x441.google.com with SMTP id j2so7079840wrx.7 for ; Thu, 10 Sep 2020 08:05:07 -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=SKVnCy4wmdEaKgi/x5VI6aI0MpqpfMkf4mS3vr+tRpY=; b=RZt1wPImechtv562sczfWCXSD198o0wSTi3foTtwCQNCxxO7J5KM49Ya0ww0l8APrc DFBpON3JAiQu/UqyRtDdoa2oCRI6RLoLARvnf+KtCLI5QZWaV5oXA5WsJLfJgp/w+4AX Z1R268xv6FE8Ej6PieBybfz+8UKC/pXXTTb9D8JWTiDevserEsn/FrlOSWoFUt2G64pi 0FTTq9FC9sPxVQY2qzjT1Qz6mQsvFMEPHQiWYlcIKdt2nB2GrlDk136TLvVw0j7NYDPQ +Lowx/hmf1jv2VJhYGI7dCG1waJ/GaIHItJI2z/DcphwPIBGONtXeZimSL0NT43gpuI0 l1TQ== 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=SKVnCy4wmdEaKgi/x5VI6aI0MpqpfMkf4mS3vr+tRpY=; b=M/Kd051UeIG2G8mPH6Fl3vtU/nqMU6dcmerfjTD9F3KiGwoGzroQr6EMSctc1U3duS X0G8DH0mMRGeib2DPoqm0LArRCwjR5zZkdkkgd7BQ3dPzR6pIw33B+0vhPlfBZh7B5EP AjYICxPur/ExWnLTgKfvSLJ74oDVALJPvqQAmnhIZp/IJaF+6aA/oWprDAiSGnvK2oJj 21waIChthtoj0GRUNXy3HW5d2V/Ne3m359s5PRscVDyhJHFpU+tFSSUggVPQ1IgfUlaU /6fCX084Cwul6c7OX5biwTPqhLx1KEciZ/Hg6zgnsV4z/mUwZQ8gHSzOTYuPMjFgnj7n ijrQ== X-Gm-Message-State: AOAM533H4lzZgiAlItqYBHMsOg2BUzC4cDzLkvoh2wdsU5p9LJppDSSp 5OJ2B7bTWWzmaePN7Lsyzu2IAx/5SpRnUA== X-Received: by 2002:a5d:67d2:: with SMTP id n18mr9410811wrw.223.1599750306568; Thu, 10 Sep 2020 08:05:06 -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 g8sm3852620wmd.12.2020.09.10.08.05.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:05:06 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v5 2/7] wcn36xx: Add wcn36xx_smd_set_sta_default_vht_params() Date: Thu, 10 Sep 2020 16:05:47 +0100 Message-Id: <20200910150552.2178882-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200910150552.2178882-1-bryan.odonoghue@linaro.org> References: <20200910150552.2178882-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-20200910_110507_682262_4628826E X-CRM114-Status: GOOD ( 12.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: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 | 18 ++++++++++++++++++ 1 file changed, 18 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..bf584ac382cb 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -190,6 +190,24 @@ 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); +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 Thu Sep 10 15:05:48 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: 249631 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp825323ilk; Thu, 10 Sep 2020 08:05:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjypuP1YJBUp6gK3FPeH0blBO3zA2TT/TGOzQUmHSKcws9GmXe8OQ1NtWsEQusOItnfzb6 X-Received: by 2002:a4a:5258:: with SMTP id d85mr4735449oob.72.1599750316446; Thu, 10 Sep 2020 08:05:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599750316; cv=none; d=google.com; s=arc-20160816; b=bF/YxPQRqErNGwfbiEjjqtJlXZcMDmv984YMrvk1MmTx2EsBf3a8zU4Lx3fAoloI92 H39BdqBEBkccgBC9z9H42Yjdet+7Lacl2SSu5pJ+sp1wIYOdAhrmGcd4Rqc2BuQiCJxq VlSpQd1cVhl8EB5xiFYu6kO8mfPch2+AFH7AWLx8+sYELNhUeVmUe13dMX9OXqFCOsc+ FeDov+sHwzGdRYe/Ao9hG8CMS7NdeHwMk0Bl7y7FKPg9CtIACZfzq8gEemlg3qVF9VN+ h9wXP5xxsGNc1JhLadiRexjh5tbQq9sWLzHbpAPMB+SvzQDXrKjWIUOKiE/9K0FyBwWo sPVQ== 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=0zKpeZDMnLROqtfMkojD+gmIza19rOA9oSDnvcJrgZo=; b=VBtlFhcRRofASwQLhlCaZVkHF3ivgGkAsJ3g+iMrPAznvXgJVI83zNQSP7f8y+8/4m KkBPqgHleVbpUu8xBgJuHvSk1KdemMVPy81yaiyXsfjiczsmMZkRHAlIp0scNpH9cBLh IeSvBofroUHbyOJ6In5P3eNC6GAG9S2J5bYuh/4MsOmsypybxKbc1Xe39b/u3TDQ1v5Q mz6AFnVkptnxRbOAXwpJmumZdr5pRIGWQs5ERWQqdX1gkDv8sNFqBGwOs3eZTXtx06pe 7OP5s8ayZ72e9tF5eo4S0jXaVm4UOKJbFofVJBDWrYkPcaI5kGhAEgj7dWWi77CxOzYZ qTpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=3HpmDwvz; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=evEgOTzg; 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 l8si2922747ota.123.2020.09.10.08.05.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:05:16 -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=3HpmDwvz; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=evEgOTzg; 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=0zKpeZDMnLROqtfMkojD+gmIza19rOA9oSDnvcJrgZo=; b=3HpmDwvzPZyayLtFcKrJ/dZns dwLkQ8ZVIJexLg0TdLV/9iZd9i+kswKAXxvsy0r585W6smw/rVsU1lXwRXYvxp3EwJujRVjkuwBaU OSKmcgP9PqwExWoEnje8/nC6LMHt64nFEeMq3pox4Crj7k4Ud/GxBRdDrHmTpI9fHs7uhmXGz9njQ OfgVKBc/3zGlc2NE/KcTtxtcl2R8RDI0GVhhw6UY+pn5ao1uP9roGpmQlFV5dhwGiT4gCxiKBB4I1 pP8lzRjqy5YXgS2J0phUwD4X08OCNC285Rrw3SObeKpGQ+ViwAtaHHxG+gbZqbpsRONYD3L67nPGt LtoOCcECg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGO8P-0007Vx-AI; Thu, 10 Sep 2020 15:05:13 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGO8K-0007Sq-Rd for wcn36xx@lists.infradead.org; Thu, 10 Sep 2020 15:05:10 +0000 Received: by mail-wr1-x443.google.com with SMTP id z1so7086453wrt.3 for ; Thu, 10 Sep 2020 08:05:08 -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=7wpHFXT43hTfOLrdx99kEARdkSVehiZDUWZ0k5+bAcM=; b=evEgOTzgaaH6t8OrC3OfLOrvtmjvvtWy6/oM6kpfQZFueL4RDlMs/NaNMf46+bZmji BHWyrDr15M1vvd5h/mt6thxXPuAeX8FKslzAGvLv6f523ZSH3aM5vaoZ7vYZm3olM0Na F2/J0wlidFiQZH+2a/ym0wNxkk+ZHgu1nal2TwQzRgSvD+3CAJeq3je22NnkcbrRN9N1 fOlJUFfH+ceujS+6q0xe26LRWmPXOk1BVPSZCxHvZeC/YUvBeVJ0L8JP5bVMMdXg4cjm evAGlZPFCo2hJiFn/hIqycA2bXWmXsZsHn3ylPbbPab2oHuW2uF5NxEue+vyeg25nl3H er7g== 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=7wpHFXT43hTfOLrdx99kEARdkSVehiZDUWZ0k5+bAcM=; b=pJ1vCRbfv1efoAw6webt0IhoYUjXk1Lzlz+xBgUKDT++Un3jRaAbyeD1OsknLKJCfr Ue1RLx55erSCdcAwGLrwFqpPnm4qv6k0ZorVuU5z/UDtHYHe0cYofYlT7O/DeJlJF9Xf cZ/1svXT50jq1U0yJsKoON4L89RjiEW82m/Y9aV00dhV9i04UnYIBqSKjjXinhDruJ9E zpiwB+wzaELAxVtprOG5egX48UO9jjG8ec5rOgmuXqvnbABjNxJtcpkuX02a/UEpSjwT ukIzOERjLOq2AjMFRWT4ne/OrbVJOF06ZeNc/1Ev9GDLfkiUDgeHi075XizAcRR1UO3g j4tw== X-Gm-Message-State: AOAM531gDGB+J1MrzPAr+eqThDICGUT0msvjoytxJcT3pw53tnE2CTGC 3o3y44iqFvCpV+Qp1c0JPtKofFlrJnnZEg== X-Received: by 2002:a5d:4f85:: with SMTP id d5mr9470628wru.7.1599750307766; Thu, 10 Sep 2020 08:05:07 -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 g8sm3852620wmd.12.2020.09.10.08.05.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:05:07 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v5 3/7] wcn36xx: Add wcn36xx_smd_set_sta_default_ht_ldpc_params() Date: Thu, 10 Sep 2020 16:05:48 +0100 Message-Id: <20200910150552.2178882-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200910150552.2178882-1-bryan.odonoghue@linaro.org> References: <20200910150552.2178882-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-20200910_110508_898999_C2FFDD3D X-CRM114-Status: GOOD ( 11.45 ) 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:443 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 | 11 +++++++++++ 1 file changed, 11 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 bf584ac382cb..e926bbaec220 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -208,6 +208,17 @@ 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); +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 Thu Sep 10 15:05:49 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: 249637 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp825343ilk; Thu, 10 Sep 2020 08:05:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKg9VZn2U2/+PmvjBHg1KmmsFFGO5ACfPDlbD6ExXGTCCXflXVP40nanIcPISeEZ1Lduph X-Received: by 2002:ab0:71cb:: with SMTP id n11mr3852101uao.4.1599750317077; Thu, 10 Sep 2020 08:05:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599750317; cv=none; d=google.com; s=arc-20160816; b=BJ4mPAYJauA1AD8OaXGoOoLMZnjJDFSik6oIZ7nsZigljcm2CS5H6mebrpjcZml8ON 2PysZfAzgFfqy44glP/v+lnBUNm8BfFw5w8tv0efW0+aRySmxC4+qgC2/jDrsHL+2c7x lH75aEVGV5dqebZUc216GuZxnoOMupt0aSGO8Ll5RuOXfIQeWOq+rwGRZUfRY96kFII8 3uz1DeZY8OAcymaupd15hQAKdb76iUtAI6ZvwNH7UpRUmZDsYoGwIHLsw9HADaNE4iNb tZq7aAVJRkSO3oi5ijE0XDQI3s2zaMv8u/6+5rxmN+TCCIEElA8mVvKb74xWe9Lj6Vyj UZtQ== 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=lolk5xic7R48FnHD4bxSApHATistOa/1mDOuvb3q6HY=; b=oRPKYryqdPlVuDD/D/R6BmAyw46y//nfIfuD8/LnG6Gl74Mt8jvcjashow8jRIISCl PYbf58OHq+pazTZ544h4LgHm4CZDIk+phJr77e8dfStXxfuWEW7t3obNyKD/5XnO97FF BpE61ab0aSzaudOZ2+bxqkMj++q8SaMm7M2ycxt4FeDX4Ozth7ubm80n+kwQA1YbCLm3 GgGRsHfCRLLgnVkYaZRJewkKAEEjN9LoL6E+MYXRyB7inE3ZR8bihjNZuMKeUq/3YhYX sR12fQkQkmtJjYezuT3ijj/JGippqaT5kFtmYF4kalgLKAB3PjFxjovoZmCCVokXWWwr B3qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=raS2k+3Z; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XhvUAiTc; 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 130si973697vka.37.2020.09.10.08.05.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:05:17 -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=raS2k+3Z; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XhvUAiTc; 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=lolk5xic7R48FnHD4bxSApHATistOa/1mDOuvb3q6HY=; b=raS2k+3Z7dKkdqB4lH5Pey8c5 2LBO90Bgduj6+Qwwh/WLjbMDQskRe/gs4R01+klnYkP2kjXUiilaIuYI1p9j5rQN+wSllO+qAp3Ew sp6eKTwz1RUofEatnfcFOeLNAlxX6vTDlFLoNb+EIpIffyjEuLwxseaevG4K4ocFYUYat7pxOMrGt 3jwjF2STAAjTSrEWSNpzIe2btglO2hB6WGhtnkJTX30b0e+M2nEm3QcZcGCWzQLBl1v5Xx39ZUF/a 0oaDqbveTl6FuyUKkIewWoDTcK+VxG+b6UWzT+L06QexowFdB9vUD2Cl3NbK5FY4gjjYazkYnYWrV 2Pw3/wwcw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGO8P-0007WQ-Pg; Thu, 10 Sep 2020 15:05:13 +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 1kGO8L-0007TV-Rq for wcn36xx@lists.infradead.org; Thu, 10 Sep 2020 15:05:10 +0000 Received: by mail-wm1-x344.google.com with SMTP id k18so357109wmj.5 for ; Thu, 10 Sep 2020 08:05:09 -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=f4Wm7zFdeM/PXkNGWzim4XzgHqQTMapz68tBAyod2iU=; b=XhvUAiTcPyQFkGpIWZwHI1zHlr55baPSQMkdq5SfjBQRf7DHDnQDCmA2/Jfpixf3yB ZltpY+FAT1VUZdu4L2strNyyUTYMIjqf0FZCkAZGBdIkCPsvX8Vdk5GgSaSLwPtrgbiO u/By95FDOTAosQAr4tDiLqJboOJvmF+SpWEiWbH6/giFEUKiN9l4FxWfIyRHk3/95mDZ kIwdGoU0AX09KnxNafhm+gs9lXzxBlk2klokLGlVympQZJ9vp98T3sldLMkaCMUycYB4 5AAvlUrqR3EGYivk4ymHdeY3qUtWbbH49qlme3fzpqo/Pc1lK0csmcs9JIpH22JbUs/h LcRw== 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=f4Wm7zFdeM/PXkNGWzim4XzgHqQTMapz68tBAyod2iU=; b=HS6Vc28pf7u4T0F//mMSPbJwVB2oABdltBng85+w8u6IPucxalwx93tBU2whS99Hj+ az7i9D+6Xa2AEInGpHI6fMMgcSOmXs/e9N0hrJ35vU32NJeh3EmpMSFc2bMhbT6mbSxB n1x/L9dM+zj13a87axWYeX/5mwAHpMe/o+1AjoI9NnmjzLACROypOMAVKb7gvLB9LIor JI5ekb5ZIVhYBg++tjkdbtUQEUVtqUSEXDWw9SZwQ1SABZma9EROfpZYfOeMcnofER3K lQwEA9PQ3NeVV0n+GilwHm5kL3wP6W8fqIdUEEOE/snUO7EcN+aEgNr6KyxnwGfZ3W57 czHA== X-Gm-Message-State: AOAM530SJAMd4Bwt53llaRzWXw330FAkS3ZPEXP1rTyoX0h+bCCLwi06 cz1wyjhcZTAhDc6riRadYFZpdQ== X-Received: by 2002:a1c:24c4:: with SMTP id k187mr444074wmk.148.1599750308810; Thu, 10 Sep 2020 08:05:08 -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 g8sm3852620wmd.12.2020.09.10.08.05.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:05:08 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v5 4/7] wcn36xx: Add wcn36xx_smd_set_sta_vht_params() Date: Thu, 10 Sep 2020 16:05:49 +0100 Message-Id: <20200910150552.2178882-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200910150552.2178882-1-bryan.odonoghue@linaro.org> References: <20200910150552.2178882-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-20200910_110509_907574_40425CD5 X-CRM114-Status: GOOD ( 13.23 ) 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 | 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 e926bbaec220..1432f310f758 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -174,6 +174,31 @@ 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); +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 Thu Sep 10 15:05:50 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: 249634 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp825351ilk; Thu, 10 Sep 2020 08:05:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybMaTEuzBu5k1DUFgiZlMQB5QOTDUeVvCChovP0qsYTX09OMZlrnsG4pCfxIpUAg5XsVv8 X-Received: by 2002:a9d:53c1:: with SMTP id i1mr4348273oth.16.1599750317187; Thu, 10 Sep 2020 08:05:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599750317; cv=none; d=google.com; s=arc-20160816; b=OsLnSR8ZF4hL5LXoaUm2ksjto8A8uIhvGMY+7H6e6yFAEN2tp8iwtjgMzscNUd9In2 mzDvLWTPwi6s20/aFQBXtXixWeZEsCB2jOJcFsqWXeP02kAKJDLdR/N8DIy/TChYJ9Gr hGuCyzs9FG742YRCEM43+s6cEbTEtrFp7tbFFIp3jOxwc7bjWLmY7qlYl3c72CJFa9mF HVRqQtkYDOyMIn8BrW1fihlr/egF8AgelGSU9qVk3uylXOHtiFF5PGqbDFcmW+js74dw 6Tsb9XqSQd2Z9kaNTGhEcuXnF1XbSHeaHnQk1G/TaCkiKunfhBV4tTKpJoZupze2/lpH XJ4g== 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=0UzWP6Ju06k6axIWqNcYR/Oac5yErdZ1/l5gF4IhWZU=; b=FfeJ6cVNkNN2xz2IkQYaws73EOTxBpskWsX6ssJSYZezYdNe02qqbEezOonK9smnWO TkCNbnKTdJbTDWrw4iIERtf07OzCQ+oibL5/ER1oN6s7ZfNCXF8uVsGapkKnwvp9a9Xr V8mVWSDIJI5vCbKfg7bmtLXCB5Eyk5Z/D46VkvPrVw3rk2zpNUl5JwIgwN9jyw6YY2fS uYTdRJTc5faZVAg9IEz+C/uxxBlrWoW8EBGc1SiS3bI+IzV6XU+WO/HxudKRl25rZv/Q J3nMsAEIdMSjZmzGiy/f3RHQ6g6ks/8VjjjWFsiDd7ekv2bPCZUrf+3mGPCyb+Gjkxip 3SzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=WUL6WaM8; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VgXQxDJJ; 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 k68si2210466oih.130.2020.09.10.08.05.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:05:17 -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=WUL6WaM8; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VgXQxDJJ; 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=0UzWP6Ju06k6axIWqNcYR/Oac5yErdZ1/l5gF4IhWZU=; b=WUL6WaM8HSdVY1Sbn7SEXWORa yoNkdPIFd6mL0HYs4TrtQ1zHM15J4qub85Svx9k0fWxRTqDKVly5yapsaXWDaexsvIsAYfBqHl9NP DGCICQ3kVLLITDFng23nl2oTdaEIXctzuXOiLX5YztoQZJeHAKXCp+Sz1et6fKS8+USJARCyrR76T c3p18DTTZA4lh87Pz2BKg5dnOlw+IPIIW5QoJ1O3qFMHaZpxGc27CC3TyAU+wDLBATOkXvSbiHQNC uZk5uXTVBt4STKZYx+kMM6GjSAxO138puaLe6XbYdMNqjGeq+Pzj+5tIhCB3tQAmn2SYy5ocdXmHj p2BtslRzQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGO8Q-0007Wh-4H; Thu, 10 Sep 2020 15:05:14 +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 1kGO8M-0007Tx-Nf for wcn36xx@lists.infradead.org; Thu, 10 Sep 2020 15:05:11 +0000 Received: by mail-wr1-x442.google.com with SMTP id z4so7098607wrr.4 for ; Thu, 10 Sep 2020 08:05:10 -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=J7OETVLDh9JWcogSM8CDzEM26oQ0pGJijOBeVJ880zs=; b=VgXQxDJJradt6PJ+rpPriG71cFDgg04zrawTaOr0wQGs28wSCdRy6a9jMPgJFTufeq gQmZ9yqbKxUKQ5ZtrwTuZsItIbSjuAC3b3Er4JPLZfKB205+Sdudrf9tLveLx5baghF8 xUzeRMBq9gukRX+390jzn4t6aNPINlMTG5JZwJ06uM/Xl/G5xqLbsluD03kVRqMZ1clt vpwizbxuT19pzxKnGI+Rs/rEQ1vqcCE/YzCQ96IaYJapbL7j8xFJLx3WI5RQrHHR0bYW hj8JYBFrzYyQPwQxqDbIqRMIy9GdRQad9ubUW1/4zowORaqAnyqetIyY1dDz4XmWWHSW FGfw== 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=J7OETVLDh9JWcogSM8CDzEM26oQ0pGJijOBeVJ880zs=; b=LwkSbd4x07QG/hK1iLWyHZE7XtUtxkm8ifpVNakeKJVUYbp8VFOSrFXwou4YbhJMrw PD39z2qSGG3zr7X9PRyR56SziUFfbnSYOiaOwbTyWy0clyBO6JmLbgK5kfozzhzmwpla Kw4ilepfeN5i0KEh/jCqSbYpIfr5FeMKStuGVdQXnC/nuRry3oq1Lsjn96N1dz6R0Kod Hdt8GhcqsVipMnRV+7FrShd+36Qy3b7ECSNk3yznS0wzHe6m6vkcVR/BCKJ9nnW00mqc 5R9DOug+LENhHwHcf+yX3bLizXfhcfkePHUyk652EIcR72zyRXd+xRMWDfXtppdXYCeK ESbg== X-Gm-Message-State: AOAM532c2m4D3/0peCAptWYNzWesfJqTBO69Q4wEVhDM4mg9MNReq6TS KFg/aaSvCl9fEd0w7/fPur0zmw== X-Received: by 2002:a05:6000:d0:: with SMTP id q16mr9492606wrx.24.1599750309722; Thu, 10 Sep 2020 08:05:09 -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 g8sm3852620wmd.12.2020.09.10.08.05.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:05:09 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v5 5/7] wcn36xx: Add wcn36xx_smd_set_sta_ht_ldpc_params() Date: Thu, 10 Sep 2020 16:05:50 +0100 Message-Id: <20200910150552.2178882-6-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200910150552.2178882-1-bryan.odonoghue@linaro.org> References: <20200910150552.2178882-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-20200910_110510_787334_EAD49264 X-CRM114-Status: GOOD ( 11.84 ) 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 | 11 +++++++++++ 1 file changed, 11 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 1432f310f758..ab9b6116cc75 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -199,6 +199,17 @@ 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); +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 Thu Sep 10 15:05:51 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: 249635 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp825366ilk; Thu, 10 Sep 2020 08:05:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxd5xedUwn3KMMCQzlEuJJK2dmckxW3GT6OQSwf235KuzM3oT1O59gpd+tPheu0ohoDsR8s X-Received: by 2002:a1f:a905:: with SMTP id s5mr4318770vke.10.1599750318228; Thu, 10 Sep 2020 08:05:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599750318; cv=none; d=google.com; s=arc-20160816; b=SW+kgLJEdtrA21tmLkGQiAG/7qDRfuv8pBDnB+CQZKFlA/X+79zNu1qv7nzvwhEMnS 59AluInkRxpmszFYhl2YtUZLFnw5pdaE1L0w+CaRIB5KDlu46qRc/oYVVQSr8QVqwHM/ cBhZuPUY4Z4zix7LiPiQrwZF+YoYDAWYhjFGZ4kPwX1rBRwjLFZLELStllF6YBIQn04v 5QDmJ2uZnlx6xzdQcBkgyVDum7vToR/pssrii/WAauplP7GKNc5cskNO5mSXmIs1Y3i1 NvNeoZkFHCWG916zOlWQ4lYu5KTVcweev+BKb8hSqsFp+3KfFzLMPpQKNoLdBpE7WTeA dg2g== 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=jE0/mk11w4Yl70k6d5fUSSd45scIk/uOuMLMu8j9gpM=; b=o30+siJDGdgnl4HTBGvcuVSw/i2TAjnin9qCgeBVYlGzJvjlTytWVBhWBMx6UA45lO A4R6LAnN3rPqMwJajOCj6C3rYPsGpbtHeIxjPEgOapnPrb/ZNcB0+SOPK7yaZehKXp3b bIhyZD+IVOIfZKrwpu+Fiv7LTNNhGJStWEtDEYWK7Uh0/nn1A0BJnzmVcsGOEAsSJmyb kc0BwHk68J7oDGD8znJT673PGVICen0VIKLvaQ/ucGiiJVIg4xGFTvQJS5d4JUOdIGJh IAlsOflFmQlnllgG4/tO5nN6UnMO9pnBJw/89oowc/wAQh4Xz2fbEJJ2mtFa47mciLAh 49pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b="S/q3lcSN"; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=IZI9RjLP; 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 d7si218059uaf.118.2020.09.10.08.05.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:05:18 -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="S/q3lcSN"; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=IZI9RjLP; 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=jE0/mk11w4Yl70k6d5fUSSd45scIk/uOuMLMu8j9gpM=; b=S/q3lcSNsI1peLoBmsUT4tDhn Pvoc1WzajYb6DWprYzAgV4+Sm7YC1ipTJjaA2ftIZADrkwIogVu+X8L08UQoIjR1MnTR4Ai+mh8Gi tr82m6yJzg7EUaoSHfzAjUTkMGUf7HVgZQ3Q9gdtZUhs5srZpjdHocwKGivtC0N+p11jtgbmSygvG F7YfGwC7IAaHF7krc+2TYDoo6RB57nYdH0H9CRf4Pag1WbgXDyr5lXFQedOVeyhdHNUclUt6FhJi8 RSZYoUZiPGvF80Vi3efGdsOcTqWu7UEcizHs0h6QO0yjvYX0FAhE5QKuYxW3dtw2AwjRlKJGnD9cx C+5e0Mc/w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGO8Q-0007XC-SY; Thu, 10 Sep 2020 15:05:14 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGO8N-0007UY-LA for wcn36xx@lists.infradead.org; Thu, 10 Sep 2020 15:05:12 +0000 Received: by mail-wr1-x443.google.com with SMTP id g4so7086099wrs.5 for ; Thu, 10 Sep 2020 08:05:11 -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=HqHLp1msqI2btcU80XmiahuTU9fQPQhG4xjHOmh9N3E=; b=IZI9RjLPsZtDmR1K6FXBEjSuD+Nn8XBfF2l44tXm0qvaW8Cf+ijXJauAxJgho2bJzI qklqQzKv/SLavr7ry8CIIZ8NUzpOIgzoah8yBgFHfIkFFBAl5FqSESxmZZOvAKvotj9q DiAfgr4fi3MNWc5Socz04euqF0bVEx9+ycSDimrQHbtPr5QUygJZPob2CGmdK42jb/ij kFMw/3RdSNVe/Ou0WMrjwKDDelzkltWR1anyntKVyVbRgksFTzovPWkVM1K5u+HhkMqB ynFJWe0AddxwePCeBeGHeG33/cwbxGWXl+7dG9naBmkfRNB5PgR2XUJ4QxSAvH4tI4dk 9d5Q== 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=HqHLp1msqI2btcU80XmiahuTU9fQPQhG4xjHOmh9N3E=; b=LoRc/eJPWPSwryEoVrNnAS51ZZJOF79ontVUKt2QVDWVOE7W/hqAAamswjrMFzMA8J YFmOZtI2bz+c2+J03MpjhYDFHAXps5vwz8885mSoYdFYwKQec01W0nZqgI80KXQltMHQ gIRzQTiHtLM1U0zetwIoS4/LO0mQNt5s+yN4jwo0tsXcoe+qtGPBpn4QTJogwXJpy6VJ DFC4DFGN+8CoHEEaKtZJ8D+qao16yzBff6A1q2K/TOenNw1DIe9y9laeCaP8R6jm+Bhw NZoutPpk4V7Jl0ZxnoXmXmZO3KT5r4g6fenNrA0mi5tudDHq4G5Wx/DQQwGQOkhQGPgq xsag== X-Gm-Message-State: AOAM532YWai+ymFWwBb+tKAA6Y0VJI0g/nWhm0k41y+et1CAimEGbmBh DYVKRDqJqoS+grUPvgkSlAgBBw== X-Received: by 2002:a05:6000:1184:: with SMTP id g4mr9551476wrx.20.1599750310677; Thu, 10 Sep 2020 08:05:10 -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 g8sm3852620wmd.12.2020.09.10.08.05.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:05:10 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v5 6/7] wcn36xx: Add wcn36xx_smd_set_bss_vht_params() Date: Thu, 10 Sep 2020 16:05:51 +0100 Message-Id: <20200910150552.2178882-7-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200910150552.2178882-1-bryan.odonoghue@linaro.org> References: <20200910150552.2178882-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-20200910_110511_723678_CB45F746 X-CRM114-Status: GOOD ( 11.62 ) 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:443 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 | 13 +++++++++++++ 1 file changed, 13 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 ab9b6116cc75..d5089aa382bd 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -146,6 +146,19 @@ 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); +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 Thu Sep 10 15:05:52 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: 249636 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp825402ilk; Thu, 10 Sep 2020 08:05:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMfMhJe6DvWYMpXVUzM3FtVR3S8PmQpoPcIDg/UrAtXVPeGV1cNZAzloyGAOnIVVLoBgc+ X-Received: by 2002:ab0:73c3:: with SMTP id m3mr3770797uaq.33.1599750319653; Thu, 10 Sep 2020 08:05:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599750319; cv=none; d=google.com; s=arc-20160816; b=raVe2Vl85p0UoHGENjiNkkWtX0jqUyPdTn8UX5eRQaAAxcJt5L9CyTOLqp63p8HPtz PSlDtA0nJDVu+sSZVS/2a89uy/Z1apYQ4Q/t42diZFF2RYXVKEgF40ZY8VTVM7afSEH2 n8LBFgF8o995WzVoH0lujNIVNeh0AVrsxAuRhpOKOGVttyRGKjD55UH5dAt/tqvsaKwi MA6XOPwsphTjFq0DDy3XLWHdeoMFtmnaKM4qAEuL8ZEqTKZCsFRrleaWPSHACwYvvGQZ E6ZFAdeM7/RPxMtn8fKpdtdvI4iwYtCGBmAwgfs9Bag36c85XC6tOKprS5BaqAGLWBZK 4k8w== 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=nJFdCum3bjTgjZzzz+hOHNF3MAtT74WqXvta2V6MX00=; b=odHbU7VTnguRUfB1p31TRvz+0A/nBleR55Fzryz31l6B32efKJvRMbnmOw7Os1hbFV ovVmAMVDHuPViIDqco0YVRF3oSAyT0p1qWpLwda1P6pLkebI7FGwjtM8AMLJvn60UZAx l+6ma7N6UbFncBiUV5NOgn+olCc+5PnR6loZqPvDXR+wxkkoLokiaKsIhVX75h8kJnTp cBGL9C0RAj5AFdYAg7u7cRpdFMjoAlh4ZdH/F8GVKqIRGgM6kLaO9Wxipkvl1fdjNtlo daS3OVUPMJtzuOqSl2XVYp4FwRpHp5k54Tmm19cI69MbDS6GD88QEwY7a6HdfGXg0kZE XwUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=YIYijVOC; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KWF1TE7u; 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 d10si962872vsp.56.2020.09.10.08.05.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:05:19 -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=YIYijVOC; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KWF1TE7u; 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=nJFdCum3bjTgjZzzz+hOHNF3MAtT74WqXvta2V6MX00=; b=YIYijVOCUX0zS9svkbvyOcAOI dJcw5I/FqNEORzNmRQ84T3JKkEsxgiWGOw1KC18aTnF2sSXfc0pnl6oA7DaVd8JEdIF1KxBvke5UZ rrClGRAvea62ZyBTikZaawjzWpJICWywpSY70VLN0NxPOV5i4adUXga7c3xJXZzfVbpfTwoq6Afgv Q8PEMvG3U8SeHg4A/z4uNiaM+1TsxrCXSgIm0mB/ZBJsMxD4PVuCc4Aoi+Ah9jDGXb28wLs6SFgou qCySP+q8wfkzVx7Af//PgqQeEkLGeq1iY7mAIiz7anMjhB1jCAF55Yeumfs+Kk6WFm/jEcsvvz702 73Wdc5Qow==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGO8R-0007XW-R6; Thu, 10 Sep 2020 15:05:15 +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 1kGO8O-0007VM-Mi for wcn36xx@lists.infradead.org; Thu, 10 Sep 2020 15:05:14 +0000 Received: by mail-wm1-x341.google.com with SMTP id l9so371454wme.3 for ; Thu, 10 Sep 2020 08:05:12 -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=CAsNGz4Cs4vTJ9gk8zApIj6qmRBVcghapi1gG95W8wE=; b=KWF1TE7unzAEhs8mBdAaCBqHg8xU0QTmm/1L49vgLG41pjIppgCTYMAuxQXE147tVK v+8eS110ObbZb7k0raX1jkSZH1UhLIjImIHJZpgSPlt5zDS9Xk7X8vP5i2XHKeiKhRHM n5EsAqCEKxyQigYfdMFfIsjRjVtdh9Wu8v3S7EIjYJwUNat3RCmYP8xfI2IEzfIdzqqF HSjf3B3SjiSDM4CdHSJsaFduFAzIAjIZLXVcpLYMZkBTJRa2suyrBJp0kkhBOZp19iI5 yjOr+HRfz/5pK7wuEBctRXhwMAv+nPGfUUhhaOQZVLqgqSst33oE6o18+qBVhjOTrAZ6 JbcQ== 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=CAsNGz4Cs4vTJ9gk8zApIj6qmRBVcghapi1gG95W8wE=; b=AKVgHsO9fn7zmd/dkElHg7u8OCki+CHUUcy1ACXB8q3uwqXrU7wIGAiSu4BMEMn/nc qyyZl9ByJbFc3vbrDget0ZBr5vwE3mzypHMy1aOdHuQtm0+eUF3AKa8xBCtd90bclYkh QhS/N2Nd5Z662VnMWIszQD4KPB5hUcrQDQ0Zz5XAjy3Wm90zl+GxZQFTPFAw3MS27W2c 2Oaayx+zJ5brodEgUy4LPwFWpM0NNklpC4cg9eC2v2PL1/x1mDyweqN+PTb6HHTGt3Cv FXE41JJdbPYXe9K3uccfzx2bGT2wv0Y1AXlq+s+12wc511QWL+4v1iuiHPwF3woPsP0n cmXw== X-Gm-Message-State: AOAM532dT78IU2fRVj1TPBW2j8F7VYmaR3ueAWC6/lcsK7EjxbY1hcPQ miWkl8laFkjbRvo0jFwjpy/9fQ== X-Received: by 2002:a1c:740c:: with SMTP id p12mr435592wmc.176.1599750311807; Thu, 10 Sep 2020 08:05:11 -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 g8sm3852620wmd.12.2020.09.10.08.05.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:05:11 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v5 7/7] wcn36xx: Add wrapper function wcn36xx_smd_set_sta_params_v1() Date: Thu, 10 Sep 2020 16:05:52 +0100 Message-Id: <20200910150552.2178882-8-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200910150552.2178882-1-bryan.odonoghue@linaro.org> References: <20200910150552.2178882-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-20200910_110512_849913_D4702952 X-CRM114-Status: GOOD ( 12.82 ) 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 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 | 30 ++++++++++++++++++++++++++ 1 file changed, 30 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 d5089aa382bd..71ecf3ef5ab2 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -1262,6 +1262,36 @@ 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); +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,