brcmsmac: Reduce log spam in heavy tx, make err print in debug
PATCH 1/1 brcmsmac: Reduce log spam in heavy tx, make err print in debug
Move message to debug mode to reduce log spam under heavy tx (iperf) load. This message prints in ht debug mode only:brcms_c_ampdu_dotxstatus_complete: Pkt tx suppressed, illegal channel possibly 153
--- drivers/net/wireless/brcm80211/brcmsmac/ampdu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c +1 -1
@@ -900,7 +900,7 @@ brcms_c_ampdu_dotxstatus_complete(struct ampdu_info *ampdu, struct scb *scb,if (supr_status) { update_rate = false;if (supr_status ==TX_STATUS_SUPR_BADCH ) { -brcms_err (wlc->hw->d11core, +brcms_dbg_ht (wlc->hw->d11core,"%s: Pkt tx suppressed, illegal channel possibly %d\n" , __func__,CHSPEC_CHANNEL ( wlc->default_bss->chanspec));
Signature · 1 line
1.8.1.4
Quoted 1 line · John Greene
Move message to debug mode to reduce log spam under heavy tx (iperf) load.
[]
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c
Quoted 1 line
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c +0
-0
[]
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c brcms_c_ampdu_dotxstatus_complete(struct ampdu_info *ampdu, struct scb *scb, · line 906
Quoted 9 lines
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c +1
-1@@ -900,7 +900,7 @@ brcms_c_ampdu_dotxstatus_complete(struct ampdu_info *ampdu, struct scb *scb,if (supr_status) { update_rate = false;if (supr_status ==TX_STATUS_SUPR_BADCH ) { -brcms_err (wlc->hw->d11core, +brcms_dbg_ht (wlc->hw->d11core,"%s: Pkt tx suppressed, illegal channel possibly %d\n" , __func__,CHSPEC_CHANNEL ( wlc->default_bss->chanspec));
net_ratelimited instead?
Quoted 5 lines · Joe Perches
Quoted 1 line · John Greene
Move message to debug mode to reduce log spam under heavy tx (iperf) load.
[]
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c
Quoted 1 line
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c +0
-0[]
Quoted 11 lines
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c brcms_c_ampdu_dotxstatus_complete(struct ampdu_info *ampdu, struct scb *scb, · line 906
Quoted 9 lines
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c +1
-1@@ -900,7 +900,7 @@ brcms_c_ampdu_dotxstatus_complete(struct ampdu_info *ampdu, struct scb *scb,if (supr_status) { update_rate = false;if (supr_status ==TX_STATUS_SUPR_BADCH ) { -brcms_err (wlc->hw->d11core, +brcms_dbg_ht (wlc->hw->d11core,"%s: Pkt tx suppressed, illegal channel possibly %d\n" , __func__,CHSPEC_CHANNEL ( wlc->default_bss->chanspec));
net_ratelimitedinstead?
Yes and only when driver debug level is set.
Regards,
Arend
Quoted 4 lines · John Greene
Move message to debug mode to reduce log spam under heavy tx (iperf) load. This message prints in ht debug mode only:
brcms_c_ampdu_dotxstatus_complete: Pkt tx suppressed, illegal channel possibly 153
Quoted 5 lines
Signed-off-by John Greene <[email protected]>--- drivers/net/wireless/brcm80211/brcmsmac/ampdu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 22 lines · Arend van Spriel
Quoted 7 lines · Joe Perches
Quoted 2 lines · John Greene
Move message to debug mode to reduce log spam under heavy tx (iperf) load.
[]
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c
Quoted 2 lines
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c +0
-0[]
Quoted 13 lines
Quoted 11 lines
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c +1
-1@@ -900,7 +900,7 @@ brcms_c_ampdu_dotxstatus_complete(struct ampdu_info *ampdu, struct scb *scb, if (supr_status) { update_rate = false; if (supr_status == TX_STATUS_SUPR_BADCH) { - brcms_err(wlc->hw->d11core, + brcms_dbg_ht(wlc->hw->d11core, "%s: Pkt tx suppressed, illegal channel possibly %d\n",__func__, CHSPEC_CHANNEL( wlc->default_bss->chanspec));
net_ratelimitedinstead?
Quoted 6 lines
Yes and only when driver debug level is set.
Regards,
Arend
Thanks for the ACK, Arend. And comments..live and learn.
Certainly they would be reasonable also. Issue (confined to an annoyance level, hence the workaround) is why this comes up when the channel being flagged is the same as the one the AP I'm connected with is on. That is the root of the problem, more work needed on that point which probably would render this moot.
Signature · 1 line
John Greene