package/devel/binutils: Update to 2.27
[openwrt/staging/chunkeey.git] / package / kernel / mac80211 / patches / 331-mac80211-End-the-MPSP-even-if-EOSP-frame-was-not-rec.patch
1 From: Masashi Honma <masashi.honma@gmail.com>
2 Date: Wed, 13 Jul 2016 16:04:35 +0900
3 Subject: [PATCH] mac80211: End the MPSP even if EOSP frame was not received
4
5 The mesh STA sends QoS frame with EOSP (end of service period)
6 subfiled=1 to end the MPSP(mesh peer service period). Previously, if
7 the frame was not acked by peer, the mesh STA did not end the MPSP.
8 This patch ends the MPSP even if the QoS frame was no acked.
9
10 Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
11 ---
12
13 --- a/net/mac80211/status.c
14 +++ b/net/mac80211/status.c
15 @@ -784,6 +784,13 @@ void ieee80211_tx_status(struct ieee8021
16 clear_sta_flag(sta, WLAN_STA_SP);
17
18 acked = !!(info->flags & IEEE80211_TX_STAT_ACK);
19 +
20 + /* mesh Peer Service Period support */
21 + if (ieee80211_vif_is_mesh(&sta->sdata->vif) &&
22 + ieee80211_is_data_qos(fc))
23 + ieee80211_mpsp_trigger_process(
24 + ieee80211_get_qos_ctl(hdr), sta, true, acked);
25 +
26 if (!acked && test_sta_flag(sta, WLAN_STA_PS_STA)) {
27 /*
28 * The STA is in power save mode, so assume
29 @@ -794,13 +801,6 @@ void ieee80211_tx_status(struct ieee8021
30 return;
31 }
32
33 - /* mesh Peer Service Period support */
34 - if (ieee80211_vif_is_mesh(&sta->sdata->vif) &&
35 - ieee80211_is_data_qos(fc))
36 - ieee80211_mpsp_trigger_process(
37 - ieee80211_get_qos_ctl(hdr),
38 - sta, true, acked);
39 -
40 if (ieee80211_hw_check(&local->hw, HAS_RATE_CONTROL) &&
41 (ieee80211_is_data(hdr->frame_control)) &&
42 (rates_idx != -1))