From patchwork Tue Sep 8 18:25:26 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: 249338 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp4792008ilg; Tue, 8 Sep 2020 11:24:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxd6Znhbmkjw2Yltvy4F4lOcOy1aCjBmdICDNZsRKIpKN3kHOt9XIrnoLeIFa+9Pia+noiv X-Received: by 2002:a02:c8:: with SMTP id 191mr240628jaa.128.1599589491465; Tue, 08 Sep 2020 11:24:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599589491; cv=none; d=google.com; s=arc-20160816; b=JdSClRYtqUA4a4J+nAJ0eKuxXgdj5eaN7AGcQoxQwQY+ZQihwt7Br1x3rkgrVm2Xnz 9FURSIywgRkDgRaGHiCy5PH5gERoOLr9Qnk3pvP9Ro2cGb8vVslxkYnc+lzBW4m5Jk7L 6w7u6ILE1l0erfMIegQUVvP3eg/oWTjxJDFnO9hMxyelah179oQZ9iB86bI3XBJwcoML D5ruylDCb4UiCGdF0gkD54+X4Clsd9Zq/bwc22n04BQrWpuLeDVDKAEMXSS1Zef3DY0Q Ti4hoDIGky71/4wtbwX/ckT7+neZT2VhfsHLHYmukJiufvqX3mil+wPAsZItc/yNs3Hs UClA== 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=UZeIjmuNIeHDLoZlZMteyzW1R1br3P+XgMNr+YzU2O69MSZ0iuFK1aox3bperIIUop XfW4vNCBogY07kMEt1x7amdV645XD7OoByHkfyPV10A70zaa1pGfwZbxAMPX699zv+m1 W/LkmxWKeEe0bRnqfYXhZ2r4qyB+jz7711um9CfH1Zb1qzycu2UjRFoZXI/44ozBnNIN AtdmNuupqh+IZypYidjeiz+sMD+bCrYJCOM0vA80mWfx0rzNsi9kDBQS5hRyVlcvU+rb laRx5BWeabNzKlvOLd+C2+1d1ONx/IOWNu7frrrUGBcsOAqBxE8zRIJy/5YE5SuwQ5bp XeUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=RHAHfIgV; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=tMYJBYlD; 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 n4si17367518jat.4.2020.09.08.11.24.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:51 -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=RHAHfIgV; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=tMYJBYlD; 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=RHAHfIgVEwUyJZl2mCdRhwzjb LVw0Ogo4QRyNXVv0TimzwWpcgQWaP5IlHaAPc8UWzpWrfSLIflbJLqOxYMLAv5vzHzeSabckY7ozy pgC7sw1s8CrCkTUsuM5E4wpR9KIGj3VK2qHzehpOXKVmVk/VLu0w+tayrvqPES4vqO7THt5+2zPki dzTlwJ9uygPuEujQer40ROlszzJUq63eCdG3v1k7EazBcByJXseW6pAGuJ0TgyAEABzbJAYLNUA7M XRWPeNHnA1Fvr3yfsnTt3vdzcPx1sbJtqo56KyR76hLDriLx8qFVPB0elEiDBMIlZ8sD7+2fKsOdX TTlUOX2jg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiIS-0005Qf-3i; Tue, 08 Sep 2020 18:24:48 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiIO-0005O8-PD for wcn36xx@lists.infradead.org; Tue, 08 Sep 2020 18:24:46 +0000 Received: by mail-wm1-x334.google.com with SMTP id b79so299220wmb.4 for ; Tue, 08 Sep 2020 11:24:44 -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=tMYJBYlDunT0VqZ6aVGMfhNKOZo40P08UIcoTouaW1lnyAwvyTzrhseLnZeEj1awnx h2iF48axAFDSV5b9ws/rkkoWDN50DR6/L0iVDXRW69SjWBWgWFCnhP4yLQJkyEfzEOco dycTyx8DsZNRS3opSd8hrd7l5a4FIBNWhN4127mQp/6Jtuel0Va1bsejqkZAK3nprSwV +gd5dhy0VWTZ1I7ImgkFIZmv8jGIfN0EVqkxIc+1fxmCl89tCLOMAkNqgmQUpsnjVzKK 0L4z0PNR195t9AympQAOaBjDmW7chUY5DTMMUs0TTeY2HzWrq7+NgypJmoJKC3AE3q23 a5aQ== 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=fs5yWvCpvnKyhl9txbSaNi63DPXOsw2QoANAQicuI3Pvl6EFObvWGyFrC9y5k7TGPX nkv56r6eyGY2A4HJ9C2rmH1DwTACDs+7NRv9+eNb99XuHRDZ+PY6kTO4flTQM9UBsg8+ 0vq/0JvGPe17Mo7i/oqGNSAi4bETRagtOSKXb/BF98YAnhk0FuQHGCqLIqezcMIZM8KN uRFY426a9Vh02Jv08qhFBCh2s0dvVE5Q/ZUh1HOGDStXN8r5jAHnxlhNluIhieWk0Zaz 9wxgxwZtDMo48Stp70sKtx02kd5akQMFGXodLCKw3cleMtRF5bI0002Ed2yGQtI6nSWA tQ7Q== X-Gm-Message-State: AOAM5327Zvzk7GheTJmatj0P0Rh5VACBBOBGpQykk+jvMSEKCIi5LUR4 fFpFiuk+XMH6oPiReSwwK4q4aWToUUVd0Q== X-Received: by 2002:a7b:c95a:: with SMTP id i26mr406613wml.25.1599589483250; Tue, 08 Sep 2020 11:24:43 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id b84sm381427wmd.0.2020.09.08.11.24.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:42 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v3 1/4] wcn36xx: Extend HAL param config list Date: Tue, 8 Sep 2020 19:25:26 +0100 Message-Id: <20200908182529.2870478-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200908182529.2870478-1-bryan.odonoghue@linaro.org> References: <20200908182529.2870478-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-20200908_142444_847620_B1724977 X-CRM114-Status: GOOD ( 12.55 ) 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 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:334 listed in] [list.dnswl.org] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -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.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 Tue Sep 8 18:25:27 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: 249340 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp4792021ilg; Tue, 8 Sep 2020 11:24:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvyK/kdFp03+hX4ej4yss3HnghdTMQlrj7d5A8pQmkwMC8qZUNUFyyrV3fFMR0s46+/5L/ X-Received: by 2002:a92:aa05:: with SMTP id j5mr33103ili.109.1599589492089; Tue, 08 Sep 2020 11:24:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599589492; cv=none; d=google.com; s=arc-20160816; b=tis3OjBJ+SyKj8frWzlKGA+0DVppuEcGwmQRyWUIC5lMvnznVFHPa7lXJGhevJ+aiu kphXwsey6BADMyIkrX3RoTllL+Pg/QHiW85HRIZrLkimmTXjXgAn6aH8IR9PkIS+DdRj cZc2W0qQ5TgEkUG3Lb6RaK1SP56hRI0LKy5f7cpzo9YEU/uPdcqmJ6U8ZMxlJGVXtqFI +O69d6IQbyQbqmkH3qhFBT5AsPQq0A2YVUMSDUKH+iXzv/VEyv9PkR9K0PFdHYwJlB48 yqcMUu8RMZJprcoPvVS8voSsy8IrZVPdQeONzzIWePYowQ1Y2luwNy+zc5IUjY3VGfw4 EYvg== 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=Go5zbXQR7fOMi46NjyM2uzpm/SZIyEU8cfuNKdJcHHU=; b=HV9p0y90ODjWBVmEzc+hZUaqvoOmxRRaFg8G6t1Tc2dTxms4ukvWT/TsaNzGvitTA/ f1qBN9OaGU3ILGyay03Kop8PwlrJyU+FVSYO+O5PQ+p4Fap3snzlGed6LC6tBraViYoH fbI8uvGSIMxXYGGDLJIUiuw2CGp31e2or/kp/hjAH9DYoSujkyD0GSbpd4Hc1/Y+q1CL ozVbh7WZ13eKDJAdVL3LqkQQuAVCbnWdCvTwzg2atatjD7EKTfb4nIUpCINhFKz3F76X hfdR3v4MUHERBOodY0qwqb4h6+8lVzhC3+RMXjmdy1CQBAugOdZ5s6bSRP5uOf+3QPpe IrAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=PX+zUq+W; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=nB86JucE; 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 v7si181110ilg.138.2020.09.08.11.24.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:52 -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=PX+zUq+W; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=nB86JucE; 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=Go5zbXQR7fOMi46NjyM2uzpm/SZIyEU8cfuNKdJcHHU=; b=PX+zUq+WmrJ1LL/l0ArAmkpmn /9dAHl3AFJu+2MVYCkwE60BGCqEwfuy2oeserzN5jt04Lf7kFYVLXQKFOm7+mrStkmb+l1iIGQF1m XOaL0ZRureYGLV+tYFn/kQHgYcncKQ649BbFNkUeKHzVfo8CCujtEtqxuo6UqOhsVQe3xs0WuKuSm GdjgaHi2x6RQ8C/LLEg2OAjJuMODnprR3ryz5+e3TuC6yzaIAb37t6PBt5dVBWTpUaOUJ+eGA3pXF krWFzMLWB8TuYdE2cLhTwq/7+dstafY5jjgIlTDp9q5FW7IUhqpr+TWpKToQ1Kx797KmwqQLlvbDl UHjew9LTA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiIS-0005Qr-Je; Tue, 08 Sep 2020 18:24:48 +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 1kFiIP-0005OO-3B for wcn36xx@lists.infradead.org; Tue, 08 Sep 2020 18:24:46 +0000 Received: by mail-wr1-x442.google.com with SMTP id a17so220090wrn.6 for ; Tue, 08 Sep 2020 11:24:44 -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=4pGU/nA6g15qp72AzMRC+uHfqrCO/h9FmNh2p9v6T5o=; b=nB86JucEbA+swApOFbqTnRCSUZV+UhDr/5cI7JDw5kyCTu4oPKPdjNDnNkPB4uR4ub d7GnBZol/Dv/Vicd1K7Ax3qIcwCKeGHnGHHJa3NwPaagPMq+cx1DD8ivYLUzD56629CD A3948XQb0UsbJtOOjrVudMhl9s98BL6ZKP/c3HBQQ2VRPQKEuv8NtO3NIXOweZVZNZjW TjhcAuu/noaJI6Fx18VxH3WtS6O5SKxNn7ttq1RGhIRe0kBZd4WuYPqZNDplHdkQq0pL IN5PklerW7VhSo09TnJCHGbxqX2H2rILibW6+T0UPhJelEo+SMBp3/Qlc9YvM2eXesjW nisw== 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=4pGU/nA6g15qp72AzMRC+uHfqrCO/h9FmNh2p9v6T5o=; b=a40FHbslaIm/BhpZUkdM3ErOJmQ3uuP9i78NsprYGWO+zq6sC5w0OY1WHpxOM3uETX AjZPiL3gyu8g0QlnqL7zIU0kvmbBzdTPOv+rHU4VBs+IHurXEW3bl0qQHM/+t/jBmIX/ FUJGZ9v9PWvyTu096/DU11NN9VpYkxgn5ih7KSVUV4J99F5dwmpSiOsEoquhsCSt/dS4 gT55yVb/e66dqUay27cjhYxIsO9yRYXS0c29Krkm7C/cJScdJftE10/PsysOe+1nHWa/ M+tkN5PuWZyee0/VmhxyyVZdXxzeJplj5gcGn4GZHabYDO5Kgea3PqO+FVaZolNbN5ek gtbg== X-Gm-Message-State: AOAM530SKJSg30yhGfmWAj78imvxiQsndYnGKE1jAHdBuJ46bTO5o6sv FKHuNpxf0FXL7i/mP1aF5cOHhg== X-Received: by 2002:a5d:4e02:: with SMTP id p2mr1007697wrt.276.1599589484150; Tue, 08 Sep 2020 11:24:44 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id b84sm381427wmd.0.2020.09.08.11.24.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:43 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v3 2/4] wcn36xx: Define wcn3680 specific firmware parameters Date: Tue, 8 Sep 2020 19:25:27 +0100 Message-Id: <20200908182529.2870478-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200908182529.2870478-1-bryan.odonoghue@linaro.org> References: <20200908182529.2870478-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-20200908_142445_167065_2DADE4BA X-CRM114-Status: GOOD ( 13.43 ) 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: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 Message has at least one valid DKIM or DK signature -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.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 04822edaf631..4a53d4b515df 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 */ }; +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 Tue Sep 8 18:25:28 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: 249339 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp4792019ilg; Tue, 8 Sep 2020 11:24:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyC6Gh6IGTqiC3yT+hZVWZpaa75h+IrreRUh48bAF/MguhAXdz2PyFmfb2NYIWMaQPFZdV X-Received: by 2002:a05:6e02:690:: with SMTP id o16mr49782ils.220.1599589492110; Tue, 08 Sep 2020 11:24:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599589492; cv=none; d=google.com; s=arc-20160816; b=ykE1cNnf+V62wOkIEj5D1eMawh1kmJLd+85KzePrfBV64KAzlWbhzQ4O71nWi4ez/m b2bnIdN2a/jcWFNoIjNCHHMM482ejthvun9k3dsv9XvtVxf4LgVLAQubZDoDivUSvRu0 Bi3qDM2n2I/WIqCkhtAnwWNPG9bh4BSzBPe9RfP9tEVM6QQsqNSamNRNT9A9vZceia/+ ltnoqmKKbaLLTx1Z9FsjExtb4xzDvkkhAXmBVLky+JJ9aWNdBPPRDaZSD6t8LtcskR4W UBFo6rgpXEOfKzDFWYJiFAub2l6Zbu8NLh5gbFN1LMs1ijEwsFo4biqTT608i8pkRdoy 7N3w== 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=XZthyf+bbHmasxebVXX1PmmgnQk8O7X2NUnX50GxxYs=; b=c9mu8qeFBQ4o60GxLzBstwM1+wSvvnZ2lbLSVkoA7Xk/tWRmHPCyQCElSkN/cbPxej TGaci6fc3EDgNMBxrF5YCP1OuOsNhSuCv5IOAj1XjJPjq27IGxjMq+rlwYBEnlxdpZld YiyJ5jGXX1UVMv0iUUESVk+9exOIrRv4hX22N/q3DJTndFy8niqFOwRpGNgrNxrcX5EE BMmW9Dz9jqkPfeJJZ+SCMb5WCDIDD8/0EHCuldIsrZWjT8kZdm9/mmZH2Lw5bhfEKRIV Yi4scNWRtrCLTXZ6qJTuqi3exH2xuyJAKVM+jM5z1vdynUs6vLAYNBJ9HJ/NX6brkXVC VTVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=a73WCppH; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KaBUFp+V; 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 y12si14997582jao.41.2020.09.08.11.24.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:52 -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=a73WCppH; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KaBUFp+V; 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=XZthyf+bbHmasxebVXX1PmmgnQk8O7X2NUnX50GxxYs=; b=a73WCppHgSMDxGA0rr0u5kVS2 jhYsvGMH1bvP0fVID09ek3XX8P9A/D95LHcMIwXX/7n0KD2LAV10Jyt1uAsRo4m3Q/DP+5ue3Xmc3 ez/Yzv8wWrAFcc6ncaSQNNxKGQP4esjEc+g7rDrOIM2BvpilSRf5N3bdutTYf7msfi9MdADVD9h6D ruFO9CzvrSzmAMWtnmUP41qfYKBlBGBzs2yXOveB455+BnwwbECzJi03ZcStx1GWpQhkvGSJe8oef ROTWZvw2S2aJNeeLszs9jwDXRwKISkyE4/DK0B3u6+PSKFGT5aKCbZ1phfDq9T4a+Qi4rLVMeL6tj T5+hAOyLQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiIT-0005RD-9K; Tue, 08 Sep 2020 18:24:49 +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 1kFiIQ-0005P4-6k for wcn36xx@lists.infradead.org; Tue, 08 Sep 2020 18:24:47 +0000 Received: by mail-wr1-x443.google.com with SMTP id o5so181091wrn.13 for ; Tue, 08 Sep 2020 11:24:46 -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=+JwIjVcGYRQT3Xw48y+fSj0xhb+qvXWha1H9977tamg=; b=KaBUFp+V9mOhJ/EYVpaG+lc/M6pQjAU16MJ/iUZq9z/z02t3mTmC8kZvff/5zqcMa7 GQpSpdfUDVeYh/a1ZXjWrYV9UOapCWditLqCRwvyu/VVLzegJlFivg0GqX33f6rR+0qu UWL7xqmJVNwiw/KbYlQdoADvZfvv8JKXxB0DRWL7VQmMfKyzv74+eZ+EdkqsLW6tHTI3 TkGHG4t7j/0RvciD3AEQ1WV0nzT/2evLOBwbpn3F3iD6hAzl3YJ9T/Y4T5bz2bRKX9/a 2Y0o3a/FDPuJVMv72Uwm2aO4cdWCGLg7jzMtqY34AzLGQJ13NSXFyjMFBSwfGZd3R6fO 3E4A== 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=+JwIjVcGYRQT3Xw48y+fSj0xhb+qvXWha1H9977tamg=; b=Rfu1IJISp+gJ6H6OdxyUnzH4UffW5MXFY9Es/epw7CNgAJzrXBmi+8O8h/K2+pIUVu ZicWf307/XfUcXfR5rMCiifcY1vJDD/bBZmzB9RzyiQVGbtn7564OSsjcC9ihu9K1krb O96Vnv3leWa5ZWLJy7QXx4EEHPN8eaqMhd6zJq4HfsVJ9tDdmwrorLrpmPbZ3pZuTcaP ZhGvJfJbxPUX9OugYNnjkS487EvNYH3boR71h5ZhGaKY1+7t1cjrEhskAw2Q/uQ/ZOSq +PpMOdgKBCSGxq9ibeWi+8P0oobqH9DFtq/kI6cTwOUgRBG93MMMf4q90v9JitlBnEMl YmSg== X-Gm-Message-State: AOAM533n8clr/o1hiL33kGIYi+m8vxfnM5sTBgzwMzO5KdoFS38MYvA9 QHc4N6t4WYfxLYTBkrzFGswg9A== X-Received: by 2002:a05:6000:1c7:: with SMTP id t7mr953443wrx.95.1599589485273; Tue, 08 Sep 2020 11:24:45 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id b84sm381427wmd.0.2020.09.08.11.24.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:44 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v3 3/4] wcn36xx: Add ability to download wcn3680 specific firmware parameters Date: Tue, 8 Sep 2020 19:25:28 +0100 Message-Id: <20200908182529.2870478-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200908182529.2870478-1-bryan.odonoghue@linaro.org> References: <20200908182529.2870478-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-20200908_142446_256564_0945764F X-CRM114-Status: GOOD ( 14.36 ) 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 Message has at least one valid DKIM or DK signature -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 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 4a53d4b515df..4672581a4354 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -610,6 +610,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); @@ -622,9 +624,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 Tue Sep 8 18:25:29 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: 249341 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp4792027ilg; Tue, 8 Sep 2020 11:24:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNq3KVb2v/3XajxzAeWJfqTR2gBsr1t/FwYp09qH6V4u1xHYOoVZSuwUDh+Z0B1Rz7mnDW X-Received: by 2002:a92:d482:: with SMTP id p2mr44002ilg.9.1599589492608; Tue, 08 Sep 2020 11:24:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599589492; cv=none; d=google.com; s=arc-20160816; b=S7Fn9+YTDA26HCCIbH3ayAwOLqRuVcHodeESscdF6G0Z1EtwB47lxUd9NNLvnrC4Z8 ibxSZldec5GPe746ImJcMoW0+SDfJv2WzPfMTwZ5L+FPXiANeXI8mY/wsgZEOy7UwuLc CqRalJn6XoG/iMovotw4FKFEFrsUjXo7MlASS8kP888U1yaWO4xl2leZd6N5VyMxdYt0 5OWiaSPV3BxEPecDLoZgjWlVXjKr/dhxzGr6AR1tzA4vF5kabOvmAvjkQpIA/QVaKFZs PriL8rX247R/f9TsW73x6pNyb+OcndVb7Yt+DXkFZIyY7yJKp9MdNE2crCIgM7VtDSeP d8BA== 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=JIxbGlqoSP6tPlAOr7ynGChj5ZqO2oMXjA2hXuWUFVs=; b=Z5kvdLblE1GLWUyBytW3ZrvzetvMlj21E3PJ8VtQXuRLcN9UUvgHtjxfT0QrcDJokI VSedZVfdLohzXTWoxsfVdotEPgYJZfZIWdrLXGObPld5AsX8LY0PC4IrYmk3zrfrbdPw b0f5HTNHHVSGhO65xE3tB8jxznvciWeKDr1VhBX4Yj7TzA3voScgVqiFTurp7lWdYanp d28BSOysl635gTnsASzlyWG8KT1F33SvuKSp9IiNM6/kpLw7z8ZrYhBOpUTHjNpe5IFg WYe7HxVsCWW2+hwo7lZ8LkjtH0EWy+m6qlZzGOoTzcLHMfxu0QVkcWIldfBhOF7pLLFa KTnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=cFnospNJ; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=h4dRPqir; 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 i191si184363ild.61.2020.09.08.11.24.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:52 -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=cFnospNJ; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=h4dRPqir; 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=JIxbGlqoSP6tPlAOr7ynGChj5ZqO2oMXjA2hXuWUFVs=; b=cFnospNJlBIWX0uBt2rkk2/Tc 8LyIep0FQh3MY/uHBsq3WnAY2/FFjZd3tfEQb5P/Tk8zdajNlprqQqc5oERB3S15M71J/RvbFOWdg rKNTuYX8uPkVCO9yoZoo0KIMyd8++oAUEwWjPd3zZoJBBlHXe79XIxpclhQGXkDOmsPtBmIpze+x5 k73rF711Y3CTHkIH5+PM492JWjFNtchHYTs5i1NX9avFuvHmTxn4DVokvYJDNnhwaFZvUQPNVQxJQ 8XTW3Eha3v62RcJtCqA/CavwBAoIW+ZH0xhQNPiFSlj3BJayneSSD+anG/5q20cXsZGth0GTCixbO GUuvS+iHg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFiIT-0005RR-K4; Tue, 08 Sep 2020 18:24:49 +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 1kFiIR-0005Pn-0a for wcn36xx@lists.infradead.org; Tue, 08 Sep 2020 18:24:47 +0000 Received: by mail-wr1-x443.google.com with SMTP id a17so220170wrn.6 for ; Tue, 08 Sep 2020 11:24:46 -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=hC7svxUBC9+5fAYER72YcMO5aUlPkhhS9EHYF1mTiIk=; b=h4dRPqirVG/ZcKO5UTT1JH1P+lYaS6pw0Ng70MDiUXh/v9D90SgbAsSoEHIwyBh17o BxmLFvEkp5N3amoRRmgk1PpJAGbnisVGUae3b/erXlFemb8FaMBG1rCDYiSlbSlvNG20 /JxV6YUSVy1V7oV2/+4IKkizDm9Dulztjm+yrMb1WRuY5fXxyDlIPWeLVkXGc2+z0J2S AJ/vyN0484pPVwPJk+luypI6duA1pWYmZ1zf60UjtKZpxApFha0gV2xdDSG7IJivuSB8 SsCRA8DOpaNUdcLYtkquCHdtFPOA+7zdoAgMJmWjleT1gxeLpmluux7p7z2H0ZYgGC1r v7ng== 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=hC7svxUBC9+5fAYER72YcMO5aUlPkhhS9EHYF1mTiIk=; b=sqUyuFEWO8CAdeCCohoG0VF4QaahvVj5QqxHeG1kGvZNhLoxIGyx21Ai1rB+T4oY94 xgZjjWVuprHDhbRfxrOLtFEjudqfi9ZtDXs3lTEaG/ZAUasHCAG3qHcJQJpQv5A55gam ANAxx6IT+GhUpSdROJNWkWgbWvoWW0cUZUW3XrNJcmCVQ7+Tfb8vc4qgNaV+ocunEb55 bwIUFJEdArS4gu6hfWTnyjMA4w/I254Y99LQBVBXFNTICjGtJKxuUrYNftBBWe60O57y XoZSLHSDkFsUnga6WmYDAoEkpxSMfIksWInZAG6pOgcSajtwSe+i0Xi31Ogr+OpmU9ai eaGg== X-Gm-Message-State: AOAM532j4byW63PuvsywS2ut6xc/nBrvaKa+PkvHGUltRBIRD8j30Of4 4YaJr+p/KCdQeMxBisvUcF7C+g== X-Received: by 2002:adf:dccd:: with SMTP id x13mr942502wrm.403.1599589486224; Tue, 08 Sep 2020 11:24:46 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id b84sm381427wmd.0.2020.09.08.11.24.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 11:24:45 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v3 4/4] wcn36xx: Latch VHT specific BSS parameters to firmware Date: Tue, 8 Sep 2020 19:25:29 +0100 Message-Id: <20200908182529.2870478-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200908182529.2870478-1-bryan.odonoghue@linaro.org> References: <20200908182529.2870478-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-20200908_142447_103315_5D33C064 X-CRM114-Status: GOOD ( 11.93 ) 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 Message has at least one valid DKIM or DK signature -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 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 4672581a4354..b09a3dba757f 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -1679,6 +1679,8 @@ static int wcn36xx_smd_config_bss_v1(struct wcn36xx *wcn, 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,