Skip to content

Commit 2259d14

Browse files
Ramanathan Choodamanijmberg-intel
authored andcommitted
wifi: mac80211: set default WMM parameters on all links
Currently, mac80211 only initializes default WMM parameters on the deflink during do_open(). For MLO cases, this leaves the additional links without proper WMM defaults if hostapd does not supply per-link WMM parameters, leading to inconsistent QoS behavior across links. Set default WMM parameters for each link during ieee80211_vif_update_links(), because this ensures all individual links in an MLD have valid WMM settings during bring-up and behave consistently across different BSS. Signed-off-by: Ramanathan Choodamani <[email protected]> Signed-off-by: Aishwarya R <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Johannes Berg <[email protected]>
1 parent 03cc8f9 commit 2259d14

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

net/mac80211/link.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ static int ieee80211_vif_update_links(struct ieee80211_sub_if_data *sdata,
281281
struct ieee80211_bss_conf *old[IEEE80211_MLD_MAX_NUM_LINKS];
282282
struct ieee80211_link_data *old_data[IEEE80211_MLD_MAX_NUM_LINKS];
283283
bool use_deflink = old_links == 0; /* set for error case */
284+
bool non_sta = sdata->vif.type != NL80211_IFTYPE_STATION;
284285

285286
lockdep_assert_wiphy(sdata->local->hw.wiphy);
286287

@@ -337,6 +338,7 @@ static int ieee80211_vif_update_links(struct ieee80211_sub_if_data *sdata,
337338
link = links[link_id];
338339
ieee80211_link_init(sdata, link_id, &link->data, &link->conf);
339340
ieee80211_link_setup(&link->data);
341+
ieee80211_set_wmm_default(&link->data, true, non_sta);
340342
}
341343

342344
if (new_links == 0)

0 commit comments

Comments
 (0)