Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2005699ybi; Mon, 1 Jul 2019 04:31:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwiJkKZQNAXHJxHVV4OVy+oMdWyGqrG10zaa+6oiPRyiE0xU6Tfii/bRx1mLotY7M94Yuje X-Received: by 2002:a17:902:20c8:: with SMTP id v8mr28590694plg.284.1561980660971; Mon, 01 Jul 2019 04:31:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561980660; cv=none; d=google.com; s=arc-20160816; b=J85YzUMC+GWprgSdAwzH6HNKEUq+3s7Om4sZHH9PXpTZDmDp75B9ns/JC9rYnk/QHy HHFMfv9ZRdVIhvDQP7U9jY4g/yG27+j2sm5K6Har3SEDdhYIcpQrqmZeupUJbnhV/R05 CPARjd0do0RS+c3us9AgyS8Qku8Fgyc3XWakpQZ2RtGUnQGnK8MEh+ngUhyDHCh6QJgP bQUkDYoWHSOYev+9mIcyHELHrNWRcMw7WLEo/bu0k/igluNuk8m1NxpM/stKlkRHSm7j SgpWKOai9W37zqtGPYkqYqiZNuF6GqQnGJdcH+bueaRmoukzBONA8BB151BY9ZCTM42e ZC9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id; bh=Vm/t+s5NLE4BbB8O1fmRv4ziBmjDuy68jbTLG3ehHjo=; b=EutYoWxjQTV0Ze9F4DeUBPyIKac9InL9mem4a4w+BKrhujMQV5Uu/IYr/6jAhdQjm/ WiJLo1IvWhSLLHW3V5iNrWTww/JgdtsJQvTXsJ8WXH3iFgFa7NK7r//foTapwc9r01Di TTkSqz20mKDEmUI8xSlde9XbM/zklfOqNvvrZ63t4QGmc9hlxRZf5aZolfqVcESroPyi snxqBkzA8vo9I2+J+g5xoNeN9c//RMSu+Ru2qZcHTdFm9n3IVW4hv+TaBXiZ3vgVn5jf PXLP1yqW0lCfq98UruGw5ASYcMRKALzomduWV4p8HTdqGorFV2ALfmQx4VfNcdGO4G9c z2cw== ARC-Authentication-Results: i=1; mx.google.com; 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 j10si9821746pgh.239.2019.07.01.04.30.32; Mon, 01 Jul 2019 04:31:00 -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; 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 S1727840AbfGAJ5F (ORCPT + 99 others); Mon, 1 Jul 2019 05:57:05 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:41127 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727477AbfGAJ5F (ORCPT ); Mon, 1 Jul 2019 05:57:05 -0400 X-UUID: f9cce9ae1a2e45219bad5b6a03308529-20190701 X-UUID: f9cce9ae1a2e45219bad5b6a03308529-20190701 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1222009649; Mon, 01 Jul 2019 17:57:03 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 1 Jul 2019 17:57:01 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 1 Jul 2019 17:57:01 +0800 Message-ID: <1561975021.3950.9.camel@mtkswgap22> Subject: Re: [PATCH 4/6] mt76: mt7615: unlock dfs bands From: Ryder Lee To: Kalle Valo CC: Lorenzo Bianconi , Lorenzo Bianconi , Felix Fietkau , linux-wireless , Roy Luo , YF Luo , Date: Mon, 1 Jul 2019 17:57:01 +0800 In-Reply-To: <87tvc69odh.fsf@kamboji.qca.qualcomm.com> References: <33184e0b78983fe7c79fa70c5fbb21042aafa4f5.1561804422.git.lorenzo@kernel.org> <87muhzs9qv.fsf@purkki.adurom.net> <87tvc69odh.fsf@kamboji.qca.qualcomm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-TM-SNTS-SMTP: B8E13F6ECB07971D9ECC9794EB8A4BCC29604420E225EDAC327276D592B976E52000:8 X-MTK: N Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon, 2019-07-01 at 10:59 +0300, Kalle Valo wrote: > 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. > That's why I suggested Lorenzo to add this one - "[6/6] mt76: mt7615: add radar pattern test knob to debugfs" We can feed radar pattern through debugfs to test if a pattern is detected as radar pattern or not and verify the fw radar detection algorithm. In this format: RadarPulsePattern="3680128-2-245;3683878-2-245;3687628-2-245;3691378-2-245;3695128-2-245;3698878-2-245;3702628-2-245;3706378-2-245;3710128-2-245;3713878-2-245" As for testing it on 'real hardware' I need to take some other time to borrow equipment. Ryder