]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
wlcore: implement .flush callback
authorEliad Peller <eliad@wizery.com>
Mon, 25 Jun 2012 10:52:33 +0000 (13:52 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 Jul 2012 16:10:14 +0000 (12:10 -0400)
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

index 1590a1ce4abda414867585e5c138e27b922d9ead..575d18cfc832b35f3842c8ea10d1a4d56e14f032 100644 (file)
@@ -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)
 };