]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: synchronize driver rx queues before removing a station
authorSara Sharon <sara.sharon@intel.com>
Wed, 2 Mar 2016 21:46:14 +0000 (23:46 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 5 Apr 2016 08:56:34 +0000 (10:56 +0200)
commitf535577a3a081406b362226cb6de61ab4d7986cd
tree22dc87f3a538de0b26473cdd96d79c93f61c8f2b
parent0ef9e26daa106f925140ca7230b8b8b9f810473c
mac80211: synchronize driver rx queues before removing a station

Some devices, like iwlwifi, have RSS queues. This may cause a
situation where a disassociation is handled in control path and
results in station removal while there are prior RX frames
that were still not processed in other queues. When they will
be processed the station will be gone, and the frames will be
dropped.
Add a synchronization interface to avoid that. When driver returns
from the synchronization mac80211 may remove the station.

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