]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
net80211: split up ieee80211_probereq()
authorBjoern A. Zeeb <bz@FreeBSD.ORG>
Sat, 6 Mar 2021 21:05:43 +0000 (21:05 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Thu, 18 Mar 2021 11:02:45 +0000 (11:02 +0000)
commitc338cf2c6d5eacdee813191d5976aa531d450ee7
tree56b5b35173af89af4c0eb5fb75b9ce9a60c152a6
parent0c7b75f12840a31206ae24acca1f5ee35c8e341d
net80211: split up ieee80211_probereq()

Factor out ieee80211_probereq_ie() and ieee80211_probereq_ie_len()
and make the length dynamic rather than static max.  The latter is
needed as our 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-by: Martin Husemann <martin NetBSD.org> [1]
Sponsored-by: Rubicon Communications, LLC ("Netgate")
Sponsored-by: The FreeBSD Foundation (update for alloc)
Reviewed-by: adrian, martin NetBSD.org (earlier version)
Reviewed-by: philip
MFC-after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D26545
sys/net80211/ieee80211_output.c
sys/net80211/ieee80211_proto.h