mac80211: add vif to flush call
This will allow the low level driver to make decision based on the vif such as queues etc... Since the vif might be NULL, we can't add it to the tracing functions. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> [fix staging rtl8821ae driver] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:

committed by
Johannes Berg

parent
78f22b6a3a
commit
77be2c54c5
@@ -726,13 +726,19 @@ static inline void drv_rfkill_poll(struct ieee80211_local *local)
|
||||
}
|
||||
|
||||
static inline void drv_flush(struct ieee80211_local *local,
|
||||
struct ieee80211_sub_if_data *sdata,
|
||||
u32 queues, bool drop)
|
||||
{
|
||||
struct ieee80211_vif *vif = sdata ? &sdata->vif : NULL;
|
||||
|
||||
might_sleep();
|
||||
|
||||
if (sdata)
|
||||
check_sdata_in_driver(sdata);
|
||||
|
||||
trace_drv_flush(local, queues, drop);
|
||||
if (local->ops->flush)
|
||||
local->ops->flush(&local->hw, queues, drop);
|
||||
local->ops->flush(&local->hw, vif, queues, drop);
|
||||
trace_drv_return_void(local);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user