aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/cfictl.h
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2021-09-30 16:41:19 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2021-10-22 10:42:06 +0000
commit3dc7a1897e0bb9e4b529c01cb3f88e1c387af5e8 (patch)
treefbb2c778679f7510ba4ee3bd57e7d3d0556d2dd6 /sys/sys/cfictl.h
parent9a6695532b3997e4e2bc3fe57481cc49be5e9e93 (diff)
downloadsrc-3dc7a1897e0bb9e4b529c01cb3f88e1c387af5e8.tar.gz
src-3dc7a1897e0bb9e4b529c01cb3f88e1c387af5e8.zip
net80211: correct input_sta length checks and control frame handling
Correct input_sta "assertion" checks. CTS/ACK CTRL frames are shorter then sizeof(struct ieee80211_frame_min) and were thus running into the is_rx_tooshort error case. Use ieee80211_anyhdrsize() to handle this better but make sure we do at least have the first 2 octets needed for that. While here move the safety checks before any code which may not obey them later, just for good style. The non-scanning check further down assumes a frame format also not matching control frames. For now skip the checks for control frames which allows us to deal with some of them at least now. Sponsored by: The FreeBSD Foundation Obtained from: 20210906 wireless v0.91 code drop MFC after: 3 days Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D32238
Diffstat (limited to 'sys/sys/cfictl.h')
0 files changed, 0 insertions, 0 deletions