Lines Matching refs:mac_addr

148 	int (*new_psk_cb)(void *ctx, const u8 *mac_addr, const u8 *p2p_dev_addr,
154 void (*reg_success_cb)(void *ctx, const u8 *mac_addr,
163 int (*lookup_pskfile_cb)(void *ctx, const u8 *mac_addr, const u8 **psk);
299 if (ether_addr_equal(dev->dev.mac_addr, addr)) in wps_device_get()
309 os_memcpy(dst->mac_addr, src->mac_addr, ETH_ALEN); in wps_device_clone_data()
330 d = wps_device_get(reg, dev->mac_addr); in wps_device_store()
1229 int wps_cb_new_psk(struct wps_registrar *reg, const u8 *mac_addr, in wps_cb_new_psk() argument
1235 return reg->new_psk_cb(reg->cb_ctx, mac_addr, p2p_dev_addr, psk, in wps_cb_new_psk()
1250 static void wps_cb_reg_success(struct wps_registrar *reg, const u8 *mac_addr, in wps_cb_reg_success() argument
1257 reg->reg_success_cb(reg->cb_ctx, mac_addr, uuid_e, dev_pw, dev_pw_len); in wps_cb_reg_success()
1293 static int wps_cp_lookup_pskfile(struct wps_registrar *reg, const u8 *mac_addr, in wps_cp_lookup_pskfile() argument
1298 return reg->lookup_pskfile_cb(reg->cb_ctx, mac_addr, psk); in wps_cp_lookup_pskfile()
1593 wps_build_mac_addr(msg, cred->mac_addr)) in wps_build_credential()
1647 os_memcpy(wps->cred.mac_addr, wps->mac_addr_e, ETH_ALEN); in wps_build_cred()
1718 os_memcpy(wps->cred.mac_addr, wps->mac_addr_e, ETH_ALEN); in wps_build_cred()
1801 os_memcpy(stub.mac_addr, wps->mac_addr_e, ETH_ALEN); in wps_build_cred()
2375 static int wps_process_mac_addr(struct wps_data *wps, const u8 *mac_addr) in wps_process_mac_addr() argument
2377 if (mac_addr == NULL) { in wps_process_mac_addr()
2383 MAC2STR(mac_addr)); in wps_process_mac_addr()
2384 os_memcpy(wps->mac_addr_e, mac_addr, ETH_ALEN); in wps_process_mac_addr()
2385 os_memcpy(wps->peer_dev.mac_addr, mac_addr, ETH_ALEN); in wps_process_mac_addr()
2656 wps_process_mac_addr(wps, attr->mac_addr) || in wps_process_m1()
3059 if (wps->wps->wps_upnp && attr.mac_addr) { in wps_process_wsc_msg()
3065 wps->wps->wps_upnp, attr.mac_addr, in wps_process_wsc_msg()