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
F105772848: D30813.diff
Fri, Dec 20, 12:09 PM
Unknown Object (File)
Thu, Nov 28, 9:30 PM
Unknown Object (File)
Tue, Nov 26, 3:35 AM
Unknown Object (File)
Nov 16 2024, 9:16 PM
Unknown Object (File)
Oct 12 2024, 9:43 PM
Unknown Object (File)
Oct 2 2024, 12:41 PM
Unknown Object (File)
Sep 30 2024, 9:50 PM
Unknown Object (File)
Sep 29 2024, 5:59 PM
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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39969
Build 36858: arc lint + arc unit