Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp787683ybb; Fri, 10 Apr 2020 10:06:20 -0700 (PDT) X-Google-Smtp-Source: APiQypLntNl8j/vR2qaJ/AYqju1+3YoqUE+3RTvi5q1+8kFPYMndoAs/9PCRCmudXvtGWlGG3pcp X-Received: by 2002:a05:620a:81c:: with SMTP id s28mr5001147qks.147.1586538380692; Fri, 10 Apr 2020 10:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586538380; cv=none; d=google.com; s=arc-20160816; b=cmpvqO1s+UXteHP0rwTHs6AFk3Lc9L0qaD9AK69bLpr4CwUCKM/KtRdHnLk5ueSWkk U6I2Edqhw2whwhXwDkSNHpKLWsZVIWe6vvQUpOLiyYr1Y3ddfRNWcJ3eahFQ1yaDYjE7 C0iF/lTcAe3YluwinXasNl2XV4wCRyZqVSCrH2OdxxzwqmSjeAL5tm93wuFMoR5VMbGF EAObUxTTXP+s/WgfgPTm7xaYbAqzs4TuXd82if15gwP8TJBuY8niYw2lpYK7FJG0FfQ1 gFyp4Nva/CDUolSbUAZUVTeDmWyrC0GQPglBpHvY6ONNlWFQHCN8p1McySI18XszJZGm 3eXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature; bh=pYGe/doWjXV4ByehKZnLioV7ADmaQfRqkdcHgaeNd0M=; b=G786QizR8Vb+Kf9vdgIaHSVvPxzM+WQUtgpOzmwHrmsB1RJC7iN6Q2BPvN4mVHS1Ia ZpsIgz0BZ3khnpP6zL8tnwOCcAluBluyPQo2FSGXvR7TzWPPAj8+LQ4byDQrc1dhC+iD lFnu/G/fPbZpYm5VZn4eKQ9WuziD7NVHvzCEIagHF79upUpt3pMcdncPXmQI1rE2zMUC bv51giWbyD9CCJbmoYoNoKCWFgZrbhKnR4347O+L7kzcuXZHANQ2VKZtmH+IdGcbJSsl Hw3v32IOTDYnKpuIjB+HVB13F3l0ZUbHqa3UdRZmuVobl81Jjr2JNgD5Z4TisCYrRFs/ YQmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=tu1QfMcd; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j13si841788qta.151.2020.04.10.10.05.54; Fri, 10 Apr 2020 10:06:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=tu1QfMcd; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726203AbgDJRFb (ORCPT + 99 others); Fri, 10 Apr 2020 13:05:31 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:47827 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726142AbgDJRFb (ORCPT ); Fri, 10 Apr 2020 13:05:31 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1586538331; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=pYGe/doWjXV4ByehKZnLioV7ADmaQfRqkdcHgaeNd0M=; b=tu1QfMcdcGjy5klFB/CFm3BY5NG4/j9n7g5AccO11myb21ZfixKlLOBXi2hqHqW1Kny/85X1 0MkhbF8NixM73pfAasmlY6S82kaEfArDZE/hFq3zjimd19SrmKRVNEzaSUAdDObwdr/ApFgD I6/P9bUCVxP/zmE1tht7qljA+2M= X-Mailgun-Sending-Ip: 104.130.122.27 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e90a754.7f2b7232a500-smtp-out-n03; Fri, 10 Apr 2020 17:05:24 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 51C9FC433CB; Fri, 10 Apr 2020 17:05:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=ham autolearn_force=no version=3.4.0 Received: from che-swdbs-01.qca.qualcomm.com (blr-c-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: mkenna) by smtp.codeaurora.org (Postfix) with ESMTPSA id 6A16BC43636; Fri, 10 Apr 2020 17:05:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6A16BC43636 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=mkenna@codeaurora.org From: Maharaja Kennadyrajan To: ath11k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Ritesh Singh , Maharaja Kennadyrajan Subject: [PATCH] ath11k: Fix fw assert by setting proper vht cap Date: Fri, 10 Apr 2020 22:36:44 +0530 Message-Id: <1586538405-16226-2-git-send-email-mkenna@codeaurora.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1586538405-16226-1-git-send-email-mkenna@codeaurora.org> References: <1586538405-16226-1-git-send-email-mkenna@codeaurora.org> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Ritesh Singh After setting fixed vht-rate if new station is trying to assoc with mu_bfee cap, or if a sta is already connected with mu_bfee cap then set the fixed vht-rate and reconnecting the sta, FW assert is happening. So to avoid this, reset the MU_BEAMFORMEE bit in vht->caps, if mcs_index is invalid for nss 1. Signed-off-by: Ritesh Singh Signed-off-by: Maharaja Kennadyrajan --- drivers/net/wireless/ath/ath11k/mac.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index 9f8bc19..29e1267 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -1142,6 +1142,10 @@ static void ath11k_peer_assoc_h_vht(struct ath11k *ar, arg->tx_mcs_set &= ~IEEE80211_VHT_MCS_SUPPORT_0_11_MASK; arg->tx_mcs_set |= IEEE80211_DISABLE_VHT_MCS_SUPPORT_0_11; + if ((arg->tx_mcs_set & IEEE80211_VHT_MCS_NOT_SUPPORTED) == + IEEE80211_VHT_MCS_NOT_SUPPORTED) + arg->peer_vht_caps &= ~IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE; + /* TODO: Check */ arg->tx_max_mcs_nss = 0xFF; -- 1.9.1