staging: wfx: simplify wfx_flush()

Current code of wfx_flush() force to drop packets in some contexts.
However, there is no obvious reasons to do that. It looks like a
workaround for a bug with the old implementation of __wfx_flush().

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200115135338.14374-21-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Jérôme Pouiller 2020-01-15 13:54:30 +00:00 коммит произвёл Greg Kroah-Hartman
Родитель 044df863c9
Коммит 50a4fb47e9
1 изменённых файлов: 1 добавлений и 11 удалений

Просмотреть файл

@ -362,17 +362,7 @@ static int __wfx_flush(struct wfx_dev *wdev, bool drop)
void wfx_flush(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
u32 queues, bool drop)
{
struct wfx_vif *wvif;
if (vif) {
wvif = (struct wfx_vif *) vif->drv_priv;
if (wvif->vif->type == NL80211_IFTYPE_MONITOR)
drop = true;
if (wvif->vif->type == NL80211_IFTYPE_AP &&
!wvif->enable_beacon)
drop = true;
}
// FIXME: only flush requested vif
// FIXME: only flush requested vif and queues
__wfx_flush(hw->priv, drop);
}