From patchwork Sat Aug 29 03:38:39 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: 248666 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1602372ilg; Fri, 28 Aug 2020 20:38:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsSkoMB+zewmHkCvz8Ne0SBCcNp53YJK8O5Wc0k3cYVwsoeJKvT3gPjfgYyfa+r0cWlaAx X-Received: by 2002:a02:840f:: with SMTP id k15mr3909465jah.100.1598672294837; Fri, 28 Aug 2020 20:38:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598672294; cv=none; d=google.com; s=arc-20160816; b=q8SgbrGPU6kyzExlLyYY+h0Y/0J/gWLyAF5jAht2iMHeH+L416Aq4CclSxjZrCtwQa 3EsnViflazBQuoksj36L3avT5SayzA45DYqQcRmMccyk3MBJKHDkpWdSYZTGE3eDwvrh gUB56Vo5w47vEx/iQFfai/Thqz7QYXm96TJIlGeRsl36VeCAKiG5FH37enPihEgpSsFV uxq4BPgBbf23bjyXNV9W4KQClMxZG2/0dwOyTsvx4tNFCQQP2RPpfsI55Pz7F9Hz5YqS dw3Iy10ocFF2z0MfPTl14jkBkRgZNLny3aOXx29DcKDz4Uw7RKsJo+hJhhV9kvMR5kWO d+xA== 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=qEYwDBxFtjgDBo8cdTTadTPTiiZkaaf8KzWZR4/unL0=; b=JTJBs97dERtZjWdy9duGU75LG8y3WgMOPwCz0t01F2py8Zo+jgJxSRtd92i4ukFyaG ppy3EdfYan3YjCedLSEq7ZXy3D2UgdocTVnsc2tLwdQj8yOcmsTwkGAV2iT7mVA3YT2W WoDbC2thwqabVQUTG4yg4Lt2Nt+lOWgVT33Fx7LcQbwDehxJVm+1UUCkxH0FOiVxQFnZ y51/jHd7b1PHyzdFapzXARnLdCBNQcVYqKEtp+mS+UptvXIu5OnYMjORqqOH+g+L7XEW yMhLrMesKMgMbzSFNR/PuU8qahdQy2S+uHi7f2K1d59j0XigeNll/HKLmf4BS5wge2cy dl5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=merlin.20170209 header.b=kbK6PydX; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MEatZ4qk; 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 x20si2078122iog.82.2020.08.28.20.38.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:14 -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=kbK6PydX; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MEatZ4qk; 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=qEYwDBxFtjgDBo8cdTTadTPTiiZkaaf8KzWZR4/unL0=; b=kbK6PydXiCTUTqrm692qTj+en pW0jo90aq8MgGrPSxmYb4LCYXu/Yir/C5rwtIBUFecYcSM4UTpkN6JNZC38BZytaIXW1r0sxrO3rK jBEXe2236UvkM6k/nLCqO7JXuPbDmLh3SZhVlaRqBnK3ShBL1NJhK44D447ToDX1fQcdjBGeKAsOK E1xnCdDqaeBFp3slWXwKSxWdeUHh+153KKoT8S8jhj8KJF0oZB5aR3daY1Gbtpssq5HfN96NVCYeD 7ZroXTWZ0go61plP4MzVaZoP0AIBjRJewY3fUMBeBFTMKro4GwvGe+74afHxsLfP2lJ63IJ4pi38j 6xELPC91g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrgx-000284-LC; Sat, 29 Aug 2020 03:38:11 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kBrgt-00025U-LB for wcn36xx@lists.infradead.org; Sat, 29 Aug 2020 03:38:09 +0000 Received: by mail-wm1-x341.google.com with SMTP id x9so849402wmi.2 for ; Fri, 28 Aug 2020 20:38:07 -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=eyueDL1HpZcFmjns3DJaD8rZWh8gy/SLzoJpbodUmaQ=; b=MEatZ4qkA3Q5ErPunm5qnR+0+uYbnen5AD2b3OXNCtfvC7vCDCWns5XLYdaoQauP0s jEpTEwuv8b6M0HTTgulbRXzg9B+++8FgB2u1sAXzawA0Uwl2ikDVW8azUFyTYm82kBy8 0O87/yKp73EnZKcTPv350uJSJOwi4ciMPcSiFNtb5ivqbQM9WiRNoDYlk6/6LgIhM4nO hbRJZlk48wrX1wzn32kTHCDfxDDnSKIfpY6n99HpE8vQbb5Q6Bn2mT8mjAnBM6ahVPXF ZBT0WGJ1R/DZZGyhOVr2KwS4akt516nmokgOSf5ODC4V6sCWUdyRbn4pMVYsJd+OUDzs JHaA== 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=eyueDL1HpZcFmjns3DJaD8rZWh8gy/SLzoJpbodUmaQ=; b=gTdl8HgHWYAIktirzC69OJic0uERme460K8zd8RolybgLAGeB82AnqmDJVi7b5YS/l 2drqYzqMApKfCnCUXDMbs77yoIOiqySbcyEH79CwpfW2J+oMlW4JEx10JfLIHtWM8UyR L8gfgpzvhHVImbWYBUis3xvAJkQWdHQitrhdv1og1bwVe3K03qhbEEO5G9HHMmr117Sy RIFOYygeqN1vjj7Tnu1PCNpKLSgnYSzZzZRrmIhraiJUtfYvBJItme4voCozEJSyD3CF vOT9YZegpQfH4WwjGYwmfPKOuCufmmfV6bL1AyISHLScuy52eCg8LzfiNLf/8KwDp94A Lpew== X-Gm-Message-State: AOAM531J73CIUFG8EAQq5qscwFIY33Rscsg9zOAmaRlOJWIS3ivEMIFB PwjAv7QSWyww1Ic/UwmV0RAZxw== X-Received: by 2002:a1c:1904:: with SMTP id 4mr1431433wmz.119.1598672286424; Fri, 28 Aug 2020 20:38:06 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id v29sm1827545wrv.51.2020.08.28.20.38.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 20:38:05 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 03/10] wcn36xx: Add ieee802.11 VHT flags Date: Sat, 29 Aug 2020 04:38:39 +0100 Message-Id: <20200829033846.2167619-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200829033846.2167619-1-bryan.odonoghue@linaro.org> References: <20200829033846.2167619-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200828_233807_733914_F361DC22 X-CRM114-Status: GOOD ( 13.65 ) 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:341 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 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 patch adds ieee802.11 VHT flags for the wcn3680b. - RX_STBC1 - SU Beamformee - MU Beamformee - VHT80 SGI - Single spatial stream RX LDPC is declared as supported in the datasheet but not enabled at this time. Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/main.c | 32 +++++++++++++++++++++++++ 1 file changed, 32 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/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index eb518bd88870..08e23dbb60fb 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -1184,6 +1184,35 @@ static const struct ieee80211_ops wcn36xx_ops = { CFG80211_TESTMODE_CMD(wcn36xx_tm_cmd) }; +static void +wcn36xx_set_ieee80211_vht_caps(struct ieee80211_sta_vht_cap *vht_cap) +{ + vht_cap->vht_supported = true; + + vht_cap->cap = (IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_3895 | + IEEE80211_VHT_CAP_SHORT_GI_80 | + IEEE80211_VHT_CAP_RXSTBC_1 | + IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE | + IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE | + 3 << IEEE80211_VHT_CAP_BEAMFORMEE_STS_SHIFT | + 7 << IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT); + + vht_cap->vht_mcs.rx_mcs_map = + cpu_to_le16(IEEE80211_VHT_MCS_SUPPORT_0_9 | + IEEE80211_VHT_MCS_NOT_SUPPORTED << 2 | + IEEE80211_VHT_MCS_NOT_SUPPORTED << 4 | + IEEE80211_VHT_MCS_NOT_SUPPORTED << 6 | + IEEE80211_VHT_MCS_NOT_SUPPORTED << 8 | + IEEE80211_VHT_MCS_NOT_SUPPORTED << 10 | + IEEE80211_VHT_MCS_NOT_SUPPORTED << 12 | + IEEE80211_VHT_MCS_NOT_SUPPORTED << 14); + + vht_cap->vht_mcs.rx_highest = cpu_to_le16(433); + vht_cap->vht_mcs.tx_highest = vht_cap->vht_mcs.rx_highest; + + vht_cap->vht_mcs.tx_mcs_map = vht_cap->vht_mcs.rx_mcs_map; +} + static int wcn36xx_init_ieee80211(struct wcn36xx *wcn) { static const u32 cipher_suites[] = { @@ -1212,6 +1241,9 @@ static int wcn36xx_init_ieee80211(struct wcn36xx *wcn) wcn->hw->wiphy->bands[NL80211_BAND_5GHZ] = &wcn_band_5ghz; } + if (wcn->rf_id == RF_IRIS_WCN3680) + wcn36xx_set_ieee80211_vht_caps(&wcn_band_5ghz.vht_cap); + wcn->hw->wiphy->max_scan_ssids = WCN36XX_MAX_SCAN_SSIDS; wcn->hw->wiphy->max_scan_ie_len = WCN36XX_MAX_SCAN_IE_LEN;