git: ca5e52ed3a5d - stable/13 - net80211: make ieee80211_scan_dump_channels private
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 Jun 2023 12:08:18 UTC
The branch stable/13 has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=ca5e52ed3a5d46ee8ab0ed1af5b3616f1f7c188a
commit ca5e52ed3a5d46ee8ab0ed1af5b3616f1f7c188a
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2023-03-14 21:01:19 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2023-06-26 08:27:10 +0000
net80211: make ieee80211_scan_dump_channels private
ieee80211_scan_dump_channels() is only used locally and only when
IEEE80211_DEBUG is compiled. Stop exporting it, make it file local
and hide under the #ifdef to reduce the footprint for production
kernels a tiny bit.
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D38833
(cherry picked from commit d7fb679dc96b07c38eedfa8c91817b44b214c799)
---
sys/net80211/ieee80211_scan.c | 4 ++--
sys/net80211/ieee80211_scan.h | 2 --
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/sys/net80211/ieee80211_scan.c b/sys/net80211/ieee80211_scan.c
index 50b3151063fa..1e5b6a3f0d14 100644
--- a/sys/net80211/ieee80211_scan.c
+++ b/sys/net80211/ieee80211_scan.c
@@ -277,7 +277,8 @@ ieee80211_scan_update_locked(struct ieee80211vap *vap,
}
}
-void
+#ifdef IEEE80211_DEBUG
+static void
ieee80211_scan_dump_channels(const struct ieee80211_scan_state *ss)
{
struct ieee80211com *ic = ss->ss_ic;
@@ -294,7 +295,6 @@ ieee80211_scan_dump_channels(const struct ieee80211_scan_state *ss)
}
}
-#ifdef IEEE80211_DEBUG
void
ieee80211_scan_dump(struct ieee80211_scan_state *ss)
{
diff --git a/sys/net80211/ieee80211_scan.h b/sys/net80211/ieee80211_scan.h
index 07d927cfa1e1..609339ae77e8 100644
--- a/sys/net80211/ieee80211_scan.h
+++ b/sys/net80211/ieee80211_scan.h
@@ -163,8 +163,6 @@ void ieee80211_scan_detach(struct ieee80211com *);
void ieee80211_scan_vattach(struct ieee80211vap *);
void ieee80211_scan_vdetach(struct ieee80211vap *);
-void ieee80211_scan_dump_channels(const struct ieee80211_scan_state *);
-
#define IEEE80211_SCAN_FOREVER 0x7fffffff
int ieee80211_start_scan(struct ieee80211vap *, int flags,
u_int duration, u_int mindwell, u_int maxdwell,