From cb4ca78fbfb2e4114db750f0e34e9f3e2ddfc5d9 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Fri, 13 Jul 2018 18:31:41 -0400 Subject: [PATCH] freebsd11_wlan: Disable a spammy information print. On some atheroswifi systems, it apparently prints every 100ms. Hopefully helps with #14270. --- src/libs/compat/freebsd11_wlan/net80211/ieee80211_power.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libs/compat/freebsd11_wlan/net80211/ieee80211_power.c b/src/libs/compat/freebsd11_wlan/net80211/ieee80211_power.c index cec6b07ef2..0a63e41481 100644 --- a/src/libs/compat/freebsd11_wlan/net80211/ieee80211_power.c +++ b/src/libs/compat/freebsd11_wlan/net80211/ieee80211_power.c @@ -32,10 +32,10 @@ __FBSDID("$FreeBSD: releng/11.1/sys/net80211/ieee80211_power.c 297405 2016-03-30 #include "opt_wlan.h" #include -#include +#include #include #include - + #include #include @@ -612,10 +612,12 @@ ieee80211_sta_ps_timer_check(struct ieee80211vap *vap) if (vap->iv_state != IEEE80211_S_RUN) goto out; +#ifndef __HAIKU__ IEEE80211_DPRINTF(vap, IEEE80211_MSG_POWER, "%s: lastdata=%llu, ticks=%llu\n", __func__, (unsigned long long) ic->ic_lastdata, (unsigned long long) ticks); +#endif /* If powersave is disabled on the VAP, don't bother */ if (! (vap->iv_flags & IEEE80211_F_PMGTON))