mac80211: reduce log spam from ieee80211_handle_pwr_constr
authorJohn Linville <linville@tuxdriver.com>
Tue, 31 Mar 2015 14:49:14 +0000 (10:49 -0400)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 1 Apr 2015 18:44:34 +0000 (20:44 +0200)
This changes a couple of messages from sdata_info to sdata_dbg.
This should reduce some log spam, as reported here:

https://bugzilla.redhat.com/show_bug.cgi?id=1206468

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c

index 00103f36dcbf4f5866c40892cd76882ce8022be8..26053bf2faa8ff441d0ff0c9905536bccf914281 100644 (file)
@@ -1348,15 +1348,15 @@ static u32 ieee80211_handle_pwr_constr(struct ieee80211_sub_if_data *sdata,
         */
        if (has_80211h_pwr &&
            (!has_cisco_pwr || pwr_level_80211h <= pwr_level_cisco)) {
-               sdata_info(sdata,
-                          "Limiting TX power to %d (%d - %d) dBm as advertised by %pM\n",
-                          pwr_level_80211h, chan_pwr, pwr_reduction_80211h,
-                          sdata->u.mgd.bssid);
+               sdata_dbg(sdata,
+                         "Limiting TX power to %d (%d - %d) dBm as advertised by %pM\n",
+                         pwr_level_80211h, chan_pwr, pwr_reduction_80211h,
+                         sdata->u.mgd.bssid);
                new_ap_level = pwr_level_80211h;
        } else {  /* has_cisco_pwr is always true here. */
-               sdata_info(sdata,
-                          "Limiting TX power to %d dBm as advertised by %pM\n",
-                          pwr_level_cisco, sdata->u.mgd.bssid);
+               sdata_dbg(sdata,
+                         "Limiting TX power to %d dBm as advertised by %pM\n",
+                         pwr_level_cisco, sdata->u.mgd.bssid);
                new_ap_level = pwr_level_cisco;
        }