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)
commitb1720231ca07dee3382980f3b25e6581bd2e54e9
tree4258dec3d4774ee5968f181533c77766c8584b79
parent1870cd71e87da1a1afb904f2c84086f487a07135
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