mac80211: explicitly notify drivers of frame release
authorJohannes Berg <johannes.berg@intel.com>
Thu, 29 Sep 2011 14:04:38 +0000 (16:04 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 30 Sep 2011 19:57:21 +0000 (15:57 -0400)
commit40b96408831f038b1a6b45e8b22cd050f82a3896
treec8ea29b9d01ba28d484cf2d4c4a0cd576d598b79
parent5bade101eceedb716e39bd35b2928c465e3fbd10
mac80211: explicitly notify drivers of frame release

iwlwifi needs to know the number of frames that are
going to be sent to a station while it is asleep so
it can properly handle the uCode blocking of that
station.

Before uAPSD, we got by by telling the device that
a single frame was going to be released whenever we
encountered IEEE80211_TX_CTL_POLL_RESPONSE. With
uAPSD, however, that is no longer possible since
there could be more than a single frame.

To support this model, add a new callback to notify
drivers when frames are going to be released.

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/sta_info.c