Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ath10k: Fix 2x2 NICs running on firmware compiled for 3x3.
This fixed performance issues on 2x2 988X CT firmware. Signed-off-by: Ben Greear <greearb@candelatech.com>
- Loading branch information
Showing
4 changed files
with
46 additions
and
19 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
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
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
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
e2fb92f
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.
Looks like 2x2 devices can't work in ibss mode.
I see a lot of debug messages
http://pastebin.com/5pxvyVtA
And very sad picture about bitrates
root@LEDE:~# iwinfo mesh5_0 assoclist
80:2A:A8:D2:98:38 -37 dBm / -102 dBm (SNR 65) 0 ms ago
RX: unknown 16138 Pkts.
TX: 48.0 MBit/s 3911 Pkts.
If I set two nss through iw like iw dev mesh5_0 set bitrates ht-mcs-5 vht-mcs-5 1:0-9 2:0-9 sgi-5
Bitrates stuck at the lowest rate
root@LEDE:~# iwinfo mesh5_0 assoclist
80:2A:A8:D2:98:38 -37 dBm / -102 dBm (SNR 65) 70 ms ago
RX: 6.0 MBit/s 21062 Pkts.
TX: 48.0 MBit/s 4607 Pkts.
And I see a lot of debug information again
http://pastebin.com/7d9QSmYX
Looks like something going wrong.
e2fb92f
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.
UPD:
Broadcast messages are OK.
root@LEDE:~# batctl o
[B.A.T.M.A.N. adv 2016.5, MainIF/MAC: mesh5_0/80:2a:a8:d2:97:f3 (bat0/0e:e0:46:45:75:a3 BATMAN_V)]
Originator last-seen ( throughput) Nexthop [outgoingIF]
e2fb92f
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.
This behavior repeats on every channel bandwidth. I tried 20, 40 and 80 MHZ.
Sometimes two IBSS stations can set right bitrates. This looks like they drop it to 6 mbps and after that bitrate rizes up to the 866.7 mbps.
Other stations can stay with unknown RX and 20 mhz channel bandwidth.
e2fb92f
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.
UPD: bitrate negotiation fails when one (any) station tries to send on 48mbps bitrate.
Any other station interpret this as a 6 mbps (why?) or unknown bitrate. And communication fails.
Look's like bug. Really.
e2fb92f
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.
e2fb92f
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.
I don't have 3x3 NIC, sorry.
Yes, I'm using the latest LEDE commit from lede-17.01 branch. With your new version ath10k-ct.
I understand that you have a lot of work, and don't have enough time to debug, but can you give some advice about bitrates?
As I noticed from the sources, ath10k associate stations with legacy bitrates. May be there is a way to avoid it?
To turn off legacy at all and use only HT & VHT.
e2fb92f
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.
e2fb92f
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.
Yes, I can test with the latest one from master. But firmware and driver are the same there.
I use HTT firmware directrly downloaded from the official CT site. May be I need to give a chance to the WMI mgt community firmware.
I'll try also to switch driver from legacy or to set 6 - 36 bitrates only.
Thank you very much.
e2fb92f
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.
e2fb92f
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.
Hello.
For this moment behavior is different.
Bitrate stucks on 6 mbps instead of 48 mbps with packets counter freeze at the cold start (I mean, without any traffic).
Then station switch from 6 mbps to 48 mbps again and stuck like before.
One or two times 48 mbps bitrate was recognized as VHT bitrate by other stations, but without ability to transmit any trafic. Other times it was again recognized as 6 mbps or unknown.
Sometimes reassociation helps, sometimes not.
Cold start looks like that
http://pastebin.com/YdFWeVEx
After reassociation some station can work correct. Also I noticed, that it shouldn't be any broadcast traffic to make it work 50/50.
http://pastebin.com/dK9LBM7s
First station dmesg:
http://pastebin.com/C9Vqyp7a
Second station dmesg
http://pastebin.com/GTvHxuTC
Third station dmesg:
http://pastebin.com/taADGd5p
After all I tried to set bitrates through iw and play with beacon, mcast, broadcast bitrates for last station. with some success.
Here the dmesg log of this manipulations.
http://pastebin.com/9upEv8g0
But when I tried to apply this settings to other stations it was a fail. Every connection was broken.
For every station it was a
80:2A:A8:D2:98:38 -36 dBm / -107 dBm (SNR 71) 100 ms ago
RX: unknown 3026 Pkts.
TX: 24.0 MBit/s 5 Pkts.
Here is the dmesg of this situation
http://pastebin.com/iL69sw8f
e2fb92f
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.
UPD:
After some minutes station can negotiate 80mhz and normal VHT bitrate.
Looks like a hook to make it use 6 mbit in case of stuck. Packet counter begins to work. Then, from 6 mbit rate station can raise directly to VHT bitrates, but not allways. Sometimes bitrate again raises to the 48 mbit value.
dmesg:
http://pastebin.com/LVNK1Qcf
I can provide any log information, ssh access, etc. Everything you need.
So, please feel free to ask me.
e2fb92f
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.
e2fb92f
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.
Hello.
Here is my wireless conf file:
http://pastebin.com/6Kj98qSk
As I noticed, it doesn't matter what MTU value was set.
I tried with network option and without it. Behavior is allways the same.
With BSSID it does not working for me.
I didn't try without encryption, because I can't use open adhoc.
Also, with my dirty hack through reassociation it works.
e2fb92f
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.
e2fb92f
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.
Hello.
I made a lab with 5 UBNT unifi AP ac lite. It has custom labeled QCA9880 inside.
All things are the same. In most cases devices can normally negotiate a bitrate.
But but "48 mbps TX" allways seems to be decoded as "6mbps/unknown RX" by others (bitrate mismatch). "6 mbps TX" stuck is different and appears rarely.
Things I tried:
So. I really can't make this work. Or better to say that I really can't fix this bug or create a workaround.
Please, do you have any Ideas or advices. I really need help.
And please, can you clarify in what cases firmware can't report rx bitrate to the driver, which appears as "unknown" in iwinfo or absent rx bitrate: section in IW output.
I don't know how long can devices travell from Russia. But theoretically I can send them for testing purposes.
Best regards,
Kirill
e2fb92f
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.
UPD.
6mpbs sometimes can also be decoded as unknown (firmware don't report RX bitrate).
e2fb92f
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.