Re: [PATCH v2] wifi: mt76: mt7925: fix mt7925_reverse_frag0_hdr_trans() for MLO
From: Zhao Li
Date: Mon Nov 16 2026 - 03:45:58 EST
Hi Ziheng,
On Mon, Nov 16, 2026 at 04:14:40PM +0800, Ziheng Wei wrote:
> + /* not every WTBL entry is a station link, e.g. the global wcid */
> + if (!status->wcid || !status->wcid->sta)
> + return -EINVAL;
> +
> + mlink = container_of(status->wcid, struct mt792x_link_sta, wcid);
> + msta = mlink->sta;
With the check ahead of the container_of(), the global wcid is rejected,
and wcid_to_sta() resolves a secondary link to its station through the
def_wcid that mt7925_mac_sta_add_links() sets.
Reviewed-by: Zhao Li <enderaoelyther@xxxxxxxxx>
Thanks,
Zhao