wifi: mt76: mt7925: drop deferred NAN local schedule update handling

The deferred NAN local schedule update path in
mt7925_nan_local_sched_changed() is removed for now; it will be
implemented separately. Drop the now set-but-unused ret variable
along with it.

Fixes: 0f3605e4f8de ("wifi: mt76: mt7925: wire up NAN operations")
Co-developed-by: Sean Wang <[email protected]>
Signed-off-by: Sean Wang <[email protected]>
Signed-off-by: Stella Liu <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Stella Liu
2026-08-25 11:25:29 +02:00
committed by Felix Fietkau
parent dca87ee6fd
commit 1f394b9c42
+1 -14
View File
@@ -602,15 +602,12 @@ void mt7925_nan_local_sched_changed(struct mt792x_dev *dev,
{
struct mt7925_nan_common_hdr *hdr;
struct mt76_dev *mdev;
bool deferred;
struct sk_buff *skb;
int ret = -ENOMEM;
if (!dev || !vif)
return;
mdev = &dev->mt76;
deferred = vif->cfg.nan_sched.deferred;
mt792x_mutex_acquire(dev);
@@ -627,19 +624,9 @@ void mt7925_nan_local_sched_changed(struct mt792x_dev *dev,
goto out;
}
ret = mt76_mcu_skb_send_msg(mdev, skb,
MCU_UNI_CMD(NAN), true);
mt76_mcu_skb_send_msg(mdev, skb, MCU_UNI_CMD(NAN), true);
out:
mt792x_mutex_release(dev);
if (deferred) {
if (ret)
dev_err(mdev->dev,
"NAN: local schedule update failed: %d\n",
ret);
ieee80211_nan_sched_update_done(vif);
}
}
static int mt7925_nan_peer_rec_tlv(struct sk_buff *skb,