R7800 160MHz Wireless Interface

It's the same issue as the first time I got this fixed.
What exact driver version is this and I'll check for the same error.

How do I check driver version?

1 Like

Thanks that's good enough.
Yes it is the exact same issue as before, just this time on the 5.10 kernel:

It's really easy to patch and get working again. I'm not running the 21.02.x builds yet, so if someone wants to patch it and check it does work as i suggest, i'll then PR it upstream to ath10k-ct.

Maybe @KONG is generous enough to test it in his builds?

1 Like

How can I patch it?

Grab the OpenWrt source, add a patches folder to package/kernel/ath10k-ct/
Add new patch 001-fix_160mhz.patch with the contents

--- a/ath10k-5.10/mac.c
+++ b/ath10k-5.10/mac.c
@@ -10780,6 +10780,8 @@ static struct ieee80211_iface_combinatio
 		.radar_detect_widths =	BIT(NL80211_CHAN_WIDTH_20_NOHT) |
 					BIT(NL80211_CHAN_WIDTH_20) |
 					BIT(NL80211_CHAN_WIDTH_40) |
+					BIT(NL80211_CHAN_WIDTH_80P80) |
+					BIT(NL80211_CHAN_WIDTH_160) |
 					BIT(NL80211_CHAN_WIDTH_80),
 #endif
 	},

That may not be entirely right i typed it up by hand but it's close enough

1 Like

I think it's beyond my capability for archiving that. I am going to have to wait for the firmware patch to be released.

Thanks,

Do you know if this issue is fixed in Latest snapshots maybe?

No it uses the same driver version currently.
The same issue also exists for the 5.11 and 5.12 kernel versions upstream so patching it is really the (simplest) way forward.

As soon as someone tests it and gives the :+1: I'll send it upstream. I try not to raise blind PRs so at least someone has to test it.

Is possible for you to provide guidance so that I can test it on R7800?

The device complies with 160 MHz width, so I agree with the others answers, it may be a driver issue.
Remove both CT files and replace with regular drivers.

Where can I find regular drivers, under software? And which would be regular ones?

Yes. they have the same names that the CT's, but without CT at the end :smiley:
ath10k-firmware-qca9984
kmod-ath10k

we also have to say that 160MHz with standard ath10k drivers is a nonsense, given that it gives no performance gain at all (the exact opposite)

If you use ath10k-ct driver and the regular ath10k firmware files you'll get 160mhz capability because it is correctly defined there.
No idea why but anyway... probably a copy paste error

@pattagghiu @lantis1008 I installed the regular driver, It works with 160MHz but has no performance improvement, it's no nowhere near the speed I use to get on 19.07.7 speeds of ~700mbps.

@greearb are you happy to patch 5.10, 5.11, 5.12 based on the information in this thread please? Or do you need it runtime tested.
If we are quick about it we may be able to fix this for 21.02 release.

1 Like

I added the patch to folder, How do I apply it on R7800?

Now you need to build the firmware.

700 Mbps ?
With a low-end R6220 router used as AP, I have 867 Mbit/s at 80 MHz width. It allows 45 to 50 MB/s when transfering files. You surely can have much better from a R7800.