aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-06-18 11:25:11 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-07-24 15:05:31 -0400
commit3d34deb6737b1ae1f8b7817b57d603807f5d88ea (patch)
tree7b6cce16373973b5b7f7de6711536e5fd03c1677 /net/mac80211
parent72bce62775db0315511474e8d8f8e25d25b48366 (diff)
mac80211: fix ieee80211_xmit call context
ieee80211_xmit() cannot be called with tasklets enabled because it is normally called from within a tasklet. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/tx.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 7adaeb2c53e8..a204092e8356 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -2241,5 +2241,12 @@ void ieee80211_tx_skb(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb,
2241 if (!encrypt) 2241 if (!encrypt)
2242 info->flags |= IEEE80211_TX_INTFL_DONT_ENCRYPT; 2242 info->flags |= IEEE80211_TX_INTFL_DONT_ENCRYPT;
2243 2243
2244 /*
2245 * The other path calling ieee80211_xmit is from the tasklet,
2246 * and while we can handle concurrent transmissions locking
2247 * requirements are that we do not come into tx with bhs on.
2248 */
2249 local_bh_disable();
2244 ieee80211_xmit(sdata, skb); 2250 ieee80211_xmit(sdata, skb);
2251 local_bh_enable();
2245} 2252}