Searched refs:wpa_ie (Results 1 - 25 of 37) sorted by relevance

12

/freebsd-9.3-release/contrib/wpa/src/rsn_supp/
H A Dwpa_ie.h19 const u8 *wpa_ie; member in struct:wpa_eapol_ie_parse
54 int wpa_gen_wpa_ie(struct wpa_sm *sm, u8 *wpa_ie, size_t wpa_ie_len);
H A Dwpa_ie.c22 #include "wpa_ie.h"
53 static int wpa_parse_wpa_ie_wpa(const u8 *wpa_ie, size_t wpa_ie_len, argument
82 hdr = (const struct wpa_ie_hdr *) wpa_ie;
165 * @wpa_ie: Pointer to WPA or RSN IE
172 int wpa_parse_wpa_ie(const u8 *wpa_ie, size_t wpa_ie_len, argument
175 if (wpa_ie_len >= 1 && wpa_ie[0] == WLAN_EID_RSN)
176 return wpa_parse_wpa_ie_rsn(wpa_ie, wpa_ie_len, data);
178 return wpa_parse_wpa_ie_wpa(wpa_ie, wpa_ie_len, data);
182 static int wpa_gen_wpa_ie_wpa(u8 *wpa_ie, size_t wpa_ie_len, argument
193 hdr = (struct wpa_ie_hdr *) wpa_ie;
384 wpa_gen_wpa_ie(struct wpa_sm *sm, u8 *wpa_ie, size_t wpa_ie_len) argument
[all...]
H A Dwpa.h102 int wpa_sm_set_assoc_wpa_ie_default(struct wpa_sm *sm, u8 *wpa_ie,
118 int wpa_parse_wpa_ie(const u8 *wpa_ie, size_t wpa_ie_len,
190 u8 *wpa_ie,
237 static inline int wpa_parse_wpa_ie(const u8 *wpa_ie, size_t wpa_ie_len, argument
189 wpa_sm_set_assoc_wpa_ie_default(struct wpa_sm *sm, u8 *wpa_ie, size_t *wpa_ie_len) argument
H A Dwpa.c27 #include "wpa_ie.h"
251 * @wpa_ie: WPA/RSN IE
259 const u8 *wpa_ie, size_t wpa_ie_len,
267 if (wpa_ie == NULL) {
268 wpa_printf(MSG_WARNING, "WPA: No wpa_ie set - cannot "
285 os_memcpy(rsn_ie_buf, wpa_ie, wpa_ie_len);
300 wpa_ie = rsn_ie_buf;
304 wpa_hexdump(MSG_DEBUG, "WPA: WPA IE for msg 2/4", wpa_ie, wpa_ie_len);
326 os_memcpy(reply + 1, wpa_ie, wpa_ie_len);
765 const u8 *wpa_ie, size_
256 wpa_supplicant_send_2_of_4(struct wpa_sm *sm, const unsigned char *dst, const struct wpa_eapol_key *key, int ver, const u8 *nonce, const u8 *wpa_ie, size_t wpa_ie_len, struct wpa_ptk *ptk) argument
763 wpa_report_ie_mismatch(struct wpa_sm *sm, const char *reason, const u8 *src_addr, const u8 *wpa_ie, size_t wpa_ie_len, const u8 *rsn_ie, size_t rsn_ie_len) argument
2381 wpa_sm_set_assoc_wpa_ie_default(struct wpa_sm *sm, u8 *wpa_ie, size_t *wpa_ie_len) argument
[all...]
H A Dwpa_i.h247 const u8 *wpa_ie, size_t wpa_ie_len,
/freebsd-9.3-release/contrib/wpa/src/ap/
H A Dwpa_auth_ie.h19 const u8 *wpa_ie; member in struct:wpa_eapol_ie_parse
H A Dwpa_auth_ie.c297 os_free(wpa_auth->wpa_ie);
298 wpa_auth->wpa_ie = os_malloc(pos - buf);
299 if (wpa_auth->wpa_ie == NULL)
301 os_memcpy(wpa_auth->wpa_ie, buf, pos - buf);
353 static int wpa_parse_wpa_ie_wpa(const u8 *wpa_ie, size_t wpa_ie_len, argument
370 hdr = (const struct wpa_ie_hdr *) wpa_ie;
454 const u8 *wpa_ie, size_t wpa_ie_len,
466 if (wpa_ie == NULL || wpa_ie_len < 1)
469 if (wpa_ie[0] == WLAN_EID_RSN)
481 res = wpa_parse_wpa_ie_rsn(wpa_ie, wpa_ie_le
452 wpa_validate_wpa_ie(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, const u8 *wpa_ie, size_t wpa_ie_len, const u8 *mdie, size_t mdie_len) argument
[all...]
H A Dwpa_auth.c369 os_free(wpa_auth->wpa_ie);
378 os_free(wpa_auth->wpa_ie);
387 os_free(wpa_auth->wpa_ie);
431 os_free(wpa_auth->wpa_ie);
546 os_free(sm->wpa_ie);
809 eapol_key_ie = kde.wpa_ie;
814 if (sm->wpa_ie == NULL ||
816 sm->wpa_ie, sm->wpa_ie_len,
821 if (sm->wpa_ie) {
823 sm->wpa_ie, s
1684 u8 *wpa_ie; local
[all...]
H A Dwpa_auth_i.h97 u8 *wpa_ie; member in struct:wpa_state_machine
177 u8 *wpa_ie; member in struct:wpa_authenticator
H A Dieee802_11.c618 const u8 *wpa_ie; local
645 wpa_ie = elems.rsn_ie;
648 elems.wpa_ie) {
649 wpa_ie = elems.wpa_ie;
652 wpa_ie = NULL;
665 wpa_ie = NULL;
667 } else if (hapd->conf->wps_state && wpa_ie == NULL) {
673 if (hapd->conf->wpa && wpa_ie == NULL) {
680 if (hapd->conf->wpa && wpa_ie) {
[all...]
H A Dhostapd.c89 const u8 *wpa_ie; local
92 wpa_ie = wpa_auth_get_wpa_ie(hapd->wpa_auth, &wpa_ie_len);
93 if (hostapd_set_generic_elem(hapd, wpa_ie, wpa_ie_len))
H A Dwpa_auth_glue.c444 const u8 *wpa_ie; local
479 wpa_ie = wpa_auth_get_wpa_ie(hapd->wpa_auth, &wpa_ie_len);
480 if (hostapd_set_generic_elem(hapd, wpa_ie, wpa_ie_len)) {
H A Ddrv_callbacks.c68 } else if (elems.wpa_ie) {
69 ie = elems.wpa_ie - 2;
/freebsd-9.3-release/contrib/wpa/src/common/
H A Dieee802_11_common.h30 const u8 *wpa_ie; member in struct:ieee802_11_elems
H A Dieee802_11_common.c49 elems->wpa_ie = pos;
/freebsd-9.3-release/contrib/wpa/wpa_supplicant/
H A Dsme.c333 params.wpa_ie = wpa_s->sme.assoc_req_ie_len ?
338 params.wpa_ie = wpa_s->sme.ft_ies;
354 if (params.wpa_ie == NULL ||
355 ieee802_11_parse_elems(params.wpa_ie, params.wpa_ie_len, &elems, 0)
363 else if (elems.wpa_ie)
364 wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, elems.wpa_ie - 2,
H A Dwpa_supplicant.c790 * @wpa_ie: Buffer for the WPA/RSN IE
791 * @wpa_ie_len: Maximum wpa_ie buffer size on input. This is changed to be the
801 u8 *wpa_ie, size_t *wpa_ie_len)
965 if (wpa_sm_set_assoc_wpa_ie_default(wpa_s->wpa, wpa_ie, wpa_ie_len)) {
991 u8 wpa_ie[80]; local
1100 wpa_ie_len = sizeof(wpa_ie);
1102 wpa_ie, &wpa_ie_len)) {
1112 wpa_ie_len = sizeof(wpa_ie);
1114 wpa_ie, &wpa_ie_len)) {
1124 if (wps_ie && wpabuf_len(wps_ie) <= sizeof(wpa_ie)) {
799 wpa_supplicant_set_suites(struct wpa_supplicant *wpa_s, struct wpa_bss *bss, struct wpa_ssid *ssid, u8 *wpa_ie, size_t *wpa_ie_len) argument
[all...]
H A Devents.c73 u8 wpa_ie[80]; local
74 size_t wpa_ie_len = sizeof(wpa_ie);
76 wpa_ie, &wpa_ie_len);
302 const u8 *rsn_ie, *wpa_ie; local
354 wpa_ie = wpa_scan_get_vendor_ie(bss, WPA_IE_VENDOR_TYPE);
355 while ((ssid->proto & WPA_PROTO_WPA) && wpa_ie) {
358 if (wpa_parse_wpa_ie(wpa_ie, 2 + wpa_ie[1], &ie)) {
H A Dmlme.c70 u8 *wpa_ie; member in struct:ieee80211_sta_bss
1289 os_free(bss->wpa_ie);
1489 if (elems.wpa_ie &&
1490 (bss->wpa_ie == NULL || bss->wpa_ie_len != elems.wpa_ie_len ||
1491 os_memcmp(bss->wpa_ie, elems.wpa_ie, elems.wpa_ie_len))) {
1492 os_free(bss->wpa_ie);
1493 bss->wpa_ie = os_malloc(elems.wpa_ie_len + 2);
1494 if (bss->wpa_ie) {
1495 os_memcpy(bss->wpa_ie, elem
[all...]
H A Dwpa_supplicant_i.h452 u8 *wpa_ie, size_t *wpa_ie_len);
/freebsd-9.3-release/contrib/wpa/src/drivers/
H A Ddriver_ndiswrapper.c52 const u8 *wpa_ie; member in struct:wpa_assoc_info
240 wpa_assoc_info.wpa_ie = params->wpa_ie;
/freebsd-9.3-release/usr.sbin/wpa/wpa_supplicant/
H A DMakefile37 wpa_ie.c \
H A Ddriver_freebsd.c223 const u8 *wpa_ie, size_t wpa_ie_len)
232 ireq.i_data = (void *) wpa_ie;
473 if (wpa_driver_bsd_set_wpa_ie(drv, params->wpa_ie, params->wpa_ie_len) < 0)
487 params->wpa_ie[0] == WLAN_EID_RSN ? 2 : 1) < 0)
222 wpa_driver_bsd_set_wpa_ie(struct wpa_driver_bsd_data *drv, const u8 *wpa_ie, size_t wpa_ie_len) argument
/freebsd-9.3-release/sys/net80211/
H A Dieee80211_ioctl.h388 uint8_t wpa_ie[IEEE80211_MAX_OPT_IE]; member in struct:ieee80211req_wpaie
392 uint8_t wpa_ie[IEEE80211_MAX_OPT_IE]; member in struct:ieee80211req_wpaie2
/freebsd-9.3-release/usr.sbin/wpa/hostapd/
H A Ddriver_freebsd.c344 iebuf = ie.wpa_ie;
345 ielen = ie.wpa_ie[1];

Completed in 153 milliseconds

12