You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/target/linux
Christian Lamparter 330965b342 ipq806x: add ath10k calibration data MAC addresses patching
Ben Greear reported in his patch:
|Subject: netgear r7800: Fix mac address of radios.
|
|Reloading the driver causes the phyX to change, and that
|caused the MAC address to change.

This is because all ODM/OEMs except QCA bothered to write
the correct MAC address for the ath10k wifi into the
calibration data.

This patch copies over the MAC patching helper functions from ipq40xx's
target/linux/ipq40xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
file and converts all the devices to patch the correct MACs into the
extracted calibration data before it gets sent to the driver, which sets
up the device with the correct MAC address. It also removes the entries
in the 10_fix_wifi_mac file as they have served their purpose for good.

Please note the C2600: There is conflicting information on what
the offset for the second wifi is supposed to be. This patch uses
what was specified in 10_fix_wifi_mac.

According to Ben Greear this method is save to use with the
stock firmware too. As he explained that the stock firmware
messes up rx-bssid mask calculation when the MAC is changed
after the first vif is created.

Reported-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
6 years ago
..
adm5120 kernel: Replace ledtrig-netdev with upstream backport 6 years ago
adm8668 treewide: use wpad-basic for not small flash targets 6 years ago
apm821xx kernel: bump 4.14 to 4.14.88 6 years ago
ar7 treewide: use wpad-basic for not small flash targets 6 years ago
ar71xx Add support for TL-WA801ND v4 6 years ago
arc770 treewide: use wpad-basic for not small flash targets 6 years ago
archs38 treewide: use wpad-basic for not small flash targets 6 years ago
armvirt kernel: bump 4.14 to 4.14.77 6 years ago
at91 kernel: bump 4.9 to 4.9.143 6 years ago
ath25 kernel: bump 4.14 to 4.14.79 6 years ago
ath79 ath79: fix dtc compiler warnings 6 years ago
au1000 treewide: use wpad-basic for not small flash targets 6 years ago
bcm53xx kernel: bump 4.14 to 4.14.88 6 years ago
brcm47xx kernel: bump 4.14 to 4.14.81 6 years ago
brcm63xx brcm63xx: HG655b: fix the imagetag at dts 6 years ago
brcm2708 kernel: bump 4.9 to 4.9.145 6 years ago
cns3xxx kernel: bump 4.14 to 4.14.77 6 years ago
gemini gemini: Fix up image generation 6 years ago
generic kernel: netfilter: chain filters merged into nf_tables.ko 6 years ago
imx6 imx6: image: ventana: Add missing BOOT_SCRIPT variable 6 years ago
ipq40xx ipq40xx: integrate ath10kcal_patch_mac into ath10kcal_patch_mac_crc 6 years ago
ipq806x ipq806x: add ath10k calibration data MAC addresses patching 6 years ago
ixp4xx treewide: use wpad-basic for not small flash targets 6 years ago
kirkwood treewide: use wpad-basic for not small flash targets 6 years ago
lantiq apm821xx, ath79, ipq40xx, ipq806x, lantiq, ramips: base-files: Use generic diag.sh 6 years ago
layerscape kernel: add missing symbol in some 4.9 subtargets 6 years ago
malta treewide: use wpad-basic for not small flash targets 6 years ago
mcs814x kernel: bump 3.18 to 3.18.119 6 years ago
mediatek kernel: bump 4.14 to 4.14.88 6 years ago
mpc85xx mpc85xx: workaround 4.14 cross compile issue 6 years ago
mvebu kernel: bump 4.14 to 4.14.81 6 years ago
mxs mxs: use generic sysinfo board detection 6 years ago
octeon octeon: Evaluate board names in alphabetical order 6 years ago
octeontx kernel: enable memory compaction 6 years ago
omap kernel: bump 4.14 to 4.14.77 6 years ago
omap24xx omap24xx: remove referece to not existing kmod-usb-musb-tusb6010 6 years ago
orion treewide: use wpad-basic for not small flash targets 6 years ago
oxnas oxnas: remove superseded sysupgrade image check 6 years ago
pistachio kernel: bump 4.14 to 4.14.79 6 years ago
ppc40x kernel: only optimized for size if small_flash 6 years ago
ppc44x kernel: only optimized for size if small_flash 6 years ago
ramips ramips: mt7620: add usb packages 6 years ago
rb532 kernel: bump 4.14 to 4.14.86 6 years ago
samsung kernel: bump 4.14 to 4.14.77 6 years ago
sunxi kernel: bump 4.14 to 4.14.77 6 years ago
uml treewide: use wpad-basic for not small flash targets 6 years ago
x86 x86: make sysupgrade.tgz reachable again 6 years ago
xburst kernel: bump 3.18 to 3.18.119 6 years ago
zynq kernel: bump 4.14 to 4.14.77 6 years ago
Makefile