]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
net80211: fix a typo in Rx MCS set for unequal modulation case
authorMikhail Pchelin <misha@FreeBSD.org>
Fri, 14 Apr 2023 15:20:09 +0000 (18:20 +0300)
committerMikhail Pchelin <misha@FreeBSD.org>
Fri, 14 Apr 2023 15:20:09 +0000 (18:20 +0300)
commit2f53b5991ce05b7e6f2b1eb826cd902fb255a9eb
tree5274d81bf1609dafe26583c59c388b9ddd634312
parentea26545cc573ff7e1f69c7cecaf6773e628b6aac
net80211: fix a typo in Rx MCS set for unequal modulation case

RX MCS set defines which MCSs are supported for RX, bits 0-31 are for equal
modulation of the streams, bits 33-76 are for unequal case. Current code checks
txstreams variable instead of rxstreams to set bits from 53 to 76 for 4 spatial
streams case.

The modulations are defined in tables 19-38 and 19-41 of the IEEE Std
802.11-2020.

Spotted by bz in https://reviews.freebsd.org/D39476

Reviewed by: bz
Approved by: bz
Sponsored by: Serenity Cybersecurity, LLC
Differential Revision: https://reviews.freebsd.org/D39568
sys/net80211/ieee80211_ht.c