Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mac80211: rt2x00: add support for external LNA on MT7620
Reported-by: Tom Psyborg <pozega.tomislav@gmail.com> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
- Loading branch information
Showing
1 changed file
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b367eef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dangowrt
Many people have below issue for this driver (it is not related to your commit). But If you propose changes for this module - probably you know it :-). Do you know any workaround to fix it. Change rate/type N/G/B ? Same specific wifi parameters ? thanks in advance
b367eef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Support for MT7620 is still experimental and there are many known problems. Imho the patch needs to be cleaned-up or re-written and probably there are also quite some bits missing which we didn't discover yet...
b367eef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @kofec , do you know how to dynamic debug rt2x00 ? Just echo something to /sys/kernel/debug/control ???
b367eef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @hbl0307106015
I have " Reboot (SNAPSHOT, r3060-b367eef)" probably with your changes (no impact on this issue)
#719
root@ledeXiaomiMini:~# ls -l /sys/kernel/debug/
Probably I should compile with some debug option. Can you suggest which I should turn on ?
b367eef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to enable
PACKAGE_RT2X00_LIB_DEBUGFS
, that will give you read/write access to registers via/sys/kernel/debug/ieee80211/phy*/rt2x*/
b367eef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kofec
b367eef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @dangowrt , I have enable all the relevant debugfs, how to make it print all debug message from wireless driver ??
I had try to follow stpes but failed(neither dmesg or logred can work).
echo -n 'module mt76 +p' > /sys/kernel/debug/dynamic_debug/control
echo -n 'module mt760e3 +p' > /sys/kernel/debug/dynamic_debug/control
echo -n 'module mt76x2e +p' > /sys/kernel/debug/dynamic_debug/control
echo -n 'module cfg80211 +p' > /sys/kernel/debug/dynamic_debug/control
echo -n 'module mac80211 +p' > /sys/kernel/debug/dynamic_debug/control
cat /proc/kmsg , just nothing,..
b367eef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, looking at the code, there are simply no
pr_debug()
calls in rt2x00. When enabling the various debugfs options for rt2x00, you'll end up with a populated sysfs directory structure in/sys/kernel/debug/ieee80211/phy*/
which allows for some introspection, see https://github.com/torvalds/linux/blob/master/drivers/net/wireless/ralink/rt2x00/rt2x00debug.cb367eef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dangowrt Yes, but it seems there is no queue folder, no frame dump file.... :-(
root@lede:/sys/kernel/debug/ieee80211/phy1# ls fragmentation_threshold keys power rts_threshold total_ps_buffered ht40allow_map long_retry_limit queues short_retry_limit user_power hwflags netdev:wlan1 rc statistics wep_iv
b367eef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dangowrt @hbl0307106015
thanks for your help. So is there any conclusion ? Which debug I should enable ?
@dangowrt
As I understand you have the Xiaomi Mini - so my question - you don't see this issue ? If so maybe you have older openwrt or any other firmware ? If so can you write which one ? thanks
b367eef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kofec @hbl0307106015
I decided to pull a kickstarter project, because this is more than what I'm going to do just for the fun of it:
https://www.kickstarter.com/projects/1327597961/better-support-for-mt7620a-n-in-openwrt-lede