mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
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:
committed by
Felix Fietkau
parent
dca87ee6fd
commit
1f394b9c42
+1
-14
@@ -602,15 +602,12 @@ void mt7925_nan_local_sched_changed(struct mt792x_dev *dev,
|
|||||||
{
|
{
|
||||||
struct mt7925_nan_common_hdr *hdr;
|
struct mt7925_nan_common_hdr *hdr;
|
||||||
struct mt76_dev *mdev;
|
struct mt76_dev *mdev;
|
||||||
bool deferred;
|
|
||||||
struct sk_buff *skb;
|
struct sk_buff *skb;
|
||||||
int ret = -ENOMEM;
|
|
||||||
|
|
||||||
if (!dev || !vif)
|
if (!dev || !vif)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
mdev = &dev->mt76;
|
mdev = &dev->mt76;
|
||||||
deferred = vif->cfg.nan_sched.deferred;
|
|
||||||
|
|
||||||
mt792x_mutex_acquire(dev);
|
mt792x_mutex_acquire(dev);
|
||||||
|
|
||||||
@@ -627,19 +624,9 @@ void mt7925_nan_local_sched_changed(struct mt792x_dev *dev,
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = mt76_mcu_skb_send_msg(mdev, skb,
|
mt76_mcu_skb_send_msg(mdev, skb, MCU_UNI_CMD(NAN), true);
|
||||||
MCU_UNI_CMD(NAN), true);
|
|
||||||
out:
|
out:
|
||||||
mt792x_mutex_release(dev);
|
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,
|
static int mt7925_nan_peer_rec_tlv(struct sk_buff *skb,
|
||||||
|
|||||||
Reference in New Issue
Block a user