[PATCH v2] wifi: mt76: mt7925: fix mt7925_reverse_frag0_hdr_trans() for MLO

Zhao Li enderaoelyther at gmail.com
Mon Nov 16 00:45:22 PST 2026


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 at gmail.com>

Thanks,
Zhao



More information about the Linux-mediatek mailing list