]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[ath] validate ts_antenna before updating tx statistics
authorAdrian Chadd <adrian@FreeBSD.org>
Sat, 13 Mar 2021 01:29:09 +0000 (17:29 -0800)
committerAdrian Chadd <adrian@FreeBSD.org>
Sat, 13 Mar 2021 01:33:07 +0000 (17:33 -0800)
commit51dfae383bf6298af9e6d816a78b92b6f34d68be
tree138c261bc0632929ffb351d4a2b5585f19195743
parent07564e1762010ba7e8ef5a7574bf9ceee811e95c
[ath] validate ts_antenna before updating tx statistics

Right now ts_antenna is either 0 or 1 in each supported HAL so
this is purely a sanity check.

Later on if I ever get magical free time I may add some extensions
for the NICs that can have slightly more complicated antenna switches
for transmit and I'd like this to not bust memory.
sys/dev/ath/if_ath.c