mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
wifi: mac80211: count reg connection element in the size
We currently don't count the reg connection length in the per-link capability length. Fix it. Reviewed-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20250826202512.b14fc82f736b.I03442382e8a07f6f9836bcdac2e22ce8afbe6a21@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
ac36daa836
commit
1373f94148
|
|
@ -2104,8 +2104,11 @@ ieee80211_link_common_elems_size(struct ieee80211_sub_if_data *sdata,
|
|||
sizeof(struct ieee80211_he_mcs_nss_supp) +
|
||||
IEEE80211_HE_PPE_THRES_MAX_LEN;
|
||||
|
||||
if (sband->band == NL80211_BAND_6GHZ)
|
||||
if (sband->band == NL80211_BAND_6GHZ) {
|
||||
size += 2 + 1 + sizeof(struct ieee80211_he_6ghz_capa);
|
||||
/* reg connection */
|
||||
size += 4;
|
||||
}
|
||||
|
||||
size += 2 + 1 + sizeof(struct ieee80211_eht_cap_elem) +
|
||||
sizeof(struct ieee80211_eht_mcs_nss_supp) +
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user