Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203015
b: refs/heads/master
c: 85ad181
h: refs/heads/master
i:
  203013: a84f03f
  203011: b993ef7
  203007: e8902f6
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Jun 14, 2010
1 parent adbbdf6 commit acda5c5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 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: cfcdbde35e2b621cf56bedc38a3a81e8c28addb9
refs/heads/master: 85ad181ea78861f69b007599cec9e6ba33fcdf8a
4 changes: 4 additions & 0 deletions trunk/drivers/net/wireless/ath/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1769,6 +1769,8 @@ static int ath9k_ampdu_action(struct ieee80211_hw *hw,
struct ath_softc *sc = aphy->sc;
int ret = 0;

local_bh_disable();

switch (action) {
case IEEE80211_AMPDU_RX_START:
if (!(sc->sc_flags & SC_OP_RXAGGR))
Expand Down Expand Up @@ -1798,6 +1800,8 @@ static int ath9k_ampdu_action(struct ieee80211_hw *hw,
"Unknown AMPDU action\n");
}

local_bh_enable();

return ret;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/include/net/mac80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,7 @@ enum ieee80211_ampdu_mlme_action {
* is the first frame we expect to perform the action on. Notice
* that TX/RX_STOP can pass NULL for this parameter.
* Returns a negative error code on failure.
* The callback must be atomic.
* The callback can sleep.
*
* @get_survey: Return per-channel survey information
*
Expand Down
3 changes: 1 addition & 2 deletions trunk/net/mac80211/driver-ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,10 @@ static inline int drv_ampdu_action(struct ieee80211_local *local,

might_sleep();

local_bh_disable();
if (local->ops->ampdu_action)
ret = local->ops->ampdu_action(&local->hw, &sdata->vif, action,
sta, tid, ssn);
local_bh_enable();

trace_drv_ampdu_action(local, sdata, action, sta, tid, ssn, ret);
return ret;
}
Expand Down

0 comments on commit acda5c5

Please sign in to comment.