mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 07:52:34 +00:00
staging: wfx: make warning about pending frame less scary
Removing station while some traffic is in progress may happen. 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]>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c918c27ac6
commit
4bbc6a3e7a
@@ -605,7 +605,9 @@ int wfx_sta_remove(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
||||
int i;
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(sta_priv->buffered); i++)
|
||||
WARN(sta_priv->buffered[i], "release station while Tx is in progress");
|
||||
if (sta_priv->buffered[i])
|
||||
dev_warn(wvif->wdev->dev, "release station while %d pending frame on queue %d",
|
||||
sta_priv->buffered[i], i);
|
||||
// FIXME: see note in wfx_sta_add()
|
||||
if (vif->type == NL80211_IFTYPE_STATION)
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user