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
This commit is contained in:
parent
3346164ce8
commit
d7fb679dc9
@ -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)
|
||||
{
|
||||
|
@ -164,8 +164,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,
|
||||
|
Loading…
Reference in New Issue
Block a user