diff options
Diffstat (limited to 'mac80211.c')
-rw-r--r-- | mac80211.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -600,7 +600,8 @@ static int mwl_mac80211_ampdu_action(struct ieee80211_hw *hw, struct mwl_ampdu_stream *stream; u8 *addr = sta->addr, idx; struct mwl_sta *sta_info; - + bool unexpected = false; + sta_info = mwl_dev_get_sta(sta); spin_lock(&priv->stream_lock); @@ -630,6 +631,7 @@ static int mwl_mac80211_ampdu_action(struct ieee80211_hw *hw, * move on. */ stream = mwl_fwcmd_add_stream(hw, sta, tid); + unexpected = true; } if (!stream) { @@ -643,6 +645,9 @@ static int mwl_mac80211_ampdu_action(struct ieee80211_hw *hw, /* Release the lock before we do the time consuming stuff */ spin_unlock(&priv->stream_lock); + if (unexpected) + wiphy_err(hw->wiphy, " %pM unexpected stream: tid=%u", sta->addr, tid); + for (i = 0; i < MAX_AMPDU_ATTEMPTS; i++) { /* Check if link is still valid */ if (!sta_info->is_ampdu_allowed) { @@ -659,6 +664,7 @@ static int mwl_mac80211_ampdu_action(struct ieee80211_hw *hw, if (!rc) break; + wiphy_err(hw->wiphy, " %pM mwl_fwcmd_check_ba returned %d, i=%d/%d", sta->addr, rc, i, MAX_AMPDU_ATTEMPTS); mdelay(1000); } |