]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: allow the driver to send EOSP when needed
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 17 Nov 2015 08:24:36 +0000 (10:24 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 4 Dec 2015 13:43:32 +0000 (14:43 +0100)
commitbca1dec692993bd7e5fc6dd9aa7d263421eb872e
tree440e48a4356a939a982ac047ca2a9c9b55cde022
parenta1b0d101e9a4e32620a65d5ad35dc08a6a4d102b
mac80211: allow the driver to send EOSP when needed

This can happen when the driver needs to send less frames
than expected and then needs to close the SP.
Mac80211 still needs to set the more_data properly based
on its buffer state (ps_tx_buffer and buffered frames on
other TIDs).
To that end, refactor the code that delivers frames upon
uAPSD trigger frames to be able to get only the more_data
bit without actually delivering those frames in case the
driver is just asking to set a NDP with EOSP and MORE_DATA
bit properly set.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/sta_info.c
net/mac80211/trace.h