]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitf59374eb427fb1377fdb7b8b3691c48e0c77a3c4
tree22dc87f3a538de0b26473cdd96d79c93f61c8f2b
parent60854fd94573f0d3b80b55b40cf0140a0430f3ab
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