Page MenuHomeFreeBSD

net80211: split up ieee80211_probereq()
ClosedPublic

Authored by bz on Sep 24 2020, 12:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 28, 11:33 AM
Unknown Object (File)
Mon, Mar 18, 12:03 PM
Unknown Object (File)
Mar 8 2024, 9:45 AM
Unknown Object (File)
Feb 7 2024, 1:04 AM
Unknown Object (File)
Dec 23 2023, 3:20 AM
Unknown Object (File)
Dec 12 2023, 6:32 AM
Unknown Object (File)
Oct 19 2023, 3:10 AM
Unknown Object (File)
Sep 14 2023, 1:27 PM

Details

Summary

Factor out ieee80211_probereq_ie() and ieee80211_probereq_ie_len()
and make the length dynamic rather than static max. The latter is
needed as out current fixed length was longer than some "hw scan",
e.g. that of ath10k, will take. This way we can pass what we have.
Should this not be sufficient in the future we might have to deal
with filtering and much more error handling.

This also removes a duplicate calculation for ieee80211_ie_wpa [1].

Repoprted also by:	Martin Husemann <martin NetBSD.org> [1]
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Sponsored by: The FreeBSD Foundation (update for alloc)
Reviewed by: ...
MFC after: ...
Diff..: ...

Diff Detail

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

Event Timeline

bz requested review of this revision.Sep 24 2020, 12:49 PM
This revision is now accepted and ready to land.Dec 10 2020, 12:59 PM

No longer exporting _len(); seems we do not need that publicly.
Add a bool option to alloc the ie space which we may need for
other uses (such as LinuxKPI).
Cleanup.

Obtained-from: bz_iwlwifi

This revision now requires review to proceed.Mar 6 2021, 9:24 PM
bz edited the summary of this revision. (Show Details)

This looks good to me.

sys/net80211/ieee80211_output.c
2448

I'm not a huge fan of #ifdef notyet but this looks reasonable here.

2516–2517

Minor point: if it was #if 0 before and it's #ifdef notyet now ... maybe it should just go away for the time being? It can be brought back with the other 11ac work.

This revision is now accepted and ready to land.Mar 16 2021, 11:40 AM
This revision was automatically updated to reflect the committed changes.