Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Miri Korenblit and committed by
Johannes Berg
1373f941 ac36daa8

+4 -1
+4 -1
net/mac80211/mlme.c
··· 2104 2104 sizeof(struct ieee80211_he_mcs_nss_supp) + 2105 2105 IEEE80211_HE_PPE_THRES_MAX_LEN; 2106 2106 2107 - if (sband->band == NL80211_BAND_6GHZ) 2107 + if (sband->band == NL80211_BAND_6GHZ) { 2108 2108 size += 2 + 1 + sizeof(struct ieee80211_he_6ghz_capa); 2109 + /* reg connection */ 2110 + size += 4; 2111 + } 2109 2112 2110 2113 size += 2 + 1 + sizeof(struct ieee80211_eht_cap_elem) + 2111 2114 sizeof(struct ieee80211_eht_mcs_nss_supp) +