Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1831350ybi; Mon, 1 Jul 2019 01:01:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqwugwgOJvKNMSyZCZLMVIjhiGLfeibLuVSPMaZK16+EEw8utyqTgJfPTQr51UNwLWkfSZtD X-Received: by 2002:a63:593:: with SMTP id 141mr22266453pgf.78.1561968070192; Mon, 01 Jul 2019 01:01:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561968070; cv=none; d=google.com; s=arc-20160816; b=jsshhXqW9fLdqdY78DlzwojuAhknQ4hrMX2vYtvU3rrOXugwRby0BwWaXAivLB7wzz HNNza0dS/kWXQD/YPpL7fk+kYXkp334nAfvsz4v7IcwhW8OakIKYVGxbeLe7wzl72t0E oDjrEon8lzxrrXXvRxc8NQW0mphJTv76v2SpQdUiwYOFpx5G//CS8dAdGYuI5ogjn7J0 SnIe8lhS4i4CfhuVPojaRKpjoWYX8fpTkL1nW8PRqtyerOixwXqP5S3Ben9+O3qaD6XG /DMLhDBWG1dwAtYXBhZECi2afdNZuchXsoh3dhvpegbDGqF4sva34SwEqyRJBmM1YXdB zzoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dmarc-filter :dkim-signature:dkim-signature; bh=a8t8/RUiJW8AYoTHXMsCuiMv1QtlUUYtRKPeS8LDXmY=; b=mOoBH9x1tBtZbcHsiq8t/USfIjnihciA9oWPsO1DPKOZS5xIXK1fenpEk/Df3ZipzU /lqX0I9Sxgg4tOeJt7yj+BW5vTECoK88m8VWMoQrvVYeb8J1O9lAoqxJ/PC8dpTPYaq7 wA/vER9u/k699hZnaMGckWJpJOyh1X7Zin2Gdl1FhyAIDHi4XxDAxhxvtUVM5hWJSg16 GPNQILhcFl43J2PqiQkPyhYXSNgWVg/h7DdZkXuBssrrLa/W7N7Uk0OUXmyLM4pYtcsq H8jma8GyhJL08NBRy2ITjXfXhY0ob3MKY4+Ek3fzzldJTsvrFO8OHkL80GUQaFO75Fmm Kg7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=OtiMZckQ; dkim=pass header.i=@codeaurora.org header.s=default header.b="khq+4Dv/"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y92si337895plb.209.2019.07.01.01.00.55; Mon, 01 Jul 2019 01:01:10 -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=@codeaurora.org header.s=default header.b=OtiMZckQ; dkim=pass header.i=@codeaurora.org header.s=default header.b="khq+4Dv/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727176AbfGAH7h (ORCPT + 99 others); Mon, 1 Jul 2019 03:59:37 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:37240 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726036AbfGAH7h (ORCPT ); Mon, 1 Jul 2019 03:59:37 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 990596081E; Mon, 1 Jul 2019 07:59:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561967976; bh=b11qQbhk0zaXcTzfE7iWgOyP9U+ErvxrmUu8LjwJsvY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=OtiMZckQUPJnaqKj2dSVHdXy9gHWDyOztey+QLDJyQjnBd7LkPCNwdCVwShF+YhrL Fnd4U3C5zsaM9tRf1All4UkKbODkDbfKIiak9xKqkcFWvXijLfBMNYWA1Rxzki8jsb fE1gla0KGhAci/BmFDN3fWafH+5lTmoBcy6caOug= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id D25AF602F8; Mon, 1 Jul 2019 07:59:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561967974; bh=b11qQbhk0zaXcTzfE7iWgOyP9U+ErvxrmUu8LjwJsvY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=khq+4Dv/VdIZ/9ZdxLhqWclU4K0qdaYEERPyIU3nbP37saTrq3O9XY1FeXsoIjiZX W8ZZJF1km49Nl7lEx0bsD/bFRMcwEsa2UqeNT7CFdFIfgXa2yIid/7/Pylex2jfrY/ ZvuE3Ff78sVsme1vFNVXtBmS3tZVTZRm+EoOmAg4= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D25AF602F8 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=kvalo@codeaurora.org From: Kalle Valo To: Lorenzo Bianconi Cc: Lorenzo Bianconi , Felix Fietkau , linux-wireless , Ryder Lee , Roy Luo , YF Luo Subject: Re: [PATCH 4/6] mt76: mt7615: unlock dfs bands References: <33184e0b78983fe7c79fa70c5fbb21042aafa4f5.1561804422.git.lorenzo@kernel.org> <87muhzs9qv.fsf@purkki.adurom.net> Date: Mon, 01 Jul 2019 10:59:22 +0300 In-Reply-To: (Lorenzo Bianconi's message of "Sun, 30 Jun 2019 13:25:56 +0200") Message-ID: <87tvc69odh.fsf@kamboji.qca.qualcomm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Lorenzo Bianconi writes: >> >> Lorenzo Bianconi writes: >> >> > 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), >> >> Isn't it questionable to enable these without any testing on real >> hardware? Getting DFS to work correctly is hard so I'm very suspicious >> about this. >> >> -- >> Kalle Valo > > Hi Kalle, > > unfortunately at the moment I am not able to run any tests with a real > signal generator so I just ported the code from vendor sdk. > I am pretty confident it works since the radar pattern detection is > done in fw/hw so I guess it has been already tested in the vendor sdk DFS is really tricky to get it working right, so I'm not easily convinced :) > but we can postpone this patch and apply just the rest of the series > until we have some test results. Yeah, I think it would be best to drop this patch so that DFS is not enabled by default and apply this patch only after positive test results. -- Kalle Valo