aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/rx.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/rx.c')
-rw-r--r--net/mac80211/rx.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index c4c95f1db605..648a1d0e6c82 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -669,7 +669,6 @@ static int ap_sta_ps_end(struct sta_info *sta)
669 struct ieee80211_local *local = sdata->local; 669 struct ieee80211_local *local = sdata->local;
670 struct sk_buff *skb; 670 struct sk_buff *skb;
671 int sent = 0; 671 int sent = 0;
672 struct ieee80211_tx_info *info;
673 672
674 atomic_dec(&sdata->bss->num_sta_ps); 673 atomic_dec(&sdata->bss->num_sta_ps);
675 674
@@ -685,13 +684,11 @@ static int ap_sta_ps_end(struct sta_info *sta)
685 684
686 /* Send all buffered frames to the station */ 685 /* Send all buffered frames to the station */
687 while ((skb = skb_dequeue(&sta->tx_filtered)) != NULL) { 686 while ((skb = skb_dequeue(&sta->tx_filtered)) != NULL) {
688 info = IEEE80211_SKB_CB(skb);
689 sent++; 687 sent++;
690 info->flags |= IEEE80211_TX_CTL_REQUEUE; 688 skb->requeue = 1;
691 dev_queue_xmit(skb); 689 dev_queue_xmit(skb);
692 } 690 }
693 while ((skb = skb_dequeue(&sta->ps_tx_buf)) != NULL) { 691 while ((skb = skb_dequeue(&sta->ps_tx_buf)) != NULL) {
694 info = IEEE80211_SKB_CB(skb);
695 local->total_ps_buffered--; 692 local->total_ps_buffered--;
696 sent++; 693 sent++;
697#ifdef CONFIG_MAC80211_VERBOSE_PS_DEBUG 694#ifdef CONFIG_MAC80211_VERBOSE_PS_DEBUG
@@ -699,7 +696,7 @@ static int ap_sta_ps_end(struct sta_info *sta)
699 "since STA not sleeping anymore\n", sdata->dev->name, 696 "since STA not sleeping anymore\n", sdata->dev->name,
700 sta->sta.addr, sta->sta.aid); 697 sta->sta.addr, sta->sta.aid);
701#endif /* CONFIG_MAC80211_VERBOSE_PS_DEBUG */ 698#endif /* CONFIG_MAC80211_VERBOSE_PS_DEBUG */
702 info->flags |= IEEE80211_TX_CTL_REQUEUE; 699 skb->requeue = 1;
703 dev_queue_xmit(skb); 700 dev_queue_xmit(skb);
704 } 701 }
705 702