aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2012-06-25 06:52:33 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-07-10 12:10:14 -0400
commitd8ae5a257c81e3977cbd2a50f190a601f51d3bdd (patch)
tree01a978fc2576470dbf6af5d6d803cb555f32dc24 /drivers
parent66ef60ad035cd5e05b050401ced921f7e0ce14c5 (diff)
wlcore: implement .flush callback
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ti/wlcore/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c
index 1590a1ce4abd..575d18cfc832 100644
--- a/drivers/net/wireless/ti/wlcore/main.c
+++ b/drivers/net/wireless/ti/wlcore/main.c
@@ -4637,6 +4637,13 @@ out:
4637 mutex_unlock(&wl->mutex); 4637 mutex_unlock(&wl->mutex);
4638} 4638}
4639 4639
4640static void wlcore_op_flush(struct ieee80211_hw *hw, bool drop)
4641{
4642 struct wl1271 *wl = hw->priv;
4643
4644 wl1271_tx_flush(wl);
4645}
4646
4640static bool wl1271_tx_frames_pending(struct ieee80211_hw *hw) 4647static bool wl1271_tx_frames_pending(struct ieee80211_hw *hw)
4641{ 4648{
4642 struct wl1271 *wl = hw->priv; 4649 struct wl1271 *wl = hw->priv;
@@ -4827,6 +4834,7 @@ static const struct ieee80211_ops wl1271_ops = {
4827 .tx_frames_pending = wl1271_tx_frames_pending, 4834 .tx_frames_pending = wl1271_tx_frames_pending,
4828 .set_bitrate_mask = wl12xx_set_bitrate_mask, 4835 .set_bitrate_mask = wl12xx_set_bitrate_mask,
4829 .channel_switch = wl12xx_op_channel_switch, 4836 .channel_switch = wl12xx_op_channel_switch,
4837 .flush = wlcore_op_flush,
4830 CFG80211_TESTMODE_CMD(wl1271_tm_cmd) 4838 CFG80211_TESTMODE_CMD(wl1271_tm_cmd)
4831}; 4839};
4832 4840