wifi: fix multi-link element subelement iteration
authorJohannes Berg <johannes.berg@intel.com>
Sat, 17 Sep 2022 01:14:53 +0000 (03:14 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Sun, 21 May 2023 21:07:17 +0000 (23:07 +0200)
commit4c880f3f535068a9760f666b813a879a9b43ed1b
treea4bf0939b8b8344c1f01fbda49e75d4c427918ed
parent2131ca72658cb1b904fdced1b08f460699685302
wifi: fix multi-link element subelement iteration

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: Christian Lamparter <chunkeey@gmail.com>
include/linux/ieee80211.h