openwrt/target/linux
Christian Lamparter f7f15f8033 ath79: wndr3700 series: fix wifi range & throughput
This patch adds ar71xx's GPIO setup for the 2.4GHz and 5GHz antennae
demultiplexer:

| 158         /* 2.4 GHz uses the first fixed antenna group (1, 0, 1, 0) */
| 159         ap9x_pci_setup_wmac_gpio(0, (0xf << 6), (0xa << 6));
| 160
| 161         /* 5 GHz uses the second fixed antenna group (0, 1, 1, 0) */
| 162         ap9x_pci_setup_wmac_gpio(1, (0xf << 6), (0x6 << 6));

This should restore the range and throughput of the 2.4GHz radio
on all the derived wndr3700 variants and versions with the AR7161 SoC.
A special case is the 5GHz radio. The original wndr3700(v1) will
benefit from this change. However the wndr3700v2 and later revisions
were unaffected by the missing bits, as there is no demultiplexer
present in the later designs.

This patch uses gpio-hogs within the device-tree for all
wndr3700/wndr3800/wndrmac variants.

Notes:

Based on the PCB pictures, the WNDR3700(v1) really had eight
independent antennae. Four antennae for each radio and all of
those were printed on the circut board.

The WNDR3700v2 and later have just six antennae. Four of those
are printed on the circuit board and serve the 2.4GHz radio.
Whereas the remaining two are special 5GHz Rayspan Patch Antennae
which are directly connected to the 5GHz radio.

Hannu Nyman dug pretty deep and unearthed a treasure of information
regarding the history of how these values came to be in the OpenWrt
archives: <https://dev.archive.openwrt.org/ticket/6533.html>.

Mark Mentovai came across the fixed antenna group when he was looking
into the driver:

    fixed_antenna_group 1, (0, 1, 0, 1)
    fixed_antenna_group 2, (0, 1, 1, 0)
    fixed_antenna_group 3, (1, 0, 0, 1)
    fixed_antenna_group 4, (1, 0, 1, 0)

Fixes: FS#3088

Reported-by: Luca Bensi
Reported-by: Maciej Mazur
Reported-by: Hannu Nyman <hannu.nyman@iki.fi>
Debugged-by: Hannu Nyman <hannu.nyman@iki.fi>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
(cherry picked from commit 61307544d1)
2020-06-09 22:46:21 +02:00
..
apm821xx kernel: bump 4.14 to 4.14.176 2020-04-16 13:23:52 +02:00
ar71xx ar71xx: fix reset key for TP-Link TL-WR802N V1/V2 2020-06-01 16:58:06 +02:00
arc770 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
archs38 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
armvirt kernel: Remove CONFIG_COMPAT 2019-05-11 17:15:41 +02:00
at91 at91: disable legacy PTYs and virtual terminals 2019-12-17 11:27:20 +02:00
ath25 kernel: bump 4.14 to 4.14.171 2020-02-24 14:20:14 +01:00
ath79 ath79: wndr3700 series: fix wifi range & throughput 2020-06-09 22:46:21 +02:00
bcm53xx bcm53xx: add support for Luxul FullMAC WiFi devices 2020-04-07 15:51:11 +02:00
brcm47xx brcm47xx: disable Netgear WNR2000 v2 by default 2020-05-24 14:42:33 +02:00
brcm63xx bcm63xx: mask interrupts on init 2020-05-18 09:51:18 +02:00
brcm2708 kernel: bump 4.14 to 4.14.178 2020-05-04 21:05:21 +02:00
cns3xxx kernel: bump 4.14 to 4.14.156 2019-11-29 10:00:35 +01:00
gemini kernel: bump 4.14 to 4.14.156 2019-11-29 10:00:35 +01:00
generic generic: fix flow table hw offload 2020-06-01 11:42:12 +02:00
imx6 treewide: remove 4.19 leftovers 2019-10-08 12:45:13 +02:00
ipq40xx kernel: bump 4.14 to 4.14.172 2020-03-09 20:44:27 +01:00
ipq806x ipq806x: EA8500 fix boot partition detection 2020-06-03 15:29:03 +02:00
kirkwood kirkwood: fix HDD LED labels for Zyxel NSA325 in 01_leds 2020-01-21 13:55:03 +01:00
lantiq kernel: bump 4.14 to 4.14.159 2019-12-24 15:29:32 +01:00
layerscape kernel: bump 4.14 to 4.14.178 2020-05-04 21:05:21 +02:00
malta malta: remove CONFIG_LEGACY_PTY from kernel config 2019-12-17 11:27:30 +02:00
mediatek kernel: bump 4.14 to 4.14.176 2020-04-16 13:23:52 +02:00
mpc85xx kernel: bump 4.14 to 4.14.171 2020-02-24 14:20:14 +01:00
mvebu mvebu: cortexa9: correct cpu subtype 2020-04-18 00:18:13 +02:00
mxs kernel: bump 4.14 to 4.14.178 2020-05-04 21:05:21 +02:00
octeon treewide: remove 4.19 leftovers 2019-10-08 12:45:13 +02:00
octeontx kernel: bump 4.14 to 4.14.176 2020-04-16 13:23:52 +02:00
omap treewide: use new procd sysupgrade $UPGRADE_BACKUP variable 2019-09-12 13:27:29 +02:00
oxnas oxnas: build with 8021Q VLAN support 2020-06-09 16:53:51 +01:00
pistachio kernel: bump 4.14 to 4.14.171 2020-02-24 14:20:14 +01:00
ramips ramips: gsw_mt7621: disable PORT 5 MAC RX/TX flow control by default 2020-05-26 10:07:05 +01:00
rb532 kernel: bump 4.14 to 4.14.86 2018-12-10 11:48:44 +01:00
samsung kernel: Do not set CONFIG_DEVMEM or CONFIG_DEVKMEM 2019-05-11 17:15:41 +02:00
sunxi kernel: bump 4.14 to 4.14.169 2020-02-04 18:11:26 +01:00
tegra tegra: correct cpu subtype 2020-04-18 00:18:13 +02:00
uml uml: remove CONFIG_LEGACY_PTY from kernel config 2019-12-17 11:27:16 +02:00
x86 x86: fix missing led variable warning during boot 2020-01-06 08:40:06 +01:00
zynq zynq: make title consistent for all devices 2019-05-17 21:41:43 +02:00
Makefile