status_t init_wlan_stack(void) { ieee80211_phy_init(); ieee80211_auth_setup(); ieee80211_ht_init(); get_module(NET_NOTIFICATIONS_MODULE_NAME, (module_info**)&sNotificationModule); return B_OK; }
const struct ieee80211_authenticator * ieee80211_authenticator_get(int auth) { static int initialized = 0; if (!initialized) { ieee80211_auth_setup(); initialized = 1; } if (auth >= IEEE80211_AUTH_MAX) return NULL; if (authenticators[auth] == NULL) ieee80211_load_module(auth_modnames[auth]); return authenticators[auth]; }
void ieee80211_proto_attach(struct ieee80211com *ic) { ic->ic_protmode = IEEE80211_PROT_CTSONLY; ic->ic_wme.wme_hipri_switch_hysteresis = AGGRESSIVE_MODE_SWITCH_HYSTERESIS; /* initialize management frame handlers */ ic->ic_recv_mgmt = ieee80211_recv_mgmt; ic->ic_send_mgmt = ieee80211_send_mgmt; ieee80211_auth_setup(); }