Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching full:wpa

2  * WPA Supplicant
24 #include "wpa.h"
147 /* IBSS/WPA-None uses only one key (Group) for both receiving and
151 wpa_printf(MSG_INFO, "WPA: Invalid mode %d (not IBSS/ad-hoc) "
152 "for WPA-None", ssid->mode);
157 wpa_printf(MSG_INFO, "WPA: No PSK configured for WPA-None");
168 /* WPA-None uses the same Michael MIC key for both TX and RX */
175 wpa_printf(MSG_INFO, "WPA: Invalid group cipher %d for "
176 "WPA-None", wpa_s->group_cipher);
197 wpa_sm_notify_disassoc(wpa_s->wpa);
294 * wpa_supplicant_set_non_wpa_policy - Set WPA parameters to non-WPA mode
298 * This function is used to configure WPA state machine and related parameters
299 * to a mode where WPA is not enabled. This is called as part of the
300 * authentication configuration when the selected network does not use WPA.
313 wpa_sm_set_ap_wpa_ie(wpa_s->wpa, NULL, 0);
314 wpa_sm_set_ap_rsn_ie(wpa_s->wpa, NULL, 0);
315 wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, NULL, 0);
332 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_RSN_ENABLED, 0);
333 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_KEY_MGMT, wpa_s->key_mgmt);
334 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_PAIRWISE,
336 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_GROUP, wpa_s->group_cipher);
338 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_MGMT_GROUP,
342 pmksa_cache_clear_current(wpa_s->wpa);
350 wpa_sm_set_scard_ctx(wpa_s->wpa, NULL);
371 wpa_sm_set_eapol(wpa_s->wpa, NULL);
375 rsn_preauth_deinit(wpa_s->wpa);
377 pmksa_candidate_free(wpa_s->wpa);
378 wpa_sm_deinit(wpa_s->wpa);
379 wpa_s->wpa = NULL;
480 * association is completed for WPA/WPA2 4-Way Handshake is started.
601 wpa_sm_set_config(wpa_s->wpa, NULL);
602 wpa_sm_set_fast_reauth(wpa_s->wpa, wpa_s->conf->fast_reauth);
603 rsn_preauth_deinit(wpa_s->wpa);
685 int ret = wpa_sm_parse_own_wpa_ie(wpa_s->wpa, ie);
688 wpa_msg(wpa_s, MSG_INFO, "WPA: Failed to parse WPA IE "
694 wpa_printf(MSG_DEBUG, "WPA: Using WPA IE from AssocReq to set cipher "
697 wpa_msg(wpa_s, MSG_INFO, "WPA: Driver used disabled group "
703 wpa_msg(wpa_s, MSG_INFO, "WPA: Driver used disabled pairwise "
709 wpa_msg(wpa_s, MSG_INFO, "WPA: Driver used disabled key "
718 wpa_msg(wpa_s, MSG_INFO, "WPA: Driver associated with an AP "
734 * @wpa_ie: Buffer for the WPA/RSN IE
770 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using IEEE 802.11i/D3.0");
773 wpa_msg(wpa_s, MSG_WARNING, "WPA: Failed to select WPA/RSN");
790 wpa_printf(MSG_DEBUG, "WPA: Set cipher suites based "
796 wpa_printf(MSG_DEBUG, "WPA: Selected cipher suites: group %d "
801 wpa_printf(MSG_DEBUG, "WPA: Selected mgmt group cipher %d",
806 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_PROTO, proto);
807 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_RSN_ENABLED,
811 if (wpa_sm_set_ap_wpa_ie(wpa_s->wpa, bss_wpa,
813 wpa_sm_set_ap_rsn_ie(wpa_s->wpa, bss_rsn,
821 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using GTK CCMP");
824 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using GTK TKIP");
827 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using GTK WEP104");
830 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using GTK WEP40");
832 wpa_printf(MSG_WARNING, "WPA: Failed to select group cipher.");
839 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using PTK CCMP");
842 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using PTK TKIP");
845 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using PTK NONE");
847 wpa_printf(MSG_WARNING, "WPA: Failed to select pairwise "
857 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using KEY_MGMT FT/802.1X");
860 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using KEY_MGMT FT/PSK");
866 "WPA: using KEY_MGMT 802.1X with SHA256");
870 "WPA: using KEY_MGMT PSK with SHA256");
874 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using KEY_MGMT 802.1X");
877 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using KEY_MGMT WPA-PSK");
880 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using KEY_MGMT WPA-NONE");
882 wpa_printf(MSG_WARNING, "WPA: Failed to select authenticated "
887 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_KEY_MGMT, wpa_s->key_mgmt);
888 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_PAIRWISE,
890 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_GROUP, wpa_s->group_cipher);
899 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using MGMT group cipher "
903 wpa_msg(wpa_s, MSG_DEBUG, "WPA: not using MGMT group cipher");
905 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_MGMT_GROUP,
909 if (wpa_sm_set_assoc_wpa_ie_default(wpa_s->wpa, wpa_ie, wpa_ie_len)) {
910 wpa_printf(MSG_WARNING, "WPA: Failed to generate WPA IE.");
916 wpa_sm_set_pmk(wpa_s->wpa, ssid->psk, PMK_LEN);
918 wpa_sm_set_pmk_from_pmksa(wpa_s->wpa);
962 wpa_sm_set_ft_params(wpa_s->wpa, md, NULL, 0, NULL);
965 wpa_ft_prepare_auth_request(wpa_s->wpa);
986 /* Starting new association, so clear the possibly used WPA IE from the
988 wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, NULL, 0);
1029 if (pmksa_cache_set_current(wpa_s->wpa, NULL, bss->bssid,
1036 wpa_printf(MSG_WARNING, "WPA: Failed to set WPA key "
1048 wpa_printf(MSG_WARNING, "WPA: Failed to set WPA key "
1162 wpa_printf(MSG_DEBUG, "WPA: Selected AP supports MFP: "
1245 wpa_sm_set_config(wpa_s->wpa, NULL);
1273 wpa_sm_set_config(wpa_s->wpa, NULL);
1585 /* Timeout for completing IEEE 802.1X and WPA authentication */
1596 wpa_printf(MSG_INFO, "WPA: Countermeasures - dropped EAPOL "
1613 wpa_sm_rx_eapol(wpa_s->wpa, src_addr, buf, len);
1699 wpa_printf(MSG_DEBUG, "Driver does not support WPA.");
1700 /* Continue to allow non-WPA modes to be used. */
1702 wpa_printf(MSG_ERROR, "Failed to enable WPA in the "
1869 wpa_sm_set_ifname(wpa_s->wpa, wpa_s->ifname,
1872 wpa_sm_set_fast_reauth(wpa_s->wpa, wpa_s->conf->fast_reauth);
1875 wpa_sm_set_param(wpa_s->wpa, RSNA_PMK_LIFETIME,
1877 wpa_printf(MSG_ERROR, "Invalid WPA parameter value for "
1883 wpa_sm_set_param(wpa_s->wpa, RSNA_PMK_REAUTH_THRESHOLD,
1885 wpa_printf(MSG_ERROR, "Invalid WPA parameter value for "
1891 wpa_sm_set_param(wpa_s->wpa, RSNA_SA_TIMEOUT,
1893 wpa_printf(MSG_ERROR, "Invalid WPA parameter value for "
1907 wpa_sm_set_own_addr(wpa_s->wpa, wpa_s->own_addr);
1914 wpa_sm_set_eapol(wpa_s->wpa, wpa_s->eapol);
1954 wpa_printf(MSG_ERROR, "Failed to disable WPA in the "