aboutsummaryrefslogtreecommitdiff
path: root/sys/net80211/ieee80211_scan.c
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2023-03-14 21:01:19 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2023-03-14 22:17:03 +0000
commitd7fb679dc96b07c38eedfa8c91817b44b214c799 (patch)
tree2e9a97e92fad93cd45c4abdeefc7c5c5c18f6525 /sys/net80211/ieee80211_scan.c
parent3346164ce844f8995311c3988ab193bd6ddda0c9 (diff)
downloadsrc-d7fb679dc96b07c38eedfa8c91817b44b214c799.tar.gz
src-d7fb679dc96b07c38eedfa8c91817b44b214c799.zip
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 MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D38833
Diffstat (limited to 'sys/net80211/ieee80211_scan.c')
-rw-r--r--sys/net80211/ieee80211_scan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_scan.c b/sys/net80211/ieee80211_scan.c
index fd387e68e39f..e1cced8a4b06 100644
--- a/sys/net80211/ieee80211_scan.c
+++ b/sys/net80211/ieee80211_scan.c
@@ -278,7 +278,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;
@@ -295,7 +296,6 @@ ieee80211_scan_dump_channels(const struct ieee80211_scan_state *ss)
}
}
-#ifdef IEEE80211_DEBUG
void
ieee80211_scan_dump(struct ieee80211_scan_state *ss)
{