]> 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)
commit1bed72828539c0044fe16c3655c1951d23dab994
tree22dc87f3a538de0b26473cdd96d79c93f61c8f2b
parent33d81d1d804c0dbb935e297ec8036eaf564287b4
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