]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: mt76: mt7925: simpify mt7925_mcu_sta_cmd logic by removing fw_offload
authorSean Wang <sean.wang@mediatek.com>
Thu, 13 Jun 2024 03:02:41 +0000 (20:02 -0700)
committerFelix Fietkau <nbd@nbd.name>
Tue, 9 Jul 2024 21:02:00 +0000 (23:02 +0200)
The mt7925 only supports offload firmware making the fw_offload check
redundant. This update simplifies the logic in "mt7925_mcu_sta_cmd"
by removing the unnecessary check for fw_offoad.

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

index 09ffa7abe8aa48878dfffd0c1b29a8ad2fbe8b3b..a67d8dd6075f41287d7d8ab567d39bd097e2253c 100644 (file)
@@ -1644,7 +1644,7 @@ mt7925_mcu_sta_cmd(struct mt76_phy *phy,
        if (IS_ERR(skb))
                return PTR_ERR(skb);
 
-       if (info->link_sta || !info->offload_fw)
+       if (info->link_sta)
                mt76_connac_mcu_sta_basic_tlv(dev, skb, info->vif,
                                              info->link_sta,
                                              info->enable, info->newly);