mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +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 <jerome.pouiller@silabs.com> Link: https://lore.kernel.org/r/20200310101356.182818-4-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_SIZE(sta_priv->buffered); 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()
|
// FIXME: see note in wfx_sta_add()
|
||||||
if (vif->type == NL80211_IFTYPE_STATION)
|
if (vif->type == NL80211_IFTYPE_STATION)
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user