]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: fix multi-link element subelement iteration
authorJohannes Berg <johannes.berg@intel.com>
Sat, 17 Sep 2022 01:14:53 +0000 (03:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:01 +0000 (13:32 +0100)
commitcd5d16539330a1d237bd8f44fedac123ee630644
tree385cfa4640f4832e45ad8679538f1094a456b67f
parent49cafaad0ba5508528dfd8d1398a0610f0629791
wifi: fix multi-link element subelement iteration

[ Upstream commit 1177aaa7fe9373c762cd5bf5f5de8517bac989d5 ]

The subelements obviously start after the common data, including
the common multi-link element structure definition itself. This
bug was possibly just hidden by the higher bits of the control
being set to 0, so the iteration just found one bogus element
and most of the code could continue anyway.

Fixes: 0f48b8b88aa9 ("wifi: ieee80211: add definitions for multi-link element")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/ieee80211.h