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)
commit3b24f4c65386dc0f2efb41027bc6e410ea2c0049
treeb1015543f700d19b63f3674f214e20e14e67459d
parent0efbb786f1a3e13d28861ff41aae8dc4be314608
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