HomeSort by relevance Sort by last modified time
    Searched refs:wps (Results 1 - 25 of 112) sorted by null

1 2 3 4 5

  /external/wpa_supplicant_6/wpa_supplicant/src/wps/
wps_enrollee.c 23 static int wps_build_mac_addr(struct wps_data *wps, struct wpabuf *msg)
25 wpa_printf(MSG_DEBUG, "WPS: * MAC Address");
28 wpabuf_put_data(msg, wps->mac_addr_e, ETH_ALEN);
33 static int wps_build_wps_state(struct wps_data *wps, struct wpabuf *msg)
36 if (wps->wps->ap)
37 state = wps->wps->wps_state;
40 wpa_printf(MSG_DEBUG, "WPS: * Wi-Fi Protected Setup State (%d)",
49 static int wps_build_e_hash(struct wps_data *wps, struct wpabuf *msg
    [all...]
wps_registrar.c 82 struct wps_context *wps; member in struct:wps_registrar
215 static int wps_build_wps_state(struct wps_context *wps, struct wpabuf *msg)
217 wpa_printf(MSG_DEBUG, "WPS: * Wi-Fi Protected Setup State (%d)",
218 wps->wps_state);
221 wpabuf_put_u8(msg, wps->wps_state);
227 static void wps_registrar_free_pending_m2(struct wps_context *wps)
230 p = wps->upnp_msgs;
234 wps->upnp_msgs = p->next;
237 wpa_printf(MSG_DEBUG, "WPS UPnP: Drop pending M2/M2D");
251 static int wps_build_ap_setup_locked(struct wps_context *wps,
    [all...]
wps_common.c 64 int wps_derive_keys(struct wps_data *wps)
72 if (wps->dh_privkey == NULL) {
73 wpa_printf(MSG_DEBUG, "WPS: Own DH private key not available");
77 pubkey = wps->registrar ? wps->dh_pubkey_e : wps->dh_pubkey_r;
79 wpa_printf(MSG_DEBUG, "WPS: Peer DH public key not available");
83 dh_shared = dh_derive_shared(pubkey, wps->dh_privkey,
87 wpa_printf(MSG_DEBUG, "WPS: Failed to derive DH shared key");
92 wpabuf_free(wps->dh_privkey)
    [all...]
wps_i.h 18 #include "wps.h"
21 * struct wps_data - WPS registration protocol data
28 * wps - Pointer to long term WPS context
30 struct wps_context *wps; member in struct:wps_data
181 int wps_derive_keys(struct wps_data *wps);
182 void wps_derive_psk(struct wps_data *wps, const u8 *dev_passwd,
184 struct wpabuf * wps_decrypt_encr_settings(struct wps_data *wps, const u8 *encr,
186 void wps_fail_event(struct wps_context *wps, enum wps_msg_type msg);
187 void wps_success_event(struct wps_context *wps);
    [all...]
wps_attr_build.c 24 int wps_build_public_key(struct wps_data *wps, struct wpabuf *msg)
28 wpa_printf(MSG_DEBUG, "WPS: * Public Key");
29 pubkey = dh_init(dh_groups_get(WPS_DH_GROUP), &wps->dh_privkey);
32 wpa_printf(MSG_DEBUG, "WPS: Failed to initialize "
41 if (wps->registrar) {
42 wpabuf_free(wps->dh_pubkey_r);
43 wps->dh_pubkey_r = pubkey;
45 wpabuf_free(wps->dh_pubkey_e);
46 wps->dh_pubkey_e = pubkey;
55 wpa_printf(MSG_DEBUG, "WPS: * Request Type")
    [all...]
wps.c 24 * wps_init - Initialize WPS Registration protocol data
25 * @cfg: WPS configuration
28 * This function is used to initialize WPS data for a registration protocol
38 data->wps = cfg->wps;
41 os_memcpy(data->uuid_r, cfg->wps->uuid, WPS_UUID_LEN);
43 os_memcpy(data->mac_addr_e, cfg->wps->dev.mac_addr, ETH_ALEN);
44 os_memcpy(data->uuid_e, cfg->wps->uuid, WPS_UUID_LEN);
75 wpa_hexdump_buf(MSG_DEBUG, "WPS: WPS IE from (Re)AssocReq"
    [all...]
  /external/wpa_supplicant_8/src/wps/
wps_enrollee.c 19 static int wps_build_mac_addr(struct wps_data *wps, struct wpabuf *msg)
21 wpa_printf(MSG_DEBUG, "WPS: * MAC Address");
24 wpabuf_put_data(msg, wps->mac_addr_e, ETH_ALEN);
29 static int wps_build_wps_state(struct wps_data *wps, struct wpabuf *msg)
32 if (wps->wps->ap)
33 state = wps->wps->wps_state;
36 wpa_printf(MSG_DEBUG, "WPS: * Wi-Fi Protected Setup State (%d)",
45 static int wps_build_e_hash(struct wps_data *wps, struct wpabuf *msg
    [all...]
wps_registrar.c 140 struct wps_context *wps; member in struct:wps_registrar
196 wpa_printf(MSG_DEBUG, "WPS: Add authorized MAC " MACSTR,
200 wpa_printf(MSG_DEBUG, "WPS: Authorized MAC was "
208 wpa_hexdump(MSG_DEBUG, "WPS: Authorized MACs",
217 wpa_printf(MSG_DEBUG, "WPS: Remove authorized MAC " MACSTR,
224 wpa_printf(MSG_DEBUG, "WPS: Authorized MAC was not in the "
233 wpa_hexdump(MSG_DEBUG, "WPS: Authorized MACs",
378 wpa_printf(MSG_DEBUG, "WPS: Removing PBC session for "
380 wpa_hexdump(MSG_DEBUG, "WPS: Removed UUID-E",
401 wpa_printf(MSG_DEBUG, "WPS: Checking active PBC sessions for overlap")
    [all...]
wps_attr_build.c 21 int wps_build_public_key(struct wps_data *wps, struct wpabuf *msg)
25 wpa_printf(MSG_DEBUG, "WPS: * Public Key");
26 wpabuf_free(wps->dh_privkey);
27 if (wps->dev_pw_id != DEV_PW_DEFAULT && wps->wps->dh_privkey) {
28 wpa_printf(MSG_DEBUG, "WPS: Using pre-configured DH keys");
29 wps->dh_privkey = wpabuf_dup(wps->wps->dh_privkey)
    [all...]
wps_common.c 59 int wps_derive_keys(struct wps_data *wps)
67 if (wps->dh_privkey == NULL) {
68 wpa_printf(MSG_DEBUG, "WPS: Own DH private key not available");
72 pubkey = wps->registrar ? wps->dh_pubkey_e : wps->dh_pubkey_r;
74 wpa_printf(MSG_DEBUG, "WPS: Peer DH public key not available");
78 wpa_hexdump_buf_key(MSG_DEBUG, "WPS: DH Private Key", wps->dh_privkey);
79 wpa_hexdump_buf(MSG_DEBUG, "WPS: DH peer Public Key", pubkey)
    [all...]
wps_i.h 12 #include "wps.h"
18 * struct wps_data - WPS registration protocol data
25 * wps - Pointer to long term WPS context
27 struct wps_context *wps; member in struct:wps_data
128 int wps_derive_keys(struct wps_data *wps);
129 void wps_derive_psk(struct wps_data *wps, const u8 *dev_passwd,
131 struct wpabuf * wps_decrypt_encr_settings(struct wps_data *wps, const u8 *encr,
133 void wps_fail_event(struct wps_context *wps, enum wps_msg_type msg,
135 void wps_success_event(struct wps_context *wps);
    [all...]
wps_upnp.h 2 * UPnP WPS Device
19 struct wps_data *wps; member in struct:upnp_wps_peer
37 upnp_wps_device_init(struct upnp_wps_device_ctx *ctx, struct wps_context *wps,
wps.c 25 * wps_init - Initialize WPS Registration protocol data
26 * @cfg: WPS configuration
29 * This function is used to initialize WPS data for a registration protocol
39 data->wps = cfg->wps;
42 os_memcpy(data->uuid_r, cfg->wps->uuid, WPS_UUID_LEN);
44 os_memcpy(data->mac_addr_e, cfg->wps->dev.mac_addr, ETH_ALEN);
45 os_memcpy(data->uuid_e, cfg->wps->uuid, WPS_UUID_LEN);
48 data->dev_pw_id = data->wps->oob_dev_pw_id == 0 ?
49 cfg->dev_pw_id : data->wps->oob_dev_pw_id
    [all...]
wps_er.c 34 static void wps_er_sta_event(struct wps_context *wps, struct wps_er_sta *sta,
40 if (wps->event_cb == NULL)
55 wps->event_cb(wps->cb_ctx, event, &data);
76 wps_er_sta_event(sta->ap->er->wps, sta, WPS_EV_ER_ENROLLEE_REMOVE);
77 if (sta->wps)
78 wps_deinit(sta->wps);
124 static void wps_er_ap_event(struct wps_context *wps, struct wps_er_ap *ap,
130 if (wps->event_cb == NULL)
147 wps->event_cb(wps->cb_ctx, event, &data)
    [all...]
wps_upnp_web.c 2 * UPnP WPS Device - Web connections
42 * WFA WPS specifications. Extra white space has been removed to save space.
198 s = iface->wps->friendly_name;
199 s = ((s && *s) ? s : "WPS Access Point");
202 s = iface->wps->dev.manufacturer;
206 if (iface->wps->manufacturer_url)
208 iface->wps->manufacturer_url);
210 if (iface->wps->model_description)
212 iface->wps->model_description);
214 s = iface->wps->dev.model_name
    [all...]
wps_ufd.c 16 #include "wps/wps.h"
17 #include "wps/wps_i.h"
59 wpa_printf(MSG_ERROR, "WPS: OOB file not found: %d (%s)",
64 wpa_printf(MSG_ERROR, "WPS: OOB file not found");
76 static int get_file_name(struct wps_context *wps, int registrar,
79 switch (wps->oob_conf.oob_method) {
90 u8 *mac_addr = wps->dev.mac_addr;
101 wpa_printf(MSG_ERROR, "WPS: Invalid USBA OOB method");
111 wpa_printf(MSG_ERROR, "WPS (UFD): Failed to create directory
    [all...]
wps_er.h 28 struct wps_data *wps; member in struct:wps_er_sta
40 struct wps_data *wps; member in struct:wps_er_ap
77 struct wps_context *wps; member in struct:wps_er
  /external/wpa_supplicant_8/src/ap/
wps_hostapd.c 2 * hostapd / WPS integration
21 #include "wps/wps.h"
22 #include "wps/wps_defs.h"
23 #include "wps/wps_dev_attr.h"
24 #include "wps/wps_attr_parse.h"
34 #include "wps/wps_upnp.h"
36 struct wps_context *wps);
94 wpa_printf(MSG_DEBUG, "Received new WPA/WPA2-PSK from WPS for STA "
157 wpa_printf(MSG_DEBUG, "WPS: PIN needed for E-UUID %s", uuid)
782 struct wps_context *wps; local
991 struct wps_context *wps = hapd->wps; local
1162 struct wps_context *wps = hapd->wps; local
1596 const struct wpabuf *wps = data; local
1652 struct wps_context *wps = hapd->wps; local
    [all...]
  /frameworks/base/wifi/java/android/net/wifi/p2p/
WifiP2pConfig.java 38 public WpsInfo wps; field in class:WifiP2pConfig
59 wps = new WpsInfo();
60 wps.setup = WpsInfo.PBC;
72 wps = new WpsInfo();
82 //Based on definitions in wps/wps_defs.h
86 wps.setup = WpsInfo.DISPLAY;
90 wps.setup = WpsInfo.PBC;
94 wps.setup = WpsInfo.KEYPAD;
97 wps.setup = WpsInfo.PBC;
106 sbuf.append("\n wps: ").append(wps)
    [all...]
  /external/wpa_supplicant_8/wpa_supplicant/
wps_supplicant.c 2 * wpa_supplicant / WPS integration
24 #include "wps/wps_attr_parse.h"
64 wpa_printf(MSG_DEBUG, "WPS: PIN registration with " MACSTR
87 wpa_printf(MSG_DEBUG, "WPS: Network configuration replaced - "
93 wpa_printf(MSG_DEBUG, "WPS: Current network is "
106 wpa_printf(MSG_DEBUG, "WPS: Registration completed - waiting "
129 * Many existing WPS APs do not know how to negotiate WPA2 or CCMP in
143 wpa_printf(MSG_DEBUG, "WPS: The AP was not found from BSS "
148 wpa_printf(MSG_DEBUG, "WPS: AP found from BSS table");
170 wpa_printf(MSG_DEBUG, "WPS: The AP did not yet advertise WPA
954 struct wps_context *wps = wpa_s->wps; local
1166 struct wps_context *wps; local
1465 unsigned int pbc = 0, auth = 0, pin = 0, wps = 0; local
1754 struct wps_context *wps = wpa_s->wps; local
1818 struct wps_context *wps = wpa_s->wps; local
1911 const struct wpabuf *wps = data; local
1986 struct wpabuf *wps; local
    [all...]
  /external/wpa_supplicant_6/wpa_supplicant/
scan.c 50 int wps = 0; local
56 wps = 1;
65 return wps;
90 int wps = 0; local
169 wps = wpas_wps_in_use(wpa_s->conf, &req_type);
173 !wpa_s->use_client_mlme && wps != 2) {
184 if (wps) {
185 wps_ie = wps_build_probe_req_ie(wps == 2, &wpa_s->wps->dev,
186 wpa_s->wps->uuid, req_type)
    [all...]
wps_supplicant.c 2 * wpa_supplicant / WPS integration
48 wpa_printf(MSG_DEBUG, "WPS: PIN registration with " MACSTR
66 wpa_printf(MSG_DEBUG, "WPS: Network configuration replaced - "
76 wpa_printf(MSG_DEBUG, "WPS: Registration completed - waiting "
100 * Many existing WPS APs do not know how to negotiate WPA2 or CCMP in
125 wpa_printf(MSG_DEBUG, "WPS: AP found from scan results");
130 wpa_printf(MSG_DEBUG, "WPS: The AP was not found from scan "
155 wpa_printf(MSG_DEBUG, "WPS: The AP did not yet advertise WPA "
163 wpa_printf(MSG_DEBUG, "WPS: Add CCMP into the credential "
174 wpa_printf(MSG_DEBUG, "WPS: Add WPA2 into the credential
653 struct wps_context *wps; local
    [all...]
  /external/wpa_supplicant_6/wpa_supplicant/src/
Makefile 1 SUBDIRS=common crypto drivers hlr_auc_gw eapol_supp eap_common eap_peer eap_server l2_packet radius rsn_supp tls utils wps
  /external/wpa_supplicant_8/src/
Makefile 1 SUBDIRS=ap common crypto drivers eapol_auth eapol_supp eap_common eap_peer eap_server l2_packet p2p radius rsn_supp tls utils wps
  /external/wpa_supplicant_8/wpa_supplicant/examples/
wps-ap-cli 41 $CLI status wps
46 echo "WPS AP"
51 echo "0: Exit wps-ap-cli"

Completed in 479 milliseconds

1 2 3 4 5