Page MenuHomeFreeBSD

net80211: ieee80211_probereq_ie fix length calculation for hw scans
ClosedPublic

Authored by bz on Jun 18 2021, 10:15 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 23, 1:27 PM
Unknown Object (File)
Feb 11 2024, 11:39 AM
Unknown Object (File)
Jan 14 2024, 5:33 PM
Unknown Object (File)
Dec 25 2023, 5:54 PM
Unknown Object (File)
Dec 20 2023, 5:43 AM
Unknown Object (File)
Dec 14 2023, 3:42 AM
Unknown Object (File)
Dec 12 2023, 1:57 AM
Unknown Object (File)
Nov 3 2023, 2:42 AM
Subscribers

Details

Summary

c338cf2c6d5eacdee813191d5976aa531d450ee7 split up ieee80211_probereq_ie().
For HW scans we usually do not want to add a SSID to the IEs.
During that split we allocate memory based on the length which will
always include the length of the SSID and only later we reduced the
length but never updated the value passed back to the caller.
Split the SSID handling up and reduce the length before malloc().
This not only makes us not over-allocate in these situatoins but also
fixes the length returned to the caller and with that usually directly
passed to firmware.

Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable