Lines Matching refs:wps_ie

238 wl_validate_wps_ie(const char *wps_ie, s32 wps_ie_len, bool *pbc)  in wl_validate_wps_ie()  argument
247 if (wps_ie == NULL || wps_ie_len < WPS_IE_FIXED_LEN) { in wl_validate_wps_ie()
251 len = (s16)wps_ie[TLV_LEN_OFF]; in wl_validate_wps_ie()
259 subel = wps_ie + WPS_IE_FIXED_LEN; in wl_validate_wps_ie()
2609 if (bss->wps_ie) { in wl_cfg80211_bcn_validate_sec()
2610 MFREE(cfg->osh, bss->wps_ie, bss->wps_ie[1] + 2); in wl_cfg80211_bcn_validate_sec()
2611 bss->wps_ie = NULL; 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()
2663 if (bss->wps_ie) { in wl_cfg80211_bcn_validate_sec()
2664 memcpy(bss->wps_ie, ies->wps_ie, ies->wps_ie_len); in wl_cfg80211_bcn_validate_sec()
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()
3367 if (ies->wps_ie) { in wl_cfg80211_hostapd_sec()
3371 if (bss->wps_ie && in wl_cfg80211_hostapd_sec()
3372 memcmp(bss->wps_ie, ies->wps_ie, ies->wps_ie_len)) { in wl_cfg80211_hostapd_sec()
3374 MFREE(cfg->osh, bss->wps_ie, bss->wps_ie[1] + 2); in wl_cfg80211_hostapd_sec()
3375 bss->wps_ie = MALLOCZ(cfg->osh, ies->wps_ie_len); in wl_cfg80211_hostapd_sec()
3376 if (bss->wps_ie) { in wl_cfg80211_hostapd_sec()
3377 memcpy(bss->wps_ie, ies->wps_ie, ies->wps_ie_len); in wl_cfg80211_hostapd_sec()
3379 } else if (bss->wps_ie == NULL) { in wl_cfg80211_hostapd_sec()
3381 bss->wps_ie = MALLOCZ(cfg->osh, ies->wps_ie_len); in wl_cfg80211_hostapd_sec()
3382 if (bss->wps_ie) { in wl_cfg80211_hostapd_sec()
3383 memcpy(bss->wps_ie, ies->wps_ie, ies->wps_ie_len); in wl_cfg80211_hostapd_sec()
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()
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()
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()