]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
LinuxKPI: 802.11: fix field order in ieee80211_key_conf
authorBjoern A. Zeeb <bz@FreeBSD.org>
Sun, 28 Jan 2024 00:51:23 +0000 (00:51 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Sat, 3 Feb 2024 13:28:25 +0000 (13:28 +0000)
commit828ce22f079df77b3bf52c4cf296959ea66bdc11
tree63eb1a7834a1e6c40dd6923592eea079460ba08b
parentb6e9a7a2e2517fb9cb560fbd9b1d6171645df24a
LinuxKPI: 802.11: fix field order in ieee80211_key_conf

When adding the new field link_id to struct ieee80211_key_conf, it
was erroneously placed at the end of the struct;  the zero-length
(variable sized) array for the key always needs to stay last.
Resort fields and add hopefully helpful comment to avoid the problem
in the future.

Fixes: adff403fe7a87
MFC after: 3 days
Reviewed by: cc
Differential Revision: https://reviews.freebsd.org/D43635
sys/compat/linuxkpi/common/include/net/mac80211.h