immortalwrt/target/linux
Daniel Golle dded755881
mac80211: rt2x00: experimental improvements for MT7620 wifi
Serge Vasilugin reports:

To improve mt7620 built-in wifi performance some changes:
1. Correct BW20/BW40 switching (see comments with mark (1))
2. Correct TX_SW_CFG1 MAC reg from v3 of vendor driver see
	https://gitlab.com/dm38/padavan-ng/-/blob/master/trunk/proprietary/rt_wifi/rtpci/3.0.X.X/mt76x2/chips/rt6352.c#L531
3. Set bbp66 for all chains.
4. US_CYC_CNT init based on Programming guide, default value was 33 (pci),
   set chipset bus clock with fallback to cpu clock/3.
5. Don't overwrite default values for mt7620.
6. Correct some typos.
7. Add support for external LNA:
    a) RF and BBP regs never be corrected for this mode
    b) eLNA is driven the same way as ePA with mt7620's pin PA
	but vendor driver explicitly pin PA to gpio mode (for forrect calibration?)
	so I'm not sure that request for pa_pin in dts-file will be enough

First 5 changes (really 2) improve performance for boards w/o eLNA/ePA.
Changes 7 add support for eLNA

Configuration w/o eLAN/ePA and with eLNA show results
tx/rx (from router point of view) for each stream:
 35-40/30-35 Mbps for HT20
 65-70/60-65 Mbps for HT40

Yes. Max results for 2T2R client is 140-145/135-140
with peaks 160/150, It correspond to mediatek driver results.
Boards with ePA untested.

Reported-by: Serge Vasilugin <vasilugin@yandex.ru>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit 31a6605de0)
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-09-16 15:42:34 +08:00
..
apm821xx target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
arc770 target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
archs38 target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
armvirt kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
at91 treewide: make AddDepends/usb-serial selective 2021-06-08 22:50:32 +02:00
ath25 Merge Official Source 2022-09-05 13:20:57 +08:00
ath79 mac80211: Update to version 5.15.58-1 2022-09-10 09:26:08 +08:00
bcm27xx Merge Official Source 2022-09-05 13:20:57 +08:00
bcm47xx target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
bcm53xx Merge Official Source 2022-09-16 15:32:42 +08:00
bcm63xx Merge Official Source 2022-09-05 13:20:57 +08:00
bcm4908 Merge Official Source 2022-09-16 15:32:42 +08:00
gemini kernel: bump 5.4 to 5.4.150 2021-10-02 16:05:34 +02:00
generic Merge Official Source 2022-09-16 15:32:42 +08:00
imx6 kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
ipq40xx Merge Official Source 2022-09-05 13:20:57 +08:00
ipq806x Merge Official Source 2022-09-05 13:20:57 +08:00
kirkwood target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
lantiq mac80211: Update to version 5.15.58-1 2022-09-10 09:26:08 +08:00
layerscape Merge Official Source 2022-09-05 13:20:57 +08:00
malta target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
mediatek Merge Official Source 2022-09-05 13:20:57 +08:00
mpc85xx target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
mvebu Merge Official Source 2022-09-05 13:20:57 +08:00
mxs target: use SPDX license identifiers on scripts 2021-02-10 15:47:23 +01:00
octeon kernel: bump 5.4 to 5.4.211 2022-09-04 15:32:22 +02:00
octeontx Merge Official Source 2022-09-05 13:20:57 +08:00
omap target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
oxnas Merge Official Source 2022-09-05 13:20:57 +08:00
pistachio kernel: add pending mtd patches adding NVMEM support 2021-03-17 21:24:22 +01:00
ramips mac80211: rt2x00: experimental improvements for MT7620 wifi 2022-09-16 15:42:34 +08:00
realtek realtek: Remove dnsmasq and odhcpd-ipv6only from default 2022-06-10 03:36:01 +08:00
rockchip rockchip: fix assign mac address to nanopi r4s 2022-09-11 11:36:34 +08:00
sunxi include: mv luci-app-cpufreq to target profiles 2022-09-05 13:15:39 +08:00
tegra target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
uml target: use wpad-basic-openssl by default 2022-05-25 22:38:44 +08:00
x86 kernel: igc: revert sync with upstream updates 2022-09-11 22:54:14 +08:00
zynq kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
Makefile target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00