Lines Matching refs:wpa_ie
2577 if ((ies->wpa_ie != NULL && ies->wpa2_ie != NULL)) { in wl_cfg80211_bcn_validate_sec()
2578 if (wl_validate_wpaie_wpa2ie(dev, ies->wpa_ie, ies->wpa2_ie, bssidx) < 0) { in wl_cfg80211_bcn_validate_sec()
2585 if ((ies->wpa2_ie || ies->wpa_ie) && in wl_cfg80211_bcn_validate_sec()
2587 wl_validate_wpaie(dev, ies->wpa_ie, bssidx) < 0))) { in wl_cfg80211_bcn_validate_sec()
2604 if (bss->wpa_ie) { in wl_cfg80211_bcn_validate_sec()
2605 MFREE(cfg->osh, bss->wpa_ie, bss->wpa_ie[1] in wl_cfg80211_bcn_validate_sec()
2607 bss->wpa_ie = NULL; in wl_cfg80211_bcn_validate_sec()
2618 if (ies->wpa_ie != NULL) { in wl_cfg80211_bcn_validate_sec()
2621 bss->wpa_ie = MALLOCZ(cfg->osh, in wl_cfg80211_bcn_validate_sec()
2622 ies->wpa_ie->length in wl_cfg80211_bcn_validate_sec()
2624 if (bss->wpa_ie) { in wl_cfg80211_bcn_validate_sec()
2625 memcpy(bss->wpa_ie, ies->wpa_ie, in wl_cfg80211_bcn_validate_sec()
2626 ies->wpa_ie->length in wl_cfg80211_bcn_validate_sec()
2631 bss->wpa_ie = NULL; in wl_cfg80211_bcn_validate_sec()
2656 if (!ies->wpa2_ie && !ies->wpa_ie) { in wl_cfg80211_bcn_validate_sec()
2754 if ((ies->wpa_ie = wl_cfgp2p_find_wpaie(ptr, len)) != NULL) { in wl_cfg80211_parse_ies()
2756 ies->wpa_ie_len = ies->wpa_ie->length; in wl_cfg80211_parse_ies()
3388 if (ies->wpa_ie != NULL && ies->wpa2_ie != NULL) { in wl_cfg80211_hostapd_sec()
3393 bss->wpa_ie = MALLOCZ(cfg->osh, in wl_cfg80211_hostapd_sec()
3394 ies->wpa_ie->length + WPA_RSN_IE_TAG_FIXED_LEN); in wl_cfg80211_hostapd_sec()
3395 if (bss->wpa_ie) { in wl_cfg80211_hostapd_sec()
3396 memcpy(bss->wpa_ie, ies->wpa_ie, in wl_cfg80211_hostapd_sec()
3397 ies->wpa_ie->length + WPA_RSN_IE_TAG_FIXED_LEN); in wl_cfg80211_hostapd_sec()
3407 if (bss->wpa_ie) { in wl_cfg80211_hostapd_sec()
3408 if (memcmp(bss->wpa_ie, in wl_cfg80211_hostapd_sec()
3409 ies->wpa_ie, ies->wpa_ie->length + in wl_cfg80211_hostapd_sec()
3411 MFREE(cfg->osh, bss->wpa_ie, in wl_cfg80211_hostapd_sec()
3412 bss->wpa_ie[1] + WPA_RSN_IE_TAG_FIXED_LEN); in wl_cfg80211_hostapd_sec()
3414 bss->wpa_ie = MALLOCZ(cfg->osh, in wl_cfg80211_hostapd_sec()
3415 ies->wpa_ie->length in wl_cfg80211_hostapd_sec()
3417 if (bss->wpa_ie) { in wl_cfg80211_hostapd_sec()
3418 memcpy(bss->wpa_ie, ies->wpa_ie, in wl_cfg80211_hostapd_sec()
3419 ies->wpa_ie->length in wl_cfg80211_hostapd_sec()
3426 bss->wpa_ie = MALLOCZ(cfg->osh, in wl_cfg80211_hostapd_sec()
3427 ies->wpa_ie->length + WPA_RSN_IE_TAG_FIXED_LEN); in wl_cfg80211_hostapd_sec()
3428 if (bss->wpa_ie) { in wl_cfg80211_hostapd_sec()
3429 memcpy(bss->wpa_ie, ies->wpa_ie, in wl_cfg80211_hostapd_sec()
3430 ies->wpa_ie->length in wl_cfg80211_hostapd_sec()
3467 if (wl_validate_wpaie_wpa2ie(dev, ies->wpa_ie, in wl_cfg80211_hostapd_sec()
3477 if ((ies->wpa_ie != NULL || ies->wpa2_ie != NULL)) { in wl_cfg80211_hostapd_sec()
3481 if (ies->wpa_ie != NULL) { in wl_cfg80211_hostapd_sec()
3482 bss->wpa_ie = MALLOCZ(cfg->osh, in wl_cfg80211_hostapd_sec()
3483 ies->wpa_ie->length + WPA_RSN_IE_TAG_FIXED_LEN); in wl_cfg80211_hostapd_sec()
3484 if (bss->wpa_ie) { in wl_cfg80211_hostapd_sec()
3485 memcpy(bss->wpa_ie, in wl_cfg80211_hostapd_sec()
3486 ies->wpa_ie, in wl_cfg80211_hostapd_sec()
3487 ies->wpa_ie->length in wl_cfg80211_hostapd_sec()
3500 } else if (bss->wpa_ie) { in wl_cfg80211_hostapd_sec()
3502 if (ies->wpa_ie != NULL) { in wl_cfg80211_hostapd_sec()
3507 bss->wpa_ie = MALLOCZ(cfg->osh, in wl_cfg80211_hostapd_sec()
3508 ies->wpa_ie->length + WPA_RSN_IE_TAG_FIXED_LEN); in wl_cfg80211_hostapd_sec()
3509 if (bss->wpa_ie) { in wl_cfg80211_hostapd_sec()
3510 memcpy(bss->wpa_ie, in wl_cfg80211_hostapd_sec()
3511 ies->wpa_ie, in wl_cfg80211_hostapd_sec()
3512 ies->wpa_ie->length in wl_cfg80211_hostapd_sec()
3529 bss->wpa_ie = NULL; in wl_cfg80211_hostapd_sec()
3536 wl_validate_wpaie(dev, ies->wpa_ie, bssidx) < 0) { in wl_cfg80211_hostapd_sec()