mwlwifi: fix excessive logspam if starting a BA session fails
[openwrt/openwrt.git] / package / kernel / mwlwifi / patches / 210-fix_logspam.patch
1 --- a/fwcmd.c
2 +++ b/fwcmd.c
3 @@ -2393,7 +2393,7 @@ int mwl_fwcmd_check_ba(struct ieee80211_
4
5 if (pcmd->cmd_hdr.result != 0) {
6 mutex_unlock(&priv->fwcmd_mutex);
7 - wiphy_err(hw->wiphy, "check ba result error %d\n",
8 + wiphy_debug(hw->wiphy, "check ba result error %d\n",
9 le16_to_cpu(pcmd->cmd_hdr.result));
10 return -EINVAL;
11 }
12 --- a/mac80211.c
13 +++ b/mac80211.c
14 @@ -644,8 +644,8 @@ static int mwl_mac80211_ampdu_action(str
15 spin_lock_bh(&priv->stream_lock);
16 if (rc) {
17 mwl_fwcmd_remove_stream(hw, stream);
18 - wiphy_err(hw->wiphy,
19 - "ampdu start error code: %d\n", rc);
20 + wiphy_debug(hw->wiphy,
21 + "ampdu start error code: %d\n", rc);
22 rc = -EPERM;
23 break;
24 }