Home | History | Annotate | Download | only in ap

Lines Matching refs:wpa_auth

16 #include "wpa_auth.h"
298 int wpa_auth_gen_wpa_ie(struct wpa_authenticator *wpa_auth)
305 if (wpa_auth->conf.wpa & WPA_PROTO_RSN) {
306 res = wpa_write_rsn_ie(&wpa_auth->conf,
313 if (wpa_key_mgmt_ft(wpa_auth->conf.wpa_key_mgmt)) {
314 res = wpa_write_mdie(&wpa_auth->conf, pos,
321 if (wpa_auth->conf.wpa & WPA_PROTO_WPA) {
322 res = wpa_write_wpa_ie(&wpa_auth->conf,
329 os_free(wpa_auth->wpa_ie);
330 wpa_auth->wpa_ie = os_malloc(pos - buf);
331 if (wpa_auth->wpa_ie == NULL)
333 os_memcpy(wpa_auth->wpa_ie, buf, pos - buf);
334 wpa_auth->wpa_ie_len = pos - buf;
376 int wpa_validate_wpa_ie(struct wpa_authenticator *wpa_auth,
387 if (wpa_auth == NULL || sm == NULL)
398 if (!(wpa_auth->conf.wpa & version)) {
432 wpa_auth->dot11RSNAAuthenticationSuiteSelected = selector;
438 wpa_auth->dot11RSNAPairwiseCipherSelected = selector;
444 wpa_auth->dot11RSNAGroupCipherSelected = selector;
453 wpa_auth->dot11RSNAAuthenticationSuiteSelected = selector;
459 wpa_auth->dot11RSNAPairwiseCipherSelected = selector;
465 wpa_auth->dot11RSNAGroupCipherSelected = selector;
474 if (data.group_cipher != wpa_auth->conf.wpa_group) {
480 key_mgmt = data.key_mgmt & wpa_auth->conf.wpa_key_mgmt;
512 ciphers = data.pairwise_cipher & wpa_auth->conf.rsn_pairwise;
514 ciphers = data.pairwise_cipher & wpa_auth->conf.wpa_pairwise;
524 if (wpa_auth->conf.ieee80211w == MGMT_FRAME_PROTECTION_REQUIRED) {
544 if (wpa_auth->conf.ieee80211w == NO_MGMT_FRAME_PROTECTION ||
558 if (os_memcmp(mdie, wpa_auth->conf.mobility_domain,
581 sm->pmksa = pmksa_cache_auth_get(wpa_auth->pmksa, sm->addr,
588 for (i = 0; sm->pmksa == NULL && wpa_auth->conf.okc &&
592 idata.aa = wpa_auth->addr;
595 wpa_auth_for_each_auth(wpa_auth, wpa_auth_okc_iter, &idata);
597 wpa_auth_vlogger(wpa_auth, sm->addr, LOGGER_DEBUG,
599 sm->pmksa = pmksa_cache_add_okc(wpa_auth->pmksa,
601 wpa_auth->addr,
608 wpa_auth_vlogger(wpa_auth, sm->addr, LOGGER_DEBUG,
613 os_memcpy(wpa_auth->dot11RSNAPMKIDUsed, pmkid, PMKID_LEN);