From 1b9e7dca2ac7038927bae0210fdf07934254296e Mon Sep 17 00:00:00 2001 From: bot08 <71845954+bot08@users.noreply.github.com> Date: Sat, 9 May 2026 01:35:49 +0300 Subject: [PATCH 1/2] wifi: mt7603: fix U-APSD EOSP signaling before frame transmission Signed-off-by: bot08 <71845954+bot08@users.noreply.github.com> --- mt7603/main.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mt7603/main.c b/mt7603/main.c index 0f3a75089..adb8a8ec1 100644 --- a/mt7603/main.c +++ b/mt7603/main.c @@ -445,7 +445,7 @@ mt7603_release_buffered_frames(struct ieee80211_hw *hw, struct sk_buff *skb, *tmp; __skb_queue_head_init(&list); - + mt7603_wtbl_set_ps(dev, msta, false); spin_lock_bh(&dev->ps_lock); @@ -460,18 +460,19 @@ mt7603_release_buffered_frames(struct ieee80211_hw *hw, __skb_unlink(skb, &msta->psq); mt7603_ps_set_more_data(skb); __skb_queue_tail(&list, skb); - nframes--; + if (nframes > 0) + nframes--; } spin_unlock_bh(&dev->ps_lock); - if (!skb_queue_empty(&list)) - ieee80211_sta_eosp(sta); - mt7603_ps_tx_list(dev, &list); - if (nframes) + if (nframes) { mt76_release_buffered_frames(hw, sta, tids, nframes, reason, more_data); + } else { + ieee80211_sta_eosp(sta); + } } static int From e568ab1b6ff0e2351ed82b5f6341d63f156054bf Mon Sep 17 00:00:00 2001 From: bot08 <71845954+bot08@users.noreply.github.com> Date: Sat, 9 May 2026 02:16:47 +0300 Subject: [PATCH 2/2] typo Signed-off-by: bot08 <71845954+bot08@users.noreply.github.com> --- mt7603/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mt7603/main.c b/mt7603/main.c index adb8a8ec1..a4a321a4c 100644 --- a/mt7603/main.c +++ b/mt7603/main.c @@ -445,7 +445,7 @@ mt7603_release_buffered_frames(struct ieee80211_hw *hw, struct sk_buff *skb, *tmp; __skb_queue_head_init(&list); - + mt7603_wtbl_set_ps(dev, msta, false); spin_lock_bh(&dev->ps_lock);