Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/an/if_an.c
Show First 20 Lines • Show All 260 Lines • ▼ Show 20 Lines | if (*s == 'f') { | ||||
an_dump = r; | an_dump = r; | ||||
} | } | ||||
if (an_dump != last) | if (an_dump != last) | ||||
printf("Sysctl changed for Aironet driver\n"); | printf("Sysctl changed for Aironet driver\n"); | ||||
return error; | return error; | ||||
} | } | ||||
SYSCTL_PROC(_hw_an, OID_AUTO, an_dump, CTLTYPE_STRING | CTLFLAG_RW, | SYSCTL_PROC(_hw_an, OID_AUTO, an_dump, | ||||
0, sizeof(an_conf), sysctl_an_dump, "A", ""); | CTLTYPE_STRING | CTLFLAG_RW | CTLFLAG_NEEDGIANT, | ||||
0, sizeof(an_conf), sysctl_an_dump, "A", | |||||
""); | |||||
static int | static int | ||||
sysctl_an_cache_mode(SYSCTL_HANDLER_ARGS) | sysctl_an_cache_mode(SYSCTL_HANDLER_ARGS) | ||||
{ | { | ||||
int error; | int error; | ||||
switch (an_cache_mode) { | switch (an_cache_mode) { | ||||
case 1: | case 1: | ||||
Show All 18 Lines | sysctl_an_cache_mode(SYSCTL_HANDLER_ARGS) | ||||
} | } | ||||
if (strncmp(an_conf_cache,"raw", 3) == 0) { | if (strncmp(an_conf_cache,"raw", 3) == 0) { | ||||
an_cache_mode = 2; | an_cache_mode = 2; | ||||
} | } | ||||
return error; | return error; | ||||
} | } | ||||
SYSCTL_PROC(_hw_an, OID_AUTO, an_cache_mode, CTLTYPE_STRING | CTLFLAG_RW, | SYSCTL_PROC(_hw_an, OID_AUTO, an_cache_mode, | ||||
0, sizeof(an_conf_cache), sysctl_an_cache_mode, "A", ""); | CTLTYPE_STRING | CTLFLAG_RW | CTLFLAG_NEEDGIANT, | ||||
0, sizeof(an_conf_cache), sysctl_an_cache_mode, "A", | |||||
""); | |||||
/* | /* | ||||
* We probe for an Aironet 4500/4800 card by attempting to | * We probe for an Aironet 4500/4800 card by attempting to | ||||
* read the default SSID list. On reset, the first entry in | * read the default SSID list. On reset, the first entry in | ||||
* the SSID list will contain the name "tsunami." If we don't | * the SSID list will contain the name "tsunami." If we don't | ||||
* find this, then there's no card present. | * find this, then there's no card present. | ||||
*/ | */ | ||||
int | int | ||||
▲ Show 20 Lines • Show All 3,511 Lines • Show Last 20 Lines |