]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: mac80211: copy aggregation information
authorBenjamin Berg <benjamin.berg@intel.com>
Tue, 14 Jul 2026 11:10:46 +0000 (14:10 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 21 Jul 2026 11:25:45 +0000 (13:25 +0200)
This information can be considered part of the capabilities and should
also be copied to the NAN data station.

Fixes: 27e9b326b674 ("wifi: mac80211: support NAN stations")
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20260714141038.15620aa5324b.I049254b854ac91c32e0768eb7c819f32eda34218@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c

index b00191e02a63d7b659f6c93e1f15cfda3c58922b..43f142624d33e5c5f86cdbb2a12a0d4cc523e505 100644 (file)
@@ -2611,6 +2611,9 @@ static int sta_apply_parameters(struct ieee80211_local *local,
                memcpy(&sta->deflink.pub->supp_rates,
                       &nmi_sta->deflink.pub->supp_rates,
                       sizeof(sta->deflink.pub->supp_rates));
+
+               sta->deflink.pub->agg = nmi_sta->deflink.pub->agg;
+               __ieee80211_sta_recalc_aggregates(sta, 0);
        }
 
        /* set the STA state after all sta info from usermode has been set */