wifi: cfg80211/mac80211: Fix ML element common size validation
authorIlan Peer <ilan.peer@intel.com>
Sun, 11 Sep 2022 13:55:12 +0000 (16:55 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 7 Oct 2022 13:23:53 +0000 (15:23 +0200)
commitfb99c7d4d6d0fb4fe5a953e0c5f6c37a5b796b98
treedc4b65ce29025e5ecc0264508b12f67903043161
parent1403b109c9a5244dc6ab79154f04eecc209ef3d2
wifi: cfg80211/mac80211: Fix ML element common size validation

The Multi-Link element can be fragmented, thus its size can exceed 254.
Thus, modify ieee80211_mle_size_ok() to use 'size_t len' instead of
'u8 len'.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/linux/ieee80211.h