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)