Lines Matching refs:ies
200 const struct cfg80211_bss_ies *ies; in wl_cfg80211_is_oce_ap() local
210 if (rcu_access_pointer(bss->ies)) { in wl_cfg80211_is_oce_ap()
211 ies = rcu_access_pointer(bss->ies); in wl_cfg80211_is_oce_ap()
212 parse = ies->data; in wl_cfg80211_is_oce_ap()
213 len = ies->len; in wl_cfg80211_is_oce_ap()
2551 struct parsed_ies *ies, in wl_cfg80211_bcn_validate_sec() argument
2565 if (dev_role == NL80211_IFTYPE_P2P_GO && (ies->wpa2_ie)) { in wl_cfg80211_bcn_validate_sec()
2568 if (wl_validate_wpa2ie(dev, ies->wpa2_ie, bssidx) < 0) in wl_cfg80211_bcn_validate_sec()
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()
2586 ((wl_validate_wpa2ie(dev, ies->wpa2_ie, bssidx) < 0 || in wl_cfg80211_bcn_validate_sec()
2587 wl_validate_wpaie(dev, ies->wpa_ie, bssidx) < 0))) { in wl_cfg80211_bcn_validate_sec()
2592 if (ies->fils_ind_ie && in wl_cfg80211_bcn_validate_sec()
2593 (wl_validate_fils_ind_ie(dev, ies->fils_ind_ie, bssidx) < 0)) { in wl_cfg80211_bcn_validate_sec()
2618 if (ies->wpa_ie != NULL) { in wl_cfg80211_bcn_validate_sec()
2622 ies->wpa_ie->length 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()
2629 } else if (ies->wpa2_ie != NULL) { in wl_cfg80211_bcn_validate_sec()
2633 ies->wpa2_ie->len in wl_cfg80211_bcn_validate_sec()
2636 memcpy(bss->rsn_ie, ies->wpa2_ie, in wl_cfg80211_bcn_validate_sec()
2637 ies->wpa2_ie->len in wl_cfg80211_bcn_validate_sec()
2642 if (ies->fils_ind_ie) { in wl_cfg80211_bcn_validate_sec()
2644 ies->fils_ind_ie->len in wl_cfg80211_bcn_validate_sec()
2647 memcpy(bss->fils_ind_ie, ies->fils_ind_ie, in wl_cfg80211_bcn_validate_sec()
2648 ies->fils_ind_ie->len in wl_cfg80211_bcn_validate_sec()
2656 if (!ies->wpa2_ie && !ies->wpa_ie) { in wl_cfg80211_bcn_validate_sec()
2661 if (ies->wps_ie) { in wl_cfg80211_bcn_validate_sec()
2662 bss->wps_ie = MALLOCZ(cfg->osh, ies->wps_ie_len); in wl_cfg80211_bcn_validate_sec()
2664 memcpy(bss->wps_ie, ies->wps_ie, ies->wps_ie_len); in wl_cfg80211_bcn_validate_sec()
2725 wl_cfg80211_parse_ies(const u8 *ptr, u32 len, struct parsed_ies *ies) in wl_cfg80211_parse_ies() argument
2729 bzero(ies, sizeof(struct parsed_ies)); in wl_cfg80211_parse_ies()
2732 if ((ies->wps_ie = wl_cfgp2p_find_wpsie(ptr, len)) != NULL) { in wl_cfg80211_parse_ies()
2734 ies->wps_ie_len = ies->wps_ie->length + WPA_RSN_IE_TAG_FIXED_LEN; in wl_cfg80211_parse_ies()
2740 if ((ies->wpa2_ie = bcm_parse_tlvs(ptr, len, in wl_cfg80211_parse_ies()
2743 ies->wpa2_ie_len = ies->wpa2_ie->len; in wl_cfg80211_parse_ies()
2747 if ((ies->fils_ind_ie = bcm_parse_tlvs(ptr, len, in wl_cfg80211_parse_ies()
2750 ies->fils_ind_ie_len = ies->fils_ind_ie->len; in wl_cfg80211_parse_ies()
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()
2972 struct parsed_ies *ies, in wl_cfg80211_bcn_bringup_ap() argument
3027 if (!is_bssup && (ies->wpa2_ie != NULL)) { in wl_cfg80211_bcn_bringup_ap()
3259 struct parsed_ies *ies) in wl_cfg80211_parse_ap_ies() argument
3270 info->tail_len, ies) < 0) { in wl_cfg80211_parse_ap_ies()
3355 struct parsed_ies *ies, in wl_cfg80211_hostapd_sec() argument
3367 if (ies->wps_ie) { in wl_cfg80211_hostapd_sec()
3372 memcmp(bss->wps_ie, ies->wps_ie, ies->wps_ie_len)) { in wl_cfg80211_hostapd_sec()
3375 bss->wps_ie = MALLOCZ(cfg->osh, ies->wps_ie_len); in wl_cfg80211_hostapd_sec()
3377 memcpy(bss->wps_ie, ies->wps_ie, ies->wps_ie_len); in wl_cfg80211_hostapd_sec()
3381 bss->wps_ie = MALLOCZ(cfg->osh, ies->wps_ie_len); in wl_cfg80211_hostapd_sec()
3383 memcpy(bss->wps_ie, ies->wps_ie, ies->wps_ie_len); in wl_cfg80211_hostapd_sec()
3388 if (ies->wpa_ie != NULL && ies->wpa2_ie != NULL) { in wl_cfg80211_hostapd_sec()
3394 ies->wpa_ie->length + WPA_RSN_IE_TAG_FIXED_LEN); 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()
3400 ies->wpa2_ie->len + WPA_RSN_IE_TAG_FIXED_LEN); in wl_cfg80211_hostapd_sec()
3402 memcpy(bss->rsn_ie, ies->wpa2_ie, in wl_cfg80211_hostapd_sec()
3403 ies->wpa2_ie->len + WPA_RSN_IE_TAG_FIXED_LEN); in wl_cfg80211_hostapd_sec()
3409 ies->wpa_ie, ies->wpa_ie->length + in wl_cfg80211_hostapd_sec()
3415 ies->wpa_ie->length 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()
3427 ies->wpa_ie->length + WPA_RSN_IE_TAG_FIXED_LEN); 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()
3436 ies->wpa2_ie, in wl_cfg80211_hostapd_sec()
3437 ies->wpa2_ie->len + WPA_RSN_IE_TAG_FIXED_LEN)) { in wl_cfg80211_hostapd_sec()
3442 ies->wpa2_ie->len in wl_cfg80211_hostapd_sec()
3445 memcpy(bss->rsn_ie, ies->wpa2_ie, in wl_cfg80211_hostapd_sec()
3446 ies->wpa2_ie->len in wl_cfg80211_hostapd_sec()
3454 ies->wpa2_ie->len in wl_cfg80211_hostapd_sec()
3457 memcpy(bss->rsn_ie, ies->wpa2_ie, in wl_cfg80211_hostapd_sec()
3458 ies->wpa2_ie->len in wl_cfg80211_hostapd_sec()
3467 if (wl_validate_wpaie_wpa2ie(dev, ies->wpa_ie, in wl_cfg80211_hostapd_sec()
3468 ies->wpa2_ie, bssidx) < 0) { 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()
3483 ies->wpa_ie->length + WPA_RSN_IE_TAG_FIXED_LEN); in wl_cfg80211_hostapd_sec()
3486 ies->wpa_ie, in wl_cfg80211_hostapd_sec()
3487 ies->wpa_ie->length in wl_cfg80211_hostapd_sec()
3492 ies->wpa2_ie->len + WPA_RSN_IE_TAG_FIXED_LEN); in wl_cfg80211_hostapd_sec()
3495 ies->wpa2_ie, in wl_cfg80211_hostapd_sec()
3496 ies->wpa2_ie->len in wl_cfg80211_hostapd_sec()
3502 if (ies->wpa_ie != NULL) { in wl_cfg80211_hostapd_sec()
3508 ies->wpa_ie->length + WPA_RSN_IE_TAG_FIXED_LEN); in wl_cfg80211_hostapd_sec()
3511 ies->wpa_ie, in wl_cfg80211_hostapd_sec()
3512 ies->wpa_ie->length in wl_cfg80211_hostapd_sec()
3516 ies->wpa2_ie, ies->wpa2_ie->len in wl_cfg80211_hostapd_sec()
3522 ies->wpa2_ie->len + WPA_RSN_IE_TAG_FIXED_LEN); in wl_cfg80211_hostapd_sec()
3525 ies->wpa2_ie, in wl_cfg80211_hostapd_sec()
3526 ies->wpa2_ie->len in wl_cfg80211_hostapd_sec()
3535 if (wl_validate_wpa2ie(dev, ies->wpa2_ie, bssidx) < 0 || in wl_cfg80211_hostapd_sec()
3536 wl_validate_wpaie(dev, ies->wpa_ie, bssidx) < 0) { in wl_cfg80211_hostapd_sec()
3611 struct parsed_ies ies; in wl_cfg80211_start_ap() local
3717 if ((err = wl_cfg80211_parse_ap_ies(dev, &info->beacon, &ies)) < 0) { in wl_cfg80211_start_ap()
3722 if ((err = wl_cfg80211_bcn_validate_sec(dev, &ies, in wl_cfg80211_start_ap()
3729 if ((err = wl_cfg80211_bcn_bringup_ap(dev, &ies, in wl_cfg80211_start_ap()
3766 if ((dev_role == NL80211_IFTYPE_AP) && (ies.wps_ie != NULL)) { in wl_cfg80211_start_ap()
3768 wl_validate_wps_ie((const char *) ies.wps_ie, ies.wps_ie_len, &pbc); in wl_cfg80211_start_ap()
4002 struct parsed_ies ies; in wl_cfg80211_change_beacon() local
4035 if ((err = wl_cfg80211_parse_ap_ies(dev, info, &ies)) < 0) { in wl_cfg80211_change_beacon()
4047 if (wl_cfg80211_hostapd_sec(dev, &ies, bssidx) < 0) { in wl_cfg80211_change_beacon()
4053 if ((dev_role == NL80211_IFTYPE_AP) && (ies.wps_ie != NULL)) { in wl_cfg80211_change_beacon()
4054 wl_validate_wps_ie((const char *) ies.wps_ie, ies.wps_ie_len, &pbc); in wl_cfg80211_change_beacon()
4079 struct parsed_ies ies; in wl_cfg80211_add_set_beacon() local
4147 info->tail_len, &ies) < 0) { in wl_cfg80211_add_set_beacon()
4181 (wl_cfg80211_bcn_validate_sec(dev, &ies, dev_role, bssidx, privacy) < 0)) in wl_cfg80211_add_set_beacon()
4206 (err = wl_cfg80211_bcn_bringup_ap(dev, &ies, dev_role, bssidx)) < 0) in wl_cfg80211_add_set_beacon()
4222 if (wl_cfg80211_hostapd_sec(dev, &ies, bssidx) < 0) { in wl_cfg80211_add_set_beacon()
4231 (dev_role == NL80211_IFTYPE_AP)) && (ies.wps_ie != NULL)) { in wl_cfg80211_add_set_beacon()
4232 wl_validate_wps_ie((char *) ies.wps_ie, ies.wps_ie_len, &pbc); in wl_cfg80211_add_set_beacon()