summaryrefslogtreecommitdiff
path: root/mac80211.c
diff options
context:
space:
mode:
Diffstat (limited to 'mac80211.c')
-rw-r--r--mac80211.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mac80211.c b/mac80211.c
index 1a1f73e..660dcac 100644
--- a/mac80211.c
+++ b/mac80211.c
@@ -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);
}