Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp139393ybc; Mon, 18 Nov 2019 22:02:06 -0800 (PST) X-Google-Smtp-Source: APXvYqzN4R7POhPN9/YG/7vm5cLyQIIAMsoxIFsPw8N7uJvXHwT1QX9Y/nIgK50LjA9H+y5FLcwV X-Received: by 2002:a17:906:2552:: with SMTP id j18mr33293994ejb.244.1574143326688; Mon, 18 Nov 2019 22:02:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574143326; cv=none; d=google.com; s=arc-20160816; b=nqlem47BcVBfpRxP37VhU2x6EjzumA/+sOFq8ZEYYMN7bhmw2+UydzgNK45TzkMx7v 8Excy5bjNe8A3YFAVaTmOEFShipXvgi9ogfNjF8aZXOXAg6vVTYRQ6P5YGyOX/6kIA4I U/exiDX5/yVkiYyPn6NcDbmqEV6JYgR5oTVo6LfMAsEiTQPXnASNVNs3GzLf50HkNCXd 3BNRiJiGmDz4MFKNquD9djK8kvMhXn6/OOoavZTX85msrFwFEtKw1F1jJTza46mIQdEf JMVFW6FgoasaRHbAd4UvsbEChYtyLM8nEUPI0K+6EgFYXzvWtE6Sn486K7ALVbimzAL+ fnfw== 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=mT3fWPtcATgaMUBCldqDI/9hU9ExULx53X34fbYPXF8=; b=uBYFGO6dzI+e2BJxmSfPObDAz0zvJpwSktKbpIkPaU0KVh1tswa7laCFhQMyYf5IF3 mUovp7aIfVUWV1m8iWFPlv90pY8K3h/zylkpbJOpuLmwrYVhX4eXtaEIDdEPDmZ+M/Am EMegRFmAuhoiFUjP5/Qa1ae4CAF/8vgAtiCk2ttXAutyrIs7h5dA+b5Z24svRKpgHww0 ArFobEk6roa1+0GAMg8LNFa9QGxTAPo4GYoik8MdTxfA/0MOv7g/7aJgkyRb3eZ77OCP K/VHIKHEcCj2XLGfAGcwIQZTSz3AJpLJTh1Yw47FqVy8xfhvfLvuobF4Dd6YzUH6kjSj xerA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hAyURS4n; 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 t22si12861551ejx.194.2019.11.18.22.01.38; Mon, 18 Nov 2019 22:02:06 -0800 (PST) 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=hAyURS4n; 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 S1731245AbfKSFr2 (ORCPT + 99 others); Tue, 19 Nov 2019 00:47:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:43768 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730714AbfKSFrZ (ORCPT ); Tue, 19 Nov 2019 00:47:25 -0500 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 6BE292071B; Tue, 19 Nov 2019 05:47:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574142443; bh=RKRTRBPAlk+f+aw3C7A6A3UDnlrwH0Cc8yXEXBYKvkA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hAyURS4nP0LAubSYxncjvCGQCmaWa1j7bb1A+mLeqpND+cYt9wGzUPCXuCBeQ4ZU2 /lbI56blQtu3CwWyLVxp8Rq+sCxytdeSwETI5TLUzBYSvJPulCfvSKvcezTJbPBHjU 7mCfesy/L5IHtrGdaE6iLdd9c93uqZWboC8X10gU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sven Eckelmann , Kalle Valo , Sasha Levin Subject: [PATCH 4.14 043/239] ath10k: limit available channels via DT ieee80211-freq-limit Date: Tue, 19 Nov 2019 06:17:23 +0100 Message-Id: <20191119051306.116827965@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191119051255.850204959@linuxfoundation.org> References: <20191119051255.850204959@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 From: Sven Eckelmann [ Upstream commit 34d5629d2ca89d847b7040762b87964c696c14da ] Tri-band devices (1x 2.4GHz + 2x 5GHz) often incorporate special filters in the RX and TX path. These filtered channel can in theory still be used by the hardware but the signal strength is reduced so much that it makes no sense. There is already a DT property to limit the available channels but ath10k has to manually call this functionality to limit the currrently set wiphy channels further. Signed-off-by: Sven Eckelmann Signed-off-by: Kalle Valo Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath10k/mac.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 58a3c42c4aedb..8c4bb56c262f6 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -17,6 +17,7 @@ #include "mac.h" +#include #include #include #include @@ -8174,6 +8175,7 @@ int ath10k_mac_register(struct ath10k *ar) ar->hw->wiphy->bands[NL80211_BAND_5GHZ] = band; } + wiphy_read_of_freq_limits(ar->hw->wiphy); ath10k_mac_setup_ht_vht_cap(ar); ar->hw->wiphy->interface_modes = -- 2.20.1