This is a 16-bit bit little endian field and as such, needs to be
converted to host byte order before comparison.
Fixes: e5ea30feefa3 ("SME: MLD: Handle reconfiguration Multi-Link element")
Signed-off-by: Jouni Malinen <j@w1.fi>
goto out;
ml_common_len = 1;
- if (ml->ml_control & RECONF_MULTI_LINK_CTRL_PRES_MLD_MAC_ADDR)
+ if (le_to_host16(ml->ml_control) &
+ RECONF_MULTI_LINK_CTRL_PRES_MLD_MAC_ADDR)
ml_common_len += ETH_ALEN;
if (len < sizeof(*ml) + ml_common_len) {