mt76: allow more channels, allowed in ETSI domain
authorMarkus Theil <markus.theil@tu-ilmenau.de>
Thu, 11 Jun 2020 12:40:22 +0000 (14:40 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 21 Jul 2020 17:01:14 +0000 (19:01 +0200)
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 <markus.theil@tu-ilmenau.de>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mac80211.c

index 9070981018981f02ef65b4e76634203a1e93c694..4c10c8164aee2f0af7fd83890c3eed5182c458c0 100644 (file)
@@ -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[] = {