diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-12-23 07:15:32 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-12-28 16:54:51 -0500 |
commit | a80f7c0b088187c8471b441d461e937991870661 (patch) | |
tree | f673c08009a03f2e988a638510b112a5584bea11 /net/mac80211/driver-ops.h | |
parent | 9607e6b66a0d25ca63b70d54a4283fa13d8f7c9d (diff) |
mac80211: introduce flush operation
We've long lacked a good confirmation that frames
have really gone out, e.g. before going off-channel
for a scan. Add a flush() operation that drivers
can implement to provide that confirmation, and use
it in a few places:
* before scanning sends the nullfunc frames
* after scanning sends the nullfunc frames, if any
* when going idle, to send any pending frames
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/driver-ops.h')
-rw-r--r-- | net/mac80211/driver-ops.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h index 727e4cf7b8a6..cbe133bcdf34 100644 --- a/net/mac80211/driver-ops.h +++ b/net/mac80211/driver-ops.h | |||
@@ -259,4 +259,11 @@ static inline void drv_rfkill_poll(struct ieee80211_local *local) | |||
259 | if (local->ops->rfkill_poll) | 259 | if (local->ops->rfkill_poll) |
260 | local->ops->rfkill_poll(&local->hw); | 260 | local->ops->rfkill_poll(&local->hw); |
261 | } | 261 | } |
262 | |||
263 | static inline void drv_flush(struct ieee80211_local *local, bool drop) | ||
264 | { | ||
265 | trace_drv_flush(local, drop); | ||
266 | if (local->ops->flush) | ||
267 | local->ops->flush(&local->hw, drop); | ||
268 | } | ||
262 | #endif /* __MAC80211_DRIVER_OPS */ | 269 | #endif /* __MAC80211_DRIVER_OPS */ |