From patchwork Wed Sep 9 15:37:14 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: 249496 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp524687ilg; Wed, 9 Sep 2020 08:36:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoFhACNaejDULbrDjZa6K51nSgaDYLT5T/GJyDOVq7XtOu7GYopYbGBNo5CCPisZJR3tf3 X-Received: by 2002:a92:d952:: with SMTP id l18mr3766376ilq.97.1599665798713; Wed, 09 Sep 2020 08:36:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599665798; cv=none; d=google.com; s=arc-20160816; b=SwFwRiz+WhPpY2LFIw/c/1wgejwzoiA+rJgJDhMb+VOl/ROoj8Ix9Ea2gguNM73Ma+ AfGRL3j7/JUYVwGVtx+Widdp//Qy1LGTPgadOeucSulNf6+3YAnKoBc4DPOi5LIBuqDk 6A8sbSgKMVW9FYdGhfOFEmM1DKlb/aGqo1L/t7OLuIXfWG6j7KsXh1RMpZkQ+35z9Bqr zTrJ43vZYo4FwJEKN8ZDdVYTR/8rXC3uJrRVOk/wwSrN/wQhUd1VzO9GHAnMjzOtxN// pzjvAhy4NVYRdGiy1QO7HUJO8HsGrUqqlsvrakguGmDcPdsmkpSadnMSSm78AbYc/gZp QsIA== 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=z+BB147l2kq7YxJzn11fPkgkaU9P6F9WAmfgVvdFPTldzcB4M4C6JNKb7aMif2uWvZ fqNJE/WOBrfl5aEclyvUbIrL1/XIKpK6GXBu4mVUOyySQz8wVgtQg5aFlhXHglQVffcC bPWWu+LHDyQ/FTShyNNVs5bh6corw6CFNfYHodbSB6LqH5PsPhPOARQDvRs0KM+0+/k0 A+hdvcgV8Li4QWSHwY7t7vgwr2oWwJvf2rdZ5lfvU0+MdVsEujMBG92XwWtEncuvno6M 828TKuR3aaSRg+j5VthTdqJJQPsuc7xWQINo7k8A99IZGBfgQE3AifAPnLq0N7a5CAhH 2L4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=GNoa62bi; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MXIDAIaT; 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 e10si3413191jap.117.2020.09.09.08.36.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:36:38 -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=GNoa62bi; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MXIDAIaT; 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=GNoa62bi0Ab/HACOpdDI1/mze deGlyXy9f12ILWVx9B0WOm3WpHxoqnoOylENJD3ra/uF9jAVv+JpBxsmkUOs/nZMgE5FPeWtHrnb0 rSoUz/mFPD5ds6xxv0u8DbIUNNgGZ6nXoL7HsNN8X5B7joaFCOC7E5NcFkddJ+8y0LFVNHF6GcNcW jzcQiRz1TAfw9zhAa9Wwg9SGeRdIo0bgeOSF/51tVY7AVtYui1kNJ6AQTuaWQw02KrV4sIF2eFWGy veaiSqj1aKKFrqwrr7lDYOuTtegy4gNDR41KOHdkEvtQ/ff9BlJ7mIT3Yb+iryzifCCOrje73orBt 2/mAdkJxA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG29D-0006h7-Bm; Wed, 09 Sep 2020 15:36:35 +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 1kG29B-0006fA-3N for wcn36xx@lists.infradead.org; Wed, 09 Sep 2020 15:36:34 +0000 Received: by mail-wm1-x334.google.com with SMTP id k18so2815154wmj.5 for ; Wed, 09 Sep 2020 08:36:31 -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=MXIDAIaTKrzKK6YkQTMMlQjQeimakoH/YxQ88f35lLgTkCXarjcEZYYGdwu9ZUveUB hq63CV3b+fF3dXBcHQT2Mz09JE/OCZkL6bBGxdyiMtTf3bTHAcqHk6EWKc0J/I63ulRa DM4gXKwI9wsYt+w+Ee5Wvhpahp8APcTOf9GoQ0VngUq8UG5VWJPSSUmIEjtaz/Y7UEcZ w2J/lX/kbQxrX0xfQtat4Az1oY1nT38kJRPi8VrdIAiAdGp89CSgnGjugqzM6W75KtQV Nmou1u36FvaeMjx465B+BO1MotNwmpO+ufNog1ryRf3SRyvIh7TvNbIRj7gLR4mkUcWo xx0w== 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=uEzlU0ZjkKjPT1ss2jyUifsZNNNFsL3vOMcDyJDxInu3zGOxpchj5LLjn0LhRYcAm6 gX/T+fAmCHTK459fCiPzzxWfMfLJpKnBBpDNBHNhxbUvspUUY5UYGKnaylmBygz0NF0h i1EBGo8TWdeLf6MnM690116xkZiJrvVt98pPt7oLq9KXKuKgD4L/6ORDkEKrRI17VDdF bAiWVOi4+skavQ1Qo9kc4Z+eLGWOW+CzZ7gZFNjMgVARkaACAFDQ0uN3A0CD5HU2oPsn fJyJHh0oUfKzd7F5swZ272NCEn9tVG0k4XPBNg8PeNyjbdhLXS6kcZlNNzrd3mww57AG 5LsQ== X-Gm-Message-State: AOAM5334WfBCGunKy1ui7BUt0mEPkvL1BfgJr1WbS/gJONOA//A87Qvc CL33joWau6gcfhkj/OPG2CJzEw== X-Received: by 2002:a1c:dd45:: with SMTP id u66mr4165873wmg.117.1599665790249; Wed, 09 Sep 2020 08:36:30 -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 m185sm4605220wmf.5.2020.09.09.08.36.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:36:29 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v4 1/4] wcn36xx: Extend HAL param config list Date: Wed, 9 Sep 2020 16:37:14 +0100 Message-Id: <20200909153717.2905037-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200909153717.2905037-1-bryan.odonoghue@linaro.org> References: <20200909153717.2905037-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-20200909_113633_148712_7B040482 X-CRM114-Status: GOOD ( 11.49 ) 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:334 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 Wed Sep 9 15:37:15 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: 249494 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp524681ilg; Wed, 9 Sep 2020 08:36:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnYiMazJrHp4JwnOxrHSLGh3ykfxBDOknTW/kVGYp6WqVtAuBPDE8z1URVgZyFALZQWz7/ X-Received: by 2002:a92:9a92:: with SMTP id c18mr4322608ill.265.1599665798322; Wed, 09 Sep 2020 08:36:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599665798; cv=none; d=google.com; s=arc-20160816; b=0Soiib2QYJz2ULYnNIOIMTPFLaPy44B6s/CPxgbvq+hxz1ij1FPA4TRYA2VMJc/bzq jFCQyG5cvJqrxeEYiOL0IypKHh8QyTB2Ep6nzUo2gYZ7oZJnA8Ss9JmyqAxntz7b7Siv gM1SkGoBYMsF31jTo0cUVZnKcFjmxe7PczhxheNmc0GM6OV7bzCzAE4lI585PWBkOSh7 VmV2G5A/4GGdpWS8Vv+bME24QRXP7FUSJLQttoFUq8ltPw3MhSzoo0pnHvxbu/daezn6 V4rKqk7A165DfHBEGo8IsF1u5/ckHgSw/NC4p05n5dwCJGAWoJTdKKwFA+waLr/1T1FX sMFg== 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=NkiZLfWEAw0MuNPO0f1TNcQfhwaywRhZEef1tfAslSg=; b=hdHb2gnOGbPLl8XM9jlbI1GXRKl689CAwUKhKlDsRaWHtUnvWFrBxaAqqJvsY8zFea 9X/x+vOh0MwTdBqa8uB0mDg3F9v9jXwVM7xZL2MKS6JfK4wkmoy0CcCFjMnThFUrbBbD 8fVHo6zmYIYd5CHtxDOf7plBV2/9Waubde4Ns15KUwsw8jtrTEqKiHCEGX4t0+kov4lz 6RqFIe3qhT0KUSwiY+L9cgx/kv7e241pGsZRl8Xj+7Bwve5XAx/bEOWkNnMm5+t1VCXU s45BIk5YOlciHnWkscrHI8blbd63IYj9BQwgp7ORPMExZI8wveSxLFF7Ui0NHA+U5188 QXWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b="pwLr/ASX"; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=p7EQWDcR; 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 g17si2037386ion.86.2020.09.09.08.36.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:36:38 -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="pwLr/ASX"; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=p7EQWDcR; 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=NkiZLfWEAw0MuNPO0f1TNcQfhwaywRhZEef1tfAslSg=; b=pwLr/ASXhp6slCgYPrylP8PbO xyfDyJuqEKKMcnfC0sUjb0fcgsMwygRogEIH9SqsIcl6P2xFz3MY0G4Peyvn14hPZjMbnLzd4kHxz qSy9Sp28Ggy+FVSHJscrqCQJddxZiGotuCuQDI+fns6EeS3vM6VTRx+gPWR24MtSfYWuzSAp236tS sd+1AOxyzPSVHGv5JK1KJ1v86HkWzH3SBvCH8+rjydxDER4QD0hBUcmbeyF2R9HpQzA/lKv545uSp zlkVcETLuhhU3p6Y349ycuMnqcArmIfjMS220syzkOphE0Ns29rnfD9ljdj/vAetf29aKMsmHovyG SMdmdSTxQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG29C-0006gh-TZ; Wed, 09 Sep 2020 15:36:34 +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 1kG29A-0006fN-EG for wcn36xx@lists.infradead.org; Wed, 09 Sep 2020 15:36:33 +0000 Received: by mail-wm1-x344.google.com with SMTP id y15so2847002wmi.0 for ; Wed, 09 Sep 2020 08:36:32 -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=WIQ++UKT6oYR/hsZfYsO+RMpd1GEFf72ZIvF9bXiPlQ=; b=p7EQWDcRumAhTs7BdQWkf3UhNppvw8UUCRbS+ZGlEBCWRIpVulDf4lH8vew/MRyvzO KzQTBdn1ObJErkSu98x9WEHrQK/NkxvS86ZnwtMi0ccOu7lZjmi91+zcr7uPthx4SF1Q 4jWUomc9Km1MC9kNUIjDjzBgS/QEYyl+GTOuNhnLHGGr0E3MUf1/hwgDtbES6oRbXkiR QXAQmRnCO1Oe6LRCVqA0sLrEoq5epMJbAm+1FmZ+Gdu1VfOybosL4Nvx+xqdE2ht1I/k cbXidm9IU5R3gZWP+sza85b5kCUkW6V6CjbDvd/Xx+nS0sNK8kDAqIDVjFOwRQ6NuGiX lFug== 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=WIQ++UKT6oYR/hsZfYsO+RMpd1GEFf72ZIvF9bXiPlQ=; b=LoRH/3z9EMfUJT5O51Sp6Vyevv78GvSp/xrsy2aEndCs0o5MMIZgeDxUNSwShqfsjQ jKa8dV/r0ouUgh70ofVArwu4LjK49uhqvMjLWFBz6nwXOu/8lTtT95vWMNlnSX5kNnRH 4etS42ffxVAq6ybDUyXaZO9lgii0k4OMi1dmx34smBYv80lK5XO8Xel251453CwDD0Cm TCs77Xd2bKdlie2N0ROhKsnWqF0LMTZXOMQtQqcuk86picoY/igNQwx3ORH5Rft492Xh HVGnyGpWmtYI8vQH+SoyoRsxDyExKY6oz1GRDJSIQlEL/Fw6k4UaBid26b8lgQ4tz2tx zcKw== X-Gm-Message-State: AOAM532x8R9qVIhI+LCLjnPkQLqhJrUgT90pktIzEnVZ5BaiMwJEbKTO 9ZQKOpS8e9Fj1CoFjPDlmDk3K6ZHT0zrLg== X-Received: by 2002:a1c:bdd4:: with SMTP id n203mr4114936wmf.119.1599665791600; Wed, 09 Sep 2020 08:36:31 -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 m185sm4605220wmf.5.2020.09.09.08.36.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:36:30 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v4 2/4] wcn36xx: Define wcn3680 specific firmware parameters Date: Wed, 9 Sep 2020 16:37:15 +0100 Message-Id: <20200909153717.2905037-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200909153717.2905037-1-bryan.odonoghue@linaro.org> References: <20200909153717.2905037-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-20200909_113632_550789_D627B818 X-CRM114-Status: GOOD ( 12.37 ) 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: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 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 55d2609bd9a1..fda2fa0339d9 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 Wed Sep 9 15:37:16 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: 249495 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp524689ilg; Wed, 9 Sep 2020 08:36:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEkIN1ZTNPkD9pwUCQZTFT0homKHFCLVycCMMm/KbOVzti9XC3j6qWYYTm+9sdTPcJvdl/ X-Received: by 2002:a5d:80c6:: with SMTP id h6mr3808609ior.2.1599665798891; Wed, 09 Sep 2020 08:36:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599665798; cv=none; d=google.com; s=arc-20160816; b=ymLX9VLdyO0dYjEi3Fgi8APL0I0q+U8yLnq0hbYckFkqy+Sd9KS1DVOpzdRD/O1p4J 6GZ+xHEwxnxIeDEpgltkZBsmTVk7cdI0h22QaAHkpf02lInyBW/mKHcJflrG5AayuZHB dQ4BZ/VtltoVPh84t4w9Dcl5EMFT5m7YaM1dmxXgT8XZkJeckO9Eheo9nCitqyI0Lu8q ooQcjUFHlht3CLhbFQl8wDXxLltnH1Fz7je2Hn+OuU+5mXA7Jx3fji5zE8Qzar+RpkQI uDOtqyRiscipbn2SOShbsjiWvZ2U/+MFv5kRfF5G62/z3DezNWJC7E6jmunG3a7Ko7WT C2AA== 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=/Ucmr6JhbfhAvxMEE7wHPvTXby2TCrlXYKwqR0NDB9g=; b=H1uSOYiZPgBJZfGwp+3C1rerIunUUlcMnhJd4rWKEG7PN8StIExTwegn0eFQh63fTX kUB+Cr7c8hKMPbNQ31gfmNqY4UAPat6zRAXTcuOw0eSxOIqZkGOyTBujys7krAX073WR I4wc32HgIaXrP35WOf09mM/pOcanSadmKYs8UMry/grejMliMa2uw2iY+CNdkgWXdn4L hgw0aqIiQCklmZ9kv/AvIbA/ovTKvLUDoMZUIi8N/axsAU6oweiEMe5vBPKAAsOBISNt fKxbnz2IYq2TRYoO458igVKfvoNPuESJsU9HTfm3BeK7Z0mBBF4kF0+QRWII8amWa50A BWYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=dEMbZY9s; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=qoVAGYgv; 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 l67si2317220iof.32.2020.09.09.08.36.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:36:38 -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=dEMbZY9s; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=qoVAGYgv; 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=/Ucmr6JhbfhAvxMEE7wHPvTXby2TCrlXYKwqR0NDB9g=; b=dEMbZY9sSZ8CBfH4x6flojzdH 1MuTLAOJP0o585A9pK6bSZzykDoehIp+ad7chebXrNycEo1hbwp2vvuUKSczbnuTQ62fsMdYO8jki dxjHm58BJec5mL5gCq/1dogjUU/Rh9omJL1Sj95V7o0RqDqaldTxR7iqFpQ/RXSSTFMCYm6/RYuAO 4desUbBYYvhOhox5n8qxrYH2e2ucjI2crpU1IjdmUlPEBrMY+CqH0oErt6KOGy2MinR1bJo18/XcZ hp/8cYcksDrkDhnbuwa+HWu8rddm9xDOrekH8D0+BL3QVtIGnPqXu57gsrtpBT0GFY73A39TGoWTO MzyfjYFEg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG29D-0006hR-VR; Wed, 09 Sep 2020 15:36:36 +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 1kG29B-0006g1-RX for wcn36xx@lists.infradead.org; Wed, 09 Sep 2020 15:36:34 +0000 Received: by mail-wr1-x441.google.com with SMTP id z1so3469333wrt.3 for ; Wed, 09 Sep 2020 08:36:33 -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=AiC0FgF4uDyeVnKed9OyzjxTSydZd0n83LrPDKGnIx0=; b=qoVAGYgvJAXzaNyItH/D1xYCzbVYiKWjlxjPjxREKvVdKi5C23Bb3/5oVuR9XU7Rx+ TpaqpjGvbTgnicv/WxgfBBqAwuyKga+YIaQEYd0moB91WRg1PCyAqB01ClCOrhtZllYs qMqPgFJS84qyVW1GJcJSa9uDOC8Zquj6t/dSMRHXxNKtpWNLs8FPszlvUJD+iSaR2XhN yOh/UOyFvu5Jb4rEQkV8Pb+3EFbsJ1H5YWNXA4T/DhnTZgz859slr4U4CCt5JPOW2eHN c42iOWexbkDYKsUIgicDFELTCbCE/mHg9BhoUV7cBlhjJNAlBVOo1aCdRdZ1AeIZKtQQ 1h6w== 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=AiC0FgF4uDyeVnKed9OyzjxTSydZd0n83LrPDKGnIx0=; b=T9ScbHDz5fKTErke90fwJ2GBzQTSbHexUsaNWdTvG7SK1jFbHmS4Ce4ewZc036HbKF NNIvasexKEvpsa+KUrqrZa07p8BHufa9zbXnQ4PekLtVtUEfpG6EEhlWvcD/XEewZ0na sXPqjnG6c8dGTo4Ugr0JdQyV1vAceSapl1tM85DsHFDj+PK6F5XGZ3ZbkUHTUJoVV54g ANIqkH8g/9BoQ3Wei9B890Ev47uh46hWpWCbrQ63p2kmxMmxIuSwxft5sATr9b+zolNR KuhK/gIIVsxMYBsumlim4K2EYFLGWo2l0CvFHBjDxCmFX97aVLEBL44szu9Q/YzWuYWJ kXSQ== X-Gm-Message-State: AOAM532s+bI31YVaha3TGKzqZBWFtRdNlVhyAWHbLbMLMuVlcTLM/sx2 Dm8GB+pCPac467J9BdJnY7A2zyt8uPJVzA== X-Received: by 2002:adf:e449:: with SMTP id t9mr4668564wrm.154.1599665792826; Wed, 09 Sep 2020 08:36:32 -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 m185sm4605220wmf.5.2020.09.09.08.36.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:36:32 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v4 3/4] wcn36xx: Add ability to download wcn3680 specific firmware parameters Date: Wed, 9 Sep 2020 16:37:16 +0100 Message-Id: <20200909153717.2905037-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200909153717.2905037-1-bryan.odonoghue@linaro.org> References: <20200909153717.2905037-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-20200909_113633_895348_66296CAB X-CRM114-Status: GOOD ( 13.21 ) 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 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 fda2fa0339d9..6805de3f58e7 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -612,6 +612,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); @@ -624,9 +626,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 Wed Sep 9 15:37:17 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: 249497 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp524715ilg; Wed, 9 Sep 2020 08:36:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxO+G+XScj/u6IsvT218GhVqaglf8pFD+TJDculxrW9OrnVPYrMRqt1+iO2IHzoJIcB8/Bj X-Received: by 2002:a6b:5a0d:: with SMTP id o13mr3816638iob.186.1599665800305; Wed, 09 Sep 2020 08:36:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599665800; cv=none; d=google.com; s=arc-20160816; b=wOwr341PR7nJbs6I2LE54I0LHMaHwg7YwQ0P8UpJX+eBXcy3D8JQZg4ih9ykFhAtOz rOeY4P/jDbjPdda4P/Lg+BGnr7IHUBZI4Qx1Dr4NE9QdnBfy5QqcyjChpolRoeCFPSbl TcnrAS9kMnXmCTJ1s52P9VAGthZs1RPB3AWY7oxn9AO6tbOq3qmH7HRt8EPk9B4H8gsr RydjNZJcPi77Kw7neKkAN0EEouIYWlseVqTDI+VAWnr8n9XKLio4PJZIG54caIoUR3Pw +PelpMfa1kOLOFzQndsBM4zBzi87YhducpmKMnH5Y48xzpRO8LhOKreaguOsN3iKlV3V dukg== 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=X22RDE4lNJzQiXtBrkx3vabXWaVBXKRy5Ha85vYTBQo=; b=OOE7+SZKTQSfLCtUVkDp7pDahjHnjp8B/PW4foF2DgCswiipdw9F6w4gw1kmsviwhL XLGGrFpCq9AxFk6/7D7IvRbW6e04q7EeD8sUZka9q26X/Gzzt1LSYhLSPcGzJLg4L3OL wIIWnjtudGwAbW1SorSS1HfECqZAdiC4xh2T1XPc3lZr0//aN3uXUsb3STBphqKLxA4R nIpL+gqdsYMVqGWTqC06zEz3DSm2M+mIODd5f8XNVTbSGpr3HWZWznNBEOA+I44pmBlp nV2okVtMjhL3AI4vyhqzQZUPYqyrReVcf+eyQUtb4TWx5kDJULc3tjsIl/Tnkdbz/8vy PUYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=NtN8u0KT; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=LYCnKcOc; 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 q5si2088977ilj.97.2020.09.09.08.36.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:36:40 -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=NtN8u0KT; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=LYCnKcOc; 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=X22RDE4lNJzQiXtBrkx3vabXWaVBXKRy5Ha85vYTBQo=; b=NtN8u0KTjSNj9e+uQDQa0uO54 GjMNih+FGWJMeTaJlzMx2LY15lkQuQOYWyZYDM2W2LjFZwgdAjDK8+nPR1HsUKVK8NwcSPhQXZYpd Y9DY9oTCtgeDf/a38HFyIhbnR+v4LlHBlrBiA2cqiK8ChhIP7ZuRplzvf3VqmsPTE6aikSZw6E/7J a3FmyKi1QWOMBVRB7dt683VMQPN7b/6+2va2J4+0skwplbkA1yqNwGxbooM9uX+68aNVjTx+Zb+CH 58uTtzcAsnuRcn2l3Lu6YpLU5RYtrwDQI6pMUNLQ/fiP1uqQnRT3dsipteqbz26exHFNtiCuvpDsU sY/Tmbj0w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kG29F-0006ht-Aj; Wed, 09 Sep 2020 15:36:37 +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 1kG29C-0006gW-Ss for wcn36xx@lists.infradead.org; Wed, 09 Sep 2020 15:36:35 +0000 Received: by mail-wr1-x441.google.com with SMTP id c18so3445919wrm.9 for ; Wed, 09 Sep 2020 08:36:34 -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=wWzCrrKoKysbfFMFWJQIl3auUUYuPdk6I6S0pbeF+DY=; b=LYCnKcOcTXyGT/c2JMpMfO3Omd4+PrBdpFL9aah1ciQX9HeVZ5ealJ9A3B9DskQBwf LT3KYg9sBGqDxG9N61vp1IN1I1G7aU2aufdEi5w98KGPszZUse6tRP8vQyN/W/6Arfhi +2sNN56JFya9L17qWLZh14XgrWg5Jnee9vrHEp4DewFGWH6QogJafGvX1Gfi0/ljoe8w whYZ5HY0qeZrJNBqKx5+ynVcLR63pwbjASPMJKi6kADpU3l47KK1RKf7SMPB06upEfrS XvwnigcXzJoMj7sE+Nvi7CVVusOToYwG1kyS4whVLNCahpDqyDONNzgEJZOml05yNsiK F0Ag== 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=wWzCrrKoKysbfFMFWJQIl3auUUYuPdk6I6S0pbeF+DY=; b=oQN4SJ9KRI5spuDgNh6+e8wexzPxDG7f+tyjG4Uyubzr6Y9bPjWQhoDTXjWg8m+a9b 7FSRDB6rGTU1HX/ZQDd2o12zAN5TlcFhQZEhHW0HFhvtGkJbrzJup8xNu8JjGLEO1ZkZ A4Y0nUi1kdYeGXl+5blRxO7AN/tHnWeVSxu/3m4QylLojVY7R/c4xGYuSaJB0YCmNNZz 8aN57mCVL+1kKtCRP1yccmHtcMHFKyhSrfL5PjLFqPLpYfRcg4p3stg2uzlJnpcSYzVE +df5xt6f6cA47YutAyGbqXgocoBx+0K2/ZKYO6b+mmWhTNvrD4P3ZPlHTzSdk6ceetPg Ou9w== X-Gm-Message-State: AOAM530tzA2LaEMHhgWv64gh8VuXADqFOLWyNqQfLbGtdh1UonIxU49N 1x+C2bUhmCQEU5gTitgBuzEnww== X-Received: by 2002:a5d:4581:: with SMTP id p1mr4590691wrq.345.1599665794071; Wed, 09 Sep 2020 08:36:34 -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 m185sm4605220wmf.5.2020.09.09.08.36.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 08:36:33 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v4 4/4] wcn36xx: Latch VHT specific BSS parameters to firmware Date: Wed, 9 Sep 2020 16:37:17 +0100 Message-Id: <20200909153717.2905037-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200909153717.2905037-1-bryan.odonoghue@linaro.org> References: <20200909153717.2905037-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-20200909_113634_971730_59E23132 X-CRM114-Status: GOOD ( 10.81 ) 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 6805de3f58e7..ad36d6e744a6 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -1681,6 +1681,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,