All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mac80211: End the MPSP even if EOSP frame was not received
@ 2016-07-13  7:04 Masashi Honma
  2016-07-13 13:50 ` Bob Copeland
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Masashi Honma @ 2016-07-13  7:04 UTC (permalink / raw)
  To: johannes; +Cc: linux-wireless, j, me, Masashi Honma

The mesh STA sends QoS frame with EOSP (end of service period)
subfiled=1 to end the MPSP(mesh peer service period). Previously, if
the frame was not acked by peer, the mesh STA did not end the MPSP.
This patch ends the MPSP even if the QoS frame was no acked.

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
---
 net/mac80211/status.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/net/mac80211/status.c b/net/mac80211/status.c
index c6d5c72..a2a6826 100644
--- a/net/mac80211/status.c
+++ b/net/mac80211/status.c
@@ -771,6 +771,13 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
 			clear_sta_flag(sta, WLAN_STA_SP);
 
 		acked = !!(info->flags & IEEE80211_TX_STAT_ACK);
+
+		/* mesh Peer Service Period support */
+		if (ieee80211_vif_is_mesh(&sta->sdata->vif) &&
+		    ieee80211_is_data_qos(fc))
+			ieee80211_mpsp_trigger_process(
+				ieee80211_get_qos_ctl(hdr), sta, true, acked);
+
 		if (!acked && test_sta_flag(sta, WLAN_STA_PS_STA)) {
 			/*
 			 * The STA is in power save mode, so assume
@@ -781,13 +788,6 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
 			return;
 		}
 
-		/* mesh Peer Service Period support */
-		if (ieee80211_vif_is_mesh(&sta->sdata->vif) &&
-		    ieee80211_is_data_qos(fc))
-			ieee80211_mpsp_trigger_process(
-					ieee80211_get_qos_ctl(hdr),
-					sta, true, acked);
-
 		if (ieee80211_hw_check(&local->hw, HAS_RATE_CONTROL) &&
 		    (ieee80211_is_data(hdr->frame_control)) &&
 		    (rates_idx != -1))
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-08-03  6:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-13  7:04 [PATCH] mac80211: End the MPSP even if EOSP frame was not received Masashi Honma
2016-07-13 13:50 ` Bob Copeland
2016-07-19  2:16   ` Masashi Honma
2016-07-19 10:40     ` Bob Copeland
2016-07-20  7:11       ` Masashi Honma
2016-07-20 11:44         ` Bob Copeland
2016-08-02  7:47 ` Johannes Berg
2016-08-02  8:16   ` Masashi Honma
2016-08-02  8:16 ` [PATCH v2] mac80211: End the MPSP even if EOSP frame was not acked Masashi Honma
2016-08-03  6:56   ` Johannes Berg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.