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