]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: rework the pending packets code
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 23 Mar 2009 16:28:37 +0000 (17:28 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Sat, 28 Mar 2009 00:13:21 +0000 (20:13 -0400)
commit4314adfe634d6cbba18b907ab19e932bccfffff8
treec2e667d92d280d404dd964548aefedd43996645c
parentbac9afdf526c061037bbf00d57c9279bb4c2a182
mac80211: rework the pending packets code

The pending packets code is quite incomprehensible, uses memory barriers
nobody really understands, etc. This patch reworks it entirely, using
the queue spinlock, proper stop bits and the skb queues themselves to
indicate whether packets are pending or not (rather than a separate
variable like before).

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ieee80211_i.h
net/mac80211/main.c
net/mac80211/tx.c
net/mac80211/util.c