From patchwork Tue Aug 13 09:27:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 11091605 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9F8F9184E for ; Tue, 13 Aug 2019 09:28:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D0C327FC0 for ; Tue, 13 Aug 2019 09:28:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 80C6427FE4; Tue, 13 Aug 2019 09:28:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.4 required=2.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B5DE7281E1 for ; Tue, 13 Aug 2019 09:28:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.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=rHQ0c2tsPc0wjIhS9A6Mh8f0h8SlSl550fRxhoy9icI=; b=HxlFUxETdm4nN9 5fvp/hMHaZZ6S7OQXBvD+APB+yxvbaGRXv3nSD4epVtGZU1RWVRYbrsQYp+kVl9GkPRFMrn4qvCa4 e8Viud8y5iA5kf7SVD4jwlgnrYPnLSknIMeGFRr9OzDuEx/AK64KAxPYI+IQFsBvqpa1JchTlv4QC RqN187Ccf2St0kQZ6xK87gJlfbCZl0uOLnoQeK84tX2AuyLtNIYu4JtplMT7r9v1RXDmlQmuRNrt5 7kWed32BCBmx+xhtWBFZPgj8ebsI9a2TTzF+ocOt3supk4/G+RNa+Rol40QdD6WASpRgbFa+Dv7l1 mrkutz04JGTtbWsD5Bjw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hxT63-0001nS-Cm; Tue, 13 Aug 2019 09:28:03 +0000 Received: from dvalin.narfation.org ([213.160.73.56]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hxT60-0001ma-QZ for ath11k@lists.infradead.org; Tue, 13 Aug 2019 09:28:02 +0000 Received: from sven-desktop.home.narfation.org (p200300C59716A6EC000000000000051D.dip0.t-ipconnect.de [IPv6:2003:c5:9716:a6ec::51d]) by dvalin.narfation.org (Postfix) with ESMTPSA id 72BC620077; Tue, 13 Aug 2019 09:27:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org; s=20121; t=1565688479; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AxYkUdkUw7AlDfsfsP5A3HZElBkvPxZWZJSYpgY3TuA=; b=xdUmse850wmewgtTga/NmEV8jNXHOfJo/DDTvJ082tR9AFPGpd3DNoM8uBE475SzS5+aWj QZEO96Oy8cAwlVJsnWgiWdOfXKNkLKA+DMF868gRbuXr+Ci7tWN8a5c14r2aARofPUNLJM CpWsPUmIRQ+TrJry3MyJuRvHh9+iwdA= From: Sven Eckelmann To: ath11k@lists.infradead.org Subject: [RFC PATCH v6 2/2] ath11k: Disable SU support in meshpoint mode Date: Tue, 13 Aug 2019 11:27:26 +0200 Message-Id: <20190813092726.28074-3-sven@narfation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190813092726.28074-1-sven@narfation.org> References: <20190813092726.28074-1-sven@narfation.org> MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org; s=20121; t=1565688479; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AxYkUdkUw7AlDfsfsP5A3HZElBkvPxZWZJSYpgY3TuA=; b=bwtYHR2gWCjYDC8104ueAe//63dKpkH2vqdfzRIh8KUCLWYA6XLi4NXSw4b4O0cvITk+w2 jfUUiORA/0A2NqBo6L2Hef6CDnF5VlMr1G72sHQFebm4uVuslNYcLNFfVBZeWyPFiwVR0B eMPVewiiud41LO+BZc2K2Gx/YuTcS1s= ARC-Seal: i=1; s=20121; d=narfation.org; t=1565688479; a=rsa-sha256; cv=none; b=dPrIfoJrXepBIQxKn496rxhJAKLhipr3cGjpspg+0bvioY1bX94LZyTBEkbnyBO5uo+8y1 gKVu1uU7H7RUuxyLRqscMT+S90B5FAU8cVRLYOTGMpxre/QTbuL3cf2QWozjyxy40WzXZ8 YveixsZRoZ0pOpoRP+qipgSTARFt6tU= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=sven smtp.mailfrom=sven@narfation.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190813_022801_172599_BB156965 X-CRM114-Status: UNSURE ( 6.96 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sven Eckelmann Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Sven Eckelmann The firmware WLAN.HK.2.1.0.1-00629-QCAHKSWPL_SILICONZ-1 often stops sending data on 5GHz when SU support is advertised. A simple throughput benchmark will end up at only a couple hundred kilobytes per second (when finishing at all). Disabling SU related flags works around this problem and allowed a maximum throughput of ~450 MBit/s in a simple test setup with an HK01 over air. Signed-off-by: Sven Eckelmann --- drivers/net/wireless/ath/ath11k/mac.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index 9abe4a25a1b6..66be6c8faad1 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -3299,16 +3299,24 @@ ath11k_mac_filter_he_cap_mesh(struct ieee80211_he_cap_elem *he_cap_elem) m = IEEE80211_HE_PHY_CAP3_RX_HE_MU_PPDU_FROM_NON_AP_STA | IEEE80211_HE_PHY_CAP3_DCM_MAX_CONST_TX_MASK | - IEEE80211_HE_PHY_CAP3_DCM_MAX_CONST_RX_MASK; + IEEE80211_HE_PHY_CAP3_DCM_MAX_CONST_RX_MASK | + IEEE80211_HE_PHY_CAP3_SU_BEAMFORMER; he_cap_elem->phy_cap_info[3] &= ~m; - m = IEEE80211_HE_PHY_CAP4_MU_BEAMFORMER; + m = IEEE80211_HE_PHY_CAP4_SU_BEAMFORMEE | + IEEE80211_HE_PHY_CAP4_MU_BEAMFORMER | + IEEE80211_HE_PHY_CAP4_BEAMFORMEE_MAX_STS_UNDER_80MHZ_MASK | + IEEE80211_HE_PHY_CAP4_BEAMFORMEE_MAX_STS_ABOVE_80MHZ_MASK; he_cap_elem->phy_cap_info[4] &= ~m; - m = IEEE80211_HE_PHY_CAP5_NG16_MU_FEEDBACK; + m = IEEE80211_HE_PHY_CAP5_BEAMFORMEE_NUM_SND_DIM_UNDER_80MHZ_MASK | + IEEE80211_HE_PHY_CAP5_BEAMFORMEE_NUM_SND_DIM_ABOVE_80MHZ_MASK | + IEEE80211_HE_PHY_CAP5_NG16_SU_FEEDBACK | + IEEE80211_HE_PHY_CAP5_NG16_MU_FEEDBACK; he_cap_elem->phy_cap_info[5] &= ~m; m = IEEE80211_HE_PHY_CAP6_CODEBOOK_SIZE_75_MU | + IEEE80211_HE_PHY_CAP6_TRIG_SU_BEAMFORMER_FB | IEEE80211_HE_PHY_CAP6_TRIG_MU_BEAMFORMER_FB | IEEE80211_HE_PHY_CAP6_TRIG_CQI_FB | IEEE80211_HE_PHY_CAP6_PARTIAL_BANDWIDTH_DL_MUMIMO; @@ -3316,6 +3324,7 @@ ath11k_mac_filter_he_cap_mesh(struct ieee80211_he_cap_elem *he_cap_elem) m = IEEE80211_HE_PHY_CAP7_SRP_BASED_SR | IEEE80211_HE_PHY_CAP7_POWER_BOOST_FACTOR_AR | + IEEE80211_HE_PHY_CAP7_HE_SU_MU_PPDU_4XLTF_AND_08_US_GI | IEEE80211_HE_PHY_CAP7_STBC_TX_ABOVE_80MHZ | IEEE80211_HE_PHY_CAP7_STBC_RX_ABOVE_80MHZ; he_cap_elem->phy_cap_info[7] &= ~m;