]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: let flush() drop packets when possible
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 7 Jan 2015 13:42:39 +0000 (15:42 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 14 Jan 2015 08:31:18 +0000 (09:31 +0100)
commita2a9c8f2c24cb42a7a3bbf9131bc507c25229f81
treeb1015543f700d19b63f3674f214e20e14e67459d
parentdd68dbc78e652ee86b67ec1b462b25a4cf541e58
mac80211: let flush() drop packets when possible

When roaming / suspending, it makes no sense to wait until
the transmit queues of the device are empty. In extreme
condition they can be starved (VO saturating the air), but
even in regular cases, it is pointless to delay the roaming
because the low level driver is trying to send packets to
an AP which is far away. We'd rather drop these packets and
let TCP retransmit if needed. This will allow to speed up
the roaming.

For suspend, the explanation is even more trivial.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
net/mac80211/ieee80211_i.h
net/mac80211/iface.c
net/mac80211/mlme.c
net/mac80211/offchannel.c
net/mac80211/pm.c
net/mac80211/scan.c
net/mac80211/tdls.c
net/mac80211/tx.c
net/mac80211/util.c