Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching defs:ap

32 #include "ap.h"
43 * The minimum time in seconds before trying to associate to a WPS PIN AP that
96 "suitable AP", MAC2STR(bssid));
195 * TKIP+CCMP). Try to use scan results to figure out whether the AP
207 wpa_printf(MSG_DEBUG, "WPS: The AP was not found from BSS "
212 wpa_printf(MSG_DEBUG, "WPS: AP found from BSS table");
229 * TODO: This could be the initial AP configuration and the
234 wpa_printf(MSG_DEBUG, "WPS: The AP did not yet advertise WPA "
715 struct wps_event_er_ap *ap)
720 uuid_bin2str(ap->uuid, uuid_str, sizeof(uuid_str));
721 if (ap->pri_dev_type)
722 wps_dev_type_bin2str(ap->pri_dev_type, dev_type,
729 uuid_str, MAC2STR(ap->mac_addr), dev_type, ap->wps_state,
730 ap->friendly_name ? ap->friendly_name : "",
731 ap->manufacturer ? ap->manufacturer : "",
732 ap->model_description ? ap->model_description : "",
733 ap->model_name ? ap->model_name : "",
734 ap->manufacturer_url ? ap->manufacturer_url : "",
735 ap->model_url ? ap->model_url : "");
740 struct wps_event_er_ap *ap)
743 uuid_bin2str(ap->uuid, uuid_str, sizeof(uuid_str));
868 wpa_supplicant_wps_event_er_ap_add(wpa_s, &data->ap);
871 wpa_supplicant_wps_event_er_ap_remove(wpa_s, &data->ap);
1021 * provisioning is started, so better not filter the AP based
1043 "for the AP; use wildcard");
1135 "WPS: Reject request to start Registrar(as station) operation while AP mode is enabled");
1156 wpa_hexdump_ascii(MSG_DEBUG, "WPS: Use specific AP "
1186 "WPS: Reject request to start Registrar(as station) operation while AP mode is enabled");
1227 wpa_hexdump_ascii(MSG_DEBUG, "WPS: Use specific AP "
1290 wpa_printf(MSG_DEBUG, "WPS: Cancelling in AP mode");
1332 "WPS: Reject request to start Registrar(as station) operation while AP mode is enabled");
1643 wpa_printf(MSG_DEBUG, " skip - non-WPS AP");
1648 wpa_printf(MSG_DEBUG, " skip - WPS AP "
1663 wpa_printf(MSG_DEBUG, " skip - non-WPS AP");
1670 * allow any WPS AP after couple of scans since some APs do not
1682 " skip - WPS AP without active PIN Registrar (scan_runs=%d age=%d)",
1746 "missing from AP Beacon");
1778 /* Make sure that only one AP is in active PBC mode */
1791 struct wps_ap_info *ap = &wpa_s->wps_ap[i];
1793 if (!ap->pbc_active ||
1794 os_memcmp(selected->bssid, ap->bssid, ETH_ALEN) == 0)
1798 MACSTR, MAC2STR(ap->bssid));
1800 ap->uuid, UUID_LEN);
1802 os_memcmp(sel_uuid, ap->uuid, UUID_LEN) != 0) {
1807 MAC2STR(ap->bssid));
2361 wpa_printf(MSG_DEBUG, "WPS: Credential container indicated AP channel %u -> %u MHz",
2629 wpa_printf(MSG_DEBUG, "WPS: AP Channel: %d", chan);
2649 "WPS: AP indicated channel %u -> %u MHz",
2664 wpa_hexdump(MSG_DEBUG, "WPS: AP Public Key hash",
2798 struct wps_ap_info *ap = &wpa_s->wps_ap[i];
2799 struct wpa_blacklist *e = wpa_blacklist_get(wpa_s, ap->bssid);
2801 wpa_printf(MSG_DEBUG, "WPS: AP[%d] " MACSTR " type=%d "
2803 (int) i, MAC2STR(ap->bssid), ap->type, ap->tries,
2804 ap->last_attempt.sec > 0 ?
2805 (int) now.sec - (int) ap->last_attempt.sec : -1,
2820 struct wps_ap_info *ap = &wpa_s->wps_ap[i];
2821 if (os_memcmp(ap->bssid, bssid, ETH_ALEN) == 0)
2822 return ap;
2834 struct wps_ap_info *ap;
2856 ap = wpas_wps_get_ap_info(wpa_s, res->bssid);
2857 if (ap) {
2858 if (ap->type != type) {
2859 wpa_printf(MSG_DEBUG, "WPS: AP " MACSTR
2861 MAC2STR(res->bssid), ap->type, type);
2862 ap->type = type;
2864 wpa_blacklist_del(wpa_s, ap->bssid);
2866 ap->pbc_active = pbc_active;
2868 os_memcpy(ap->uuid, uuid, WPS_UUID_LEN);
2872 ap = os_realloc_array(wpa_s->wps_ap, wpa_s->num_wps_ap + 1,
2874 if (ap == NULL)
2877 wpa_s->wps_ap = ap;
2878 ap = &wpa_s->wps_ap[wpa_s->num_wps_ap];
2881 os_memset(ap, 0, sizeof(*ap));
2882 os_memcpy(ap->bssid, res->bssid, ETH_ALEN);
2883 ap->type = type;
2884 ap->pbc_active = pbc_active;
2886 os_memcpy(ap->uuid, uuid, WPS_UUID_LEN);
2887 wpa_printf(MSG_DEBUG, "WPS: AP " MACSTR " type %d added",
2888 MAC2STR(ap->bssid), ap->type);
2909 struct wps_ap_info *ap;
2915 ap = wpas_wps_get_ap_info(wpa_s, bssid);
2916 if (ap == NULL)
2918 ap->tries++;
2919 os_get_reltime(&ap->last_attempt);