Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266017
b: refs/heads/master
c: cd0b8d8
h: refs/heads/master
i:
  266015: 03d3b2a
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Sep 14, 2011
1 parent 866096f commit 6edb5af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0eff8fcd290dc7f25d393fb3692e8e673babdeeb
refs/heads/master: cd0b8d89c75233d8468f3c585e4e022f6779ac84
10 changes: 3 additions & 7 deletions trunk/net/mac80211/sta_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -691,14 +691,13 @@ void sta_info_clear_tim_bit(struct sta_info *sta)
spin_unlock_irqrestore(&sta->local->sta_lock, flags);
}

static int sta_info_buffer_expired(struct sta_info *sta,
struct sk_buff *skb)
static bool sta_info_buffer_expired(struct sta_info *sta, struct sk_buff *skb)
{
struct ieee80211_tx_info *info;
int timeout;

if (!skb)
return 0;
return false;

info = IEEE80211_SKB_CB(skb);

Expand All @@ -718,9 +717,6 @@ static bool sta_info_cleanup_expire_buffered(struct ieee80211_local *local,
unsigned long flags;
struct sk_buff *skb;

if (skb_queue_empty(&sta->ps_tx_buf))
return false;

for (;;) {
spin_lock_irqsave(&sta->ps_tx_buf.lock, flags);
skb = skb_peek(&sta->ps_tx_buf);
Expand All @@ -745,7 +741,7 @@ static bool sta_info_cleanup_expire_buffered(struct ieee80211_local *local,
sta_info_clear_tim_bit(sta);
}

return true;
return !skb_queue_empty(&sta->ps_tx_buf);
}

static int __must_check __sta_info_destroy(struct sta_info *sta)
Expand Down

0 comments on commit 6edb5af

Please sign in to comment.