From patchwork Mon Aug 3 03:11:07 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: 247316 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp860549ilo; Sun, 2 Aug 2020 20:11:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyd2zrQkQ3KW3qPR6moDfpWqNgEt2qR3Z3XlRt40pf9ObJqajNL5Km4gBPv3F/es7/xnIc9 X-Received: by 2002:a17:906:1447:: with SMTP id q7mr13912030ejc.363.1596424263103; Sun, 02 Aug 2020 20:11:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596424263; cv=none; d=google.com; s=arc-20160816; b=wzhk7i+JtpDE8VC6Me7lm+72/HoyvUWibY2TI9yOMx9HxemBlyw8OVbakGiP/FXZ0C ZTkz4u9FLQbUnWzLzVpVOwzd8xYJT4vFnKTtOLCsFgxWBxio5/naS/WMEx6JrYlAQFJ6 m9eBE+GL3vHPdiUTldmCSIkrYeeXuDQyBxZQTiHeoCFIkkxePPyqSQkkYl50WhgYtvOF 7p6gRe5RtF4jEvVHqvMJQ0wiXN7iZj/+YCrhzM2yJli8RW4JZXsK1yGCpD1s7TNUBBPF hm7f31B2waD/YkHG4+Ga+YNcwLFoYvVawvRgMdo9Kp+eN11b0wPpUPLCWuqWxKiZSmnz EXQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vpNpHP9Fx27y3i+wK1ZfXMYtkK+cRyUpKFw3O+d/HP8=; b=d9khzy0LLzjUhVW62FUjckPuwYiZTqO4bFArYnkzlGP8ixS0W7690pkygbxeyupPqp nYhU968xnCRpfREVjTIjnavpdAC7dgK5ryGU1BpY4H/Gt+z/+seJJm/ZWe6TMp42lkmH MY00SzDHZavwuiD/d7uzeDp6C5G1ingibm0UZUB4hTfwX7SuaXM19x6mNtIY3Pw/5SBm Yc2oC+Oc0vwDjChEKjcq++Kx/98zWaPbDQyyhnWN9pdDU1Kp9dLg01pf1TB/l/4stxkE 7lsHiGOPZD5jJHU9G+7O0Ww+CtoT4B1NR9B/34SmYv6mVJpPkfPVMwunOwh6a3zW2ecW iKSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qxf5+W96; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz19si10235393ejb.34.2020.08.02.20.11.02; Sun, 02 Aug 2020 20:11:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qxf5+W96; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726750AbgHCDLB (ORCPT + 2 others); Sun, 2 Aug 2020 23:11:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727077AbgHCDLA (ORCPT ); Sun, 2 Aug 2020 23:11:00 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05F2BC06174A for ; Sun, 2 Aug 2020 20:11:00 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id z18so29222143wrm.12 for ; Sun, 02 Aug 2020 20:10:59 -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=vpNpHP9Fx27y3i+wK1ZfXMYtkK+cRyUpKFw3O+d/HP8=; b=Qxf5+W96Bx8CUdhG4VS8+T8paauRAgfFd2x8vEoOraaos5DudYtH2nT1ivpKhucGMT vY4Ew43dYwHt9PO8eKzuzzBxABKMg5P32XfK7korWZ4DqTRkHNjvBjhyrCrXBBIuYd4A zjKOdHQM2gsU3nsq4/cCXsDI+XX94LD68tTGAPGw/YXHNsPWq2MPSeXh/xgRbgye2tQj H8jBjhtqvvDETpNFJrB0+h3QiWYviHnXsPmuk3okU1jljTf3tj3LxorQXZ8YhdDfbGiq E+rKaeai3mOKML0KeskEZ1c9F04O25tVGKDBV+isCAOSBIgeroOAHp35pmznu+69hoOX Nqlw== 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=vpNpHP9Fx27y3i+wK1ZfXMYtkK+cRyUpKFw3O+d/HP8=; b=B5DGRnXv7cstrkJmpJdDuBVRLkvEu5vsIWYY3rkKBTZQHNPsJrMlb+vWcgWyxv+K6l ZXRwz/FA0bTBvk1ELGu66JuENTYk6qIyXibdJQUKgplnrB2YuXPX8/OONo7Hqv2OK1gq pC4q8rYuWCWH7lTqhxqB9zaUPJx2/yaQJ0aUIeSheJwzvgvW91ftwq5ouFiAX141SXdP d+K3wKxMRqABpt/w3cxZ3aznw5e8dLVR2rY3V+D8HeEet3hlh63XTqqJussRqtArdjV2 hMZNRp8PZbrLrSScBk3a6syaMt8ZXauEvztRsK6FboeAEiVv8dFoBHeHCqRMjrLPX26T XOOw== X-Gm-Message-State: AOAM5301DCKHAAla6MlMKjgY4Q22+G3gDSpAjuxqM7mEG+mt3mRL4DJ5 golptMvtFt1EmkbFndYD4Lp2bA== X-Received: by 2002:a5d:526d:: with SMTP id l13mr12419614wrc.279.1596424258806; Sun, 02 Aug 2020 20:10:58 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id q2sm21956857wro.8.2020.08.02.20.10.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Aug 2020 20:10:58 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org Cc: wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, bryan.odonoghue@linaro.org, shawn.guo@linaro.org Subject: [PATCH 11/36] wcn36xx: Add wcn36xx_set_default_rates_v1 Date: Mon, 3 Aug 2020 04:11:07 +0100 Message-Id: <20200803031132.1427063-12-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200803031132.1427063-1-bryan.odonoghue@linaro.org> References: <20200803031132.1427063-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Add a routine to set some additional default parameters associated with the V1 data structure. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/main.c | 8 ++++++++ drivers/net/wireless/ath/wcn36xx/wcn36xx.h | 1 + 2 files changed, 9 insertions(+) -- 2.27.0 diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index 3b27ff6f6dac..9f56f1af6dc4 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -785,6 +785,14 @@ void wcn36xx_set_default_rates(struct wcn36xx_hal_supported_rates *rates) sizeof(*ofdm_rates) * WCN36XX_HAL_NUM_OFDM_RATES); rates->supported_mcs_set[0] = 0xFF; } + +void wcn36xx_set_default_rates_v1(struct wcn36xx_hal_supported_rates_v1 *rates) +{ + rates->op_rate_mode = STA_11ac; + rates->vht_rx_mcs_map = IEEE80211_VHT_MCS_SUPPORT_0_9; + rates->vht_tx_mcs_map = IEEE80211_VHT_MCS_SUPPORT_0_9; +} + static void wcn36xx_bss_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_bss_conf *bss_conf, diff --git a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h index c3615704b543..18ccc6c31a38 100644 --- a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h +++ b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h @@ -270,6 +270,7 @@ static inline bool wcn36xx_is_fw_version(struct wcn36xx *wcn, wcn->fw_revision == revision); } void wcn36xx_set_default_rates(struct wcn36xx_hal_supported_rates *rates); +void wcn36xx_set_default_rates_v1(struct wcn36xx_hal_supported_rates_v1 *rates); static inline struct ieee80211_sta *wcn36xx_priv_to_sta(struct wcn36xx_sta *sta_priv)