Skip to content
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

VHT-NSS 2 reported for device with 1x1:1 antenna #230

Closed
michaeltandy opened this issue Jan 9, 2019 · 16 comments
Closed

VHT-NSS 2 reported for device with 1x1:1 antenna #230

michaeltandy opened this issue Jan 9, 2019 · 16 comments

Comments

@michaeltandy
Copy link

I have a ASUS USB-AC51 using the MediaTek MT7610U, which (AFAIK) is a abgn+ac device, with a 1x1:1 antenna configuration. The advertised maximum speed is 433 Mbps, consistent with supporting a single spatial stream (at 80MHz, VHT-MCS 9 VHT-NSS 1, short guard interval)

However, when I run wavemon it reports rx rate: 130.0 Mbit/s VHT-MCS 7 VHT-NSS 2 (exp: 30.5 MB/s) i.e. more than one spatial stream.

Is the report of NSS=2 correct, despite the 1x1:1 design? Or is the report than NSS=2 incorrect?

Thanks for taking the time to read my bug report, and apologies if this is the wrong forum for me to ask this!

@LorenzoBianconi
Copy link
Contributor

LorenzoBianconi commented Jan 9, 2019 via email

@michaeltandy
Copy link
Author

I can try :)

Do you mean you want the type of capture I'd get by running tshark -i wlx107b44e70d1b -I -y IEEE802_11_RADIO -a duration:10 -w linklayer-a.pcapng on the problem device? Or do you mean I should try to capture on a different device while the problem device starts up? Or are you looking for a trace of USB traffic and I've misunderstood? :)

@LorenzoBianconi
Copy link
Contributor

LorenzoBianconi commented Jan 9, 2019 via email

@michaeltandy
Copy link
Author

Sure thing, here's a capture with some traffic generated by iperf: monitor-interface-trace-during-iperf.pcapng.gz

I assume you'll be looking at this header:-

Radiotap Header v0, Length 36
    Header revision: 0
    Header pad: 0
    Header length: 36
    Present flags
    Flags: 0x00
    Channel frequency: 5280 [A 56]
    Channel flags: 0x0140, Orthogonal Frequency-Division Multiplexing (OFDM), 5 GHz spectrum
    Antenna signal: -62dBm
    RX flags: 0x0000
    VHT information
        Known VHT information: 0x400
            .... .... .... ...0 = STBC: Absent
            .... .... .... ..0. = TXOP_PS_NOT_ALLOWED: Absent
            .... .... .... .1.. = Guard interval: Present
            .... .... .... 0... = SGI Nsym disambiguation: Absent
            .... .... ...0 .... = LDPC extra OFDM symbol: Absent
            .... .... ..0. .... = Beamformed: Absent
            .... .... .1.. .... = Bandwidth: Present
            .... .... 0... .... = Group ID: Absent
            .... ...0 .... .... = Partial AID: Absent
        .... .1.. = Guard interval: short (1)
        Bandwidth: 20 MHz (0)
        User 0: MCS 7
            0111 .... = MCS index 0: 7 (64-QAM 5/6)
            .... 0010 = Spatial streams 0: 2
            .... ...0 = Coding 0: BCC (0)
            [Data Rate: 144.4 Mb/s]
    Antenna signal: 0dBm
    Antenna: 0

@LorenzoBianconi
Copy link
Contributor

LorenzoBianconi commented Jan 10, 2019 via email

@LorenzoBianconi
Copy link
Contributor

@michaeltandy : could you please try following commit?
LorenzoBianconi@1408354

@michaeltandy
Copy link
Author

I applied this diff atop kernel v4.20, but wavemon still seems to report rx rate: 117.0 Mbit/s VHT-MCS 6 VHT-NSS 2 (exp: 30.5 MB/s)

@LorenzoBianconi
Copy link
Contributor

LorenzoBianconi commented Jan 16, 2019 via email

@michaeltandy
Copy link
Author

I tested with 70d181330b75 from wireless-drivers-next and wavemon reports rx rate: 117.0 Mbit/s VHT-MCS 6 VHT-NSS 2 (exp: 30.5 MB/s) - here's a sample of that data: monitor-interface-70d181330b75.pcapng.gz

VHT information
    Known VHT information: 0x400
    .... .0.. = Guard interval: long (0)
    Bandwidth: 20 MHz (0)
    User 0: MCS 5
        0101 .... = MCS index 0: 5 (64-QAM 2/3)
        .... 0010 = Spatial streams 0: 2
        .... ...0 = Coding 0: BCC (0)
        [Data Rate: 104.0 Mb/s]

I accidentally also tested with the master branch (209b43759d65) which makes wavemon report rx rate: 52.0 Mbit/s MCS 5 (exp: 26.1 MB/s) i.e. removing the NSS but also the VHT.

@michaeltandy
Copy link
Author

Incidentally, when shutting down I get this on the console:

usb usb1: USB disconnect, device number 1
usb 1-1: USB disconnect, device number 2
usb 1-1.4: USB disconnect, device number 3
mt76x0u 1-1.4:1.0: TX DMA did not stop
mt76x0u 1-1.4:1.0: Warning: MAC TX did not stop!
mt76x0u 1-1.4:1.0: Warning: MAC RX did not stop!
mt76x0u 1-1.4:1.0: RX DMA did not stop
ci_hdrc ci_hdrc.1: USB bus 1 deregistered

Don't know if it's relevant? It's at shutdown, so probably not :)

@LorenzoBianconi
Copy link
Contributor

LorenzoBianconi commented Jan 17, 2019 via email

@LorenzoBianconi
Copy link
Contributor

@michaeltandy : could you please try this commit? LorenzoBianconi/wireless-drivers-next@6110621

@michaeltandy
Copy link
Author

With LorenzoBianconi/wireless-drivers-next@611062117f10

rx rate: 58.5 Mbit/s VHT-MCS 6 VHT-NSS 1 (exp: 30.5 MB/s),

Looks good 😀

@LorenzoBianconi
Copy link
Contributor

LorenzoBianconi commented Jan 24, 2019 via email

@michaeltandy
Copy link
Author

Sure thing! And if there's any way I can buy you a beer, I'd be glad to :)

@LorenzoBianconi
Copy link
Contributor

LorenzoBianconi commented Jan 24, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants