aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-04-04 17:51:53 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-04-04 17:51:53 +0000
commit0732f91d5507073d2e175e8a5dc30a3cd22f2761 (patch)
tree030bbcbe339d816a2d8be183717a7d436fa10aae
parentc6b0a52389dbe5881a2678bd24475c62708ce5f8 (diff)
downloadupstream-0732f91d5507073d2e175e8a5dc30a3cd22f2761.tar.gz
upstream-0732f91d5507073d2e175e8a5dc30a3cd22f2761.tar.bz2
upstream-0732f91d5507073d2e175e8a5dc30a3cd22f2761.zip
mac80211: get rid of tx power related log spam
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45271 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/kernel/mac80211/patches/316-mac80211-reduce-log-spam-from-ieee80211_handle_pwr_c.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/316-mac80211-reduce-log-spam-from-ieee80211_handle_pwr_c.patch b/package/kernel/mac80211/patches/316-mac80211-reduce-log-spam-from-ieee80211_handle_pwr_c.patch
new file mode 100644
index 0000000000..77a82c25c6
--- /dev/null
+++ b/package/kernel/mac80211/patches/316-mac80211-reduce-log-spam-from-ieee80211_handle_pwr_c.patch
@@ -0,0 +1,38 @@
+From: John Linville <linville@tuxdriver.com>
+Date: Tue, 31 Mar 2015 10:49:14 -0400
+Subject: [PATCH] mac80211: reduce log spam from ieee80211_handle_pwr_constr
+
+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>
+---
+
+--- a/net/mac80211/mlme.c
++++ b/net/mac80211/mlme.c
+@@ -1347,15 +1347,15 @@ static u32 ieee80211_handle_pwr_constr(s
+ */
+ 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;
+ }
+