]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: unify and fix TX aggregation start
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 23 Mar 2009 16:28:39 +0000 (17:28 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Sat, 28 Mar 2009 00:13:22 +0000 (20:13 -0400)
commit3365174a78d91c34938fa7641c0eaa540540164c
tree4258dec3d4774ee5968f181533c77766c8584b79
parent8321dfd103fa7128e25bc2cfcc54f3c548321f89
mac80211: unify and fix TX aggregation start

When TX aggregation becomes operational, we do a number of steps:
 1) print a debug message
 2) wake the virtual queue
 3) notify the driver

Unfortunately, 1) and 3) are only done if the driver is first to
reply to the aggregation request, it is, however, possible that the
remote station replies before the driver! Thus, unify the code for
this and call the new function ieee80211_agg_tx_operational in both
places where TX aggregation can become operational.

Additionally, rename the driver notification from
IEEE80211_AMPDU_TX_RESUME to IEEE80211_AMPDU_TX_OPERATIONAL.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/main.c
include/net/mac80211.h
net/mac80211/agg-tx.c