From patchwork Tue May 28 21:52:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pradeep Kumar Chitrapu X-Patchwork-Id: 10965855 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 D66A292A for ; Tue, 28 May 2019 21:53:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C701D28893 for ; Tue, 28 May 2019 21:53:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB6A9288A6; Tue, 28 May 2019 21:53:11 +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 BCC5528893 for ; Tue, 28 May 2019 21:53:10 +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: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=4JnB+vB5VEe/Sd/Cl7+N7My5t6/sw02OTZkv7HoqFcM=; b=D/147ZWSPJ8IYMwH6+HIUsLQ6g w1rrWDAdZaMkvmDWxBPUESxm9L5aIDgEn488xO5JMkjhdaOa+wsZPf0qyeAXRcYVPyuAKaoxYKEK/ SvoYVPIXs4wqIdEG2SaocfDTmXzm/DurIj22Ya4Uu5KCQNXlRxTQR2Oy8iSgvxmo6DKk2pqEeMs0x AdGCRGFP/EuduplxuBL9PjTHXE7Ik2Q0rMYf8qY8NSamRDZyBPWFP6zjnZQ/VxkkcPTJMDzBHQPcg OVHW9Ms/AT6bK1RPmHq3HrETsT7aFOMIA90t+IwjvTOJgY8pl3OtEf1tNgIgto3z5sRq1+k6HYXd0 ttjDJI2w==; 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 1hVk1t-0003zM-Tv; Tue, 28 May 2019 21:53:09 +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 1hVk1p-0003vx-20 for ath11k@lists.infradead.org; Tue, 28 May 2019 21:53:06 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 6607060DAA; Tue, 28 May 2019 21:53:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1559080383; bh=NHkClgk+KomvfIYgFMsoAtaebiQ/tVqhTQIy/+22ebc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ncg3xikdebsIk3ceJmujLah7/qkll58RbAOlsR4uNNUhM0lUo1t/h8cWfBGCPWzKL oCoOR0qfo0+AyrS4f5G4ljPFqOajPi17kaFJ8BhTN9imFmx1NcS1/3pZe10tw2T6C8 x7jmErVNDdYLv0svtpIhmACXpVx8CmBN2PK+prCI= Received: from pradeepc2-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pradeepc@codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id DB7E160AA3; Tue, 28 May 2019 21:53:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1559080383; bh=NHkClgk+KomvfIYgFMsoAtaebiQ/tVqhTQIy/+22ebc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ncg3xikdebsIk3ceJmujLah7/qkll58RbAOlsR4uNNUhM0lUo1t/h8cWfBGCPWzKL oCoOR0qfo0+AyrS4f5G4ljPFqOajPi17kaFJ8BhTN9imFmx1NcS1/3pZe10tw2T6C8 x7jmErVNDdYLv0svtpIhmACXpVx8CmBN2PK+prCI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org DB7E160AA3 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=pradeepc@codeaurora.org From: Pradeep Kumar Chitrapu To: ath11k@lists.infradead.org Subject: [PATCH 3/4] ath11k: fix multicast txrx for secure 11s mesh support Date: Tue, 28 May 2019 14:52:55 -0700 Message-Id: <1559080376-26817-4-git-send-email-pradeepc@codeaurora.org> X-Mailer: git-send-email 2.1.2 In-Reply-To: <1559080376-26817-1-git-send-email-pradeepc@codeaurora.org> References: <1559080376-26817-1-git-send-email-pradeepc@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190528_145305_113245_4CEAEBA6 X-CRM114-Status: UNSURE ( 9.16 ) X-CRM114-Notice: Please train this message. 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: Pradeep Kumar Chitrapu MIME-Version: 1.0 Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP setting MESH_MCAST_ENABLE wmi param is necessary for txrx of multicast action frames in 11s mesh. Signed-off-by: Pradeep Kumar Chitrapu --- drivers/net/wireless/ath/ath11k/mac.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index c78c1481fe7f..9730c077149a 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -3373,6 +3373,14 @@ static int ath11k_start(struct ieee80211_hw *hw) goto err; } + ret = ath11k_wmi_pdev_set_param(ar, WMI_PDEV_PARAM_MESH_MCAST_ENABLE, + 1, pdev->pdev_id); + + if (ret) { + ath11k_err(ar->ab, "failed to enable MESH MCAST ENABLE: (%d\n", ret); + goto err; + } + __ath11k_set_antenna(ar, ar->cfg_tx_chainmask, ar->cfg_rx_chainmask); /* TODO: Do we need to enable ANI? */