mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
Prepare to distribute sysctl code to reduce global definitions:
o expose net.wlan sysctl node o expose ieee80211_sysctl_msecs_ticks Reviewed by: rpaulo, thompsa
This commit is contained in:
parent
23790ac0d7
commit
f6ac50113f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192473
|
@ -160,7 +160,7 @@ ieee80211_vap_destroy(struct ieee80211vap *vap)
|
|||
if_clone_destroyif(&wlan_cloner, vap->iv_ifp);
|
||||
}
|
||||
|
||||
static int
|
||||
int
|
||||
ieee80211_sysctl_msecs_ticks(SYSCTL_HANDLER_ARGS)
|
||||
{
|
||||
int msecs = ticks_to_msecs(*(int *)arg1);
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#include <sys/lock.h>
|
||||
#include <sys/mutex.h>
|
||||
#include <sys/rwlock.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/taskqueue.h>
|
||||
|
||||
/*
|
||||
|
@ -276,6 +277,9 @@ void ieee80211_sysctl_detach(struct ieee80211com *);
|
|||
void ieee80211_sysctl_vattach(struct ieee80211vap *);
|
||||
void ieee80211_sysctl_vdetach(struct ieee80211vap *);
|
||||
|
||||
SYSCTL_DECL(_net_wlan);
|
||||
int ieee80211_sysctl_msecs_ticks(SYSCTL_HANDLER_ARGS);
|
||||
|
||||
void ieee80211_load_module(const char *);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue