]> 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)
commit6bcb1c73162312e2a721163274daae8c647dbedd
treeb1015543f700d19b63f3674f214e20e14e67459d
parentc2ac26d02e575ab0ddbf993fc32579aa540a6b05
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