]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rtwn: make sure to not write in upper bits of txdseq
authorAndriy Gapon <avg@FreeBSD.org>
Mon, 21 Jun 2021 08:05:04 +0000 (11:05 +0300)
committerAndriy Gapon <avg@FreeBSD.org>
Mon, 21 Jun 2021 08:05:04 +0000 (11:05 +0300)
commit7544c1d20d8b7127ed3511edeb94e01d328daebb
tree536ed3e0d6af2b067bbad61361456d27f5d61227
parent313724bab940c1844fda3d797cf88cd46780e62a
rtwn: make sure to not write in upper bits of txdseq

ni_txseqs is kept as 16-bit counter, but we need to trim the upper four
bits as they may have special meanings for the firmware / hardware.
For instance, bit 15 enables hardware / firmware generation of sequence
numbers that overrides sequence numbers programmed by the driver.

Reviewed by: adrian
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D30814
sys/dev/rtwn/rtl8192c/r92c_tx.c