Home
last modified time | relevance | path

Searched refs:ndef (Results 1 – 18 of 18) sorted by relevance

/hostap-latest/wpa_supplicant/examples/
Dp2p-nfc.py17 import nfc.ndef
154 message = nfc.ndef.HandoverRequestMessage(version="1.2")
164 datamsg = nfc.ndef.Message(data)
178 datamsg = nfc.ndef.Message(data)
226 message = nfc.ndef.HandoverSelectMessage(message)
270 response = nfc.ndef.Message("\xd1\x02\x01Hs\x12")
275 request = nfc.ndef.HandoverRequestMessage(request)
276 except nfc.ndef.DecodeError as e:
292 sel = nfc.ndef.HandoverSelectMessage(version="1.2")
320 message = nfc.ndef.Message(data);
[all …]
Dwps-nfc.py17 import nfc.ndef
149 response = nfc.ndef.Message("\xd1\x02\x01Hs\x12")
154 request = nfc.ndef.HandoverRequestMessage(request)
155 except nfc.ndef.DecodeError as e:
170 sel = nfc.ndef.HandoverSelectMessage(version="1.2")
188 message = nfc.ndef.Message(data);
212 message = nfc.ndef.HandoverRequestMessage(version="1.2")
214 datamsg = nfc.ndef.Message(data)
262 message = nfc.ndef.HandoverSelectMessage(message)
297 if len(tag.ndef.message):
[all …]
Ddpp-nfc.py20 import ndef
291 records = list(ndef.message_decoder(msg, 'relax'))
294 return list(ndef.message_decoder(msg, 'relax'))
318 list(ndef.message_decoder(msg, 'strict', {}))
320 except ndef.DecodeError:
345 uri = ndef.UriRecord(uri)
347 carrier = ndef.Record('application/vnd.wfa.dpp', 'A', uri.data)
356 hr = ndef.HandoverRequestRecord(version="1.4", crn=crn)
429 not isinstance(message[0], ndef.HandoverSelectRecord):
447 if isinstance(carrier, ndef.HandoverSelectRecord):
[all …]
/hostap-latest/hostapd/
Dwps-ap-nfc.py15 import nfc.ndef
120 response = nfc.ndef.Message("\xd1\x02\x01Hs\x12")
125 request = nfc.ndef.HandoverRequestMessage(request)
126 except nfc.ndef.DecodeError as e:
141 sel = nfc.ndef.HandoverSelectMessage(version="1.2")
158 message = nfc.ndef.Message(data);
175 if len(tag.ndef.message):
176 for record in tag.ndef.message:
180 success = wpas_tag_read(tag.ndef.message)
194 tag.ndef.message = str(write_data)
[all …]
Dctrl_iface.c270 int ndef; in hostapd_ctrl_iface_wps_nfc_config_token() local
275 ndef = 0; in hostapd_ctrl_iface_wps_nfc_config_token()
277 ndef = 1; in hostapd_ctrl_iface_wps_nfc_config_token()
281 buf = hostapd_wps_nfc_config_token(hapd, ndef); in hostapd_ctrl_iface_wps_nfc_config_token()
298 int ndef) in hostapd_ctrl_iface_wps_nfc_token_gen() argument
303 buf = hostapd_wps_nfc_token_gen(hapd, ndef); in hostapd_ctrl_iface_wps_nfc_token_gen()
349 int ndef; in hostapd_ctrl_iface_nfc_get_handover_sel() local
357 ndef = 0; in hostapd_ctrl_iface_nfc_get_handover_sel()
359 ndef = 1; in hostapd_ctrl_iface_nfc_get_handover_sel()
364 buf = hostapd_wps_nfc_hs_cr(hapd, ndef); in hostapd_ctrl_iface_nfc_get_handover_sel()
/hostap-latest/wpa_supplicant/
Dnfc_pw_token.c41 struct wpabuf *buf = NULL, *ndef = NULL; in main() local
57 ndef = ndef_build_wifi(buf); in main()
58 if (ndef == NULL) in main()
65 wpa_snprintf_hex_uppercase(txt, sizeof(txt), wpabuf_head(ndef), in main()
66 wpabuf_len(ndef)); in main()
76 wpabuf_free(ndef); in main()
Dwps_supplicant.h62 int ndef, const char *uuid);
67 int ndef, const char *id_str);
68 struct wpabuf * wpas_wps_nfc_token(struct wpa_supplicant *wpa_s, int ndef);
77 int ndef);
79 int ndef, int cr, const char *uuid);
Dap.h79 int ndef);
82 int ndef);
86 int ndef) in wpas_ap_wps_nfc_handover_sel() argument
Dwps_supplicant.c2205 int ndef, const char *uuid) in wpas_wps_er_nfc_config_token() argument
2222 if (ndef && ret) { in wpas_wps_er_nfc_config_token()
2328 wpas_wps_network_config_token(struct wpa_supplicant *wpa_s, int ndef, in wpas_wps_network_config_token() argument
2339 if (ndef && ret) { in wpas_wps_network_config_token()
2354 int ndef, const char *id_str) in wpas_wps_nfc_config_token() argument
2369 return wpas_wps_network_config_token(wpa_s, ndef, ssid); in wpas_wps_nfc_config_token()
2374 return wpas_ap_wps_nfc_config_token(wpa_s, ndef); in wpas_wps_nfc_config_token()
2380 struct wpabuf * wpas_wps_nfc_token(struct wpa_supplicant *wpa_s, int ndef) in wpas_wps_nfc_token() argument
2383 return wps_nfc_token_build(ndef, in wpas_wps_nfc_token()
2389 return wps_nfc_token_gen(ndef, &wpa_s->conf->wps_nfc_dev_pw_id, in wpas_wps_nfc_token()
[all …]
Dp2p_supplicant.h169 int ndef);
171 int ndef, int tag);
Dctrl_iface.c1553 int ndef; in wpa_supplicant_ctrl_iface_wps_nfc_config_token() local
1562 ndef = 0; in wpa_supplicant_ctrl_iface_wps_nfc_config_token()
1564 ndef = 1; in wpa_supplicant_ctrl_iface_wps_nfc_config_token()
1568 buf = wpas_wps_nfc_config_token(wpa_s, ndef, pos); in wpa_supplicant_ctrl_iface_wps_nfc_config_token()
1586 int ndef; in wpa_supplicant_ctrl_iface_wps_nfc_token() local
1591 ndef = 0; in wpa_supplicant_ctrl_iface_wps_nfc_token()
1593 ndef = 1; in wpa_supplicant_ctrl_iface_wps_nfc_token()
1597 buf = wpas_wps_nfc_token(wpa_s, ndef); in wpa_supplicant_ctrl_iface_wps_nfc_token()
1650 int ndef) in wpas_ctrl_nfc_get_handover_req_wps() argument
1655 buf = wpas_wps_nfc_handover_req(wpa_s, ndef); in wpas_ctrl_nfc_get_handover_req_wps()
[all …]
Dap.c1483 int ndef) in wpas_ap_wps_nfc_config_token() argument
1490 return hostapd_wps_nfc_config_token(hapd, ndef); in wpas_ap_wps_nfc_config_token()
1495 int ndef) in wpas_ap_wps_nfc_handover_sel() argument
1502 return hostapd_wps_nfc_hs_cr(hapd, ndef); in wpas_ap_wps_nfc_handover_sel()
Dp2p_supplicant.c9120 static struct wpabuf * wpas_p2p_nfc_handover(int ndef, struct wpabuf *wsc, in wpas_p2p_nfc_handover() argument
9151 if (ndef && ret) { in wpas_p2p_nfc_handover()
9192 int ndef) in wpas_p2p_nfc_handover_req() argument
9220 return wpas_p2p_nfc_handover(ndef, wsc, p2p); in wpas_p2p_nfc_handover_req()
9225 int ndef, int tag) in wpas_p2p_nfc_handover_sel() argument
9253 return wpas_p2p_nfc_handover(ndef, wsc, p2p); in wpas_p2p_nfc_handover_sel()
/hostap-latest/src/ap/
Dwps_hostapd.h38 int ndef);
39 struct wpabuf * hostapd_wps_nfc_hs_cr(struct hostapd_data *hapd, int ndef);
43 struct wpabuf * hostapd_wps_nfc_token_gen(struct hostapd_data *hapd, int ndef);
Dwps_hostapd.c2063 int ndef) in hostapd_wps_nfc_config_token() argument
2072 if (ndef && ret) { in hostapd_wps_nfc_config_token()
2085 struct wpabuf * hostapd_wps_nfc_hs_cr(struct hostapd_data *hapd, int ndef) in hostapd_wps_nfc_hs_cr() argument
2113 if (ndef && ret) { in hostapd_wps_nfc_hs_cr()
2220 struct wpabuf * hostapd_wps_nfc_token_gen(struct hostapd_data *hapd, int ndef) in hostapd_wps_nfc_token_gen() argument
2223 return wps_nfc_token_build(ndef, in hostapd_wps_nfc_token_gen()
2229 return wps_nfc_token_gen(ndef, &hapd->conf->wps_nfc_dev_pw_id, in hostapd_wps_nfc_token_gen()
/hostap-latest/src/wps/
DMakefile9 ndef.o \
Dwps_common.c624 struct wpabuf * wps_nfc_token_build(int ndef, int id, struct wpabuf *pubkey, in wps_nfc_token_build() argument
633 if (ndef && ret) { in wps_nfc_token_build()
672 struct wpabuf * wps_nfc_token_gen(int ndef, int *id, struct wpabuf **pubkey, in wps_nfc_token_gen() argument
699 return wps_nfc_token_build(ndef, *id, *pubkey, *dev_pw); in wps_nfc_token_gen()
Dwps.h937 struct wpabuf * wps_nfc_token_build(int ndef, int id, struct wpabuf *pubkey,
940 struct wpabuf * wps_nfc_token_gen(int ndef, int *id, struct wpabuf **pubkey,