linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] wlcore: implement .flush callback
@ 2012-06-27 16:09 Luciano Coelho
  2012-06-28  5:52 ` Luciano Coelho
  2012-06-28 11:07 ` Arend van Spriel
  0 siblings, 2 replies; 8+ messages in thread
From: Luciano Coelho @ 2012-06-27 16:09 UTC (permalink / raw)
  To: linux-wireless; +Cc: coelho, arik, Eliad Peller

From: Eliad Peller <eliad@wizery.com>

implement the .flush() callback by simply calling wl1271_tx_flush().

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
---
 drivers/net/wireless/ti/wlcore/main.c |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c
index 709f6dd..6ac3323 100644
--- a/drivers/net/wireless/ti/wlcore/main.c
+++ b/drivers/net/wireless/ti/wlcore/main.c
@@ -4637,6 +4637,13 @@ out:
 	mutex_unlock(&wl->mutex);
 }
 
+static void wlcore_op_flush(struct ieee80211_hw *hw, bool drop)
+{
+	struct wl1271 *wl = hw->priv;
+
+	wl1271_tx_flush(wl);
+}
+
 static bool wl1271_tx_frames_pending(struct ieee80211_hw *hw)
 {
 	struct wl1271 *wl = hw->priv;
@@ -4827,6 +4834,7 @@ static const struct ieee80211_ops wl1271_ops = {
 	.tx_frames_pending = wl1271_tx_frames_pending,
 	.set_bitrate_mask = wl12xx_set_bitrate_mask,
 	.channel_switch = wl12xx_op_channel_switch,
+	.flush = wlcore_op_flush,
 	CFG80211_TESTMODE_CMD(wl1271_tm_cmd)
 };
 
-- 
1.7.10


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-06-29  4:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-27 16:09 [PATCH] wlcore: implement .flush callback Luciano Coelho
2012-06-28  5:52 ` Luciano Coelho
2012-06-28 11:07 ` Arend van Spriel
2012-06-28 11:25   ` Eliad Peller
2012-06-28 11:31     ` Arik Nemtsov
2012-06-28 18:44       ` Arend van Spriel
2012-06-28 18:48         ` Johannes Berg
2012-06-29  4:07           ` Luciano Coelho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).