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>
This commit is contained in:

committed by
Johannes Berg

parent
60854fd945
commit
f59374eb42
@@ -3354,6 +3354,10 @@ enum ieee80211_reconfig_type {
|
||||
* the function call.
|
||||
*
|
||||
* @wake_tx_queue: Called when new packets have been added to the queue.
|
||||
* @sync_rx_queues: Process all pending frames in RSS queues. This is a
|
||||
* synchronization which is needed in case driver has in its RSS queues
|
||||
* pending frames that were received prior to the control path action
|
||||
* currently taken (e.g. disassociation) but are not processed yet.
|
||||
*/
|
||||
struct ieee80211_ops {
|
||||
void (*tx)(struct ieee80211_hw *hw,
|
||||
@@ -3591,6 +3595,7 @@ struct ieee80211_ops {
|
||||
|
||||
void (*wake_tx_queue)(struct ieee80211_hw *hw,
|
||||
struct ieee80211_txq *txq);
|
||||
void (*sync_rx_queues)(struct ieee80211_hw *hw);
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user