Skip to content

Commit 4bbc6a3

Browse files
jerome-pouillergregkh
authored andcommitted
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]>
1 parent c918c27 commit 4bbc6a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/staging/wfx/sta.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,9 @@ int wfx_sta_remove(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
605605
int i;
606606

607607
for (i = 0; i < ARRAY_SIZE(sta_priv->buffered); i++)
608-
WARN(sta_priv->buffered[i], "release station while Tx is in progress");
608+
if (sta_priv->buffered[i])
609+
dev_warn(wvif->wdev->dev, "release station while %d pending frame on queue %d",
610+
sta_priv->buffered[i], i);
609611
// FIXME: see note in wfx_sta_add()
610612
if (vif->type == NL80211_IFTYPE_STATION)
611613
return 0;

0 commit comments

Comments
 (0)