Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp593764ybd; Sat, 29 Jun 2019 03:37:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyT2iMo8kiCZU9hg9FXpBh9DG3LhLOFTkRJcwiqjvQhD731bVoIM2DZf8dBR4+/kzBdBATZ X-Received: by 2002:a63:58c:: with SMTP id 134mr11480307pgf.106.1561804628106; Sat, 29 Jun 2019 03:37:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561804628; cv=none; d=google.com; s=arc-20160816; b=aEKCDUTKXctFDnojzkJXXjj7SgKoGgiXqQEffCfJDNfH0gDPUyLYNRogKJJpiY9T3S OtZCYUvoNGCCjxxm+G4tNbIMUQQf9gUbJWSnwc2K8Cni4i0/CIcp3xZBrhloSMDjM7Jw drUsW69txE3Cd9tV2rV34UhUkhhayehRNv4Qt+UOKSqXLteUInpqMxvCB+p2mB5WHoUa 62TGZEBY7nMfp12aGGYJcAwi2hosbe2GxnuMTNgHhO54tSmT712QGrX6rHFlg3KaTcx8 gmTrm3zD+X+lfaHi4F9O3WPGcJGyuixay1ZWBCiQ01dZY0SBas54Mwt5/P745RPpOWhM FPyA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HrvYyLMye7Qls3DMNDMtgVccEHCgnPGwA4pxBC1np9E=; b=AN8JVbr2ZyhY7zxHxdTABBIPSrI+uG8nt9+1jio0ISrTokrK8BSp9zZrUhmI3CNImx YIxERosVAkzP9dW48IiEuEZruaF7x6f5sM+CcBXF7Mmomzl+gtBfktTHs4k8Kax53s05 ocltAmxQfGKOug6qytySwutlUyseFzm81Qif2E3pbEbRTIpo36X8/YDJeXrYV7Cj3zia vHKFlGoMJDjozuYT6iWB9p/OxcRZyOHWA1zyaABIGdJbWSv8ar5s0zkJMsdfJHvRka29 o7p2arjfk/tzqw9t/l8FsvyabdAK9s08P93UHBaVb1w6owdc0qZqeFYM1YcD1e1+cZO8 ZzRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DKaT8BxT; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j3si4194996pgq.86.2019.06.29.03.36.53; Sat, 29 Jun 2019 03:37:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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=DKaT8BxT; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726985AbfF2Kgf (ORCPT + 99 others); Sat, 29 Jun 2019 06:36:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:42928 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726839AbfF2Kgf (ORCPT ); Sat, 29 Jun 2019 06:36:35 -0400 Received: from lore-desk-wlan.lan (unknown [151.66.61.123]) (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 5F1852086D; Sat, 29 Jun 2019 10:36:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561804594; bh=d3an55i6V52zQtBU+A+w3f4/4cB5BAeylN2J0HNdyAk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DKaT8BxTuyRkFwXqXUzZ8YeHQn5XTnePzc5jIjmcxoV7CdIQ1p6K580QfRMqLHvQj R1Ewk3XfpYLCz9upY5ypsD3gEaFRCt7jjPfe5tPwfE25BsDuKcsfXO559/mUBQ/PLa yHXYJgU3CLPvFgjpjdCPCKQEymvqhrbstzdkkQG8= From: Lorenzo Bianconi To: nbd@nbd.name Cc: lorenzo.bianconi@redhat.com, linux-wireless@vger.kernel.org, ryder.lee@mediatek.com, royluo@google.com, yf.luo@mediatek.com Subject: [PATCH 4/6] mt76: mt7615: unlock dfs bands Date: Sat, 29 Jun 2019 12:36:09 +0200 Message-Id: <33184e0b78983fe7c79fa70c5fbb21042aafa4f5.1561804422.git.lorenzo@kernel.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Unlock dfs channels since now mt7615 driver supports radar detection Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt7615/init.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/init.c b/drivers/net/wireless/mediatek/mt76/mt7615/init.c index 5dc4cced5789..6d336d82cafe 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/init.c @@ -152,6 +152,12 @@ static const struct ieee80211_iface_combination if_comb[] = { .max_interfaces = 4, .num_different_channels = 1, .beacon_int_infra_match = true, + .radar_detect_widths = BIT(NL80211_CHAN_WIDTH_20_NOHT) | + BIT(NL80211_CHAN_WIDTH_20) | + BIT(NL80211_CHAN_WIDTH_40) | + BIT(NL80211_CHAN_WIDTH_80) | + BIT(NL80211_CHAN_WIDTH_160) | + BIT(NL80211_CHAN_WIDTH_80P80), } }; -- 2.21.0