[PATCH] wifi: mt76: mt7996: use the correct vif link for scanning/roc
Lorenzo Bianconi
lorenzo at kernel.org
Fri Aug 8 20:14:39 PDT 2025
> restore fix which was dropped during MLO rework
>
> Fixes: f0b0b239b8f3 ("wifi: mt76: mt7996: rework mt7996_mac_write_txwi() for MLO support")
> Signed-off-by: Chad Monroe <chad at monroe.io>
Acked-by: Lorenzo Bianconi <lorenzo at kernel.org>
> ---
> drivers/net/wireless/mediatek/mt76/mt7996/mac.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/mac.c b/drivers/net/wireless/mediatek/mt76/mt7996/mac.c
> index 226534490792..6333a064c4f7 100644
> --- a/drivers/net/wireless/mediatek/mt76/mt7996/mac.c
> +++ b/drivers/net/wireless/mediatek/mt76/mt7996/mac.c
> @@ -903,8 +903,12 @@ void mt7996_mac_write_txwi(struct mt7996_dev *dev, __le32 *txwi,
> IEEE80211_TX_CTRL_MLO_LINK);
>
> mvif = vif ? (struct mt7996_vif *)vif->drv_priv : NULL;
> - if (mvif)
> - mlink = rcu_dereference(mvif->mt76.link[link_id]);
> + if (mvif) {
> + if (wcid->offchannel)
> + mlink = rcu_dereference(mvif->mt76.offchannel_link);
> + if (!mlink)
> + mlink = rcu_dereference(mvif->mt76.link[link_id]);
> + }
>
> if (mlink) {
> omac_idx = mlink->omac_idx;
> --
> 2.47.2
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mediatek/attachments/20250809/c5040ee9/attachment.sig>
More information about the Linux-mediatek
mailing list