/external/wpa_supplicant_8/src/ap/ |
D | peerkey_auth.c | 95 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 …]
|
D | iapp.c | 82 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() 284 sta = ap_get_sta(iapp->hapd, add->mac_addr); in iapp_process_add_notify() 287 hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP, in iapp_process_add_notify() 301 hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP, in iapp_process_add_notify()
|
D | wps_hostapd.c | 83 static int hostapd_wps_new_psk_cb(void *ctx, const u8 *mac_addr, const u8 *psk, in hostapd_wps_new_psk_cb() argument 91 MACSTR, MAC2STR(mac_addr)); in hostapd_wps_new_psk_cb() 104 os_memcpy(p->addr, mac_addr, ETH_ALEN); in hostapd_wps_new_psk_cb() 122 fprintf(f, MACSTR " %s\n", MAC2STR(mac_addr), hex); in hostapd_wps_new_psk_cb() 156 uuid, MAC2STR(dev->mac_addr), dev->device_name, in hostapd_wps_pin_needed_cb() 173 t.sec, uuid, MAC2STR(dev->mac_addr), dev->device_name, in hostapd_wps_pin_needed_cb() 197 static void hostapd_wps_reg_success_cb(void *ctx, const u8 *mac_addr, in hostapd_wps_reg_success_cb() argument 206 MAC2STR(mac_addr), uuid); in hostapd_wps_reg_success_cb() 209 mac_addr, uuid_e); in hostapd_wps_reg_success_cb() 296 MAC2STR(cred->mac_addr)); in hapd_wps_cred_cb() [all …]
|
D | hostapd.h | 138 void (*wps_reg_success_cb)(void *ctx, const u8 *mac_addr, 146 void (*sta_authorized_cb)(void *ctx, const u8 *mac_addr,
|
D | wpa_auth_ie.h | 20 const u8 *mac_addr; member
|
/external/wpa_supplicant_8/src/wps/ |
D | wps_ufd.c | 96 u8 *mac_addr = wps->dev.mac_addr; in get_file_name() local 99 mac_addr[2], mac_addr[3], mac_addr[4], in get_file_name() 100 mac_addr[5]); in get_file_name()
|
D | wps_attr_process.c | 195 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() 300 wps_process_cred_mac_addr(cred, attr->mac_addr) || in wps_process_cred() 325 wps_process_cred_mac_addr(cred, attr->mac_addr)) in wps_process_ap_settings()
|
D | wps.h | 53 u8 mac_addr[ETH_ALEN]; member 84 u8 mac_addr[ETH_ALEN]; member 262 int (*new_psk_cb)(void *ctx, const u8 *mac_addr, const u8 *psk, 301 void (*reg_success_cb)(void *ctx, const u8 *mac_addr, 503 const u8 *mac_addr; member 519 const u8 *mac_addr; member 828 void uuid_gen_mac_addr(const u8 *mac_addr, u8 *uuid);
|
D | wps_er.h | 45 u8 mac_addr[ETH_ALEN]; member 79 u8 mac_addr[ETH_ALEN]; /* mac addr of network i.f. we use */ member
|
D | wps_registrar.c | 98 int (*new_psk_cb)(void *ctx, const u8 *mac_addr, const u8 *psk, 104 void (*reg_success_cb)(void *ctx, const u8 *mac_addr, 208 if (os_memcmp(dev->dev.mac_addr, addr, ETH_ALEN) == 0) in wps_device_get() 218 os_memcpy(dst->mac_addr, src->mac_addr, ETH_ALEN); in wps_device_clone_data() 239 d = wps_device_get(reg, dev->mac_addr); in wps_device_store() 1053 static int wps_cb_new_psk(struct wps_registrar *reg, const u8 *mac_addr, in wps_cb_new_psk() argument 1059 return reg->new_psk_cb(reg->cb_ctx, mac_addr, psk, psk_len); in wps_cb_new_psk() 1073 static void wps_cb_reg_success(struct wps_registrar *reg, const u8 *mac_addr, in wps_cb_reg_success() argument 1079 reg->reg_success_cb(reg->cb_ctx, mac_addr, uuid_e); in wps_cb_reg_success() 1408 MAC2STR(cred->mac_addr)); in wps_build_cred_mac_addr() [all …]
|
D | wps_enrollee.c | 314 wpabuf_put_data(msg, wps->wps->dev.mac_addr, ETH_ALEN); in wps_build_cred_mac_addr() 675 if (os_memcmp(wps->cred.mac_addr, wps->wps->dev.mac_addr, ETH_ALEN) != in wps_process_cred_e() 679 ")", MAC2STR(wps->cred.mac_addr), in wps_process_cred_e() 680 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() 781 MAC2STR(wps->wps->dev.mac_addr)); in wps_process_ap_settings_e()
|
D | wps_upnp.h | 30 const u8 *mac_addr, const struct wpabuf *msg,
|
D | wps_validate.c | 562 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()
|
/external/wpa_supplicant_6/wpa_supplicant/src/wps/ |
D | wps_attr_process.c | 203 const u8 *mac_addr) in wps_process_cred_mac_addr() argument 205 if (mac_addr == NULL) { in wps_process_cred_mac_addr() 211 wpa_printf(MSG_DEBUG, "WPS: MAC Address " MACSTR, MAC2STR(mac_addr)); in wps_process_cred_mac_addr() 212 os_memcpy(cred->mac_addr, mac_addr, ETH_ALEN); in wps_process_cred_mac_addr() 299 wps_process_cred_mac_addr(cred, attr->mac_addr) || in wps_process_cred() 326 wps_process_cred_mac_addr(cred, attr->mac_addr)) in wps_process_ap_settings()
|
D | wps.h | 58 u8 mac_addr[ETH_ALEN]; member 78 u8 mac_addr[ETH_ALEN]; member 185 int (*new_psk_cb)(void *ctx, const u8 *mac_addr, const u8 *psk, 225 void (*reg_success_cb)(void *ctx, const u8 *mac_addr,
|
D | wps_enrollee.c | 272 wpabuf_put_data(msg, wps->wps->dev.mac_addr, ETH_ALEN); in wps_build_cred_mac_addr() 649 if (os_memcmp(wps->cred.mac_addr, wps->wps->dev.mac_addr, ETH_ALEN) != in wps_process_cred_e() 653 ")", MAC2STR(wps->cred.mac_addr), in wps_process_cred_e() 654 MAC2STR(wps->wps->dev.mac_addr)); in wps_process_cred_e() 714 if (os_memcmp(cred.mac_addr, wps->wps->dev.mac_addr, ETH_ALEN) != in wps_process_ap_settings_e() 718 ")", MAC2STR(cred.mac_addr), in wps_process_ap_settings_e() 719 MAC2STR(wps->wps->dev.mac_addr)); in wps_process_ap_settings_e()
|
D | wps_registrar.c | 87 int (*new_psk_cb)(void *ctx, const u8 *mac_addr, const u8 *psk, 93 void (*reg_success_cb)(void *ctx, const u8 *mac_addr, 727 static int wps_cb_new_psk(struct wps_registrar *reg, const u8 *mac_addr, in wps_cb_new_psk() argument 733 return reg->new_psk_cb(reg->cb_ctx, mac_addr, psk, psk_len); in wps_cb_new_psk() 747 static void wps_cb_reg_success(struct wps_registrar *reg, const u8 *mac_addr, in wps_cb_reg_success() argument 753 reg->reg_success_cb(reg->cb_ctx, mac_addr, uuid_e); in wps_cb_reg_success() 1055 MAC2STR(cred->mac_addr)); in wps_build_cred_mac_addr() 1058 wpabuf_put_data(msg, cred->mac_addr, ETH_ALEN); in wps_build_cred_mac_addr() 1132 os_memcpy(wps->cred.mac_addr, wps->mac_addr_e, ETH_ALEN); in wps_build_cred() 1711 static int wps_process_mac_addr(struct wps_data *wps, const u8 *mac_addr) in wps_process_mac_addr() argument [all …]
|
/external/wpa_supplicant_6/wpa_supplicant/src/rsn_supp/ |
D | peerkey.c | 204 if (kde.rsn_ie == NULL || kde.mac_addr == NULL || in wpa_supplicant_process_smk_m2() 212 MAC2STR(kde.mac_addr)); in wpa_supplicant_process_smk_m2() 234 wpa_supplicant_send_smk_error(sm, src_addr, kde.mac_addr, in wpa_supplicant_process_smk_m2() 246 os_memcpy(peerkey->addr, kde.mac_addr, ETH_ALEN); in wpa_supplicant_process_smk_m2() 449 MAC2STR(kde->mac_addr)); in wpa_supplicant_process_smk_m4() 479 MAC2STR(kde->mac_addr)); in wpa_supplicant_process_smk_m5() 513 "unacceptable cipher", MAC2STR(kde->mac_addr)); in wpa_supplicant_process_smk_m5() 514 wpa_supplicant_send_smk_error(sm, src_addr, kde->mac_addr, in wpa_supplicant_process_smk_m5() 546 if (kde.mac_addr == NULL || kde.mac_addr_len < ETH_ALEN || in wpa_supplicant_process_smk_m45() 556 if (os_memcmp(peerkey->addr, kde.mac_addr, ETH_ALEN) == 0 && in wpa_supplicant_process_smk_m45() [all …]
|
D | wpa_ie.h | 26 const u8 *mac_addr; member
|
/external/wpa_supplicant_8/src/rsn_supp/ |
D | peerkey.c | 199 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() 229 wpa_supplicant_send_smk_error(sm, src_addr, kde.mac_addr, in wpa_supplicant_process_smk_m2() 241 os_memcpy(peerkey->addr, kde.mac_addr, ETH_ALEN); in wpa_supplicant_process_smk_m2() 444 MAC2STR(kde->mac_addr)); in wpa_supplicant_process_smk_m4() 474 MAC2STR(kde->mac_addr)); in wpa_supplicant_process_smk_m5() 508 "unacceptable cipher", MAC2STR(kde->mac_addr)); in wpa_supplicant_process_smk_m5() 509 wpa_supplicant_send_smk_error(sm, src_addr, kde->mac_addr, in wpa_supplicant_process_smk_m5() 541 if (kde.mac_addr == NULL || kde.mac_addr_len < ETH_ALEN || in wpa_supplicant_process_smk_m45() 551 if (os_memcmp(peerkey->addr, kde.mac_addr, ETH_ALEN) == 0 && in wpa_supplicant_process_smk_m45() [all …]
|
D | wpa_ie.h | 22 const u8 *mac_addr; member
|
/external/wpa_supplicant_6/wpa_supplicant/src/utils/ |
D | uuid.c | 82 void uuid_gen_mac_addr(const u8 *mac_addr, u8 *uuid) in uuid_gen_mac_addr() argument 97 addr[1] = mac_addr; in uuid_gen_mac_addr()
|
D | uuid.h | 23 void uuid_gen_mac_addr(const u8 *mac_addr, u8 *uuid);
|
/external/wpa_supplicant_6/wpa_supplicant/ |
D | wps_supplicant.c | 116 if (os_memcmp(bss->bssid, cred->mac_addr, ETH_ALEN) != 0) in wpas_wps_security_workaround() 221 MAC2STR(cred->mac_addr)); in wpa_supplicant_wps_cred() 619 static int wpas_wps_new_psk_cb(void *ctx, const u8 *mac_addr, const u8 *psk, in wpas_wps_new_psk_cb() argument 623 "STA " MACSTR, MAC2STR(mac_addr)); in wpas_wps_new_psk_cb() 642 uuid, MAC2STR(dev->mac_addr), dev->device_name, in wpas_wps_pin_needed_cb() 698 os_memcpy(wps->dev.mac_addr, wpa_s->own_addr, ETH_ALEN); in wpas_wps_init()
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | notify.c | 568 const u8 *mac_addr, int authorized, in wpas_notify_sta_authorized() argument 572 wpas_notify_ap_sta_authorized(wpa_s, mac_addr, p2p_dev_addr); in wpas_notify_sta_authorized() 574 wpas_notify_ap_sta_deauthorized(wpa_s, mac_addr); in wpas_notify_sta_authorized()
|