Export adapter's internal statistics sysctl even if IWI_DEBUG is not defined.
MFC after: 1 week
This commit is contained in:
parent
e0454c269b
commit
94a7a9a24d
@ -145,9 +145,7 @@ static int iwi_scan(struct iwi_softc *);
|
||||
static int iwi_auth_and_assoc(struct iwi_softc *);
|
||||
static void iwi_init(void *);
|
||||
static void iwi_stop(void *);
|
||||
#ifdef IWI_DEBUG
|
||||
static int iwi_sysctl_stats(SYSCTL_HANDLER_ARGS);
|
||||
#endif
|
||||
static int iwi_sysctl_radio(SYSCTL_HANDLER_ARGS);
|
||||
|
||||
static int iwi_probe(device_t);
|
||||
@ -388,12 +386,10 @@ iwi_attach(device_t dev)
|
||||
CTLTYPE_INT | CTLFLAG_RD, sc, 0, iwi_sysctl_radio, "I",
|
||||
"radio transmitter switch state (0=off, 1=on)");
|
||||
|
||||
#ifdef IWI_DEBUG
|
||||
SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev),
|
||||
SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), OID_AUTO, "stats",
|
||||
CTLTYPE_OPAQUE | CTLFLAG_RD, sc, 0, iwi_sysctl_stats, "S",
|
||||
"statistics");
|
||||
#endif
|
||||
|
||||
SYSCTL_ADD_INT(device_get_sysctl_ctx(dev),
|
||||
SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), OID_AUTO, "dwell",
|
||||
@ -2310,7 +2306,6 @@ iwi_stop(void *priv)
|
||||
ieee80211_new_state(ic, IEEE80211_S_INIT, -1);
|
||||
}
|
||||
|
||||
#ifdef IWI_DEBUG
|
||||
static int
|
||||
iwi_sysctl_stats(SYSCTL_HANDLER_ARGS)
|
||||
{
|
||||
@ -2327,7 +2322,6 @@ iwi_sysctl_stats(SYSCTL_HANDLER_ARGS)
|
||||
|
||||
return SYSCTL_OUT(req, buf, sizeof buf);
|
||||
}
|
||||
#endif
|
||||
|
||||
static int
|
||||
iwi_sysctl_radio(SYSCTL_HANDLER_ARGS)
|
||||
|
Loading…
x
Reference in New Issue
Block a user