Skip to content

Commit 9b6614e

Browse files
Miriam-Racheljmberg-intel
authored andcommitted
wifi: iwlwifi: assign phy_ctxt before eSR activation
eSR is activated when a chanctx is assigned to more than one link. During eSR activation we should disable RLC for both phys, and configure the FW with a special phy command for both phys. Currently we assign the phy_ctxt to the link only after eSR activation, so RLC is not disabled for the new phy_ctxt, and a cmd is not sent to FW. Fix this by first assigning the new phy_ctxt to the link and then doing the eSR activation. Fixes: 12bacfc ("wifi: iwlwifi: handle eSR transitions") Reviewed-by: Gregory Greenman <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://msgid.link/20231219215605.3d94507f5d9a.I537fcd73aedf94c7348c03157e486f24301fef14@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent cb2dfac commit 9b6614e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,17 +271,17 @@ __iwl_mvm_mld_assign_vif_chanctx(struct iwl_mvm *mvm,
271271
}
272272
}
273273

274+
mvmvif->link[link_id]->phy_ctxt = phy_ctxt;
275+
274276
if (iwl_mvm_is_esr_supported(mvm->fwrt.trans) && n_active > 1) {
275277
mvmvif->link[link_id]->listen_lmac = true;
276278
ret = iwl_mvm_esr_mode_active(mvm, vif);
277279
if (ret) {
278280
IWL_ERR(mvm, "failed to activate ESR mode (%d)\n", ret);
279-
return ret;
281+
goto out;
280282
}
281283
}
282284

283-
mvmvif->link[link_id]->phy_ctxt = phy_ctxt;
284-
285285
if (switching_chanctx) {
286286
/* reactivate if we turned this off during channel switch */
287287
if (vif->type == NL80211_IFTYPE_AP)

0 commit comments

Comments
 (0)