Home
last modified time | relevance | path

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

123

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/rsn_supp/
H A Dwpa_ie.c16 #include "wpa_ie.h"
21 * @wpa_ie: Pointer to WPA or RSN IE
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_le in wpa_parse_wpa_ie()
41 wpa_gen_wpa_ie_wpa(u8 *wpa_ie, size_t wpa_ie_len, int pairwise_cipher, int group_cipher, int key_mgmt) wpa_gen_wpa_ie_wpa() argument
275 wpa_gen_wpa_ie_osen(u8 *wpa_ie, size_t wpa_ie_len, int pairwise_cipher, int group_cipher, int key_mgmt) wpa_gen_wpa_ie_osen() argument
339 wpa_gen_wpa_ie(struct wpa_sm *sm, u8 *wpa_ie, size_t wpa_ie_len) wpa_gen_wpa_ie() argument
[all...]
H A DMakefile12 wpa_ie.o
H A Dwpa_ie.h14 int wpa_gen_wpa_ie(struct wpa_sm *sm, u8 *wpa_ie, size_t wpa_ie_len);
H A Dwpa.h183 int wpa_sm_set_assoc_wpa_ie_default(struct wpa_sm *sm, u8 *wpa_ie,
208 int wpa_parse_wpa_ie(const u8 *wpa_ie, size_t wpa_ie_len,
313 u8 *wpa_ie, in wpa_sm_set_assoc_wpa_ie_default()
387 static inline int wpa_parse_wpa_ie(const u8 *wpa_ie, size_t wpa_ie_len, in wpa_parse_wpa_ie() argument
312 wpa_sm_set_assoc_wpa_ie_default(struct wpa_sm *sm, u8 *wpa_ie, size_t *wpa_ie_len) wpa_sm_set_assoc_wpa_ie_default() argument
H A Dwpa.c34 #include "wpa_ie.h"
526 * @wpa_ie: WPA/RSN IE
534 const u8 *wpa_ie, size_t wpa_ie_len, in wpa_supplicant_send_2_of_4()
543 if (wpa_ie == NULL) { in wpa_supplicant_send_2_of_4()
544 wpa_msg(sm->ctx->msg_ctx, MSG_WARNING, "WPA: No wpa_ie set - " in wpa_supplicant_send_2_of_4()
554 wpa_ie, wpa_ie_len); in wpa_supplicant_send_2_of_4()
563 os_memcpy(rsn_ie_buf, wpa_ie, wpa_ie_len); in wpa_supplicant_send_2_of_4()
583 wpa_ie = rsn_ie_buf; in wpa_supplicant_send_2_of_4()
587 wpa_hexdump(MSG_DEBUG, "WPA: WPA IE for msg 2/4", wpa_ie, wpa_ie_len); in wpa_supplicant_send_2_of_4()
619 os_memcpy(key_mic + mic_len + 2, wpa_ie, wpa_ie_le in wpa_supplicant_send_2_of_4()
531 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) wpa_supplicant_send_2_of_4() argument
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/rsn_supp/
H A Dwpa_ie.c16 #include "wpa_ie.h"
21 * @wpa_ie: Pointer to WPA or RSN IE
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_le in wpa_parse_wpa_ie()
41 wpa_gen_wpa_ie_wpa(u8 *wpa_ie, size_t wpa_ie_len, int pairwise_cipher, int group_cipher, int key_mgmt) wpa_gen_wpa_ie_wpa() argument
264 wpa_gen_wpa_ie_osen(u8 *wpa_ie, size_t wpa_ie_len, int pairwise_cipher, int group_cipher, int key_mgmt) wpa_gen_wpa_ie_osen() argument
328 wpa_gen_wpa_ie(struct wpa_sm *sm, u8 *wpa_ie, size_t wpa_ie_len) wpa_gen_wpa_ie() argument
[all...]
H A Dwpa_ie.h15 const u8 *wpa_ie; member
64 int wpa_gen_wpa_ie(struct wpa_sm *sm, u8 *wpa_ie, size_t wpa_ie_len);
H A Dwpa.h135 int wpa_sm_set_assoc_wpa_ie_default(struct wpa_sm *sm, u8 *wpa_ie,
151 int wpa_parse_wpa_ie(const u8 *wpa_ie, size_t wpa_ie_len,
245 u8 *wpa_ie, in wpa_sm_set_assoc_wpa_ie_default()
296 static inline int wpa_parse_wpa_ie(const u8 *wpa_ie, size_t wpa_ie_len, in wpa_parse_wpa_ie() argument
244 wpa_sm_set_assoc_wpa_ie_default(struct wpa_sm *sm, u8 *wpa_ie, size_t *wpa_ie_len) wpa_sm_set_assoc_wpa_ie_default() argument
H A DMakefile23 wpa_ie.o
H A Dwpa.c32 #include "wpa_ie.h"
464 * @wpa_ie: WPA/RSN IE
472 const u8 *wpa_ie, size_t wpa_ie_len, in wpa_supplicant_send_2_of_4()
481 if (wpa_ie == NULL) { in wpa_supplicant_send_2_of_4()
482 wpa_msg(sm->ctx->msg_ctx, MSG_WARNING, "WPA: No wpa_ie set - " in wpa_supplicant_send_2_of_4()
499 os_memcpy(rsn_ie_buf, wpa_ie, wpa_ie_len); in wpa_supplicant_send_2_of_4()
513 wpa_ie = rsn_ie_buf; in wpa_supplicant_send_2_of_4()
517 wpa_hexdump(MSG_DEBUG, "WPA: WPA IE for msg 2/4", wpa_ie, wpa_ie_len); in wpa_supplicant_send_2_of_4()
549 os_memcpy(key_mic + mic_len + 2, wpa_ie, wpa_ie_len); /* Key Data */ in wpa_supplicant_send_2_of_4()
1153 const u8 *wpa_ie, size_ in wpa_report_ie_mismatch()
469 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) wpa_supplicant_send_2_of_4() argument
1151 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) wpa_report_ie_mismatch() argument
3154 wpa_sm_set_assoc_wpa_ie_default(struct wpa_sm *sm, u8 *wpa_ie, size_t *wpa_ie_len) wpa_sm_set_assoc_wpa_ie_default() argument
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
H A Dwpa_auth_ie.c444 os_free(wpa_auth->wpa_ie); in wpa_auth_gen_wpa_ie()
445 wpa_auth->wpa_ie = in wpa_auth_gen_wpa_ie()
447 if (wpa_auth->wpa_ie == NULL) in wpa_auth_gen_wpa_ie()
449 os_memcpy(wpa_auth->wpa_ie, wpa_auth->conf.own_ie_override, in wpa_auth_gen_wpa_ie()
485 os_free(wpa_auth->wpa_ie); in wpa_auth_gen_wpa_ie()
486 wpa_auth->wpa_ie = os_malloc(pos - buf); in wpa_auth_gen_wpa_ie()
487 if (wpa_auth->wpa_ie == NULL) in wpa_auth_gen_wpa_ie()
489 os_memcpy(wpa_auth->wpa_ie, buf, pos - buf); in wpa_auth_gen_wpa_ie()
534 const u8 *wpa_ie, size_t wpa_ie_len, in wpa_validate_wpa_ie()
547 if (wpa_ie in wpa_validate_wpa_ie()
532 wpa_validate_wpa_ie(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int freq, const u8 *wpa_ie, size_t wpa_ie_len, const u8 *mdie, size_t mdie_len, const u8 *owe_dh, size_t owe_dh_len) wpa_validate_wpa_ie() argument
[all...]
H A Dwpa_auth.c471 os_free(wpa_auth->wpa_ie); in wpa_init()
481 os_free(wpa_auth->wpa_ie); in wpa_init()
491 os_free(wpa_auth->wpa_ie); in wpa_init()
562 os_free(wpa_auth->wpa_ie); in wpa_deinit()
716 os_free(sm->wpa_ie); in wpa_free_sta_sm()
2930 eapol_key_ie = kde.wpa_ie; in SM_STATE()
2934 if (sm->wpa_ie == NULL || in SM_STATE()
2935 wpa_compare_rsn_ie(ft, sm->wpa_ie, sm->wpa_ie_len, in SM_STATE()
2939 if (sm->wpa_ie) { in SM_STATE()
2941 sm->wpa_ie, s in SM_STATE()
3156 u8 *wpa_ie; SM_STATE() local
4996 u8 *wpa_ie; wpa_auth_resend_m3() local
[all...]
H A Dwpa_auth_i.h103 u8 *wpa_ie; member
224 u8 *wpa_ie; member
H A Dwpa_auth_ie.h13 const u8 *wpa_ie; member
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
H A Dwpa_auth_ie.c498 os_free(wpa_auth->wpa_ie); in wpa_auth_gen_wpa_ie()
499 wpa_auth->wpa_ie = in wpa_auth_gen_wpa_ie()
501 if (wpa_auth->wpa_ie == NULL) in wpa_auth_gen_wpa_ie()
503 os_memcpy(wpa_auth->wpa_ie, wpa_auth->conf.own_ie_override, in wpa_auth_gen_wpa_ie()
544 os_free(wpa_auth->wpa_ie); in wpa_auth_gen_wpa_ie()
545 wpa_auth->wpa_ie = os_malloc(pos - buf); in wpa_auth_gen_wpa_ie()
546 if (wpa_auth->wpa_ie == NULL) in wpa_auth_gen_wpa_ie()
548 os_memcpy(wpa_auth->wpa_ie, buf, pos - buf); in wpa_auth_gen_wpa_ie()
594 const u8 *wpa_ie, size_t wpa_ie_len, in wpa_validate_wpa_ie()
609 if (wpa_ie in wpa_validate_wpa_ie()
592 wpa_validate_wpa_ie(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int freq, const u8 *wpa_ie, size_t wpa_ie_len, const u8 *rsnxe, size_t rsnxe_len, const u8 *mdie, size_t mdie_len, const u8 *owe_dh, size_t owe_dh_len) wpa_validate_wpa_ie() argument
[all...]
H A Dwpa_auth.c528 os_free(wpa_auth->wpa_ie); in wpa_init()
538 os_free(wpa_auth->wpa_ie); in wpa_init()
548 os_free(wpa_auth->wpa_ie); in wpa_init()
619 os_free(wpa_auth->wpa_ie); in wpa_deinit()
778 os_free(sm->wpa_ie); in wpa_free_sta_sm()
3084 eapol_key_ie = kde.wpa_ie; in SM_STATE()
3088 if (!sm->wpa_ie || in SM_STATE()
3089 wpa_compare_rsn_ie(ft, sm->wpa_ie, sm->wpa_ie_len, in SM_STATE()
3093 if (sm->wpa_ie) { in SM_STATE()
3095 sm->wpa_ie, s in SM_STATE()
3409 u8 *wpa_ie; SM_STATE() local
5433 u8 *wpa_ie; wpa_auth_resend_m3() local
[all...]
H A Dwpa_auth_i.h106 u8 *wpa_ie; member
229 u8 *wpa_ie; member
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
H A Dwpa_supplicant.c1457 * @wpa_ie: Buffer for the WPA/RSN IE
1458 * @wpa_ie_len: Maximum wpa_ie buffer size on input. This is changed to be the
1468 u8 *wpa_ie, size_t *wpa_ie_len) in wpa_supplicant_set_suites()
1876 if (wpa_sm_set_assoc_wpa_ie_default(wpa_s->wpa, wpa_ie, wpa_ie_len)) { in wpa_supplicant_set_suites()
3015 u8 *wpa_ie, size_t wpa_ie_len,
3051 os_memcpy(wpa_ie + wpa_ie_len, wpabuf_head(wfa_ie),
3067 u8 *wpa_ie; local
3090 wpa_ie = os_malloc(max_wpa_ie_len);
3091 if (!wpa_ie) {
3122 wpa_ie,
1466 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) wpa_supplicant_set_suites() argument
3013 wpas_populate_wfa_capa(struct wpa_supplicant *wpa_s, struct wpa_bss *bss, u8 *wpa_ie, size_t wpa_ie_len, size_t max_wpa_ie_len) global() argument
3583 u8 *wpa_ie; global() local
3602 u8 *wpa_ie; global() local
3738 u8 *wpa_ie; global() local
3768 u8 *wpa_ie; global() local
[all...]
H A Dsme.c589 u8 *wpa_ie; local
780 wpa_ie = NULL;
783 wpa_ie = os_memdup(wpa_s->sme.assoc_req_ie,
785 if (wpa_ie) {
955 if (wpa_ie) {
966 wpa_ie, wpa_ie_len);
972 os_free(wpa_ie);
2557 params.wpa_ie = wpa_s->sme.assoc_req_ie_len ?
2561 params.wpa_ie, params.wpa_ie_len);
2596 params.wpa_ie
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
H A Dsme.c257 u8 *wpa_ie; in sme_send_authentication() local
435 wpa_ie = NULL; in sme_send_authentication()
438 wpa_ie = os_memdup(wpa_s->sme.assoc_req_ie, in sme_send_authentication()
440 if (wpa_ie) { in sme_send_authentication()
590 if (wpa_ie) { in sme_send_authentication()
601 wpa_ie, wpa_ie_len); in sme_send_authentication()
607 os_free(wpa_ie); in sme_send_authentication()
1642 params.wpa_ie = wpa_s->sme.assoc_req_ie_len ? in sme_associate()
1646 params.wpa_ie, params.wpa_ie_len); in sme_associate()
1678 params.wpa_ie in sme_associate()
[all...]
H A Dwpa_supplicant.c1240 * @wpa_ie: Buffer for the WPA/RSN IE
1241 * @wpa_ie_len: Maximum wpa_ie buffer size on input. This is changed to be the
1251 u8 *wpa_ie, size_t *wpa_ie_len) in wpa_supplicant_set_suites()
1595 if (wpa_sm_set_assoc_wpa_ie_default(wpa_s->wpa, wpa_ie, wpa_ie_len)) { in wpa_supplicant_set_suites()
2553 u8 *wpa_ie; in wpas_populate_assoc_ies() local
2576 wpa_ie = os_malloc(max_wpa_ie_len); in wpas_populate_assoc_ies()
2577 if (!wpa_ie) { in wpas_populate_assoc_ies()
2608 wpa_ie, &wpa_ie_len)) { in wpas_populate_assoc_ies()
2611 os_free(wpa_ie); in wpas_populate_assoc_ies()
2620 wpa_ie, in wpas_populate_assoc_ies()
1249 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) wpa_supplicant_set_suites() argument
2990 u8 *wpa_ie; wpas_update_fils_connect_params() local
3017 u8 *wpa_ie; wpas_update_mbo_connect_params() local
3047 u8 *wpa_ie; wpas_start_assoc_cb() local
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/
H A Ddriver_atheros.c82 struct wpabuf *wpa_ie; member
718 wpabuf_free(drv->wpa_ie); in atheros_set_opt_ie()
720 drv->wpa_ie = wpabuf_alloc_copy(ie, ie_len); in atheros_set_opt_ie()
722 drv->wpa_ie = NULL; in atheros_set_opt_ie()
1024 (drv->wpa_ie != NULL)) { in atheros_set_wps_ie()
1026 drv->wpa_ie); in atheros_set_wps_ie()
1027 os_memcpy(&(beac_ie->app_buf[len]), wpabuf_head(drv->wpa_ie), in atheros_set_wps_ie()
1028 wpabuf_len(drv->wpa_ie)); in atheros_set_wps_ie()
1029 beac_ie->app_buflen += wpabuf_len(drv->wpa_ie); in atheros_set_wps_ie()
1197 ie.wpa_ie, IEEE80211_MAX_OPT_I in atheros_new_sta()
[all...]
H A Ddriver_bsd.c563 iebuf = ie.wpa_ie; in bsd_new_sta()
564 ielen = ie.wpa_ie[1]; in bsd_new_sta()
977 wpa_driver_bsd_set_wpa_ie(struct bsd_driver_data *drv, const u8 *wpa_ie, in wpa_driver_bsd_set_wpa_ie() argument
981 return bsd_set_opt_ie(drv, wpa_ie, wpa_ie_len); in wpa_driver_bsd_set_wpa_ie()
983 return set80211var(drv, IEEE80211_IOC_OPTIE, wpa_ie, wpa_ie_len); in wpa_driver_bsd_set_wpa_ie()
1113 if (wpa_driver_bsd_set_wpa_ie(drv, params->wpa_ie, params->wpa_ie_len) < 0) in wpa_driver_bsd_associate()
1127 params->wpa_ie[0] == WLAN_EID_RSN ? 2 : 1) < 0) in wpa_driver_bsd_associate()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
H A Ddriver_atheros.c78 struct wpabuf *wpa_ie; member
714 wpabuf_free(drv->wpa_ie); in atheros_set_opt_ie()
716 drv->wpa_ie = wpabuf_alloc_copy(ie, ie_len); in atheros_set_opt_ie()
718 drv->wpa_ie = NULL; in atheros_set_opt_ie()
1018 (drv->wpa_ie != NULL)) { in atheros_set_wps_ie()
1020 drv->wpa_ie); in atheros_set_wps_ie()
1021 os_memcpy(&(beac_ie->app_buf[len]), wpabuf_head(drv->wpa_ie), in atheros_set_wps_ie()
1022 wpabuf_len(drv->wpa_ie)); in atheros_set_wps_ie()
1023 beac_ie->app_buflen += wpabuf_len(drv->wpa_ie); in atheros_set_wps_ie()
1190 ie.wpa_ie, IEEE80211_MAX_OPT_I in atheros_new_sta()
[all...]
H A Ddriver_bsd.c548 iebuf = ie.wpa_ie; in bsd_new_sta()
549 ielen = ie.wpa_ie[1]; in bsd_new_sta()
1117 wpa_driver_bsd_set_wpa_ie(struct bsd_driver_data *drv, const u8 *wpa_ie, in wpa_driver_bsd_set_wpa_ie() argument
1121 return bsd_set_opt_ie(drv, wpa_ie, wpa_ie_len); in wpa_driver_bsd_set_wpa_ie()
1123 return set80211var(drv, IEEE80211_IOC_OPTIE, wpa_ie, wpa_ie_len); in wpa_driver_bsd_set_wpa_ie()
1253 if (wpa_driver_bsd_set_wpa_ie(drv, params->wpa_ie, params->wpa_ie_len) < 0) in wpa_driver_bsd_associate()
1267 params->wpa_ie[0] == WLAN_EID_RSN ? 2 : 1) < 0) in wpa_driver_bsd_associate()

Completed in 41 milliseconds

123