New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lantiq: fix ath9k-eeprom for AVM Fritz!Box 7430 #12247
base: main
Are you sure you want to change the base?
Conversation
@grische noticed that the extracted wifi calibration data (ath9k-eeprom) is incorrect. Symptoms included: - wrong mac address - radio was detected like dbdc (2.4GHz and 5GHz support at the same time) This patch fixes this by also reversing the order of bytes and throwing away the last 4 Bytes. Unlike caldata.sh the fritz_cal_extract.c doesn't support reversing. So this patch combines both methods. Signed-off-by: Felix Baumann <felix.bau@gmx.de>
Hopefully not related to this commit:
I reported something similar earlier, but that was on target MT7621 and wifi up/wifi down weren't affected. #11725 |
Ok did some further testing, my patch also works on Release 22. It would be nice to see this backported. and the bug described above happens regardless of my patch. Unlike #11725 this bug also exists in Release 22 and not just in master. logread from bug in release:
it may say |
I would prefer if you add a swap functionality to the fritz_cal_extract tool. |
ok, I will try my best. I won't make any guarantees that I won't cause memory leaks. So please check my code thoroughly. |
The zlib implementation is streaming from mtd/stdin to the output in chunks of 1kB.
What is the preferred approach? Do you know of a better one? |
@doesnotcompete I know it's been a while, but you can compile openwrt with my patch to get the FB7430 working :) (for now) |
Hey @Djfe im using openwrt with an Fritz!Box 7430 i wonder if you would help me to fix the bad Internet Performance on it |
Please open a separate issue and @ me there, thank you. And please describe us which modem you are using. |
@grische noticed that the extracted wifi calibration data (ath9k-eeprom) is incorrect.
Symptoms included:
This patch fixes this by also reversing the order of bytes and throwing away the last 4 Bytes.
Unlike caldata.sh the fritz_cal_extract.c doesn't support reversing. So this patch combines both methods.
The new code is based on https://github.com/openwrt/openwrt/blob/master/package/base-files/files/lib/functions/caldata.sh#L64-L80
The issue was noticed here: freifunk-gluon/gluon#2270
iw list (before)
iw list (with this patch)
logread excerpt from booting with this patch