diff options
author | Jérôme Pouiller <[email protected]> | 2020-01-15 13:55:16 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2020-01-16 20:59:52 +0100 |
commit | 98511a91b126901e1392e1a6cf51ef94dc094f89 (patch) | |
tree | 70189d2d0bcc99ba7f4ff95b84c4208c026f7fbe | |
parent | d6aeba575f277104a95125584981d37c8f7cf762 (diff) |
staging: wfx: check that no tx is pending before release sta
Just for sanity.
Signed-off-by: Jérôme Pouiller <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/staging/wfx/sta.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c index 75c1e2aecc23..33955278d9d3 100644 --- a/drivers/staging/wfx/sta.c +++ b/drivers/staging/wfx/sta.c @@ -602,7 +602,10 @@ int wfx_sta_remove(struct ieee80211_hw *hw, struct ieee80211_vif *vif, { struct wfx_vif *wvif = (struct wfx_vif *) vif->drv_priv; struct wfx_sta_priv *sta_priv = (struct wfx_sta_priv *) &sta->drv_priv; + int i; + for (i = 0; i < WFX_MAX_TID; i++) + WARN(sta_priv->buffered[i], "release station while Tx is in progress"); // FIXME: see note in wfx_sta_add() if (vif->type == NL80211_IFTYPE_STATION) return 0; |