Changeset View
Changeset View
Standalone View
Standalone View
sys/net80211/ieee80211_proto.c
Show First 20 Lines • Show All 460 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
static void | static void | ||||
ieee80211_auth_setup(void) | ieee80211_auth_setup(void) | ||||
{ | { | ||||
ieee80211_authenticator_register(IEEE80211_AUTH_OPEN, &auth_internal); | ieee80211_authenticator_register(IEEE80211_AUTH_OPEN, &auth_internal); | ||||
ieee80211_authenticator_register(IEEE80211_AUTH_SHARED, &auth_internal); | ieee80211_authenticator_register(IEEE80211_AUTH_SHARED, &auth_internal); | ||||
ieee80211_authenticator_register(IEEE80211_AUTH_AUTO, &auth_internal); | ieee80211_authenticator_register(IEEE80211_AUTH_AUTO, &auth_internal); | ||||
} | } | ||||
SYSINIT(wlan_auth, SI_SUB_DRIVERS, SI_ORDER_FIRST, ieee80211_auth_setup, NULL); | SYSINIT(wlan_auth, SI_SUB_DRIVERS, SI_ORDER_FIRST, ieee80211_auth_setup); | ||||
const struct ieee80211_authenticator * | const struct ieee80211_authenticator * | ||||
ieee80211_authenticator_get(int auth) | ieee80211_authenticator_get(int auth) | ||||
{ | { | ||||
if (auth >= IEEE80211_AUTH_MAX) | if (auth >= IEEE80211_AUTH_MAX) | ||||
return NULL; | return NULL; | ||||
if (authenticators[auth] == NULL) | if (authenticators[auth] == NULL) | ||||
ieee80211_load_module(auth_modnames[auth]); | ieee80211_load_module(auth_modnames[auth]); | ||||
▲ Show 20 Lines • Show All 2,349 Lines • Show Last 20 Lines |