Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1270864ybg; Thu, 11 Jun 2020 05:42:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6y1hc9skym+o+BKAk7EU4NTP849PBB8iahB/CDsdEe5ybjfyn4DV6LPXYQYaRyI0ffs/5 X-Received: by 2002:a05:6402:7d4:: with SMTP id u20mr6690683edy.30.1591879373707; Thu, 11 Jun 2020 05:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591879373; cv=none; d=google.com; s=arc-20160816; b=rQVz0kofXLFRT4/Wnxozzt0Z0Ju81izuAysrdHmXtquEk0UaGN5wCKsDaZB6It3reF jTHvNTXqc/udD4tjrPaswERrpFlcli27jGpjvFrflg6G34osj+9lz5L7HmU/KIc1Ri60 x++bw8OmUmSNbESUR74oYXllkIcr7sWnbgSONCQquIainnZzajJjew7UKRT6gVsE/wDg 5W7ykU7ZIarB0rMP849xFzkW1EAkFw9aVbXuFivjZ0TXxwYdPMQ9TV2ZwaJUd3MI1WBH UPORUfiItv/LR7FkVqbBq8wXZ5er6QGH7tGW0O3gtEQ7MuUcfTnWcwiQV0uYd3F77w5H 37rg== 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 :message-id:date:subject:cc:to:from; bh=mTECOZh+6DtdeUkSuk8zyViPU050zLmrYDb/kLRTRG0=; b=fIrQ+LL2kIhoBEjIlSs1z8xRE6O1zCP5wcg+wZ2jnb6kMZO5BQeZFyp5KkYxL4vR+P TVsaI2sbooCZBnVZUqLufKS1cZ/0Yv4bJhLknqb/6OVicoTPaPmdPHpcEQmzabevEZRo 71AifwCTUGfXIwaFGGVNRUeMQfG/e82CrIi1pq5GUoxoj9/pcEjnU3SHkNwb+vNUEKOZ LDArqT6bfxbClMfCezGX7YidfVTgU5TEvLaYKdQcrWQjaoj1Wv3sWjgQj2g4QtOJYXrO MXy0Ij9iTYwLjbs1OTTnmmw8cnNdIQ734B5R2TZmWH++7xJHndH+nFUptz9fzsG1CCNk xoDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f6si1832717ejr.283.2020.06.11.05.42.14; Thu, 11 Jun 2020 05:42:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726261AbgFKMk0 (ORCPT + 99 others); Thu, 11 Jun 2020 08:40:26 -0400 Received: from smail.rz.tu-ilmenau.de ([141.24.186.67]:45668 "EHLO smail.rz.tu-ilmenau.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726095AbgFKMkZ (ORCPT ); Thu, 11 Jun 2020 08:40:25 -0400 Received: from legolas.fritz.box (unknown [87.147.49.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smail.rz.tu-ilmenau.de (Postfix) with ESMTPSA id 28AF558005E; Thu, 11 Jun 2020 14:40:24 +0200 (CEST) From: Markus Theil To: nbd@nbd.name, lorenzo.bianconi@redhat.com Cc: linux-wireless@vger.kernel.org, Markus Theil Subject: [PATCH] mt76: allow more channels, allowed in ETSI domain Date: Thu, 11 Jun 2020 14:40:22 +0200 Message-Id: <20200611124022.405658-1-markus.theil@tu-ilmenau.de> X-Mailer: git-send-email 2.27.0 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 While looking at the ETSI regulatory domain definitions and a patch, which allows more channels for ath10k, I also checked the channels allowed for mt76. ETSI regulations would possibly allow to add channels 32, 68, 96, 144, 169 and 173. IEEE 802.11-2016 defines no operating class for channels 32, 68 and 96. This leaves us channels 144, 169 and 173, which are included in this patch. I tested 169 and 173 with a mt76 based USB dongle (AVM AC 860) and they worked fine. If I saw that right, these channels are also covered by register definitions inside the driver. Channel 144 should also work, but gets disabled by the kernel as of now. Signed-off-by: Markus Theil --- drivers/net/wireless/mediatek/mt76/mac80211.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/mac80211.c b/drivers/net/wireless/mediatek/mt76/mac80211.c index 907098101898..4c10c8164aee 100644 --- a/drivers/net/wireless/mediatek/mt76/mac80211.c +++ b/drivers/net/wireless/mediatek/mt76/mac80211.c @@ -58,12 +58,15 @@ static const struct ieee80211_channel mt76_channels_5ghz[] = { CHAN5G(132, 5660), CHAN5G(136, 5680), CHAN5G(140, 5700), + CHAN5G(144, 5720), CHAN5G(149, 5745), CHAN5G(153, 5765), CHAN5G(157, 5785), CHAN5G(161, 5805), CHAN5G(165, 5825), + CHAN5G(169, 5845), + CHAN5G(173, 5865), }; static const struct ieee80211_tpt_blink mt76_tpt_blink[] = { -- 2.27.0