From patchwork Wed May 1 02:41:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miles Hu X-Patchwork-Id: 10924439 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 58D251398 for ; Wed, 1 May 2019 02:42:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A6B528DF1 for ; Wed, 1 May 2019 02:42:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 27C6928DF5; Wed, 1 May 2019 02:42:09 +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=-5.2 required=2.0 tests=BAYES_00,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 F0CF628DF1 for ; Wed, 1 May 2019 02:42:07 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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:In-Reply-To: References:List-Owner; bh=BMMmXuE7T5gBTrTb4emSzuErqoojp1pRraPO4GuGgxM=; b=Tbv +0A106I69kbJ9IqkT3MwhwrHrVBjEizvbV4Y/XhbJsctKGhOEjl3Q2EVjDEhdDqzwUUzSTaLGXDfK 82X+vjHORcOwFyphvjlGj0exQTL1gqeSr8XdB/Vqw66kxZc25N5Vs6fXNQq4BDr22JAddGimsl3yY K9xqo6uV7wHOlC5iGMhi2QRiu61cTWgUeMt843TYZKQRkRQji+SAVpl19LTMN8CSw2tU+/+iCq0Mj Rbfu7PVabteoPb06VVy2HaC202gKuYbQgz8Y58Qha1WI49WCXgoaPAwZ1DkJdPZoQj9fhvwrKOZDz CWxmRq/Yw9T6fP22y4h1fzaf9/buEjw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hLfCA-0006RL-5m; Wed, 01 May 2019 02:42:06 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hLfC7-0006Ql-UN for ath11k@lists.infradead.org; Wed, 01 May 2019 02:42:05 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id DEBE86016D; Wed, 1 May 2019 02:41:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1556678519; bh=7uibPeP+N07WLgtHverva9M5064OdrFpGV8A9lPnwfc=; h=From:To:Cc:Subject:Date:From; b=am+KA8+TzldKZRykB7jbDcU6b1SYGKklSLpa4yv+jnSqmYzpkat3do8ieAgalItLE bLNO/gZ5McOrZg1KGwjUZAZC7w1mjTTeG1+yKhxbLwZHjX9zD/EQZa0IODi8AMXfc1 sVQzgPdn3M6VP0N4VIS704I6FKxpitRhST/jfros= Received: from smtp.codeaurora.org (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: milehu@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 602646016D; Wed, 1 May 2019 02:41:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1556678519; bh=7uibPeP+N07WLgtHverva9M5064OdrFpGV8A9lPnwfc=; h=From:To:Cc:Subject:Date:From; b=am+KA8+TzldKZRykB7jbDcU6b1SYGKklSLpa4yv+jnSqmYzpkat3do8ieAgalItLE bLNO/gZ5McOrZg1KGwjUZAZC7w1mjTTeG1+yKhxbLwZHjX9zD/EQZa0IODi8AMXfc1 sVQzgPdn3M6VP0N4VIS704I6FKxpitRhST/jfros= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 602646016D Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=milehu@codeaurora.org Received: by smtp.codeaurora.org (sSMTP sendmail emulation); Tue, 30 Apr 2019 19:41:57 -0700 From: Miles Hu To: ath11k@lists.infradead.org Subject: [PATCH v3] ath11k: Fix downlink MU-MIMO Date: Tue, 30 Apr 2019 19:41:56 -0700 Message-Id: <1556678516-12844-1-git-send-email-milehu@codeaurora.org> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190430_194203_999149_3D265CBC X-CRM114-Status: GOOD ( 10.83 ) X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Miles Hu MIME-Version: 1.0 Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP In vdev start command, prefer tx and rx streams are mandatory to enable DL MU-MIMO. Tested only on 11ac mode. Signed-off-by: Miles Hu --- V2: - remove 11ac mode from the subject. V3: - clarify the fix for downlink mu-mimo and mention the consequence of not set the value in the comment. drivers/net/wireless/ath/ath11k/mac.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index ddb8beb..3f888c0 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -3863,6 +3863,9 @@ ath11k_mac_vdev_start_restart(struct ath11k_vif *arvif, arg.channel.max_reg_power = chandef->chan->max_reg_power * 2; arg.channel.max_antenna_gain = chandef->chan->max_antenna_gain * 2; + arg.pref_tx_streams = ar->num_tx_chains; + arg.pref_rx_streams = ar->num_rx_chains; + if (arvif->vdev_type == WMI_VDEV_TYPE_AP) { arg.ssid = arvif->u.ap.ssid; arg.ssid_len = arvif->u.ap.ssid_len;