diff options
Diffstat (limited to 'net/mac80211/driver-ops.h')
| -rw-r--r-- | net/mac80211/driver-ops.h | 13 | 
1 files changed, 13 insertions, 0 deletions
diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h index 9c0d62bb0ea..00a0685f240 100644 --- a/net/mac80211/driver-ops.h +++ b/net/mac80211/driver-ops.h @@ -552,4 +552,17 @@ static inline void drv_get_ringparam(struct ieee80211_local *local,  	trace_drv_return_void(local);  } +static inline bool drv_tx_frames_pending(struct ieee80211_local *local) +{ +	bool ret = false; + +	might_sleep(); + +	trace_drv_tx_frames_pending(local); +	if (local->ops->tx_frames_pending) +		ret = local->ops->tx_frames_pending(&local->hw); +	trace_drv_return_bool(local, ret); + +	return ret; +}  #endif /* __MAC80211_DRIVER_OPS */  |