wifi: mt76: mt7925: skip EHT MLD TLV on non-MLD and pass conn_state for sta_cmd
authorMing Yen Hsieh <mingyen.hsieh@mediatek.com>
Mon, 18 Aug 2025 03:02:01 +0000 (11:02 +0800)
committerFelix Fietkau <nbd@nbd.name>
Wed, 27 Aug 2025 09:03:55 +0000 (11:03 +0200)
commitdd6e89cad9951acef3723f3f21b2e892a23b371b
treee62a1ddcfc90eb999ae91a30284c08624ab0751f
parentc22769de25095c6777e8acb68a1349a3257fc955
wifi: mt76: mt7925: skip EHT MLD TLV on non-MLD and pass conn_state for sta_cmd

Return early in mt7925_mcu_sta_eht_mld_tlv() for non-MLD vifs to avoid bogus
MLD TLVs, and pass the proper connection state to sta_basic TLV.

Cc: stable@vger.kernel.org
Fixes: cb1353ef3473 ("wifi: mt76: mt7925: integrate *mlo_sta_cmd and *sta_cmd")
Reported-by: Tal Inbar <inbartdev@gmail.com>
Tested-by: Tal Inbar <inbartdev@gmail.com>
Signed-off-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
Link: https://patch.msgid.link/20250818030201.997940-1-mingyen.hsieh@mediatek.com
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c