From patchwork Wed Apr 17 08:31:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Surabhi Vishnoi X-Patchwork-Id: 10904961 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 01EFB17E6 for ; Wed, 17 Apr 2019 08:32:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC42628A92 for ; Wed, 17 Apr 2019 08:32:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D08B828A93; Wed, 17 Apr 2019 08:32:26 +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 7F1AD28A95 for ; Wed, 17 Apr 2019 08:32:26 +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=gdCcgfzqtTDk4Izc/uGNJJQ+xnj7lSRf0VCs4mgGUXA=; b=M790ALXzZTQJVJjIkPLnHRsLYQ 0f8Tkh43fh5VAnau0W8EaJ6bvCSgQd73I7hsvvECPaBTPlmlA5r/eC0y0EYyDvg5CPS8G8OmbA0kr UZlO+Q0dHd2Tz7k5YpehK3pijLjMaHc+TLOQkLeR72sO01UkB2bcEvGNHN+nK7ReohtHqlqDYdBJh nnnHJMXuVecu5av5PgBa/BWnMsqg6qr7nBu1kwXA+yy29yRfcOhexNy/rzSdnlRaZNNqblijuTkPl /rzmfX73AexMKzqzOmwfw2D1g8f4gA+2plxsQFuZHmwrGC1AQGjcxj6g4t+St0hSyAxFzicA2XV7Z 8tia62uw==; 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 1hGfzW-0008Eo-4c; Wed, 17 Apr 2019 08:32:26 +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 1hGfzT-0008Dy-8Z for ath10k@lists.infradead.org; Wed, 17 Apr 2019 08:32:24 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id D56C260FEE; Wed, 17 Apr 2019 08:32:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1555489942; bh=QY3hiOgqRuodPvXPRstmBwnhroHWWkcTpEAtjS5jZNA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hEvrVQTWVmR4W7UYwLBDmjyul7C8DcDxnTeEeybIQk0XHwZ40syLdwUN022ApLtPr bByZwdH4oaG9vNJAsrpp9wZKr9BnPy7dBVS6UyeA/ck9hEg2rPhJwuKMcpwQlkbqlh mjvARsjt84jTra9pKBrPXYIw8LQ8OVZNyq7fghug= Received: from svishnoi-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: svishnoi@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 241A56118C; Wed, 17 Apr 2019 08:32:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1555489938; bh=QY3hiOgqRuodPvXPRstmBwnhroHWWkcTpEAtjS5jZNA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CcniLq6aoumBzoyOQ+m4FrlIiF06bOjl3b9/ZcBfW2FTYw65SyMQSyJeWMcQOWKXn KpOonLhyNKEQIvc++AQoDFTAcLs/394N0N7/4kEtLVhzsvth2SmaXUmJ5b3pwaBPJ8 sZJDMHeL74Ynwl82LSNvQSVpjgPxGCRXr2v3rp0g= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 241A56118C 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=svishnoi@codeaurora.org From: Surabhi Vishnoi To: ath10k@lists.infradead.org Subject: [PATCH 2/3] ath10k: Do not send probe response template for mesh Date: Wed, 17 Apr 2019 14:01:46 +0530 Message-Id: <1555489907-30117-3-git-send-email-svishnoi@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1555489907-30117-1-git-send-email-svishnoi@codeaurora.org> References: <1555489907-30117-1-git-send-email-svishnoi@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190417_013223_316487_A327E9A9 X-CRM114-Status: UNSURE ( 9.39 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-wireless@vger.kernel.org, Surabhi Vishnoi MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Currently mac80211 do not support probe response template for mesh point. When WMI_SERVICE_BEACON_OFFLOAD is enabled, host driver tries to configure probe response template for mesh, but it fails because the interface type is not NL80211_IFTYPE_AP but NL80211_IFTYPE_MESH_POINT. To avoid this failure, skip sending probe response template to firmware for mesh point. Tested HW: WCN3990/QCA6174/QCA9984 Signed-off-by: Surabhi Vishnoi --- drivers/net/wireless/ath/ath10k/mac.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index b73c23d..3eceb67 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -1630,6 +1630,10 @@ static int ath10k_mac_setup_prb_tmpl(struct ath10k_vif *arvif) if (arvif->vdev_type != WMI_VDEV_TYPE_AP) return 0; + /* For mesh, probe response and beacon share the same template */ + if (ieee80211_vif_is_mesh(vif)) + return 0; + prb = ieee80211_proberesp_get(hw, vif); if (!prb) { ath10k_warn(ar, "failed to get probe resp template from mac80211\n");