FAILED: patch "[PATCH] wifi: mt76: mt7925: integrate *mlo_sta_cmd and *sta_cmd" failed to apply to 6.13-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 6.13-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.13.y
git checkout FETCH_HEAD
git cherry-pick -x cb1353ef34735ec1e5d9efa1fe966f05ff1dc1e1
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2025041726-ashes-chirpy-c880@gregkh' --subject-prefix 'PATCH 6.13.y' HEAD^..
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From cb1353ef34735ec1e5d9efa1fe966f05ff1dc1e1 Mon Sep 17 00:00:00 2001
From: Ming Yen Hsieh <[email protected]>
Date: Tue, 4 Mar 2025 16:08:50 -0800
Subject: [PATCH] wifi: mt76: mt7925: integrate *mlo_sta_cmd and *sta_cmd
Integrate *mlo_sta_cmd and *sta_cmd for the MLO firmware.
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c +4 -55
@@ -1814,49 +1814,6 @@ mt7925_mcu_sta_mld_tlv(struct sk_buff *skb, } } -static int -mt7925_mcu_sta_cmd (struct mt76_phy *phy, -struct mt76_sta_cmd_info *info) -{ -struct mt76_vif_link *mvif = (struct mt76_vif_link *)info->vif->drv_priv; -struct mt76_dev *dev = phy->dev; -struct sk_buff *skb; -int conn_state; - - skb =__mt76_connac_mcu_alloc_sta_req (dev, mvif, info->wcid, -MT7925_STA_UPDATE_MAX_SIZE ); -if (IS_ERR (skb)) -return PTR_ERR (skb); - - conn_state = info->enable ?CONN_STATE_PORT_SECURE : -CONN_STATE_DISCONNECT ; -if (info->link_sta) -mt76_connac_mcu_sta_basic_tlv (dev, skb, info->link_conf, - info->link_sta, - conn_state, info->newly); -if (info->link_sta && info->enable) { -mt7925_mcu_sta_phy_tlv (skb, info->vif, info->link_sta); -mt7925_mcu_sta_ht_tlv (skb, info->link_sta); -mt7925_mcu_sta_vht_tlv (skb, info->link_sta); -mt76_connac_mcu_sta_uapsd (skb, info->vif, info->link_sta->sta); -mt7925_mcu_sta_amsdu_tlv (skb, info->vif, info->link_sta); -mt7925_mcu_sta_he_tlv (skb, info->link_sta); -mt7925_mcu_sta_he_6g_tlv (skb, info->link_sta); -mt7925_mcu_sta_eht_tlv (skb, info->link_sta); -mt7925_mcu_sta_rate_ctrl_tlv (skb, info->vif, - info->link_sta); -mt7925_mcu_sta_state_v2_tlv (phy, skb, info->link_sta, - info->vif, info->rcpi, - info->state); -mt7925_mcu_sta_mld_tlv (skb, info->vif, info->link_sta->sta); - } - -if (info->enable) -mt7925_mcu_sta_hdr_trans_tlv (skb, info->vif, info->link_sta); - -return mt76_mcu_skb_send_msg (dev, skb, info->cmd, true); -} -static void mt7925_mcu_sta_remove_tlv (struct sk_buff *skb) {
@@ -1869,8 +1826,8 @@ mt7925_mcu_sta_remove_tlv(struct sk_buff *skb) }static int -mt7925_mcu_mlo_sta_cmd (struct mt76_phy *phy, -struct mt76_sta_cmd_info *info) +mt7925_mcu_sta_cmd (struct mt76_phy *phy, +struct mt76_sta_cmd_info *info) {struct mt792x_vif *mvif = (struct mt792x_vif *)info->vif->drv_priv;struct mt76_dev *dev = phy->dev;
@@ -1884,12 +1841,10 @@ mt7925_mcu_mlo_sta_cmd(struct mt76_phy *phy,if (IS_ERR (skb))return PTR_ERR (skb); -if (info->enable) +if (info->enable && info->link_sta) {mt76_connac_mcu_sta_basic_tlv (dev, skb, info->link_conf, info->link_sta, info->enable, info->newly); - -if (info->enable && info->link_sta) {mt7925_mcu_sta_phy_tlv (skb, info->vif, info->link_sta);mt7925_mcu_sta_ht_tlv (skb, info->link_sta);mt7925_mcu_sta_vht_tlv (skb, info->link_sta);
@@ -1940,7 +1895,6 @@ int mt7925_mcu_sta_update(struct mt792x_dev *dev, };struct mt792x_sta *msta;struct mt792x_link_sta *mlink; -int err;if (link_sta) { msta = (struct mt792x_sta *)link_sta->sta->drv_priv;
@@ -1949,12 +1903,7 @@ int mt7925_mcu_sta_update(struct mt792x_dev *dev, info.wcid = link_sta ? &mlink->wcid : &mvif->sta.deflink.wcid; info.newly = state !=MT76_STA_INFO_STATE_ASSOC ; -if (ieee80211_vif_is_mld (vif)) - err =mt7925_mcu_mlo_sta_cmd (&dev->mphy, &info); -else - err =mt7925_mcu_sta_cmd (&dev->mphy, &info); - -return err; +return mt7925_mcu_sta_cmd (&dev->mphy, &info); } int mt7925_mcu_set_beacon_filter(struct mt792x_dev *dev,