mac80211: sync driver before TX
authorJohannes Berg <johannes.berg@intel.com>
Tue, 19 Jul 2011 08:39:53 +0000 (10:39 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 20 Jul 2011 19:04:35 +0000 (15:04 -0400)
commitb2abb6e2bcb91ae384c5857dffd0bb97b76c7a68
tree4f6381c0a7b4dc8a1f9cd3c3bf2b94a6c971c737
parente0d687bd9df218ba3d97aac15919d30816d72dcb
mac80211: sync driver before TX

In P2P client mode, the GO (AP) to connect to might
have periods of time where it is not available due
to powersave. To allow the driver to sync with it
and send frames to the GO only when it is available
add a new callback tx_sync (and the corresponding
finish_tx_sync). These callbacks can sleep unlike
the actual TX.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/mac80211.h
net/mac80211/driver-ops.h
net/mac80211/driver-trace.h
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c
net/mac80211/work.c