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

(cherry picked from commit 78ca45df310563ca46448a124674e0542aab2e31)

Details

Provenance
bzAuthored on Oct 27 2023, 8:41 PM
Parents
rGf2411b1342d8: LinuxKPI: 802.11: fix ieee80211_add_channel_cbw() argument
Branches
Unknown
Tags
Unknown