/freebsd/contrib/wpa/src/rsn_supp/ |
H A D | wpa_ie.c | 28 int wpa_parse_wpa_ie(const u8 *wpa_ie, size_t wpa_ie_len, in wpa_parse_wpa_ie() argument 31 if (wpa_ie_len >= 1 && wpa_ie[0] == WLAN_EID_RSN) in wpa_parse_wpa_ie() 32 return wpa_parse_wpa_ie_rsn(wpa_ie, wpa_ie_len, data); in wpa_parse_wpa_ie() 33 if (wpa_ie_len >= 6 && wpa_ie[0] == WLAN_EID_VENDOR_SPECIFIC && in wpa_parse_wpa_ie() 34 wpa_ie[1] >= 4 && WPA_GET_BE32(&wpa_ie[2]) == OSEN_IE_VENDOR_TYPE) in wpa_parse_wpa_ie() 35 return wpa_parse_wpa_ie_rsn(wpa_ie, wpa_ie_len, data); in wpa_parse_wpa_ie() 37 return wpa_parse_wpa_ie_wpa(wpa_ie, wpa_ie_len, data); in wpa_parse_wpa_ie() 41 static int wpa_gen_wpa_ie_wpa(u8 *wpa_ie, size_t wpa_ie_len, in wpa_gen_wpa_ie_wpa() argument 53 hdr = (struct wpa_ie_hdr *) wpa_ie; in wpa_gen_wpa_ie_wpa() 100 hdr->len = (pos - wpa_ie) - 2; in wpa_gen_wpa_ie_wpa() [all …]
|
H A D | wpa_ie.h | 14 int wpa_gen_wpa_ie(struct wpa_sm *sm, u8 *wpa_ie, size_t wpa_ie_len);
|
H A D | Makefile | 12 wpa_ie.o
|
H A D | wpa.h | 199 int wpa_sm_set_assoc_wpa_ie_default(struct wpa_sm *sm, u8 *wpa_ie, 221 int wpa_parse_wpa_ie(const u8 *wpa_ie, size_t wpa_ie_len, 327 u8 *wpa_ie, in wpa_sm_set_assoc_wpa_ie_default() argument 394 static inline int wpa_parse_wpa_ie(const u8 *wpa_ie, size_t wpa_ie_len, in wpa_parse_wpa_ie() argument
|
H A D | wpa.c | 528 const u8 *wpa_ie, size_t wpa_ie_len, in wpa_supplicant_send_2_of_4() argument 540 if (wpa_ie == NULL) { in wpa_supplicant_send_2_of_4() 551 wpa_ie, wpa_ie_len); in wpa_supplicant_send_2_of_4() 560 os_memcpy(rsn_ie_buf, wpa_ie, wpa_ie_len); in wpa_supplicant_send_2_of_4() 580 wpa_ie = rsn_ie_buf; in wpa_supplicant_send_2_of_4() 584 wpa_hexdump(MSG_DEBUG, "WPA: WPA IE for msg 2/4", wpa_ie, wpa_ie_len); in wpa_supplicant_send_2_of_4() 634 os_memcpy(key_mic + mic_len + 2, wpa_ie, wpa_ie_len); /* Key Data */ in wpa_supplicant_send_2_of_4() 1960 const u8 *wpa_ie, size_t wpa_ie_len, in wpa_report_ie_mismatch() argument 1970 if (wpa_ie) { in wpa_report_ie_mismatch() 1976 wpa_ie, wpa_ie_len); in wpa_report_ie_mismatch() [all …]
|
H A D | wpa_i.h | 533 const u8 *wpa_ie, size_t wpa_ie_len,
|
/freebsd/contrib/wpa/src/ap/ |
H A D | wpa_auth_ie.c | 519 os_free(wpa_auth->wpa_ie); in wpa_auth_gen_wpa_ie() 520 wpa_auth->wpa_ie = in wpa_auth_gen_wpa_ie() 522 if (wpa_auth->wpa_ie == NULL) in wpa_auth_gen_wpa_ie() 524 os_memcpy(wpa_auth->wpa_ie, wpa_auth->conf.own_ie_override, in wpa_auth_gen_wpa_ie() 565 os_free(wpa_auth->wpa_ie); in wpa_auth_gen_wpa_ie() 566 wpa_auth->wpa_ie = os_malloc(pos - buf); in wpa_auth_gen_wpa_ie() 567 if (wpa_auth->wpa_ie == NULL) in wpa_auth_gen_wpa_ie() 569 os_memcpy(wpa_auth->wpa_ie, buf, pos - buf); in wpa_auth_gen_wpa_ie() 615 const u8 *wpa_ie, size_t wpa_ie_len, in wpa_validate_wpa_ie() argument 631 if (wpa_ie == NULL || wpa_ie_len < 1) in wpa_validate_wpa_ie() [all …]
|
H A D | wpa_auth.c | 765 os_free(wpa_auth->wpa_ie); 775 os_free(wpa_auth->wpa_ie); 785 os_free(wpa_auth->wpa_ie); 887 os_free(wpa_auth->wpa_ie); 1047 os_free(sm->wpa_ie); 1179 if (wpa_parse_wpa_ie_rsn(sm->wpa_ie, sm->wpa_ie_len, &assoc_ie) < 0) { 3832 eapol_key_ie = kde.wpa_ie; 3836 if (!sm->wpa_ie || 3837 wpa_compare_rsn_ie(ft, sm->wpa_ie, sm->wpa_ie_len, 3841 if (sm->wpa_ie) { [all …]
|
H A D | wpa_auth_i.h | 110 u8 *wpa_ie; member 249 u8 *wpa_ie; member
|
H A D | wpa_auth_glue.c | 1661 const u8 *wpa_ie; in hostapd_setup_wpa() local 1740 wpa_ie = wpa_auth_get_wpa_ie(hapd->wpa_auth, &wpa_ie_len); in hostapd_setup_wpa() 1741 if (hostapd_set_generic_elem(hapd, wpa_ie, wpa_ie_len)) { in hostapd_setup_wpa()
|
H A D | ieee802_11.c | 3925 const u8 *wpa_ie; in __check_assoc_ies() local 4049 wpa_ie = elems->rsn_ie; in __check_assoc_ies() 4052 elems->wpa_ie) { in __check_assoc_ies() 4053 wpa_ie = elems->wpa_ie; in __check_assoc_ies() 4056 wpa_ie = NULL; in __check_assoc_ies() 4073 wpa_ie = NULL; in __check_assoc_ies() 4080 } else if (hapd->conf->wps_state && wpa_ie == NULL) { in __check_assoc_ies() 4086 if (hapd->conf->wpa && wpa_ie == NULL) { in __check_assoc_ies() 4093 if (hapd->conf->wpa && wpa_ie) { in __check_assoc_ies() 4100 wpa_ie -= 2; in __check_assoc_ies() [all …]
|
H A D | wpa_auth.h | 428 const u8 *wpa_ie, size_t wpa_ie_len,
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | wpa_supplicant.c | 1692 u8 *wpa_ie, size_t *wpa_ie_len, in wpa_supplicant_set_suites() argument 2136 if (wpa_sm_set_assoc_wpa_ie_default(wpa_s->wpa, wpa_ie, in wpa_supplicant_set_suites() 3370 u8 *wpa_ie, size_t wpa_ie_len, in wpas_populate_wfa_capa() argument 3411 os_memcpy(wpa_ie + wpa_ie_len, wpabuf_head(wfa_ie), in wpas_populate_wfa_capa() 3427 u8 *wpa_ie; in wpas_populate_assoc_ies() local 3450 wpa_ie = os_malloc(max_wpa_ie_len); in wpas_populate_assoc_ies() 3451 if (!wpa_ie) { in wpas_populate_assoc_ies() 3492 wpa_ie, &wpa_ie_len, false)) { in wpas_populate_assoc_ies() 3495 os_free(wpa_ie); in wpas_populate_assoc_ies() 3504 wpa_ie, &wpa_ie_len, false)) { in wpas_populate_assoc_ies() [all …]
|
H A D | sme.c | 565 u8 *wpa_ie; in sme_send_authentication() local 776 wpa_ie = NULL; in sme_send_authentication() 779 wpa_ie = os_memdup(wpa_s->sme.assoc_req_ie, in sme_send_authentication() 781 if (wpa_ie) { in sme_send_authentication() 965 if (wpa_ie) { in sme_send_authentication() 976 wpa_ie, wpa_ie_len); in sme_send_authentication() 982 os_free(wpa_ie); in sme_send_authentication() 2472 params.wpa_ie = wpa_s->sme.assoc_req_ie_len ? in sme_associate() 2476 params.wpa_ie, params.wpa_ie_len); in sme_associate() 2512 params.wpa_ie = wpa_s->sme.ft_ies; in sme_associate() [all …]
|
H A D | events.c | 292 u8 wpa_ie[80]; in wpa_supplicant_select_config() local 293 size_t wpa_ie_len = sizeof(wpa_ie); in wpa_supplicant_select_config() 301 wpa_ie, &wpa_ie_len, in wpa_supplicant_select_config() 654 const u8 *rsn_ie, *wpa_ie; in wpa_supplicant_ssid_bss_match() local 798 wpa_ie = wpa_bss_get_vendor_ie(bss, WPA_IE_VENDOR_TYPE); in wpa_supplicant_ssid_bss_match() 804 !wpa_ie && !rsn_ie && in wpa_supplicant_ssid_bss_match() 825 while ((ssid->proto & WPA_PROTO_WPA) && wpa_ie) { in wpa_supplicant_ssid_bss_match() 828 if (wpa_parse_wpa_ie(wpa_ie, 2 + wpa_ie[1], &ie)) { in wpa_supplicant_ssid_bss_match() 880 if ((ssid->key_mgmt & WPA_KEY_MGMT_IEEE8021X_NO_WPA) && !wpa_ie && in wpa_supplicant_ssid_bss_match() 890 !wpa_ie && !rsn_ie) { in wpa_supplicant_ssid_bss_match()
|
H A D | nmake.mak | 82 $(OBJDIR)\wpa_ie.obj \
|
/freebsd/contrib/wpa/src/drivers/ |
H A D | driver_bsd.c | 593 iebuf = ie.wpa_ie; in bsd_new_sta() 594 ielen = ie.wpa_ie[1]; in bsd_new_sta() 1171 wpa_driver_bsd_set_wpa_ie(struct bsd_driver_data *drv, const u8 *wpa_ie, in wpa_driver_bsd_set_wpa_ie() argument 1175 return bsd_set_opt_ie(drv, wpa_ie, wpa_ie_len); in wpa_driver_bsd_set_wpa_ie() 1177 return set80211var(drv, IEEE80211_IOC_OPTIE, wpa_ie, wpa_ie_len); in wpa_driver_bsd_set_wpa_ie() 1288 const u8 *wpa_ie, *rsn_ie; in wpa_driver_bsd_associate() local 1339 rsn_ie = get_ie(params->wpa_ie, params->wpa_ie_len, in wpa_driver_bsd_associate() 1347 wpa_ie = get_vendor_ie(params->wpa_ie, in wpa_driver_bsd_associate() 1349 if (wpa_ie) { in wpa_driver_bsd_associate() 1351 wpa_ie) < 0) in wpa_driver_bsd_associate()
|
H A D | driver_atheros.c | 77 struct wpabuf *wpa_ie; member 713 wpabuf_free(drv->wpa_ie); in atheros_set_opt_ie() 715 drv->wpa_ie = wpabuf_alloc_copy(ie, ie_len); in atheros_set_opt_ie() 717 drv->wpa_ie = NULL; in atheros_set_opt_ie() 1019 (drv->wpa_ie != NULL)) { in atheros_set_wps_ie() 1021 drv->wpa_ie); in atheros_set_wps_ie() 1022 os_memcpy(&(beac_ie->app_buf[len]), wpabuf_head(drv->wpa_ie), in atheros_set_wps_ie() 1023 wpabuf_len(drv->wpa_ie)); in atheros_set_wps_ie() 1024 beac_ie->app_buflen += wpabuf_len(drv->wpa_ie); in atheros_set_wps_ie() 1191 ie.wpa_ie, IEEE80211_MAX_OPT_IE); in atheros_new_sta() [all …]
|
H A D | driver_privsep.c | 330 if (params->wpa_ie) in wpa_driver_privsep_associate() 331 os_memcpy(data + 1, params->wpa_ie, params->wpa_ie_len); in wpa_driver_privsep_associate()
|
/freebsd/usr.sbin/wpa/src/rsn_supp/ |
H A D | Makefile | 17 wpa_ie.c
|
/freebsd/sys/net80211/ |
H A D | ieee80211_ioctl.h | 400 uint8_t wpa_ie[IEEE80211_MAX_OPT_IE]; member 404 uint8_t wpa_ie[IEEE80211_MAX_OPT_IE]; member
|
H A D | ieee80211_ioctl.c | 175 if (ni->ni_ies.wpa_ie != NULL) { in ieee80211_ioctl_getwpaie() 176 int ielen = ni->ni_ies.wpa_ie[1] + 2; in ieee80211_ioctl_getwpaie() 177 if (ielen > sizeof(wpaie->wpa_ie)) in ieee80211_ioctl_getwpaie() 178 ielen = sizeof(wpaie->wpa_ie); in ieee80211_ioctl_getwpaie() 179 memcpy(wpaie->wpa_ie, ni->ni_ies.wpa_ie, ielen); in ieee80211_ioctl_getwpaie() 195 if (ielen > sizeof(wpaie->wpa_ie)) in ieee80211_ioctl_getwpaie() 196 ielen = sizeof(wpaie->wpa_ie); in ieee80211_ioctl_getwpaie() 197 memcpy(wpaie->wpa_ie, ni->ni_ies.rsn_ie, ielen); in ieee80211_ioctl_getwpaie()
|
H A D | ieee80211_node.h | 78 uint8_t *wpa_ie; /* captured WPA ie */ member
|
/freebsd/contrib/wpa/src/common/ |
H A D | wpa_common.h | 530 int wpa_parse_wpa_ie_wpa(const u8 *wpa_ie, size_t wpa_ie_len, 651 const u8 *wpa_ie; member
|
H A D | ieee802_11_common.h | 47 const u8 *wpa_ie; member
|