HomeFreeBSD

LinuxKPI: 802.11: deal with scan_ie_len

Description

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
Reviewed by: cc
Differential Revision: https://reviews.freebsd.org/D42425

(cherry picked from commit 78ca45df310563ca46448a124674e0542aab2e31)

Details

Provenance
bzAuthored on Oct 27 2023, 8:41 PM
Reviewer
cc
Differential Revision
D42425: LinuxKPI: 802.11: deal with scan_ie_len
Parents
rGd425c3c640a3: LinuxKPI: 802.11: fix ieee80211_add_channel_cbw() argument
Branches
Unknown
Tags
Unknown