wifi: mac80211: fix the size calculation of ieee80211_ie_len_eht_cap()
authorRyder Lee <ryder.lee@mediatek.com>
Mon, 27 Mar 2023 17:07:41 +0000 (01:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Apr 2023 14:55:19 +0000 (16:55 +0200)
commitc46239e6295cd8719f773abd804ea987496beb0e
treef9f89dcbb4b3801669a35fe3dc071394f8d0bf5e
parent1d797b152ca343953351de8bd46512f54dc3feea
wifi: mac80211: fix the size calculation of ieee80211_ie_len_eht_cap()

[ Upstream commit dd01579e5ed922dcfcb8fec53fa03b81c7649a04 ]

Here should return the size of ieee80211_eht_cap_elem_fixed, so fix it.

Fixes: 820acc810fb6 ("mac80211: Add EHT capabilities to association/probe request")
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Link: https://lore.kernel.org/r/06c13635fc03bcff58a647b8e03e9f01a74294bd.1679935259.git.ryder.lee@mediatek.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/util.c