Skip to content

Commit

Permalink
Commit mwlwifi driver 10.3.0.17-20160523
Browse files Browse the repository at this point in the history
Added code to control the rate to print out check BA related debug messages.

Signed-off-by: David Lin <dlin@marvell.com>
  • Loading branch information
yuhhaurlin committed May 23, 2016
1 parent 7d49296 commit 267c514
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dev.h
Expand Up @@ -27,7 +27,7 @@
#include <net/mac80211.h>

#define MWL_DRV_NAME KBUILD_MODNAME
#define MWL_DRV_VERSION "10.3.0.17-20160520-1"
#define MWL_DRV_VERSION "10.3.0.17-20160523"

/* Map to 0x80000000 (Bus control) on BAR0 */
#define MACREG_REG_H2A_INTERRUPT_EVENTS 0x00000C18 /* (From host to ARM) */
Expand Down
6 changes: 4 additions & 2 deletions fwcmd.c
Expand Up @@ -2393,8 +2393,10 @@ int mwl_fwcmd_check_ba(struct ieee80211_hw *hw,

if (pcmd->cmd_hdr.result != 0) {
mutex_unlock(&priv->fwcmd_mutex);
wiphy_err(hw->wiphy, "check ba result error %d\n",
le16_to_cpu(pcmd->cmd_hdr.result));
if (printk_ratelimit())
wiphy_debug(hw->wiphy, "check ba result err %d(%pM)\n",
le16_to_cpu(pcmd->cmd_hdr.result),
stream->sta->addr);
return -EINVAL;
}

Expand Down
6 changes: 4 additions & 2 deletions mac80211.c
Expand Up @@ -649,8 +649,10 @@ static int mwl_mac80211_ampdu_action(struct ieee80211_hw *hw,
spin_lock_bh(&priv->stream_lock);
if (rc) {
mwl_fwcmd_remove_stream(hw, stream);
wiphy_err(hw->wiphy,
"ampdu start error code: %d\n", rc);
if (printk_ratelimit())
wiphy_debug(hw->wiphy,
"ampdu start error code: %d(%pM)\n",
rc, addr);
rc = -EPERM;
break;
}
Expand Down

0 comments on commit 267c514

Please sign in to comment.