From patchwork Sat Aug 29 03:39:59 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: 248701 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1603007ilg; Fri, 28 Aug 2020 20:39:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxXyzfr5lCsXDTmXI66m/KPkdeEAZ9EGS4Ui2wCkLRJbJ0JnZ+ejzxPeN4vdJvy1Zu62RI X-Received: by 2002:a92:248:: with SMTP id 69mr1557199ilc.236.1598672364183; Fri, 28 Aug 2020 20:39:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672364; cv=none; d=google.com; s=arc-20160816; b=crBw8jpkVVHIBCkO0p+qSyGPRvz6IHpwZyTEjwqznz4DhibcMCASIogMKFsanIztYZ pQ3AqH1FIxzO0tt8VfMlBNWcmAMdP3F+BUkMnXQi++UWKfmvx8dHn2biy5/NLNLYfkIY 6mLojzrDHvfpW2dwRVhy7XeUDxABUyzAPYYyzHkAkmosT41svjxjRa8FhDvZUj2EumSc rbiIfdHz9DYFF0w5ZgQtzwJ0S7hcNxXl72O+1fVE3G5mJxDom8osc2+MTvi5x7eNQqiD YWULl0J7fom8nyoL8TW9xUiowlbNYpDWm2bH6OOBSYaWOKSSjY54YhAevrSX4/tVBvCe 9K+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=gwols/m7/FN/y4IYRPL6gYsZ7qSGSPc5ughimO5ElFM=; b=0/jlW0j0+QBDtfVF0SaqNEdOcvsdg9NZUfVy7bqAdB4ZsWbw2eODWTllP/KR/ZWkdU R/kXUd9WqJWRbEOI1c5289pBmkQzw3qKGlFTOUAN0lqHR927pJcZMHuI4rBh4vFOEQHM hsGgjITRgsV/nCMXGniOJIc/IjKkuqPFGIzrFDeTXonYmgyx7NrN81mQJND+ZxXMby7o YpFFHj4Cfbv8dfs/RwQOxDR9A2EU9XVidPAP8bX1amUTA2ybsC9a0YRYSVAxmhXbtIRg cbYz8oM67kBbcQ0uDM9y5nvNJElJ8yqBlfql6y/q8+DUQEPe+DQMlR7RXGlVe2MHd3+t AhSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=pwH7+OEG; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fOEfxE1j; 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 e1si852612iow.39.2020.08.28.20.39.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:39:24 -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=pwH7+OEG; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fOEfxE1j; 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=gwols/m7/FN/y4IYRPL6gYsZ7qSGSPc5ughimO5ElFM=; b=pwH7+OEGfY0ugBMM8Va/HOrnr tE0AaMdD94Zhi5xzyXS/4Sll0Qb4J6F4Hez6ZS8TDl1ZtV5Z1mD0CWtgVg0mB0NY2KJJcqnGh2hqQ n1ylT9hmROmMlZmugCJ56QZ4Ve2ra1I7zJCHLYfReGrv+BsL7vsSlgAS6jzvLWCN3RNxS0JNv5BOr 2VpeO34dFQ0FwHtUIop3UsnxTEij0BwfUYv+CblPNMxGQ2C7pZg3TAjG9uVQ//q6x1muqcos7iEBd XPzyctvU84FgNob4j1KfImDD7uycSe7ZVjMEQGObK/sdIV3O3BOlGS/MThmSkWYNf0gjrwIETVQnY 39XbOLsNA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBri4-0002gA-6P; Sat, 29 Aug 2020 03:39:20 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBri2-0002f5-3c for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:39:19 +0000 Received: by mail-wm1-x336.google.com with SMTP id u18so877247wmc.3 for ; Fri, 28 Aug 2020 20:39:17 -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=NhCY8oQAJMhMp7rjCQoI5czE5oev8Z6ZeTgeJVUiBkc=; b=fOEfxE1jLAxHKIq9wADGSgVgygxjg+2WY0ZfcaaSiDF/gC/bC6LLujm4RND3/zsegE X8zoa6VaPrVtv7quuHMU3y+ZkI/j8OIZ4s+FTIfGTuFx6yyTJJEFzplWI1qbbYPLU2t9 gvSIJJZ7BjsFxWsnlM69vNXA2Hnnf0fBL30L+xzTzUFQrg1rMgdrgIPJnLAuMlPGc8OS DzqVLSWOAnWMEzOHXaSjXPCYzByYs2DS/RdGNxpDX3XqnT7HoWv0SGhlwZagsIlAfNb+ u4OQXa9flTkbS0z9lupEVbVbbDvaSglbeljVJv/GMElza4wqDLruLM/JIGQADnEu9g/p 9ToA== 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=NhCY8oQAJMhMp7rjCQoI5czE5oev8Z6ZeTgeJVUiBkc=; b=nkR7M9PlbItJVNbtUc1vC36crZ1ACq/QJSopiwM+S5F1e4/Q4MdyDo9t/e7NdQidPQ e4OZFZtQTcE/Qkh9c8e5gsouw8/XfysLH5t2dgdCfNCUPLU+IRo1TS3hMZJNribisvHM xtZq1AF5B8AgeluITkcmEk/9vesDQkwDh/j2+b3gys+QRCcTNKs03A01ljsjbuA0BC0r VfoOacbNLlE6q4sYxoDpu8hju9WHu1dIuASw0jnnEoS9OXW2OHAQPUxKtMMs5uEAH70D +xbY9yvado/PU9DWcDlMna0i2c63D45Jvv3jQQCBYOHV9Ir9TwaRvkn6BjoYMGBUh51l Uueg== X-Gm-Message-State: AOAM530OMweuvCpkvGuQL5PiinUBItGra4/+BEqOY9N+wH5OmeoCa4ec +jeLYvy+7DH7scRBftHSsE3YEg== X-Received: by 2002:a1c:f413:: with SMTP id z19mr697568wma.71.1598672356852; Fri, 28 Aug 2020 20:39:16 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id v3sm1735083wmh.6.2020.08.28.20.39.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:39:16 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 1/4] wcn36xx: Extend HAL param config list Date: Sat, 29 Aug 2020 04:39:59 +0100 Message-Id: <20200829034002.2167878-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829034002.2167878-1-bryan.odonoghue@linaro.org> References: <20200829034002.2167878-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-20200828_233918_179894_757E0463 X-CRM114-Status: GOOD ( 12.44 ) X-Spam-Score: 0.6 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.6 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:336 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -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 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.8 UPPERCASE_50_75 message body is 50-75% uppercase 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 In order to get 802.11ac working the way we want, additional parameters need to be passed down to the firmware. This patch takes the full remaining set of parameters defined in the downstream riva/inc/wlan_hal_cfg.h and imports them into hal.h with some minor name length adjustments. This addition will allow us to pass a larger firmware configuration set later on. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/hal.h | 124 ++++++++++++++++++++++++- 1 file changed, 123 insertions(+), 1 deletion(-) -- 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/hal.h b/drivers/net/wireless/ath/wcn36xx/hal.h index 3cceeaf0136f..65ef893f2736 100644 --- a/drivers/net/wireless/ath/wcn36xx/hal.h +++ b/drivers/net/wireless/ath/wcn36xx/hal.h @@ -726,7 +726,129 @@ enum pe_stats_mask { #define WCN36XX_HAL_CFG_AP_LINK_MONITOR_TIMEOUT 102 #define WCN36XX_HAL_CFG_BTC_DWELL_TIME_MULTIPLIER 103 #define WCN36XX_HAL_CFG_ENABLE_TDLS_OXYGEN_MODE 104 -#define WCN36XX_HAL_CFG_MAX_PARAMS 105 +#define WCN36XX_HAL_CFG_ENABLE_NAT_KEEP_ALIVE_FILTER 105 +#define WCN36XX_HAL_CFG_ENABLE_SAP_OBSS_PROT 106 +#define WCN36XX_HAL_CFG_PSPOLL_DATA_RECEP_TIMEOUT 107 +#define WCN36XX_HAL_CFG_TDLS_PUAPSD_BUFFER_STA_CAPABLE 108 +#define WCN36XX_HAL_CFG_TDLS_PUAPSD_MASK 109 +#define WCN36XX_HAL_CFG_TDLS_PUAPSD_INACTIVITY_TIME 110 +#define WCN36XX_HAL_CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD 111 +#define WCN36XX_HAL_CFG_ANTENNA_DIVERSITY 112 +#define WCN36XX_HAL_CFG_ATH_DISABLE 113 +#define WCN36XX_HAL_CFG_FLEXCONNECT_POWER_FACTOR 114 +#define WCN36XX_HAL_CFG_ENABLE_ADAPTIVE_RX_DRAIN 115 +#define WCN36XX_HAL_CFG_TDLS_OFF_CHANNEL_CAPABLE 116 +#define WCN36XX_HAL_CFG_MWS_COEX_V1_WAN_FREQ 117 +#define WCN36XX_HAL_CFG_MWS_COEX_V1_WLAN_FREQ 118 +#define WCN36XX_HAL_CFG_MWS_COEX_V1_CONFIG 119 +#define WCN36XX_HAL_CFG_MWS_COEX_V1_CONFIG2 120 +#define WCN36XX_HAL_CFG_MWS_COEX_V2_WAN_FREQ 121 +#define WCN36XX_HAL_CFG_MWS_COEX_V2_WLAN_FREQ 122 +#define WCN36XX_HAL_CFG_MWS_COEX_V2_CONFIG 123 +#define WCN36XX_HAL_CFG_MWS_COEX_V2_CONFIG2 124 +#define WCN36XX_HAL_CFG_MWS_COEX_V3_WAN_FREQ 125 +#define WCN36XX_HAL_CFG_MWS_COEX_V3_WLAN_FREQ 126 +#define WCN36XX_HAL_CFG_MWS_COEX_V3_CONFIG 127 +#define WCN36XX_HAL_CFG_MWS_COEX_V3_CONFIG2 128 +#define WCN36XX_HAL_CFG_MWS_COEX_V4_WAN_FREQ 129 +#define WCN36XX_HAL_CFG_MWS_COEX_V4_WLAN_FREQ 130 +#define WCN36XX_HAL_CFG_MWS_COEX_V4_CONFIG 131 +#define WCN36XX_HAL_CFG_MWS_COEX_V4_CONFIG2 132 +#define WCN36XX_HAL_CFG_MWS_COEX_V5_WAN_FREQ 133 +#define WCN36XX_HAL_CFG_MWS_COEX_V5_WLAN_FREQ 134 +#define WCN36XX_HAL_CFG_MWS_COEX_V5_CONFIG 135 +#define WCN36XX_HAL_CFG_MWS_COEX_V5_CONFIG2 136 +#define WCN36XX_HAL_CFG_MWS_COEX_V6_WAN_FREQ 137 +#define WCN36XX_HAL_CFG_MWS_COEX_V6_WLAN_FREQ 138 +#define WCN36XX_HAL_CFG_MWS_COEX_V6_CONFIG 139 +#define WCN36XX_HAL_CFG_MWS_COEX_V6_CONFIG2 140 +#define WCN36XX_HAL_CFG_MWS_COEX_V7_WAN_FREQ 141 +#define WCN36XX_HAL_CFG_MWS_COEX_V7_WLAN_FREQ 142 +#define WCN36XX_HAL_CFG_MWS_COEX_V7_CONFIG 143 +#define WCN36XX_HAL_CFG_MWS_COEX_V7_CONFIG2 144 +#define WCN36XX_HAL_CFG_MWS_COEX_V8_WAN_FREQ 145 +#define WCN36XX_HAL_CFG_MWS_COEX_V8_WLAN_FREQ 146 +#define WCN36XX_HAL_CFG_MWS_COEX_V8_CONFIG 147 +#define WCN36XX_HAL_CFG_MWS_COEX_V8_CONFIG2 148 +#define WCN36XX_HAL_CFG_MWS_COEX_V9_WAN_FREQ 149 +#define WCN36XX_HAL_CFG_MWS_COEX_V9_WLAN_FREQ 150 +#define WCN36XX_HAL_CFG_MWS_COEX_V9_CONFIG 151 +#define WCN36XX_HAL_CFG_MWS_COEX_V9_CONFIG2 152 +#define WCN36XX_HAL_CFG_MWS_COEX_V10_WAN_FREQ 153 +#define WCN36XX_HAL_CFG_MWS_COEX_V10_WLAN_FREQ 154 +#define WCN36XX_HAL_CFG_MWS_COEX_V10_CONFIG 155 +#define WCN36XX_HAL_CFG_MWS_COEX_V10_CONFIG2 156 +#define WCN36XX_HAL_CFG_MWS_COEX_MODEM_BACKOFF 157 +#define WCN36XX_HAL_CFG_MWS_COEX_CONFIG1 158 +#define WCN36XX_HAL_CFG_MWS_COEX_CONFIG2 159 +#define WCN36XX_HAL_CFG_MWS_COEX_CONFIG3 160 +#define WCN36XX_HAL_CFG_MWS_COEX_CONFIG4 161 +#define WCN36XX_HAL_CFG_MWS_COEX_CONFIG5 162 +#define WCN36XX_HAL_CFG_MWS_COEX_CONFIG6 163 +#define WCN36XX_HAL_CFG_SAR_POWER_BACKOFF 164 +#define WCN36XX_HAL_CFG_GO_LINK_MONITOR_TIMEOUT 165 +#define WCN36XX_HAL_CFG_BTC_STATIC_OPP_WLAN_ACTIVE_WLAN_LEN 166 +#define WCN36XX_HAL_CFG_BTC_STATIC_OPP_WLAN_ACTIVE_BT_LEN 167 +#define WCN36XX_HAL_CFG_BTC_SAP_STATIC_OPP_ACTIVE_WLAN_LEN 168 +#define WCN36XX_HAL_CFG_BTC_SAP_STATIC_OPP_ACTIVE_BT_LEN 169 +#define WCN36XX_HAL_CFG_RMC_FIXED_RATE 170 +#define WCN36XX_HAL_CFG_ASD_PROBE_INTERVAL 171 +#define WCN36XX_HAL_CFG_ASD_TRIGGER_THRESHOLD 172 +#define WCN36XX_HAL_CFG_ASD_RTT_RSSI_HYST_THRESHOLD 173 +#define WCN36XX_HAL_CFG_BTC_CTS2S_ON_STA_DURING_SCO 174 +#define WCN36XX_HAL_CFG_SHORT_PREAMBLE 175 +#define WCN36XX_HAL_CFG_SHORT_SLOT_TIME 176 +#define WCN36XX_HAL_CFG_DELAYED_BA 177 +#define WCN36XX_HAL_CFG_IMMEDIATE_BA 178 +#define WCN36XX_HAL_CFG_DOT11_MODE 179 +#define WCN36XX_HAL_CFG_HT_CAPS 180 +#define WCN36XX_HAL_CFG_AMPDU_PARAMS 181 +#define WCN36XX_HAL_CFG_TX_BF_INFO 182 +#define WCN36XX_HAL_CFG_ASC_CAP_INFO 183 +#define WCN36XX_HAL_CFG_EXT_HT_CAPS 184 +#define WCN36XX_HAL_CFG_QOS_ENABLED 185 +#define WCN36XX_HAL_CFG_WME_ENABLED 186 +#define WCN36XX_HAL_CFG_WSM_ENABLED 187 +#define WCN36XX_HAL_CFG_WMM_ENABLED 188 +#define WCN36XX_HAL_CFG_UAPSD_PER_AC_BITMASK 189 +#define WCN36XX_HAL_CFG_MCS_RATES 190 +#define WCN36XX_HAL_CFG_VHT_CAPS 191 +#define WCN36XX_HAL_CFG_VHT_RX_SUPP_MCS 192 +#define WCN36XX_HAL_CFG_VHT_TX_SUPP_MCS 193 +#define WCN36XX_HAL_CFG_RA_FILTER_ENABLE 194 +#define WCN36XX_HAL_CFG_RA_RATE_LIMIT_INTERVAL 195 +#define WCN36XX_HAL_CFG_BTC_FATAL_HID_NSNIFF_BLK 196 +#define WCN36XX_HAL_CFG_BTC_CRITICAL_HID_NSNIFF_BLK 197 +#define WCN36XX_HAL_CFG_BTC_DYN_A2DP_TX_QUEUE_THOLD 198 +#define WCN36XX_HAL_CFG_BTC_DYN_OPP_TX_QUEUE_THOLD 199 +#define WCN36XX_HAL_CFG_LINK_FAIL_TIMEOUT 200 +#define WCN36XX_HAL_CFG_MAX_UAPSD_CONSEC_SP 201 +#define WCN36XX_HAL_CFG_MAX_UAPSD_CONSEC_RX_CNT 202 +#define WCN36XX_HAL_CFG_MAX_UAPSD_CONSEC_TX_CNT 203 +#define WCN36XX_HAL_CFG_MAX_UAPSD_CONSEC_RX_CNT_MEAS_WINDOW 204 +#define WCN36XX_HAL_CFG_MAX_UAPSD_CONSEC_TX_CNT_MEAS_WINDOW 205 +#define WCN36XX_HAL_CFG_MAX_PSPOLL_IN_WMM_UAPSD_PS_MODE 206 +#define WCN36XX_HAL_CFG_MAX_UAPSD_INACTIVITY_INTERVALS 207 +#define WCN36XX_HAL_CFG_ENABLE_DYNAMIC_WMMPS 208 +#define WCN36XX_HAL_CFG_BURST_MODE_BE_TXOP_VALUE 209 +#define WCN36XX_HAL_CFG_ENABLE_DYNAMIC_RA_START_RATE 210 +#define WCN36XX_HAL_CFG_BTC_FAST_WLAN_CONN_PREF 211 +#define WCN36XX_HAL_CFG_ENABLE_RTSCTS_HTVHT 212 +#define WCN36XX_HAL_CFG_BTC_STATIC_OPP_WLAN_IDLE_WLAN_LEN 213 +#define WCN36XX_HAL_CFG_BTC_STATIC_OPP_WLAN_IDLE_BT_LEN 214 +#define WCN36XX_HAL_CFG_LINK_FAIL_TX_CNT 215 +#define WCN36XX_HAL_CFG_TOGGLE_ARP_BDRATES 216 +#define WCN36XX_HAL_CFG_OPTIMIZE_CA_EVENT 217 +#define WCN36XX_HAL_CFG_EXT_SCAN_CONC_MODE 218 +#define WCN36XX_HAL_CFG_BAR_WAKEUP_HOST_DISABLE 219 +#define WCN36XX_HAL_CFG_SAR_BOFFSET_CORRECTION_ENABLE 220 +#define WCN36XX_HAL_CFG_UNITS_OF_BCN_WAIT_TIME 221 +#define WCN36XX_HAL_CFG_CONS_BCNMISS_COUNT 222 +#define WCN36XX_HAL_CFG_BTC_DISABLE_WLAN_LINK_CRITICAL 223 +#define WCN36XX_HAL_CFG_DISABLE_SCAN_DURING_SCO 224 +#define WCN36XX_HAL_CFG_TRIGGER_NULLFRAME_BEFORE_HB 225 +#define WCN36XX_HAL_CFG_ENABLE_POWERSAVE_OFFLOAD 226 +#define WCN36XX_HAL_CFG_MAX_PARAMS 227 /* Specify the starting bitrate, 11B and 11A/G rates can be specified in * multiples of 0.5 So for 5.5 mbps => 11. for MCS 0 - 7 rates, Bit 7 should From patchwork Sat Aug 29 03:40:00 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: 248702 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1603027ilg; Fri, 28 Aug 2020 20:39:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYVeUXlcl/uu9wkn1xqPCJNcFEW8QKYP/UUw1Rgi5ricqXJuxoreaz4CFvrzRRgqm8oV4k X-Received: by 2002:a92:7991:: with SMTP id u139mr1382412ilc.62.1598672365349; Fri, 28 Aug 2020 20:39:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672365; cv=none; d=google.com; s=arc-20160816; b=b16hGvFFXK1p8/zo/n59vgxJ1bxzb1ZnQnrT9ca2u/34KJT9Bx44qJvKe2CJOMdwqQ VL0va0X4ikQHN+Fln0nhRXlOpyG77L0RcQ/b4/WQuMHOfETRqtUork1qI5sTC3tSU4tD Pt1YxJmGWnfEbz36caPIZxF/F2gg96ghZw3jD7v1QBMv5XIaL8k2hrIlTDKWleF1nt4M D85cWpqwr727LUHHx5NPZcbJ4JfIt25Dn7WrZC5bdO337NA7F3E2yKS0P5YrbBVOWz+G md13HR7sHz11TNxoS14Ke37XZ+mBTP5rm6K7wCkTv7RivkoNq8vBmLlWmR0K3PPM5Oib Oylg== 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=jS2J4wYDxkWz0zREDf8H6JH4CVCtKT2hi6qDYwLYkaY=; b=gNUbAmqqZtY5GZbVZ/ERsnk4vKaaamtMr3ACK5h/L1Es1amesuSoacXYPhx5JIkuM9 Ur6yU6Mr26KX96rq/PBVTGm2gDKY1hTIvRu05FJJXaZtSpu8if8oMy7C4oBYeTAlVSs3 vfb160ocb0hCfNpGxqTQ1lcSpX9CF1JcZleP4CcMnekGVqjdTjFbAZt47n70UQJr5cjQ OYMrZHeqY81WSjJsr7+x1EzOF3l+i4ErAwb3B7zzV0L9O+UKyPLE1lVYeyw4BGAwzTk+ Vv1Tr/VO0gZ3M/Hs7bE4GuvY51OGzQW5/o4o3mpOtNnz/olbeM/CroQxs+XGV13OWWrC CdwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=ZVEWx0bE; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Lu5JTm+W; 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 k10si1077609ilq.107.2020.08.28.20.39.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:39:25 -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=ZVEWx0bE; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Lu5JTm+W; 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=jS2J4wYDxkWz0zREDf8H6JH4CVCtKT2hi6qDYwLYkaY=; b=ZVEWx0bEldELPKiuWIZvtyhzg pBH2FaViwgHT8qjR7KlHewURZl9Vsug+DvaH0uOLxWiyeoIx50IKvYg15AgZGijzbuHiMTAwapqQQ XFRyydwjuhSHP+pPlV6S3vKvpw1lg/qeyXAONUUJMsUZjDqriW49O22AbHlotwLkjjxjA2Rf3VNtY DG26VcXoKDR+kADK0kP1g4mlzhMf6Y34PvONKKZ8tHhVxai9PNOlFBMZ+Yx3O8P1ITmkEs27Je0Zj QrzAs2HF2Cp5bjCI9e0Ttcekj+aIySfyLQFENUMerG/ijuyHVRkDn8wmmnPbUYcHR/2n95Ic3WiRO Fvpf06eaA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBri6-0002hP-54; Sat, 29 Aug 2020 03:39:22 +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 1kBri2-0002fK-OW for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:39:19 +0000 Received: by mail-wm1-x341.google.com with SMTP id e17so743085wme.0 for ; Fri, 28 Aug 2020 20:39:18 -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=KgS2FVM9kPI0jDDgu4mJJIY1dD31Vv9triHj0kyUVrA=; b=Lu5JTm+W/0WZyg6X04GkzvzFI5z9PW8XFpqqpKOnC4ptmvGvmwKdGZpLUH83DobyIE xpny5Xmy7Qs/aptpHWsx5DsLFm5pckWPAS52f7+8OpVbbiokX2ZuUcfFbVs0mu3/Ypc1 zG9T7mOGD+vADUqcSGjCntJ7mOSiW57q+J+8jQnh5iyc45Kh+7ejupypclPysXviCVlx 6M+RaMbHg19Fl/4L8809+8kg2I8UyxRkRxfZ6a+Q2CiBISen1Y38Y4OEp54ERB+eaIcU ZihuDqbO2j4gIMpedQx/GSjd3N5XUxFrKL0YeDIe0jZ/58PlyqiTsFwNY+R6LRPxT4sH REeA== 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=KgS2FVM9kPI0jDDgu4mJJIY1dD31Vv9triHj0kyUVrA=; b=WKSaIiIdyTszLWzI4JehnKtIXAhvSZwIGyk9gSOwgf4N47w2Rpb7rE31Mp6XF66qwn yHSSbiqvESFbMwk1uW5kBdbGUqRl/sKszOX1d8S2HFRUZZNtl/b/C/NpUCdV2opksnTB YdGRB2rKdrVejY3LEDRkaTVxswPKv/lTHhm4MlmM4FzgeqOdpEhtGQfmBJVfOMu/vEkE ePW43sSvdPgDj4FYPVqNCGo8t9N0k3MV3++xlsdB7+CylxLQ5ZdW9MecOlhyF2TCHgja c4CT2gg9CTfFKukr/ej31llusDGlgNKNwWf8O7aashOWYkqhNV+hsP7Q1bWApRtkl7Pr vhFQ== X-Gm-Message-State: AOAM531jUri/hsHkTloe8HkJGNQOuIhJYL5nax9a5lgWvhWFtzW4OrBb 7Iae9q6QikpU+LhoX3UzzGo52QfHiODWZh3Q X-Received: by 2002:a1c:7711:: with SMTP id t17mr1460493wmi.35.1598672357757; Fri, 28 Aug 2020 20:39:17 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id v3sm1735083wmh.6.2020.08.28.20.39.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:39:17 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 2/4] wcn36xx: Define wcn3680 specific firmware parameters Date: Sat, 29 Aug 2020 04:40:00 +0100 Message-Id: <20200829034002.2167878-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829034002.2167878-1-bryan.odonoghue@linaro.org> References: <20200829034002.2167878-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-20200828_233918_881689_C2F36047 X-CRM114-Status: GOOD ( 13.33 ) X-Spam-Score: 0.6 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.6 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_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -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 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.8 UPPERCASE_50_75 message body is 50-75% uppercase 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 defines a firmware configuration for the wcn3680 which represents a working downstream configuration. This configuration has been successfully applied to the upstream driver with antecedent patches resulting in the same or better through-put in comparison to the downstream driver on the test hardware. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 96 ++++++++++++++++++++++++++ 1 file changed, 96 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 4b967f8ba949..b19c83b93cd8 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -80,6 +80,102 @@ static struct wcn36xx_cfg_val wcn36xx_cfg_vals[] = { WCN36XX_CFG_VAL(ENABLE_DYNAMIC_RA_START_RATE, 133), /* MCS 5 */ }; +static struct wcn36xx_cfg_val wcn3680_cfg_vals[] = { + WCN36XX_CFG_VAL(CURRENT_TX_ANTENNA, 1), + WCN36XX_CFG_VAL(CURRENT_RX_ANTENNA, 1), + WCN36XX_CFG_VAL(LOW_GAIN_OVERRIDE, 0), + WCN36XX_CFG_VAL(POWER_STATE_PER_CHAIN, 785), + WCN36XX_CFG_VAL(CAL_PERIOD, 5), + WCN36XX_CFG_VAL(CAL_CONTROL, 1), + WCN36XX_CFG_VAL(PROXIMITY, 0), + WCN36XX_CFG_VAL(NETWORK_DENSITY, 3), + WCN36XX_CFG_VAL(MAX_MEDIUM_TIME, 4096), + WCN36XX_CFG_VAL(MAX_MPDUS_IN_AMPDU, 64), + WCN36XX_CFG_VAL(RTS_THRESHOLD, 2347), + WCN36XX_CFG_VAL(SHORT_RETRY_LIMIT, 15), + WCN36XX_CFG_VAL(LONG_RETRY_LIMIT, 15), + WCN36XX_CFG_VAL(FRAGMENTATION_THRESHOLD, 8000), + WCN36XX_CFG_VAL(DYNAMIC_THRESHOLD_ZERO, 5), + WCN36XX_CFG_VAL(DYNAMIC_THRESHOLD_ONE, 10), + WCN36XX_CFG_VAL(DYNAMIC_THRESHOLD_TWO, 15), + WCN36XX_CFG_VAL(FIXED_RATE, 0), + WCN36XX_CFG_VAL(RETRYRATE_POLICY, 4), + WCN36XX_CFG_VAL(RETRYRATE_SECONDARY, 0), + WCN36XX_CFG_VAL(RETRYRATE_TERTIARY, 0), + WCN36XX_CFG_VAL(FORCE_POLICY_PROTECTION, 5), + WCN36XX_CFG_VAL(FIXED_RATE_MULTICAST_24GHZ, 1), + WCN36XX_CFG_VAL(FIXED_RATE_MULTICAST_5GHZ, 5), + WCN36XX_CFG_VAL(DEFAULT_RATE_INDEX_24GHZ, 1), + WCN36XX_CFG_VAL(DEFAULT_RATE_INDEX_5GHZ, 5), + WCN36XX_CFG_VAL(MAX_BA_SESSIONS, 40), + WCN36XX_CFG_VAL(PS_DATA_INACTIVITY_TIMEOUT, 200), + WCN36XX_CFG_VAL(PS_ENABLE_BCN_FILTER, 1), + WCN36XX_CFG_VAL(PS_ENABLE_RSSI_MONITOR, 1), + WCN36XX_CFG_VAL(NUM_BEACON_PER_RSSI_AVERAGE, 20), + WCN36XX_CFG_VAL(STATS_PERIOD, 10), + WCN36XX_CFG_VAL(CFP_MAX_DURATION, 30000), + WCN36XX_CFG_VAL(FRAME_TRANS_ENABLED, 0), + WCN36XX_CFG_VAL(BA_THRESHOLD_HIGH, 128), + WCN36XX_CFG_VAL(MAX_BA_BUFFERS, 2560), + WCN36XX_CFG_VAL(DYNAMIC_PS_POLL_VALUE, 0), + WCN36XX_CFG_VAL(TX_PWR_CTRL_ENABLE, 1), + WCN36XX_CFG_VAL(ENABLE_CLOSE_LOOP, 1), + WCN36XX_CFG_VAL(ENABLE_LPWR_IMG_TRANSITION, 0), + WCN36XX_CFG_VAL(BTC_STATIC_LEN_LE_BT, 120000), + WCN36XX_CFG_VAL(BTC_STATIC_LEN_LE_WLAN, 30000), + WCN36XX_CFG_VAL(MAX_ASSOC_LIMIT, 10), + WCN36XX_CFG_VAL(ENABLE_MCC_ADAPTIVE_SCHEDULER, 0), + WCN36XX_CFG_VAL(TDLS_PUAPSD_MASK, 0), + WCN36XX_CFG_VAL(TDLS_PUAPSD_BUFFER_STA_CAPABLE, 1), + WCN36XX_CFG_VAL(TDLS_PUAPSD_INACTIVITY_TIME, 0), + WCN36XX_CFG_VAL(TDLS_PUAPSD_RX_FRAME_THRESHOLD, 10), + WCN36XX_CFG_VAL(TDLS_OFF_CHANNEL_CAPABLE, 1), + WCN36XX_CFG_VAL(ENABLE_ADAPTIVE_RX_DRAIN, 1), + WCN36XX_CFG_VAL(FLEXCONNECT_POWER_FACTOR, 0), + WCN36XX_CFG_VAL(ANTENNA_DIVERSITY, 3), + WCN36XX_CFG_VAL(ATH_DISABLE, 0), + WCN36XX_CFG_VAL(BTC_STATIC_OPP_WLAN_ACTIVE_WLAN_LEN, 60000), + WCN36XX_CFG_VAL(BTC_STATIC_OPP_WLAN_ACTIVE_BT_LEN, 90000), + WCN36XX_CFG_VAL(BTC_SAP_STATIC_OPP_ACTIVE_WLAN_LEN, 30000), + WCN36XX_CFG_VAL(BTC_SAP_STATIC_OPP_ACTIVE_BT_LEN, 30000), + WCN36XX_CFG_VAL(ASD_PROBE_INTERVAL, 50), + WCN36XX_CFG_VAL(ASD_TRIGGER_THRESHOLD, -60), + WCN36XX_CFG_VAL(ASD_RTT_RSSI_HYST_THRESHOLD, 3), + WCN36XX_CFG_VAL(BTC_CTS2S_ON_STA_DURING_SCO, 0), + WCN36XX_CFG_VAL(RA_FILTER_ENABLE, 0), + WCN36XX_CFG_VAL(RA_RATE_LIMIT_INTERVAL, 60), + WCN36XX_CFG_VAL(BTC_FATAL_HID_NSNIFF_BLK, 2), + WCN36XX_CFG_VAL(BTC_CRITICAL_HID_NSNIFF_BLK, 1), + WCN36XX_CFG_VAL(BTC_DYN_A2DP_TX_QUEUE_THOLD, 0), + WCN36XX_CFG_VAL(BTC_DYN_OPP_TX_QUEUE_THOLD, 1), + WCN36XX_CFG_VAL(MAX_UAPSD_CONSEC_SP, 10), + WCN36XX_CFG_VAL(MAX_UAPSD_CONSEC_RX_CNT, 50), + WCN36XX_CFG_VAL(MAX_UAPSD_CONSEC_TX_CNT, 50), + WCN36XX_CFG_VAL(MAX_UAPSD_CONSEC_TX_CNT_MEAS_WINDOW, 500), + WCN36XX_CFG_VAL(MAX_UAPSD_CONSEC_RX_CNT_MEAS_WINDOW, 500), + WCN36XX_CFG_VAL(MAX_PSPOLL_IN_WMM_UAPSD_PS_MODE, 0), + WCN36XX_CFG_VAL(MAX_UAPSD_INACTIVITY_INTERVALS, 10), + WCN36XX_CFG_VAL(ENABLE_DYNAMIC_WMMPS, 1), + WCN36XX_CFG_VAL(BURST_MODE_BE_TXOP_VALUE, 0), + WCN36XX_CFG_VAL(ENABLE_DYNAMIC_RA_START_RATE, 136), + WCN36XX_CFG_VAL(BTC_FAST_WLAN_CONN_PREF, 1), + WCN36XX_CFG_VAL(ENABLE_RTSCTS_HTVHT, 0), + WCN36XX_CFG_VAL(BTC_STATIC_OPP_WLAN_IDLE_WLAN_LEN, 30000), + WCN36XX_CFG_VAL(BTC_STATIC_OPP_WLAN_IDLE_BT_LEN, 120000), + WCN36XX_CFG_VAL(LINK_FAIL_TX_CNT, 200), + WCN36XX_CFG_VAL(TOGGLE_ARP_BDRATES, 0), + WCN36XX_CFG_VAL(OPTIMIZE_CA_EVENT, 0), + WCN36XX_CFG_VAL(EXT_SCAN_CONC_MODE, 0), + WCN36XX_CFG_VAL(BAR_WAKEUP_HOST_DISABLE, 0), + WCN36XX_CFG_VAL(SAR_BOFFSET_CORRECTION_ENABLE, 0), + WCN36XX_CFG_VAL(BTC_DISABLE_WLAN_LINK_CRITICAL, 5), + WCN36XX_CFG_VAL(DISABLE_SCAN_DURING_SCO, 2), + WCN36XX_CFG_VAL(CONS_BCNMISS_COUNT, 0), + WCN36XX_CFG_VAL(UNITS_OF_BCN_WAIT_TIME, 0), + WCN36XX_CFG_VAL(TRIGGER_NULLFRAME_BEFORE_HB, 0), + WCN36XX_CFG_VAL(ENABLE_POWERSAVE_OFFLOAD, 0), +}; + static int put_cfg_tlv_u32(struct wcn36xx *wcn, size_t *len, u32 id, u32 value) { struct wcn36xx_hal_cfg *entry; From patchwork Sat Aug 29 03:40: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: 248703 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1603038ilg; Fri, 28 Aug 2020 20:39:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaOva4QBh4YpjitGYC0ttvfuaUquYAv1Y9ZVJMTLyPeLvEDJXrcatOl/F9HskbaFoe2s/l X-Received: by 2002:a02:9149:: with SMTP id b9mr3839064jag.50.1598672366549; Fri, 28 Aug 2020 20:39:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672366; cv=none; d=google.com; s=arc-20160816; b=s2pDGhhOX1ovHuVo/OrWSkiSzRVNTOceCZuvTX/4283WR9sZR/6LxeIuDJkB/X0oan Z2U9hXNVifo5W/UIOM8/I/kRtFLi3PdrJAc3/W4MNIEs5abYjkRFlGtV0BwMIakLSEID Vq/A8XlZV56ZHZeGoBoZZmEWdaf3fLhIbM1slJjcvQyhJLpaoWks/AmFWAAOtJJpsSyy GTVVTXbLeR1up4fskM+ppPGkrBlg9JIwhmI6QJ/YZnEnOwn0GKjsqf8EgfYPP94+C3RG A1030WVXpszuu5i6SD3+MFXKCevgLhx8TmW/wt1+bbo4XMB6lc30i9o/fJw+iDgTgiQh D07w== 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=LOf9Ar9nyRQP331BGyOzNwR9QF6HLdHf3ZNodoiYaII=; b=TY/9DarjEGy68UMAjjys3heQ6/fkIT/b57Z5XBvU1hhuScd9eGl73RmMsMgzdPmxxD MlYyQBfc5DbdSIBiao9JplaIpgD+o/Zc52RAMDWnwiUcznIu1gMEyoGx7ZlObdEsIQ4A tlyE7zQ1bjyucFrWS8kIwyGQSwNv3kkkmEZAcjY2eAKQeG3xsIyteIf0iW63P0IRXNmf p/JP8Z8EKmZ7Qs3+oUD13vb1zDbeNEL9NqOYz+CiwA7FFFfRLrNQnIR8t9vso0Qmmqs8 IwMlfpaZGo0bPbPJGz6LoF0NUVK6pwlyPe/nwNfBM6xV7CyPT7Jj72xw1qbilBjrbz6S h4Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b="1b//nLeC"; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fnd4teTt; 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 y4si1114571ila.93.2020.08.28.20.39.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:39: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="1b//nLeC"; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fnd4teTt; 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=LOf9Ar9nyRQP331BGyOzNwR9QF6HLdHf3ZNodoiYaII=; b=1b//nLeCkGAnTtF1vE1bR63AR i/pPNiU7n4Cduo2zPDwchamLzr30ccbjmWKrb8tr9Bv1T3uTAg7MVUehy7omAZVpROwRnA8TcxnfD Ip8lk8W/XOIU3TGbEWW6BVdOrAairJMfVYBmIq4wG1rQQ5DMxz5FnIDeoge/DOLDtfxYFYDP5yKvu jPnOy3S4RfDy9Qsf5aVXd1Ke+aZQCCa8ivSohMdJ9mq978wD76IzEh3e1XxeDXUF3Lrz/zlywJJWD F3LPq2HKTU45a/x0viDuUPFUQWamf+X5Hbgch59HIMbAWz8TiQP32Q4OC3nV+KSuVv253SCqb1XkK SEtq2zANA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBri7-0002hq-In; Sat, 29 Aug 2020 03:39:23 +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 1kBri3-0002fy-NC for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:39:21 +0000 Received: by mail-wr1-x443.google.com with SMTP id b18so873289wrs.7 for ; Fri, 28 Aug 2020 20:39:19 -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=mBPSamWvTI8jSIxlpjkAWuODo8a6eVtbug19TSHtbA0=; b=fnd4teTtsXaDTK5YTab+19NYzem1hkFE+V6UKgWIUleTHs8xHmUAEvol59niuWh+qM ma7Y35ApH+GxlbmU96FMfZsy9aZ7rT0lWn/RnS5Z1tT+1VVfEGSRIyQRDePqSHjS4BwX OWJrxAOwXNEwZBLUmLLqiMZhoFqozUlcU1a6eLkrvO8hzh/C5YTZC6d9qniTT1HcZNYP Y45RQWVLx/XcgUGrO+J+2oj4UphCv+2ip6V10alQbkKWzWWN9Pl0fC2zAux9JSdNZYm3 IRdv3Y2iJkc7TZyc2QGu2A4IklqdbogJjnCkmesLjCHpEw6d8FJt8NHNSnEvqP9OCFZ1 x9Aw== 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=mBPSamWvTI8jSIxlpjkAWuODo8a6eVtbug19TSHtbA0=; b=AhZRrdVVxU9cbYwNM/cpZuCN9jbGFrLSuuUmIphM7Pa4h5r5Kcd8RlMW0DL4D66+qw XVtJjk14Gg0txrHY0HA0KRjDl9KqLOCKRXElTnDVsY8UYA4hkCayFI3QfDZSAC5i8j29 bmUUiikuAu6Un4pnzrB7mO1MJg80NK0CiQA3T/D4p7uW3B/RsC5/M9JQYbl+kwyxasyl vPQ4YufWcr0MFHKTN/pt1fNqRVl2mJFlv0L+jyRldLlWhuw+oEzWYCI/BO9LyRBZBAHK onQ5MwBWLBVlQMwULXEFUgt7YR8Q4wgCPD7loexrLidup/xhwlcaH1Tpnj6Y8W8Uh38j lxmA== X-Gm-Message-State: AOAM530FVr8I226+dzdLgdjmV9tMSVUSG/u7/znff0yU3Gu+x1e7/o7E sHZexVyCAIQFtG9HTe1tUUraZw== X-Received: by 2002:adf:9ed1:: with SMTP id b17mr1705289wrf.227.1598672358848; Fri, 28 Aug 2020 20:39:18 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id v3sm1735083wmh.6.2020.08.28.20.39.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:39:18 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 3/4] wcn36xx: Add ability to download wcn3680 specific firmware parameters Date: Sat, 29 Aug 2020 04:40:01 +0100 Message-Id: <20200829034002.2167878-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829034002.2167878-1-bryan.odonoghue@linaro.org> References: <20200829034002.2167878-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-20200828_233920_713052_7C9CA6F0 X-CRM114-Status: GOOD ( 14.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:443 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -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 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 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 modifies wcn36xx_smd_start() so that it can download wcn3680 specific firmware parameters if we are talking to the wcn3680. If not the original generic firmware parameter table should continue to be used for wcn3620 and wcn3660. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) -- 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 b19c83b93cd8..3785931d3df6 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -616,6 +616,8 @@ int wcn36xx_smd_start(struct wcn36xx *wcn) int ret; int i; size_t len; + int cfg_elements; + static struct wcn36xx_cfg_val *cfg_vals; mutex_lock(&wcn->hal_mutex); INIT_HAL_MSG(msg_body, WCN36XX_HAL_START_REQ); @@ -628,9 +630,17 @@ int wcn36xx_smd_start(struct wcn36xx *wcn) body = (struct wcn36xx_hal_mac_start_req_msg *)wcn->hal_buf; len = body->header.len; - for (i = 0; i < ARRAY_SIZE(wcn36xx_cfg_vals); i++) { - ret = put_cfg_tlv_u32(wcn, &len, wcn36xx_cfg_vals[i].cfg_id, - wcn36xx_cfg_vals[i].value); + if (wcn->rf_id == RF_IRIS_WCN3680) { + cfg_vals = wcn3680_cfg_vals; + cfg_elements = ARRAY_SIZE(wcn3680_cfg_vals); + } else { + cfg_vals = wcn36xx_cfg_vals; + cfg_elements = ARRAY_SIZE(wcn36xx_cfg_vals); + } + + for (i = 0; i < cfg_elements; i++) { + ret = put_cfg_tlv_u32(wcn, &len, cfg_vals[i].cfg_id, + cfg_vals[i].value); if (ret) goto out; } From patchwork Sat Aug 29 03:40: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: 248704 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1603041ilg; Fri, 28 Aug 2020 20:39:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxx4MkK252KpZxV2Mqp8JzBM9OzArJ0xriESjpsxcUaKGa7ZK3X8+6cJKvrEqD79gPUAXgZ X-Received: by 2002:a05:6638:1690:: with SMTP id f16mr3914947jat.91.1598672366875; Fri, 28 Aug 2020 20:39:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672366; cv=none; d=google.com; s=arc-20160816; b=cSfx+zakQoDNeIvd0zRW2zcBsemEcsA7irdNuFnAT3KjBi/eeGWuV19uRHjcjI+ovd tasKYa0vIkY8W7Uab1fBoxBNEgDspr/IWp0WtGL7bETIGnw6EnWbhPB1MGQ5Yu6h9PEe 2jUTnOTkGon0IxBQ+Ru2CMJAe638ar27jBu8mCZWNERj1eY20E17JQkDx3l8hPxIlPsf JDHWsQw9WWc1y49Rwq5RmCcfQb7L2nM/ERccVg2kkOJqx0FNtD5wFNSb3O52i3yvqMSc H2lpdhmTfhpDpqggW9Ji29Vg6o/RozZSeNlojvXYpXpVZE+qTJGvEX3HSMHB2x43z2rt XHZA== 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=+kXo5UFR+B/BuCKblm4mvUwQVWQkZftOM6wvIFIu2xU=; b=gUQfQEdMFrffZ6XWXFIdX8RBv6os3SsXhuWZuN/fQSyDiDVhsCmoCByODyOpyQ6ORd TFdGTLgjZtcZ5ngRtR1tq2JjUWv6Oa/25dxnvDR7TB4J9TFsuGM/ydBm0cd1WgZJQWnH n8DwmhWRF33Y3vbQP6dBMdomdC36wQxNpYP2BZlMmOg31y+4vWIrD/zmW/E2qTYfemSb FjyMw5zGDy1UVqqREoaCkkV+kCDA7pPb+eTpjG8vV8EFCdq/CMgxtilvFZFm0E/uSXbi 9PmlAsQxGDAM4tZTo3ECk3ryF56aV9nJIEeU/0XxTVx7bFN3g8tunBQXJROO48r0DNPI 3HHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=XShuWLU8; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=IqMioRpd; 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 v1si740611iot.31.2020.08.28.20.39.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:39: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=XShuWLU8; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=IqMioRpd; 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=+kXo5UFR+B/BuCKblm4mvUwQVWQkZftOM6wvIFIu2xU=; b=XShuWLU81TIf8ubgGB1jKW7AX hgIP3wgH2nV5ac5g1ElRRZA0JSw1n+vn5hj31+xeUqggV49czxuv9mIR1WJVNuJzMF/unp3/5oxgU UDxmZoqt26lfmgKmhPxFns0YobrlCBN1fZp8bgghOXPxfRQaxEZIb3w1yj4JGj3L4JW9V96KqNg1o kVTCjrfcb4kbGbDLO3R+LkYaEuNPoy+UeIl+eVwJPNH2fKxExV1lSYpBkkWR/XiU3wTClRNP/jw6a U8aCxywB3rZjEPs4c42xM7STc5g7bIksF13TwCEcOFtYUNF89CqqCwRaOrvk2oiBpkSQssJF7NU45 FEi1nGMrw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBri7-0002i8-WA; Sat, 29 Aug 2020 03:39:24 +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 1kBri4-0002g9-Nb for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:39:21 +0000 Received: by mail-wm1-x344.google.com with SMTP id y8so803701wma.0 for ; Fri, 28 Aug 2020 20:39:20 -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=ekFwZ3tqG/cjjafUdGzV3N2Ok6t/LpyXp5TP4+r/16o=; b=IqMioRpdWZULzAUKwVdGCIMzABsFMMvRg7pRXEbXMLPNMrbMlIi939TB7/720BcLJQ sxAmR/bwCgQkCcUZLMum5LDkWs0aqLPTiB0ynbfPp0WLVqZddgN2WXgG0Hdk/PWfybba I9GLeKhk8rTvi+LWhg4U1KauEMa/YNlNE+eEGpOt/OIZ86cP1gitlU11gdhOm4pIZkCL /wZICmXCpmWOWtxz52SHzgoBYKo4C05Z9ybB6f9xC3nAfihgbMvQaHJJhpM5xrExArQr KXirN3j5Pvgu8IwVl7nrBbAxF1UXVSMQxCi5mLJMQ1HkSzx3GJYYORBZMbI0QL11uxPz lHJg== 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=ekFwZ3tqG/cjjafUdGzV3N2Ok6t/LpyXp5TP4+r/16o=; b=HiQhzMBxTjxnioMNV4J+gmzDHGeR05Kq0XQqALOMr/7+tQXRBG2O95W3HWotF5JSih SwFxpOIU0Kb07OZNGRhieUroSLtNg7HySdIcFPBrFMWSEIsCUI5+dsgLCR8QzuNvGSrd rYJ6qxVBU684tAgE6/jxXdOxJnfBaIU9Y4uHs1G0HnG7tLGeDgL28VZqzH5OEAxRJGNN p49VFpZ7r83rn06a5vJANcwx1P671szMZty/y9QWQpGh3FxY4i/FiR3L9YJ0UlOce89E EplBaDJGpEoFDX0Aandw3+lmcvTJEOKNd72hNtRVaynxlHGcmICX5g1ZBJDLaOhy3leO PnSw== X-Gm-Message-State: AOAM5306V0/0wHsCHgzuKt1ovVURH+En0g3knmvRgmvi4ZPZlcilvuuZ c913YCDcv5gKc5jZW1gKy5++Rw== X-Received: by 2002:a1c:f207:: with SMTP id s7mr1498720wmc.22.1598672359760; Fri, 28 Aug 2020 20:39:19 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id v3sm1735083wmh.6.2020.08.28.20.39.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:39:19 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 4/4] wcn36xx: Latch VHT specific BSS parameters to firmware Date: Sat, 29 Aug 2020 04:40:02 +0100 Message-Id: <20200829034002.2167878-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829034002.2167878-1-bryan.odonoghue@linaro.org> References: <20200829034002.2167878-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-20200828_233920_858296_A09C730B X-CRM114-Status: GOOD ( 11.52 ) 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_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -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 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 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 makes use of wcn36xx_smd_set_bss_vht_params() to extract VHT parameters from the 80211_sta structure and latch appropriate bits in the bss_params_v1 structure for transmission to the wcnss firmware. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/smd.c | 2 ++ 1 file changed, 2 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 3785931d3df6..c9a765013719 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -1691,6 +1691,8 @@ int wcn36xx_smd_config_bss_v1(struct wcn36xx *wcn, struct ieee80211_vif *vif, bss->tx_mgmt_power = bss_v0.tx_mgmt_power; bss->max_tx_power = bss_v0.max_tx_power; + wcn36xx_smd_set_bss_vht_params(vif, sta_80211, bss); + PREPARE_HAL_BUF(wcn->hal_buf, (*msg_body)); wcn36xx_dbg(WCN36XX_DBG_HAL,