Skip to content

Commit dd01579

Browse files
ryderlee1110jmberg-intel
authored andcommitted
wifi: mac80211: fix the size calculation of ieee80211_ie_len_eht_cap()
Here should return the size of ieee80211_eht_cap_elem_fixed, so fix it. Fixes: 820acc8 ("mac80211: Add EHT capabilities to association/probe request") Signed-off-by: Ryder Lee <[email protected]> Link: https://lore.kernel.org/r/06c13635fc03bcff58a647b8e03e9f01a74294bd.1679935259.git.ryder.lee@mediatek.com Signed-off-by: Johannes Berg <[email protected]>
1 parent a16fc38 commit dd01579

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/mac80211/util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4906,7 +4906,7 @@ u8 ieee80211_ie_len_eht_cap(struct ieee80211_sub_if_data *sdata, u8 iftype)
49064906
&eht_cap->eht_cap_elem,
49074907
is_ap);
49084908
return 2 + 1 +
4909-
sizeof(he_cap->he_cap_elem) + n +
4909+
sizeof(eht_cap->eht_cap_elem) + n +
49104910
ieee80211_eht_ppe_size(eht_cap->eht_ppe_thres[0],
49114911
eht_cap->eht_cap_elem.phy_cap_info);
49124912
return 0;

0 commit comments

Comments
 (0)