From patchwork Thu Sep 10 15:07:44 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: 249653 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp827187ilk; Thu, 10 Sep 2020 08:07:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaYic3NwdVT/qvTCifTuK9T50SzOcINrAnZ0uDHJhaGDHGF6kgspc2LfEObvjLBmk42d9R X-Received: by 2002:a5e:d713:: with SMTP id v19mr7752428iom.16.1599750428089; Thu, 10 Sep 2020 08:07:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599750428; cv=none; d=google.com; s=arc-20160816; b=vIH6E+1wlPpAj+Oil5Fv9CScnJdXICRvrbttpM+wPQY6/WAEDxB4fypzifL9SClpQt 8izrjhOahiTodtTw+qGRDdVw4Bo/BzszKo8IZ9rbOtLVY0uPv9M4AzFkOUd8Kaf/UdQ1 3tq0xHZn7y7Hk+wc5O7bldglfoo3PWJw1kGG9O+FOf7xErCVoFhhMkSFNp3bitVl5qw9 P1yRIhixH4m3hC7cgyiLo+UkBYIS7DvOCmAmeyaJ/PexqCcdTPXfhVVGVfKgucMeLcAL WLrU8sXoa37sAEznPjzmRAJ0WkUQTRBVt8t5m5+hSoT0dFjXeyfN8DFTbw1iz0SDXNZT c8ag== 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=Xt/ayMtaOd5L7QGMLVOhZfrhvtRso4K3DrEUkkbNeCXfdP+xuOogo4u+pPrIoTma2C RMZDt/1xfYIuGFiuVm+t/wHPUOms02qGUTzyjOHFQAWhXrhz4kt1aX+yzWjK5O7hHwMp bbwBdTz2hBPhr0yw0n7wXc+JUqkxmjHtLKE8tTqH1OG/VUmth4fwD8ku79+Gfv7oEkrW QsjfthXNwyDeC/XlMDl0GjmrJsUCJ6ctMTz8MhWj+dKxprUdZ6jS6b+IuN3Tkh72n1ko Ikm1GdAC9VAaA4asvUTQBiCZ6R1/HkxRqlZL53lRXPdc6ZwbM/y0V259vT3xYwkwbsGh IC/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=QPDcAJo5; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=QDi60y9D; 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 o12si3063480ils.79.2020.09.10.08.07.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:07:07 -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=QPDcAJo5; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=QDi60y9D; 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=QPDcAJo5NLbTU8y4H317uDmzC 2iDlwkCOhsOwgM4b54pcBfmaQrJPPwwyeA8N3HUzbcSP4g9dQZtFV7xWesSLM5lSGFlzrg4ENWpK9 aXWEyy3m2MeBlfpAHyQdelNDzNm5buHJxv+mQs3AEUBFv16K/VMNBUYBfXSFrvHTI8Qocru4ZeMRz Pc49vm6+iDK8o1nkVQjH2/tVBmGqvn8f7mmsup6cfdyIMrtJgCTt1p6fJns4MtLh6qGz2c+32tRLb IE/frZuuoWr4QRk7vQRlhpyOyRQ+dkxRGu4ESFgS2aCbf/w7nf83sfdf7cLKWy/VFeWIkWaHAqYM9 0k15XHF+A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGOAC-000802-LM; Thu, 10 Sep 2020 15:07:04 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGOAA-0007yT-IS for wcn36xx@lists.infradead.org; Thu, 10 Sep 2020 15:07:03 +0000 Received: by mail-wr1-x435.google.com with SMTP id t10so7106138wrv.1 for ; Thu, 10 Sep 2020 08:07:02 -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=QDi60y9Dfvm2+OxDl4WICBOib6t12A2WGWozpwg/bknpqluMbSFst2QDimKLhy56+j qgBuv3H+H3gR7AgOFtWBx2WtIeBX1H/LCC1SUETiRBedSqvA4NqNgb0ditSa2iNYdgjj 5m8sxBKZMk0j6QuQaXx0PvVRon00Wenr+qkDySlgxlRQ/LaQ1Xy0NNUjtBqVsu7IXgOQ k96soQDyfu9dV3Z537AxYpf+AM37e8LO83wUXMD7mJZt78fwK6qbkc88/m3uupouR9qR tNFzKhaL7n7dPn1qRXc+kYlqQRIg3QdiPXn9CEHeLyz/JSRaJI9ViBNOfABVqsdVHLf6 3OgQ== 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=nGl4NYNXuTkj1TwfQIG8+wi1paQP00kYzCoYxcYSBe8d2dKiAtd2MZQ+QVW4y7RgIC Johh4+nlScsVfMuup6Ep4AvJjT0At20S40UhGFdi8FFUgJZMfqmg7Ow2pVq2Sp9aAtqg O/k07Hf1egyjh8eAmtexX2v2b0QtxZH2tez8EVNPnlxkt2yHconMIAjIMmGvEGOpYXu5 f/CDv+1GbHoi9qbqHVL2iZyGYwGwTHGzTWyYjZqXu1zAxfD7BXkBXtVqG/pv+ML+Vv37 ESIGcFJaur6INoM11tRUhhxlGpZwuTBpSQuy5B11Hf4oIpoInXoQTqPf82d+/dwS0FGm JMWA== X-Gm-Message-State: AOAM531aSVGkwXo1FAIciAnjir7MtY1qps60A01pYiSt3qFuY2hDZxbU Moyv3SiHLgagCQ3S5Vhc+DO67g== X-Received: by 2002:a5d:610d:: with SMTP id v13mr9092997wrt.23.1599750421205; Thu, 10 Sep 2020 08:07:01 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id m3sm7597315wrs.83.2020.09.10.08.07.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:07:00 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v5 1/4] wcn36xx: Extend HAL param config list Date: Thu, 10 Sep 2020 16:07:44 +0100 Message-Id: <20200910150747.2179122-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200910150747.2179122-1-bryan.odonoghue@linaro.org> References: <20200910150747.2179122-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200910_110702_614387_FCA354E7 X-CRM114-Status: GOOD ( 11.85 ) 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:435 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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 Thu Sep 10 15:07:45 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: 249654 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp827204ilk; Thu, 10 Sep 2020 08:07:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwK7sI5VlNWZh4KchTIMwBchXHzNg6EbvzIPMQa+wl/r5DcNFrqmpMk0NOEtxoR3iDLd1/e X-Received: by 2002:a92:d144:: with SMTP id t4mr8578047ilg.88.1599750429213; Thu, 10 Sep 2020 08:07:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599750429; cv=none; d=google.com; s=arc-20160816; b=CqgehfAbIp0OM8UXEaBAsLYMANO4FKf9Xex+BL+fXrGUVRlyAzn+J13osagrrY1h2W 6TRB1iIjcwtdrpvUhjIaZuJWYVT79BdDXs9kUvIvL9lDGu1iz7qDSzVdJq6n/9kNZTyP P5FxCkh2ounUhrkNebakwih2Hqvh+UqDC0/9oW+2i+qcuB0W6UvhtyXF3gZnBh0y0foQ si+1G6RV582vl2oo/HVBPk+2JjNaiAA3cpeFvzY/Sn8MdDnTMlLL0FuNeeqUsxyOg7jM qd7oRVoN3na3qVMKbfvHqOlQMYKFbXm8vq/KruBJqmuGM5ML6AONHOTjba2uUWx/BzAV ql3g== 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=ah/Te6rejnd+w0Dh6ksY5b9bPm80pZc/5FqT7EgYaeM=; b=hDwm6wYu3/201Y/Qiqm2Pql01HcGlge3/ubSlXM40xIb5fF2yajUfN/ggD60h9kobJ qHg/l9B/GYPyfvhF7LBTwERztJfrmgTUUgKhogAzqDLiXgiicWkOC1rJ08lY0iDwonLs ETn4c1z96MBWEM7bGFxDsL5R3Wlc/LJ19Cg/hZ2yEzZ6Gte4KN0JbShwUj22q6Z9VPGq MeMWnGJi4iun+AoO7IHWVsq1cXJDpGjIXGa1D/cgLtj2cbMf0tO91X3Buq9eraQqVKAL 8K1LRVNFsVXN/3I84N9yVbSDfbZp5q4WhYIBSP5cNVIW7bxphrgRaX3wDjIRfqNJKAi4 ta0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=pNc2MaTe; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=BSqlXcpL; 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 m1si4525936iox.101.2020.09.10.08.07.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:07:09 -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=pNc2MaTe; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=BSqlXcpL; 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=ah/Te6rejnd+w0Dh6ksY5b9bPm80pZc/5FqT7EgYaeM=; b=pNc2MaTeSbHwI30XlSE73vBu+ fH01/cX+FXyhje/tYWlrcp/cbL6nkmNqG9lzX6iRztYQULjeLwkkM06YNU5xXEpZAVzmRZdyyC0Sq +IeuAtGKRfwuAWJWrcL11B0MO/biX7REw7X2QAfuNb9P60gF6K6Hq+IQawMwdHFtsMVnKXATNwrmp CdxwFnipu5OYTH9zuFtFi2D+PMfCllJ0ZI+veYFvXMw5AdO1ePGIf2sG1BtJ6UoD39FsLlp5O9POo PFl9MV5PZD2bfkmTH4iHIm6vDwzL/IYv9nXNye02QnXQXbWHceSENIepqVpW2NEyS2ChHJljyyrUi OdhS/JSKQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGOAD-00080o-TV; Thu, 10 Sep 2020 15:07:05 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGOAB-0007yi-7k for wcn36xx@lists.infradead.org; Thu, 10 Sep 2020 15:07:04 +0000 Received: by mail-wm1-x342.google.com with SMTP id z9so390316wmk.1 for ; Thu, 10 Sep 2020 08:07:03 -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=3gHxz3pB5diwJXQ/u1T0CcAqMDk4Ot2NcZQsqkRqVKU=; b=BSqlXcpLMAZFRy/0gbtj/2znOoUcI6sAEKU86X7x+GXugDKKKhDgEhEjzOiTiNKx88 rDuMgafvNIWiU9UYVqIpLnLRQfWCCXVJzawmSStWN8bnb10acbgcjFlF3IZru6aB00cP 7fc2E+xixPmXJAYvS7Opimx8l2AeKiVLqrTEEiEzoA2EwkJm46GBKhjX5nvdF3QoB+SH 4kjyyE27epbMwVOQjY2PZSMp8Psg+n5+CkWbEBXXgeM1Bwf/bBTsRjC6ynzWZ5QcWmfw 62nfY9IR1iQdl6sVoBieOrak/pVxOhTHyf3E/hQMv0GkwJbxd5Vgnc8ACSukpM3xBvDl 0P7A== 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=3gHxz3pB5diwJXQ/u1T0CcAqMDk4Ot2NcZQsqkRqVKU=; b=JHFmUyqnB+Aqg/IyLyDm2/RdGl/sfP9Xrm4TBuh+VkDaJUZoXeuAWiKJ0Wl0+dbRwx Rmb2wG3y4+t0XlhfyL/funn+z5PdhJBAkiQ1K1eKtTVw8J9/zNcZgJ+JIr+XLrRwAGsp JlL0v0H8BjNrUKaMDstK4UbGVQ2c+k4n77YwN7Y+wHMkhqXSxHjE8VBUQaM8BO050LRh zUb0mHCNxMWMMUkF44u0RseSVFDhfv5PPi2KatIv/5cTJ5uWYK56y50Ya7BwYyUw6Ljw aBwMA6zGuWgK+f9Ch1bPOtP/jvPFZ/lio+A4slO14zcwPE4VxU2/8sOX47ZHqhsXFdKi /Dzw== X-Gm-Message-State: AOAM531FwY7FdFwT0ebp1sJR/DnuHuZV3vGpzACQUNJAKOqu0Pcr5tc0 6bUXA23RyvfXbj36l9Bf555yYg== X-Received: by 2002:a1c:67d4:: with SMTP id b203mr451898wmc.120.1599750422190; Thu, 10 Sep 2020 08:07:02 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id m3sm7597315wrs.83.2020.09.10.08.07.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:07:01 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v5 2/4] wcn36xx: Define wcn3680 specific firmware parameters Date: Thu, 10 Sep 2020 16:07:45 +0100 Message-Id: <20200910150747.2179122-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200910150747.2179122-1-bryan.odonoghue@linaro.org> References: <20200910150747.2179122-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200910_110703_309482_452839E3 X-CRM114-Status: GOOD ( 12.73 ) 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:342 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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 7dada66b9f87..242112ce102a 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 Thu Sep 10 15:07:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 249655 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp827206ilk; Thu, 10 Sep 2020 08:07:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwH+XsIbtHPzD5ljYRo77pZjFftNekTQTheSKKB855ehf0VQZtuAM93L8alW+x/8OgIqTxo X-Received: by 2002:a05:6638:611:: with SMTP id g17mr8959124jar.40.1599750429555; Thu, 10 Sep 2020 08:07:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599750429; cv=none; d=google.com; s=arc-20160816; b=eMpj20hXabvZvhDTO1eNeReN0VNwk2pJwKhHlE8fpAk24ygDjfgiDnGJICzaAV4L8s hr3dME8xW2PrDuIEnCxlbO0eVmaU6FQtFsyDLk3ugERIwOY0u8vgWu+AHq67BXhrgmG7 0I775R4YnvgOYQv7BH78FpYomStLKym+cAVW7j3Cg9pMSZLichN1/IA+Ciyltxa7hbqw FV1IIBAFPcuJyjLRBwzw/kkO7Aszb+wskMOhg5Btc4n63bN0OAF0LYTcMnANW3Dqg00q Nk/hVEv77yw8GqH+LPS9Z/Q4z28V2gC/sSiutFOrkUcG6+UOCr+SYbGaQ/3Q/0LD76x5 TP2Q== 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=u83V2fxJ0gfvnjiCUm0/cnRFfkgr/mBMelXRxHRoU/E=; b=HzuIT4qp7WEI6ODYTS/JbLxnkrBCQ6w4d606dncq0xeRZ7sfXvaIVoO60tbiHDkrO0 vtYwCzjiG4mBQqBogIssfMCEg8Rdm9gcMGEke6OywuQ9YBGEEkDyj7rktpjwpoB6EYQq SYrxqpH4YxmB+5d0kmwPZ4VF9gas0BNaDbADTiCmYy4lbzRIoHQHSQgRrpJ82EO5MfFJ ttngQpmG6bF+aH+ZgITGVfFRgKQCTu+xyAMXDwnXebqQBzziKuJzk9aTqB6264v6drZF 43giMbROT32sd683yaen6GkOlkWWEVb+jQTRJ5iPYy4JFKc4E9tqz+kSM1YqktD7m4HH cCMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=DF1sbeku; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=uxa8g2AS; 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 z20si4978077ioq.21.2020.09.10.08.07.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:07:09 -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=DF1sbeku; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=uxa8g2AS; 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=u83V2fxJ0gfvnjiCUm0/cnRFfkgr/mBMelXRxHRoU/E=; b=DF1sbekujE+Dw+yWVDqloXvR3 xpm2mv4NY6srHjFe/qXSr7iIm/JCP8Lrj1mfyZQeWoVolL76dqf0fJfzw6N1pCZGVf3YZaaT6ajhx yex8eLjuy+27cekVIem0BI9g5YXooggtaSWGfGU0FmGLTj2pA02Ju//91q1DCVqzhaHisppjya2+8 d4S5Z+vzrBB3HCMIJNTFc7FTD6miVlUOgpPR/plsdOsHRIGQES0612muOzQEGSPuu1g1aTyn0pdzJ wlOGP08wpUk+7EWVUoKGigcsQ3cZOT2BPcJ3Eq3ymf1XVvigyAkUKlsDVHepyDjh9a/Oj/9tMbg7N yQHmUOSyg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGOAE-000818-9f; Thu, 10 Sep 2020 15:07:06 +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 1kGOAC-0007zF-0o for wcn36xx@lists.infradead.org; Thu, 10 Sep 2020 15:07:04 +0000 Received: by mail-wm1-x344.google.com with SMTP id e11so2101096wme.0 for ; Thu, 10 Sep 2020 08:07:03 -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=bt7q4WuJS1fLYjS1vUbuAcQqhXMPVcrVhmoeIcbszdE=; b=uxa8g2ASp9ohHLOccxMhBkdBhNNBA1F6uHZa74fFwBnkZBfhlAxduUXqitKC8pSiNk HrCLYU2LWpN4D2Xf7vNjpg6dySri49048PKbtdwlp0m89Zfr/L8lORklj++AiL0yKr8i H+6201nHBopNlkjJ4Ca5mtBOQM+Zz+2qc4PubB5wTqfRt1PyemYw9J07eqekucZUQuau PLngadCdrI/8knfV2bIJK8c0xh8D3nOuus7HPrNgHsv7RHjEIvfd4wT7ojxAx2GuX8Df kPZPCKYuKgT5tD07qW2L3mVzPx0dilx6VSozy1qWKWqn5YH/EQFMUh20G/rSVYL+KzHA hLzw== 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=bt7q4WuJS1fLYjS1vUbuAcQqhXMPVcrVhmoeIcbszdE=; b=FthBJRgJZymieMHWU4WgWFGq3r0cSL93gjZU/3ps+BUG+scSzHrYBjTfpwn+3NayiR sKuEqpLvI4eegIdLwRqe5NBOJf/LX/3I8r/xF075jSrr13sJVJjxLwgdwcqnsWJeHl6n TjsYSplrOKsL0JDQK27vXnMLgzDtvKBECNDIlll4Y/S7XXRTu8fVCFOi/iHcdSUkx3+I rjIQOz1iXp99CBdTHLOCIigbIcSjqkTPpklDMKmVr1DiKDGSNwThB9odkSx//IafnDbM U7VC2MSrSXqeaHcrJQkR619gzjrnlz9yUq8RN2HiiR5Swjk4w05dFX3vLYrrLG3f5/NN M3Ag== X-Gm-Message-State: AOAM532EW3MZZ1m1SlZBeipvkHbOTyWjePvOpuHeCV51R3V8pgHQw3tu OpkmTMqX/wyXSSZ5JHlqPGwnZA== X-Received: by 2002:a1c:f008:: with SMTP id a8mr427580wmb.155.1599750423104; Thu, 10 Sep 2020 08:07:03 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id m3sm7597315wrs.83.2020.09.10.08.07.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:07:02 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v5 3/4] wcn36xx: Add ability to download wcn3680 specific firmware parameters Date: Thu, 10 Sep 2020 16:07:46 +0100 Message-Id: <20200910150747.2179122-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200910150747.2179122-1-bryan.odonoghue@linaro.org> References: <20200910150747.2179122-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200910_110704_101251_30A6D215 X-CRM114-Status: GOOD ( 13.69 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:344 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: wcn36xx@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bryan.odonoghue@linaro.org, shawn.guo@linaro.org, loic.poulain@linaro.org Sender: "wcn36xx" Errors-To: wcn36xx-bounces+patch=linaro.org@lists.infradead.org This commit 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 242112ce102a..57523a66a8ee 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -625,6 +625,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); @@ -637,9 +639,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 Thu Sep 10 15:07:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 249656 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp827221ilk; Thu, 10 Sep 2020 08:07:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziARm4i6llIQkNgVuucm+2cJZ/5/GFjMNC1fH5r1xe4nGQp+PaN7lwiUQL5p5vg13I6dtC X-Received: by 2002:a02:cbda:: with SMTP id u26mr8946612jaq.71.1599750430839; Thu, 10 Sep 2020 08:07:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599750430; cv=none; d=google.com; s=arc-20160816; b=n/fgxYF+ApT2VC2VTadKMs7y+V/sihJ1HGXHXL0ZYYaiO1bhAZI76qoXMefmVwQBkC rsZ7ksIQ0xqyoLZa0Yt0/PMMGGD4M+3PxCKQYjHrHtVRbIjrdy9xbM46D2cTokZZR56l xLaqHtcddOor2O9wlLIB2wT40IJe8xg10vrf+1M/KBeUUIA4sAd5qoSqAqvhbzl3dyFO nQXrkw4qnoevmBq9hvGgFaIL85a9Yvl8vd/0392UYJ6TbJXMe+7hKWRyhtzNivE1vqB4 GQiubMI/vaTHwonRCBtuzlEyWIJ0tMS8G/7T/pXp9bydvDQI3qPxoFSlnnMFSWL7//Cj K/bg== 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=UiM8ISK6XV0rrX8JCxJS2fjuU7bziq4EQ9lRxydlNGg=; b=oCKLyQjrLan9la2QUGxjzHhqiXCskE8bhgAruC27JWtyXfa6NK7enXhbw3DGLDIQJh jujsj8Dt/QGKnIt045c6XbSC1DU7RPT4EdksTwUa6uniHEreBqQe29JSy6P+A0iLGXG3 o/4AtZqJJ2bDs4gfdrpa00NK4iGjH/decX2O1hMjrSWD5jN5GSnlKRz2CWdZIV6tk+XT n1aq6jkdpaD9MFt78E784o/sITq8Rlukm9iX8wJyclcLTevb1zA52tAVas/RjYTOr2wP jEXab9HJxLjXwcPDlahmj/kSHw/83pTnzLuykVbKeSbdpnJS3FjTl/grziwwibr9QP8k 4IDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=OUzmwr5F; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Ua8RLmZg; 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 j4si1125542iop.97.2020.09.10.08.07.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:07:10 -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=OUzmwr5F; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Ua8RLmZg; 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=UiM8ISK6XV0rrX8JCxJS2fjuU7bziq4EQ9lRxydlNGg=; b=OUzmwr5FiqERwxffrgj3eE6UC 824UEJOCbyYAW4cikMPg4VjoySv2i4hf2X+Ua0ZSplmDEMXiLvfoqfOb8Q9xKHEHRkF/7Y5VPspbD v846U6E/s8uZc2yhKpCE3V5kUgUGNTxoUZWCck2cpJyDTlUmn5zs0ILqhCtv6XfJPeCQYefDPQsq2 6qDKYhfAYMp+PJWzox5dLMhxo2QjLF0m5tYpHZ5uX6tRvTCkRSRdO3napw8h3UexLXWRNIGrvcQOj vYMOcyufnux07aFgyhTPLBR9idYfVRK29h9jN9KzcSncPieHje5JX9JJGqMhU+xTLblVooMDZ6tlb zB3+KY4sg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGOAF-00081k-Q5; Thu, 10 Sep 2020 15:07:07 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGOAD-0007zv-0h for wcn36xx@lists.infradead.org; Thu, 10 Sep 2020 15:07:05 +0000 Received: by mail-wr1-x441.google.com with SMTP id w5so7065520wrp.8 for ; Thu, 10 Sep 2020 08:07:04 -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=pR28QrbC3Qp/45XzrsEFlxa09WTW2fIfPYIJsPSPstM=; b=Ua8RLmZgvHhFmZ7X1U1eUnc9H1y9XGsxdUX52vubpBKKQ/tq640o7R4nwioVeGX9EL EE0FNjwkhycEkBmFOfiBJkHRaQDb2NoqF7C34jwJS70y58dqqL7OBOOMERNC5bSWNNvi xal5a6VF09k68OOT0GmXd8qvcttfqeYhBxUKaj4m4kdu1mSIXf550Hb2K6wz5+iUT2Kg 151PfcbyUjXQvmyJmCYiqh0UDZ9Q2xxzFk8Lcs7tnopXH/yg8zZ/hQ4QCPAGHX4uXgX1 gmvRGbM4opuQ9Z5Zx1XQpycqBah6c+f8PYJfqVA6vbvmZd2BifOTMHeUkDYm6Ra8FT4n 6YrQ== 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=pR28QrbC3Qp/45XzrsEFlxa09WTW2fIfPYIJsPSPstM=; b=TggKU9TxsSRGkCzq/jAf0MLKp9VopK/wjdf+olvqK5UPq/Ytv/3a3Ziq0RcSuv5FWZ 8b5GuORrbDHZUs3vCe2aNrNMiNQX4Ti4ncZA7CD61nLprEhn8fGvIQePfetakkp9cWGt UoM1msmfP+J7AQ4rtoCISlhdck3shqHKIXH4URPOPpsrpEAex7k+V7pCZ9t9YOV+VBTx VbTgsNsQQfXaR6Pt8zjKywK5v54Hx7kBDN359plQ/qinaZqUCiTZSJhr+4RRYUux9g5R L6ae82JKCTjsuKs7M6kTud22G01FIu5nXb/KH9pJeE8DxuMGUZiBCwVT2flRKbUtgzyt 1Nfw== X-Gm-Message-State: AOAM530VkOIEsJnePxaqF8LlBaVi2iP4f3bHFllLzFj7inY6GqJXBRmJ da1vFeu9kDpWY05EhHh+Ui9LHQ== X-Received: by 2002:adf:f70d:: with SMTP id r13mr9716075wrp.317.1599750424162; Thu, 10 Sep 2020 08:07:04 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id m3sm7597315wrs.83.2020.09.10.08.07.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 08:07:03 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v5 4/4] wcn36xx: Latch VHT specific BSS parameters to firmware Date: Thu, 10 Sep 2020 16:07:47 +0100 Message-Id: <20200910150747.2179122-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200910150747.2179122-1-bryan.odonoghue@linaro.org> References: <20200910150747.2179122-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200910_110705_097611_C5D3A8E2 X-CRM114-Status: GOOD ( 11.25 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:441 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: wcn36xx@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bryan.odonoghue@linaro.org, shawn.guo@linaro.org, loic.poulain@linaro.org Sender: "wcn36xx" Errors-To: wcn36xx-bounces+patch=linaro.org@lists.infradead.org This commit 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 57523a66a8ee..dde43a2b0d81 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -1702,6 +1702,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,