projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a16fc38
)
wifi: mac80211: fix the size calculation of ieee80211_ie_len_eht_cap()
author
Ryder Lee
<ryder.lee@mediatek.com>
Mon, 27 Mar 2023 17:07:41 +0000
(
01:07
+0800)
committer
Johannes Berg
<johannes.berg@intel.com>
Thu, 30 Mar 2023 09:18:37 +0000
(11:18 +0200)
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>
net/mac80211/util.c
patch
|
blob
|
history
diff --git
a/net/mac80211/util.c
b/net/mac80211/util.c
index 3aceb3b731bf4f9e401fabe5fc5af04c056bfb1b..8c397650b96f605f3b2e75c599337cdac47f5555 100644
(file)
--- a/
net/mac80211/util.c
+++ b/
net/mac80211/util.c
@@
-4906,7
+4906,7
@@
u8 ieee80211_ie_len_eht_cap(struct ieee80211_sub_if_data *sdata, u8 iftype)
&eht_cap->eht_cap_elem,
is_ap);
return 2 + 1 +
- sizeof(
he_cap->he
_cap_elem) + n +
+ sizeof(
eht_cap->eht
_cap_elem) + n +
ieee80211_eht_ppe_size(eht_cap->eht_ppe_thres[0],
eht_cap->eht_cap_elem.phy_cap_info);
return 0;