-
Notifications
You must be signed in to change notification settings - Fork 346
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
mt7610e external frontend patch #286
Comments
Most likely others need this as well :-) There is pending issue #216 which I hope your patch address. |
Confirmed working with my TP-LINK Archer C2 v1.0! |
@apr456 is there Mediatek vendor driver code on which your patch is based ? |
Yes, the code is in chips/mt76x0.c, function MT76x0_ReadFlashAndInitAsic |
Confirmed working with HC5761 (MT7620A+MT7610E) |
I wonder why @apr456 didn't create pull request with this patch? |
I created pull request with this patch file, but if apr456 want request yourself I'll close the pull request. |
@orangepizza could you please provide some kind of package, which can be used "fix" an existing openwrt snapshot installation? |
it can't work. kernel hashes will different so opkg dependency will block its install. |
So only full images would work? If so, found you provide one? Just asking, because I would like to have this fix as soon as possible and it doesn't look like, the fix is getting merged soon. |
I'll need to know what's your device name, is it's only work for that specific kernel image |
Here are the details of my device: (if I should upgrade to the latest snapshot, tell me) |
You can use my image if you like: https://drive.google.com/drive/folders/17ELnvpivUjHC2wcZiIJOwNFdRcKuzcLj TP-Link Archer C2 v1, r10127-3209f5ae3d, kernel 4.14.123 |
I just finished compile |
Thank you very much, works great! @hpn0t0ad thank you too |
The patch works fine on Archer C2 v1 :D Btw |
This patch make mt7610 in D-Link DWR-118-A1 usable. Both directions:
|
@apr456 @orangepizza , the correct way to get the patch applied is post it to linux-wireless mailing list. Note: Vendor driver set the registers under '#ifdef RTMP_MAC_PCI', but I tested the patch on usb MT7610U (and also on MT7630E) and did not find any problems , so I think we can take the patch as is, without additional checks regarding bus or chip version. |
I don't think @apr456 will give real name, he doesn't on github much often (this and a issue create on 2017/11 is his only activity on github) |
I'm currently testing a reworked version of this patch, which I will push to this repo and submit upstream soon. |
Done |
Ported from: openwrt#286 Should fix: openwrt#199 openwrt#227 At least fix problem on DIR-510L with 5GHz: clients most times can not connect. Detailed issue description openwrt#227 Also this duplicates: openwrt#287 but current code base does not have these changes.
Can we make similar patch for Archer C20 but version 5 ? |
It's done on wireless chipset (mt7610e) so it should be already applied. |
Yes i saw it but there must be something wrong. |
Hey guys, in Openwrt 21.02rc4 the power of ArcherC2v1 is still 9dBm (max and driver default) for CH 36-64 and 11dBm (max and driver default) for CH 100-165. I would really love if someone could explain what is the actual state and where are still issues or what we could do to bring it into mainline soon. - There are also a few other devices on the market with that pain-in-the-ass chipset, but advantage in my opinion is the very low power consumption and worth to bring it into main support. |
Actual state is that somehow 5ghz driver (mediatek 7610) is reading incorrect or not reading at all any kind of values for channel/tx-power couples and it is falling to some safe defaults.I am trying to find where is this happening but until now .... not much of a luck. The only "solution" i find out is to touch mt76x0/eeprom.c and change: Now i see good values in luci and console using iw phy like these:
I do not know exactly if this is working correct. |
Although patching eeprom.c does increase the values reported by iw, it does not seem to influence the actual txpower, i.e. the signal strength as seen by the clients remains unchanged. this is what iw reports with the patch (regdomain PA)
|
Seems like we will wait for proper fix from nbd or other. At least seems like the driver is stable and for 3 days i have no crash. |
Edit: Never mind, this looks correct https://github.com/openwrt/mt76/blob/master/mt76x0/eeprom.c#L136
I think this might also be wrong as well. The MCS9 is the 5Ghz rate base (0x120) + 12, but it looks like we've gone and done 0x120 + 0x12 instead? @nbd168 Could you check these two with the documentation you have? |
To follow this ticket |
There are extra init settings, that used in mediatek mt7610e driver and not used in mt76.
In my router this init enables external frontend in 5GHz band. Without it, tx power seems very low (i.e. connection possible only near the router). Maybe, those settings could work in other devices, too.
My device: totolink A1004NS (mt7620a + mt7610e).
Patch is attached to this message.
mt76.patch.txt
The text was updated successfully, but these errors were encountered: