]> 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>
Mon, 19 Feb 2024 16:06:59 +0000 (16:06 +0000)
commit5463d4cd99f339f7ed40a70679f48eb31f2b819e
tree38a790a50cbed0bcd18f572e7d30e6396297d6fa
parentf93d06ac87f4d5f496fe5669dc56b912e11c136e
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.

Approved by: re (cperciva)
Fixes: adff403fe7a87
Reviewed by: cc
Differential Revision: https://reviews.freebsd.org/D43635

(cherry picked from commit 828ce22f079df77b3bf52c4cf296959ea66bdc11)
(cherry picked from commit 1cf1f094680fe3bfd9836800f83ed0b79e180340)
sys/compat/linuxkpi/common/include/net/mac80211.h