Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3822053ybi; Mon, 29 Jul 2019 13:17:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqw652r5GGZuXG9eG/jsUIhlNJLj+7xtl7MWWSpn+MMbnLtjbstqQfZFmLZPb3L2moAW5taf X-Received: by 2002:a17:90a:32ec:: with SMTP id l99mr114790423pjb.44.1564431469372; Mon, 29 Jul 2019 13:17:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564431469; cv=none; d=google.com; s=arc-20160816; b=cqMn1enaNT3x9TJ9MAFNVS6F0vLeGUJw2kn8sNA6Gyhqj8Wfb8hxT1aXRy6aeKy2S0 0kGeoahSfEXrigryZFW8lS31zd1yUepGvkmavtdRJA3U5uVa2fdBv16L7Xvz4ZUoCBMF 1rKqXwQSkgm4HrCT+l03ARmFRr9tNaPK3O4X/NvbcHZDqS7VFZnZSaXKGo0eW1SpGkzi faJN3URW3yrcvzO7N9r+Kh+pO4FMy64QvXHlSgBgitH2samweIbyV2h7jQkJ8urRVNHz jPhILdXcs6pSnURQFna7Jq2JQl+15QzrniHm2flnJzIZQsr98/7vCLDAMqBc3X/FPopE hqdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=IIZVHLCAmjqh7MC+PYOyK6TbuqzSti2sXvmfED8PxCY=; b=MKDAQXOLYWqCcTj5RG8V4Mn4CBwCsNdqMIqrTW7E3RAxB/uXhLs07Na2jWcx3e4zUE XNBBT7yUT6GCT8WGXDTNfGIQuvvXyymo7JXaHTMe0hgXQa0C6IhBBnltma/iPF1PvPWq Gw8i3AOYQi+OuNz2dCf36Ju8vS7i4dd8r0WP0DiSl27FEO2y5sHwzZ2S6Itra6VzZW4e iGGzpjGBOL5JRXLGxnboTnQ+Y1N/VXyWIpPWU0gnSh+IsOFyUMxM9mJmlz9BGbjRqW8d 35MXN4Lc26xOa16UgBqBijYWxnwK8l3mM7DkpJ+AFFNOzBNoNj0BZSfSjjNy+ZK6j3JA DfrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sfkmhNrB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 w186si31450619pgd.176.2019.07.29.13.17.34; Mon, 29 Jul 2019 13:17:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sfkmhNrB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729506AbfG2TY0 (ORCPT + 99 others); Mon, 29 Jul 2019 15:24:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:36608 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729497AbfG2TYX (ORCPT ); Mon, 29 Jul 2019 15:24:23 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 86B8F20C01; Mon, 29 Jul 2019 19:24:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564428263; bh=KlGCqDrhX9TjmBVcv9sgoQFCwXOkPJIfxghpz2+PR+o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sfkmhNrBUevGsZftjbxxsmNq7CmJSI1Abij8F5wIOyCfOC0PnlaUyp+6kwQArJeoi RcgoPM94cVqHrlHtOfSidmTPlucrHtpAG9SuzCXpvuR6rwbcHvJRVmlgglNoTEVMCr xPcSITTQEoSZtpf4UB03CgA640vWfrebJy3L4lDQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Surabhi Vishnoi , Kalle Valo , Sasha Levin Subject: [PATCH 4.14 007/293] ath10k: Do not send probe response template for mesh Date: Mon, 29 Jul 2019 21:18:18 +0200 Message-Id: <20190729190820.896585324@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190820.321094988@linuxfoundation.org> References: <20190729190820.321094988@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 97354f2c432788e3163134df6bb144f4b6289d87 ] 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 Signed-off-by: Kalle Valo Signed-off-by: Sasha Levin --- 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 cdcfb175ad9b..58a3c42c4aed 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -1611,6 +1611,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"); -- 2.20.1