LinuxKPI: 802.11: deal with scan_ie_len
authorBjoern A. Zeeb <bz@FreeBSD.org>
Fri, 27 Oct 2023 20:41:43 +0000 (20:41 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Fri, 3 Nov 2023 21:08:03 +0000 (21:08 +0000)
commit78ca45df310563ca46448a124674e0542aab2e31
treee281501ca77c2eae7a450aa92827b3013c8efd0c
parent5856761fd5f675c3871a82effdbf714a1d1bcc5e
LinuxKPI: 802.11: deal with scan_ie_len

We only need to reserve the extra space for DSSS if
NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES is set, so add the conditional.
Also add checks in case scan_ie_len will grow beyond the maximum.
Given this is currently unlikely, leave the cleanup for later as
some other restructuring should be done first.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: cc
Differential Revision: https://reviews.freebsd.org/D42425
sys/compat/linuxkpi/common/src/linux_80211.c