]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: mt76: mt7925: resolve primary mlink via def_wcid
authorSean Wang <sean.wang@mediatek.com>
Fri, 6 Mar 2026 23:22:24 +0000 (17:22 -0600)
committerFelix Fietkau <nbd@nbd.name>
Tue, 24 Mar 2026 15:49:31 +0000 (15:49 +0000)
commitecc57c9899e60456015fb355bfcf7650af7d13c1
treec311dcba3cb882353133bd06433a3958becfe3db
parentdc019e3294c7e3c6e997bb11732d46ce0d9211e9
wifi: mt76: mt7925: resolve primary mlink via def_wcid

Use mlink->wcid.def_wcid to obtain the primary mlink in
mt7925_mac_link_sta_add() instead of calling mt792x_sta_to_link().

The primary link context is already carried by the WCID, so the extra
lookup is redundant. This makes the add path follow the existing WCID
association directly.

No functional change intended.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Link: https://patch.msgid.link/20260306232238.2039675-6-sean.wang@kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7925/main.c