Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352709
b: refs/heads/master
c: 65f704a
h: refs/heads/master
i:
  352707: f7feb14
v: v3
  • Loading branch information
Johannes Berg committed Feb 15, 2013
1 parent 6b7e164 commit 8fecb19
Show file tree
Hide file tree
Showing 3 changed files with 5 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: 441a33baf1805861354fb9e3149c000311b6996f
refs/heads/master: 65f704a52ec5db356c58f8ba53a31d3aef02737f
5 changes: 2 additions & 3 deletions trunk/net/mac80211/sta_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,6 @@ void sta_info_recalc_tim(struct sta_info *sta)
{
struct ieee80211_local *local = sta->local;
struct ps_data *ps;
unsigned long flags;
bool indicate_tim = false;
u8 ignore_for_tim = sta->sta.uapsd_queues;
int ac;
Expand Down Expand Up @@ -628,7 +627,7 @@ void sta_info_recalc_tim(struct sta_info *sta)
}

done:
spin_lock_irqsave(&local->tim_lock, flags);
spin_lock_bh(&local->tim_lock);

if (indicate_tim)
__bss_tim_set(ps->tim, id);
Expand All @@ -641,7 +640,7 @@ void sta_info_recalc_tim(struct sta_info *sta)
local->tim_in_locked_section = false;
}

spin_unlock_irqrestore(&local->tim_lock, flags);
spin_unlock_bh(&local->tim_lock);
}

static bool sta_info_buffer_expired(struct sta_info *sta, struct sk_buff *skb)
Expand Down
6 changes: 2 additions & 4 deletions trunk/net/mac80211/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2364,11 +2364,9 @@ static int ieee80211_beacon_add_tim(struct ieee80211_sub_if_data *sdata,
if (local->tim_in_locked_section) {
__ieee80211_beacon_add_tim(sdata, ps, skb);
} else {
unsigned long flags;

spin_lock_irqsave(&local->tim_lock, flags);
spin_lock(&local->tim_lock);
__ieee80211_beacon_add_tim(sdata, ps, skb);
spin_unlock_irqrestore(&local->tim_lock, flags);
spin_unlock(&local->tim_lock);
}

return 0;
Expand Down

0 comments on commit 8fecb19

Please sign in to comment.