Skip to content

Commit 691009b

Browse files
Miriam-Racheljmberg-intel
authored andcommitted
wifi: mac80211: fix incorrect comment
As opposed to what the comment says, we don't count in the skb size of the association request frame the length of the Per STA Profile of the association link. Fix the comment. Reviewed-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250908122652.7022f33b1f33.Iac0d35744df883e8b96d71bbe8da518cc5d514bf@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent 185cc23 commit 691009b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

net/mac80211/mlme.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2183,11 +2183,7 @@ static int ieee80211_send_assoc(struct ieee80211_sub_if_data *sdata)
21832183
2 + /* ext capa & op */
21842184
2; /* EML capa */
21852185

2186-
/*
2187-
* The capability elements were already considered above;
2188-
* note this over-estimates a bit because there's no
2189-
* STA profile for the assoc link.
2190-
*/
2186+
/* The capability elements were already considered above */
21912187
size += (n_links - 1) *
21922188
(1 + 1 + /* subelement ID/length */
21932189
2 + /* STA control */

0 commit comments

Comments
 (0)