Lines Matching full:wpa
2 * WPA Supplicant
24 #include "wpa.h"
195 wpa_printf(MSG_DEBUG, "WPA: drop TX EAPOL in non-IEEE 802.1X "
201 if (pmksa_cache_get_current(wpa_s->wpa) &&
276 wpa_sm_aborted_cached(wpa_s->wpa);
319 /* IBSS/WPA-None uses only one key (Group) for both receiving and
323 wpa_printf(MSG_INFO, "WPA: Invalid mode %d (not IBSS/ad-hoc) "
324 "for WPA-None", ssid->mode);
329 wpa_printf(MSG_INFO, "WPA: No PSK configured for WPA-None");
340 /* WPA-None uses the same Michael MIC key for both TX and RX */
347 wpa_printf(MSG_INFO, "WPA: Invalid group cipher %d for "
348 "WPA-None", wpa_s->group_cipher);
364 wpa_msg(wpa_s, MSG_DEBUG, "WPA: EAPOL processing complete");
550 wpa_sm_notify_disassoc(wpa_s->wpa);
647 * wpa_supplicant_set_non_wpa_policy - Set WPA parameters to non-WPA mode
651 * This function is used to configure WPA state machine and related parameters
652 * to a mode where WPA is not enabled. This is called as part of the
653 * authentication configuration when the selected network does not use WPA.
664 wpa_sm_set_ap_wpa_ie(wpa_s->wpa, NULL, 0);
665 wpa_sm_set_ap_rsn_ie(wpa_s->wpa, NULL, 0);
666 wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, NULL, 0);
683 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_KEY_MGMT, wpa_s->key_mgmt);
684 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_PAIRWISE,
686 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_GROUP, wpa_s->group_cipher);
688 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_MGMT_GROUP,
692 pmksa_cache_clear_current(wpa_s->wpa);
700 wpa_sm_set_scard_ctx(wpa_s->wpa, NULL);
721 wpa_sm_set_eapol(wpa_s->wpa, NULL);
725 rsn_preauth_deinit(wpa_s->wpa);
727 pmksa_candidate_free(wpa_s->wpa);
728 wpa_sm_deinit(wpa_s->wpa);
729 wpa_s->wpa = NULL;
822 * association is completed for WPA/WPA2 4-Way Handshake is started.
950 wpa_sm_set_config(wpa_s->wpa, NULL);
951 wpa_sm_set_fast_reauth(wpa_s->wpa, wpa_s->conf->fast_reauth);
952 rsn_preauth_deinit(wpa_s->wpa);
1160 int ret = wpa_sm_parse_own_wpa_ie(wpa_s->wpa, ie);
1163 wpa_msg(wpa_s, MSG_INFO, "WPA: Failed to parse WPA IE "
1169 wpa_printf(MSG_DEBUG, "WPA: Using WPA IE from AssocReq to set cipher "
1172 wpa_msg(wpa_s, MSG_INFO, "WPA: Driver used disabled group "
1178 wpa_msg(wpa_s, MSG_INFO, "WPA: Driver used disabled pairwise "
1184 wpa_msg(wpa_s, MSG_INFO, "WPA: Driver used disabled key "
1193 wpa_msg(wpa_s, MSG_INFO, "WPA: Driver associated with an AP "
1209 * @wpa_ie: Buffer for the WPA/RSN IE
1238 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using IEEE 802.11i/D3.0");
1241 wpa_msg(wpa_s, MSG_WARNING, "WPA: Failed to select WPA/RSN");
1258 wpa_printf(MSG_DEBUG, "WPA: Set cipher suites based "
1264 wpa_printf(MSG_DEBUG, "WPA: Selected cipher suites: group %d "
1269 wpa_printf(MSG_DEBUG, "WPA: Selected mgmt group cipher %d",
1274 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_PROTO, proto);
1276 if (wpa_sm_set_ap_wpa_ie(wpa_s->wpa, bss ? bss->wpa_ie : NULL,
1278 wpa_sm_set_ap_rsn_ie(wpa_s->wpa, bss ? bss->rsn_ie : NULL,
1285 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using GTK CCMP");
1288 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using GTK TKIP");
1291 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using GTK WEP104");
1294 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using GTK WEP40");
1296 wpa_printf(MSG_WARNING, "WPA: Failed to select group cipher.");
1303 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using PTK CCMP");
1306 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using PTK TKIP");
1309 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using PTK NONE");
1311 wpa_printf(MSG_WARNING, "WPA: Failed to select pairwise "
1319 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using KEY_MGMT 802.1X");
1322 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using KEY_MGMT WPA-PSK");
1325 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using KEY_MGMT WPA-NONE");
1327 wpa_printf(MSG_WARNING, "WPA: Failed to select authenticated "
1332 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_KEY_MGMT, wpa_s->key_mgmt);
1333 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_PAIRWISE,
1335 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_GROUP, wpa_s->group_cipher);
1344 wpa_msg(wpa_s, MSG_DEBUG, "WPA: using MGMT group cipher "
1348 wpa_msg(wpa_s, MSG_DEBUG, "WPA: not using MGMT group cipher");
1350 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_MGMT_GROUP,
1354 if (wpa_sm_set_assoc_wpa_ie_default(wpa_s->wpa, wpa_ie, wpa_ie_len)) {
1355 wpa_printf(MSG_WARNING, "WPA: Failed to generate WPA IE.");
1360 wpa_sm_set_pmk(wpa_s->wpa, ssid->psk, PMK_LEN);
1362 wpa_sm_set_pmk_from_pmksa(wpa_s->wpa);
1406 /* Starting new association, so clear the possibly used WPA IE from the
1408 wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, NULL, 0);
1439 if (pmksa_cache_set_current(wpa_s->wpa, NULL, bss->bssid,
1446 wpa_printf(MSG_WARNING, "WPA: Failed to set WPA key "
1456 wpa_printf(MSG_WARNING, "WPA: Failed to set WPA key "
1605 wpa_sm_set_config(wpa_s->wpa, wpa_s->current_ssid);
1633 wpa_sm_set_config(wpa_s->wpa, NULL);
1662 wpa_sm_set_config(wpa_s->wpa, NULL);
1747 if (wpa_sm_set_ap_wpa_ie(wpa_s->wpa, curr->wpa_ie,
1749 wpa_sm_set_ap_rsn_ie(wpa_s->wpa, curr->rsn_ie,
1767 /* No WPA/RSN IE found in the cached scan results. Try to get updated
1981 /* Timeout for completing IEEE 802.1X and WPA authentication */
1991 wpa_printf(MSG_INFO, "WPA: Countermeasures - dropped EAPOL "
2007 wpa_sm_rx_eapol(wpa_s->wpa, src_addr, buf, len);
2078 wpa_printf(MSG_DEBUG, "Driver does not support WPA.");
2079 /* Continue to allow non-WPA modes to be used. */
2081 wpa_printf(MSG_ERROR, "Failed to enable WPA in the "
2250 wpa_printf(MSG_ERROR, "Failed to allocate WPA context.");
2273 wpa_s->wpa = wpa_sm_init(ctx);
2274 if (wpa_s->wpa == NULL) {
2275 wpa_printf(MSG_ERROR, "Failed to initialize WPA state "
2326 wpa_sm_set_ifname(wpa_s->wpa, wpa_s->ifname,
2329 wpa_sm_set_fast_reauth(wpa_s->wpa, wpa_s->conf->fast_reauth);
2330 wpa_sm_set_eapol(wpa_s->wpa, wpa_s->eapol);
2333 wpa_sm_set_param(wpa_s->wpa, RSNA_PMK_LIFETIME,
2335 wpa_printf(MSG_ERROR, "Invalid WPA parameter value for "
2341 wpa_sm_set_param(wpa_s->wpa, RSNA_PMK_REAUTH_THRESHOLD,
2343 wpa_printf(MSG_ERROR, "Invalid WPA parameter value for "
2349 wpa_sm_set_param(wpa_s->wpa, RSNA_SA_TIMEOUT,
2351 wpa_printf(MSG_ERROR, "Invalid WPA parameter value for "
2359 wpa_sm_set_own_addr(wpa_s->wpa, wpa_s->own_addr);
2395 wpa_printf(MSG_ERROR, "Failed to disable WPA in the "