316-mac80211-reduce-log-spam-from-ieee80211_handle_pwr_c.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From: John Linville <[email protected]>
  2. Date: Tue, 31 Mar 2015 10:49:14 -0400
  3. Subject: [PATCH] mac80211: reduce log spam from ieee80211_handle_pwr_constr
  4. This changes a couple of messages from sdata_info to sdata_dbg.
  5. This should reduce some log spam, as reported here:
  6. https://bugzilla.redhat.com/show_bug.cgi?id=1206468
  7. Signed-off-by: John W. Linville <[email protected]>
  8. Signed-off-by: Johannes Berg <[email protected]>
  9. ---
  10. --- a/net/mac80211/mlme.c
  11. +++ b/net/mac80211/mlme.c
  12. @@ -1347,15 +1347,15 @@ static u32 ieee80211_handle_pwr_constr(s
  13. */
  14. if (has_80211h_pwr &&
  15. (!has_cisco_pwr || pwr_level_80211h <= pwr_level_cisco)) {
  16. - sdata_info(sdata,
  17. - "Limiting TX power to %d (%d - %d) dBm as advertised by %pM\n",
  18. - pwr_level_80211h, chan_pwr, pwr_reduction_80211h,
  19. - sdata->u.mgd.bssid);
  20. + sdata_dbg(sdata,
  21. + "Limiting TX power to %d (%d - %d) dBm as advertised by %pM\n",
  22. + pwr_level_80211h, chan_pwr, pwr_reduction_80211h,
  23. + sdata->u.mgd.bssid);
  24. new_ap_level = pwr_level_80211h;
  25. } else { /* has_cisco_pwr is always true here. */
  26. - sdata_info(sdata,
  27. - "Limiting TX power to %d dBm as advertised by %pM\n",
  28. - pwr_level_cisco, sdata->u.mgd.bssid);
  29. + sdata_dbg(sdata,
  30. + "Limiting TX power to %d dBm as advertised by %pM\n",
  31. + pwr_level_cisco, sdata->u.mgd.bssid);
  32. new_ap_level = pwr_level_cisco;
  33. }