Home
last modified time | relevance | path

Searched refs:mac_addr (Results 1 – 25 of 38) sorted by relevance

12

/external/wpa_supplicant_8/src/ap/
Dpeerkey_auth.c95 if (kde.rsn_ie == NULL || kde.mac_addr == NULL || in wpa_smk_m1()
104 search.addr = kde.mac_addr; in wpa_smk_m1()
110 MAC2STR(kde.mac_addr)); in wpa_smk_m1()
111 wpa_smk_send_error(wpa_auth, sm, kde.mac_addr, STK_MUI_SMK, in wpa_smk_m1()
170 pos = wpa_add_kde(pos, RSN_KEY_DATA_MAC_ADDR, kde->mac_addr, ETH_ALEN, in wpa_send_smk_m4()
269 kde.mac_addr == NULL || kde.mac_addr_len < ETH_ALEN || in wpa_smk_m3()
279 search.addr = kde.mac_addr; in wpa_smk_m3()
285 MAC2STR(kde.mac_addr)); in wpa_smk_m3()
286 wpa_smk_send_error(wpa_auth, sm, kde.mac_addr, STK_MUI_SMK, in wpa_smk_m3()
340 if (kde.mac_addr == NULL || kde.mac_addr_len < ETH_ALEN || in wpa_smk_error()
[all …]
Diapp.c82 u8 mac_addr[ETH_ALEN]; member
103 u8 mac_addr[ETH_ALEN]; member
114 u8 mac_addr[ETH_ALEN]; member
131 u8 mac_addr[ETH_ALEN]; member
144 u8 mac_addr[ETH_ALEN]; member
178 static void iapp_send_add(struct iapp_data *iapp, u8 *mac_addr, u16 seq_num) in iapp_send_add() argument
197 os_memcpy(add->mac_addr, mac_addr, ETH_ALEN); in iapp_send_add()
277 sta = ap_get_sta(iapp->hapd, add->mac_addr); in iapp_process_add_notify()
280 hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP, in iapp_process_add_notify()
294 hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP, in iapp_process_add_notify()
Dwps_hostapd.c95 static int hostapd_wps_new_psk_cb(void *ctx, const u8 *mac_addr, in hostapd_wps_new_psk_cb() argument
106 MAC2STR(mac_addr)); in hostapd_wps_new_psk_cb()
111 MAC2STR(mac_addr), MAC2STR(p2p_dev_addr)); in hostapd_wps_new_psk_cb()
125 os_memcpy(p->addr, mac_addr, ETH_ALEN); in hostapd_wps_new_psk_cb()
130 hapd->new_psk_cb(hapd->new_psk_cb_ctx, mac_addr, p2p_dev_addr, in hostapd_wps_new_psk_cb()
149 fprintf(f, MACSTR " %s\n", MAC2STR(mac_addr), hex); in hostapd_wps_new_psk_cb()
183 uuid, MAC2STR(dev->mac_addr), dev->device_name, in hostapd_wps_pin_needed_cb()
200 t.sec, uuid, MAC2STR(dev->mac_addr), dev->device_name, in hostapd_wps_pin_needed_cb()
227 static void hostapd_wps_reg_success_cb(void *ctx, const u8 *mac_addr, in hostapd_wps_reg_success_cb() argument
237 MAC2STR(mac_addr), uuid); in hostapd_wps_reg_success_cb()
[all …]
Dhostapd.h193 void (*wps_reg_success_cb)(void *ctx, const u8 *mac_addr,
201 void (*sta_authorized_cb)(void *ctx, const u8 *mac_addr,
208 void (*new_psk_cb)(void *ctx, const u8 *mac_addr,
Dwpa_auth_ie.h20 const u8 *mac_addr; member
/external/wpa_supplicant_8/src/wps/
Dwps_attr_process.c195 const u8 *mac_addr) in wps_process_cred_mac_addr() argument
197 if (mac_addr == NULL) { in wps_process_cred_mac_addr()
203 wpa_printf(MSG_DEBUG, "WPS: MAC Address " MACSTR, MAC2STR(mac_addr)); in wps_process_cred_mac_addr()
204 os_memcpy(cred->mac_addr, mac_addr, ETH_ALEN); in wps_process_cred_mac_addr()
249 wps_process_cred_mac_addr(cred, attr->mac_addr)) in wps_process_cred()
268 wps_process_cred_mac_addr(cred, attr->mac_addr)) in wps_process_ap_settings()
Dwps_enrollee.c283 wps->peer_dev.mac_addr, in wps_build_cred_network_key()
303 wpabuf_put_data(msg, wps->wps->dev.mac_addr, ETH_ALEN); in wps_build_cred_mac_addr()
404 wps_success_event(wps->wps, wps->peer_dev.mac_addr); in wps_build_wsc_done()
612 wps_pwd_auth_fail_event(wps->wps, 1, 1, wps->peer_dev.mac_addr); in wps_process_r_snonce1()
652 wps_pwd_auth_fail_event(wps->wps, 1, 2, wps->peer_dev.mac_addr); in wps_process_r_snonce2()
677 if (os_memcmp(wps->cred.mac_addr, wps->wps->dev.mac_addr, ETH_ALEN) != in wps_process_cred_e()
681 ")", MAC2STR(wps->cred.mac_addr), in wps_process_cred_e()
682 MAC2STR(wps->wps->dev.mac_addr)); in wps_process_cred_e()
776 if (os_memcmp(cred.mac_addr, wps->wps->dev.mac_addr, ETH_ALEN) != in wps_process_ap_settings_e()
780 ")", MAC2STR(cred.mac_addr), in wps_process_ap_settings_e()
[all …]
Dwps.h54 u8 mac_addr[ETH_ALEN]; member
85 u8 mac_addr[ETH_ALEN]; member
259 int (*new_psk_cb)(void *ctx, const u8 *mac_addr, const u8 *p2p_dev_addr,
300 void (*reg_success_cb)(void *ctx, const u8 *mac_addr,
527 const u8 *mac_addr; member
543 const u8 *mac_addr; member
864 void uuid_gen_mac_addr(const u8 *mac_addr, u8 *uuid);
Dwps_i.h140 u16 config_error, u16 error_indication, const u8 *mac_addr);
141 void wps_success_event(struct wps_context *wps, const u8 *mac_addr);
143 const u8 *mac_addr);
215 int wps_cb_new_psk(struct wps_registrar *reg, const u8 *mac_addr,
Dwps_common.c272 u16 config_error, u16 error_indication, const u8 *mac_addr) in wps_fail_event() argument
283 os_memcpy(data.fail.peer_macaddr, mac_addr, ETH_ALEN); in wps_fail_event()
288 void wps_success_event(struct wps_context *wps, const u8 *mac_addr) in wps_success_event() argument
296 os_memcpy(data.success.peer_macaddr, mac_addr, ETH_ALEN); in wps_success_event()
302 const u8 *mac_addr) in wps_pwd_auth_fail_event() argument
312 os_memcpy(data.pwd_auth_fail.peer_macaddr, mac_addr, ETH_ALEN); in wps_pwd_auth_fail_event()
375 wps_build_mac_addr(plain, wps->dev.mac_addr) || in wps_get_oob_cred()
499 void uuid_gen_mac_addr(const u8 *mac_addr, u8 *uuid) in uuid_gen_mac_addr() argument
514 addr[1] = mac_addr; in uuid_gen_mac_addr()
Dwps_er.h45 u8 mac_addr[ETH_ALEN]; member
80 u8 mac_addr[ETH_ALEN]; /* mac addr of network i.f. we use */ member
Dwps_upnp.h30 const u8 *mac_addr, const struct wpabuf *msg,
Dwps_registrar.c147 int (*new_psk_cb)(void *ctx, const u8 *mac_addr, const u8 *p2p_dev_addr,
153 void (*reg_success_cb)(void *ctx, const u8 *mac_addr,
267 if (os_memcmp(dev->dev.mac_addr, addr, ETH_ALEN) == 0) in wps_device_get()
277 os_memcpy(dst->mac_addr, src->mac_addr, ETH_ALEN); in wps_device_clone_data()
298 d = wps_device_get(reg, dev->mac_addr); in wps_device_store()
1165 int wps_cb_new_psk(struct wps_registrar *reg, const u8 *mac_addr, in wps_cb_new_psk() argument
1171 return reg->new_psk_cb(reg->cb_ctx, mac_addr, p2p_dev_addr, psk, in wps_cb_new_psk()
1186 static void wps_cb_reg_success(struct wps_registrar *reg, const u8 *mac_addr, in wps_cb_reg_success() argument
1193 reg->reg_success_cb(reg->cb_ctx, mac_addr, uuid_e, dev_pw, dev_pw_len); in wps_cb_reg_success()
1553 wps_build_mac_addr(msg, cred->mac_addr)) in wps_build_credential()
[all …]
Dwps_validate.c562 static int wps_validate_mac_addr(const u8 *mac_addr, int mandatory) in wps_validate_mac_addr() argument
564 if (mac_addr == NULL) { in wps_validate_mac_addr()
572 if (mac_addr[0] & 0x01) { in wps_validate_mac_addr()
574 "attribute value " MACSTR, MAC2STR(mac_addr)); in wps_validate_mac_addr()
1046 wps_validate_mac_addr(attr.mac_addr, 1) || in wps_validate_cred()
1302 wps_validate_mac_addr(attr.mac_addr, 1) || in wps_validate_m1()
1739 wps_validate_mac_addr(attr.mac_addr, !ap) || in wps_validate_m7_encr()
1815 wps_validate_mac_addr(attr.mac_addr, ap) || in wps_validate_m8_encr()
Dwps_er.c45 ev->mac_addr = sta->addr; in wps_er_sta_event()
101 const u8 *mac_addr) in wps_er_ap_get() argument
108 (mac_addr == NULL || in wps_er_ap_get()
109 os_memcmp(mac_addr, ap->mac_addr, ETH_ALEN) == 0)) in wps_er_ap_get()
149 evap->mac_addr = ap->mac_addr; in wps_er_ap_event()
487 if (attr.mac_addr) in wps_er_ap_get_m1()
488 os_memcpy(ap->mac_addr, attr.mac_addr, ETH_ALEN); in wps_er_ap_get_m1()
1060 os_memcpy(sta->cred->mac_addr, sta->addr, ETH_ALEN); in wps_er_sta_start()
1302 er->mac_addr)) { in wps_er_init()
Dwps_attr_parse.h49 const u8 *mac_addr; /* ETH_ALEN (6) octets */ member
Dwps_upnp_i.h129 u8 mac_addr[ETH_ALEN]; /* mac addr of network i.f. we use */ member
/external/kernel-headers/original/uapi/linux/
Datmlec.h63 unsigned char mac_addr[ETH_ALEN]; member
77 unsigned char mac_addr[ETH_ALEN]; /* dst mac addr */ member
Dif_bridge.h92 __u8 mac_addr[ETH_ALEN]; member
/external/libpcap/msdos/
Dndis2.c677 BYTE _far *mac_addr; in CheckMacFeatures() local
713 mac_addr = MAC_CHAR (handle)->currentAddress; in CheckMacFeatures()
716 mac_addr[0], mac_addr[1], mac_addr[2], in CheckMacFeatures()
717 mac_addr[3], mac_addr[4], mac_addr[5]); in CheckMacFeatures()
/external/wpa_supplicant_8/src/rsn_supp/
Dpeerkey.c199 if (kde.rsn_ie == NULL || kde.mac_addr == NULL || in wpa_supplicant_process_smk_m2()
207 MAC2STR(kde.mac_addr)); in wpa_supplicant_process_smk_m2()
224 wpa_supplicant_send_smk_error(sm, src_addr, kde.mac_addr, in wpa_supplicant_process_smk_m2()
238 os_memcpy(peerkey->addr, kde.mac_addr, ETH_ALEN); in wpa_supplicant_process_smk_m2()
438 MAC2STR(kde->mac_addr)); in wpa_supplicant_process_smk_m4()
468 MAC2STR(kde->mac_addr)); in wpa_supplicant_process_smk_m5()
497 "unacceptable cipher", MAC2STR(kde->mac_addr)); in wpa_supplicant_process_smk_m5()
498 wpa_supplicant_send_smk_error(sm, src_addr, kde->mac_addr, in wpa_supplicant_process_smk_m5()
532 if (kde.mac_addr == NULL || kde.mac_addr_len < ETH_ALEN || in wpa_supplicant_process_smk_m45()
542 if (os_memcmp(peerkey->addr, kde.mac_addr, ETH_ALEN) == 0 && in wpa_supplicant_process_smk_m45()
[all …]
Dwpa_ie.h22 const u8 *mac_addr; member
/external/wpa_supplicant_8/wpa_supplicant/
Dnotify.c569 const u8 *mac_addr, int authorized, in wpas_notify_sta_authorized() argument
573 wpas_notify_ap_sta_authorized(wpa_s, mac_addr, p2p_dev_addr); in wpas_notify_sta_authorized()
575 wpas_notify_ap_sta_deauthorized(wpa_s, mac_addr, p2p_dev_addr); in wpas_notify_sta_authorized()
Dwps_supplicant.c195 bss = wpa_bss_get(wpa_s, cred->mac_addr, ssid->ssid, ssid->ssid_len); in wpas_wps_security_workaround()
342 MAC2STR(cred->mac_addr)); in wpa_supplicant_wps_cred()
655 uuid_str, MAC2STR(ap->mac_addr), dev_type, ap->wps_state, in wpa_supplicant_wps_event_er_ap_add()
690 uuid_str, MAC2STR(enrollee->mac_addr), enrollee->m1_received, in wpa_supplicant_wps_event_er_enrollee_add()
706 uuid_str, MAC2STR(enrollee->mac_addr)); in wpa_supplicant_wps_event_er_enrollee_remove()
1227 static int wpas_wps_new_psk_cb(void *ctx, const u8 *mac_addr, in wpas_wps_new_psk_cb() argument
1234 MAC2STR(mac_addr)); in wpas_wps_new_psk_cb()
1239 MAC2STR(mac_addr), MAC2STR(p2p_dev_addr)); in wpas_wps_new_psk_cb()
1260 uuid, MAC2STR(dev->mac_addr), dev->device_name, in wpas_wps_pin_needed_cb()
1415 os_memcpy(wps->dev.mac_addr, wpa_s->own_addr, ETH_ALEN); in wpas_wps_init()
[all …]
Dap.c416 static void ap_sta_authorized_cb(void *ctx, const u8 *mac_addr, in ap_sta_authorized_cb() argument
419 wpas_notify_sta_authorized(ctx, mac_addr, authorized, p2p_dev_addr); in ap_sta_authorized_cb()
424 static void ap_new_psk_cb(void *ctx, const u8 *mac_addr, const u8 *p2p_dev_addr, in ap_new_psk_cb() argument
431 wpas_p2p_new_psk_cb(wpa_s, mac_addr, p2p_dev_addr, psk, psk_len); in ap_new_psk_cb()
464 static void ap_wps_reg_success_cb(void *ctx, const u8 *mac_addr, in ap_wps_reg_success_cb() argument
468 wpas_p2p_wps_success(wpa_s, mac_addr, 1); in ap_wps_reg_success_cb()

12