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:
Sam Leffler 2009-05-20 20:18:01 +00:00
parent 23790ac0d7
commit f6ac50113f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192473
2 changed files with 5 additions and 1 deletions

View File

@ -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);

View File

@ -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 *);
/*