aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/status.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/status.c')
-rw-r--r--net/mac80211/status.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/net/mac80211/status.c b/net/mac80211/status.c
index 67c428735a51..45628f37c083 100644
--- a/net/mac80211/status.c
+++ b/net/mac80211/status.c
@@ -181,7 +181,7 @@ static void ieee80211_frame_acked(struct sta_info *sta, struct sk_buff *skb)
181 struct ieee80211_local *local = sta->local; 181 struct ieee80211_local *local = sta->local;
182 struct ieee80211_sub_if_data *sdata = sta->sdata; 182 struct ieee80211_sub_if_data *sdata = sta->sdata;
183 183
184 if (local->hw.flags & IEEE80211_HW_REPORTS_TX_ACK_STATUS) 184 if (ieee80211_hw_check(&local->hw, REPORTS_TX_ACK_STATUS))
185 sta->last_rx = jiffies; 185 sta->last_rx = jiffies;
186 186
187 if (ieee80211_is_data_qos(mgmt->frame_control)) { 187 if (ieee80211_is_data_qos(mgmt->frame_control)) {
@@ -414,8 +414,7 @@ static void ieee80211_tdls_td_tx_handle(struct ieee80211_local *local,
414 414
415 if (is_teardown) { 415 if (is_teardown) {
416 /* This mechanism relies on being able to get ACKs */ 416 /* This mechanism relies on being able to get ACKs */
417 WARN_ON(!(local->hw.flags & 417 WARN_ON(!ieee80211_hw_check(&local->hw, REPORTS_TX_ACK_STATUS));
418 IEEE80211_HW_REPORTS_TX_ACK_STATUS));
419 418
420 /* Check if peer has ACKed */ 419 /* Check if peer has ACKed */
421 if (flags & IEEE80211_TX_STAT_ACK) { 420 if (flags & IEEE80211_TX_STAT_ACK) {
@@ -731,7 +730,7 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
731 ieee80211_get_qos_ctl(hdr), 730 ieee80211_get_qos_ctl(hdr),
732 sta, true, acked); 731 sta, true, acked);
733 732
734 if ((local->hw.flags & IEEE80211_HW_HAS_RATE_CONTROL) && 733 if (ieee80211_hw_check(&local->hw, HAS_RATE_CONTROL) &&
735 (ieee80211_is_data(hdr->frame_control)) && 734 (ieee80211_is_data(hdr->frame_control)) &&
736 (rates_idx != -1)) 735 (rates_idx != -1))
737 sta->last_tx_rate = info->status.rates[rates_idx]; 736 sta->last_tx_rate = info->status.rates[rates_idx];
@@ -798,11 +797,11 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
798 ieee80211_frame_acked(sta, skb); 797 ieee80211_frame_acked(sta, skb);
799 798
800 if ((sta->sdata->vif.type == NL80211_IFTYPE_STATION) && 799 if ((sta->sdata->vif.type == NL80211_IFTYPE_STATION) &&
801 (local->hw.flags & IEEE80211_HW_REPORTS_TX_ACK_STATUS)) 800 ieee80211_hw_check(&local->hw, REPORTS_TX_ACK_STATUS))
802 ieee80211_sta_tx_notify(sta->sdata, (void *) skb->data, 801 ieee80211_sta_tx_notify(sta->sdata, (void *) skb->data,
803 acked, info->status.tx_time); 802 acked, info->status.tx_time);
804 803
805 if (local->hw.flags & IEEE80211_HW_REPORTS_TX_ACK_STATUS) { 804 if (ieee80211_hw_check(&local->hw, REPORTS_TX_ACK_STATUS)) {
806 if (info->flags & IEEE80211_TX_STAT_ACK) { 805 if (info->flags & IEEE80211_TX_STAT_ACK) {
807 if (sta->lost_packets) 806 if (sta->lost_packets)
808 sta->lost_packets = 0; 807 sta->lost_packets = 0;
@@ -853,7 +852,7 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
853 } 852 }
854 853
855 if (ieee80211_is_nullfunc(fc) && ieee80211_has_pm(fc) && 854 if (ieee80211_is_nullfunc(fc) && ieee80211_has_pm(fc) &&
856 (local->hw.flags & IEEE80211_HW_REPORTS_TX_ACK_STATUS) && 855 ieee80211_hw_check(&local->hw, REPORTS_TX_ACK_STATUS) &&
857 !(info->flags & IEEE80211_TX_CTL_INJECTED) && 856 !(info->flags & IEEE80211_TX_CTL_INJECTED) &&
858 local->ps_sdata && !(local->scanning)) { 857 local->ps_sdata && !(local->scanning)) {
859 if (info->flags & IEEE80211_TX_STAT_ACK) { 858 if (info->flags & IEEE80211_TX_STAT_ACK) {