Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how wpa_suplicant SIOCGIWAP get 00:00:00:00:00:00 mac? #6

Open
cfycyf opened this issue May 24, 2019 · 0 comments
Open

how wpa_suplicant SIOCGIWAP get 00:00:00:00:00:00 mac? #6

cfycyf opened this issue May 24, 2019 · 0 comments

Comments

@cfycyf
Copy link

cfycyf commented May 24, 2019

I read the code src/drivers/driver_wext.c
at function: wpa_driver_wext_event_wireless
the client may receive a is_zero_ether_addr all 0 mac,
I want to ask how to make the client receive a "00:00:00:00:00:00" mac which seems a assiciation AP?

case SIOCGIWAP:
wpa_printf(MSG_DEBUG, "Wireless event: new AP: "
MACSTR,
MAC2STR((u8 *) iwe->u.ap_addr.sa_data));
*if (is_zero_ether_addr(
(const u8 ) iwe->u.ap_addr.sa_data) ||
os_memcmp(iwe->u.ap_addr.sa_data,
"\x44\x44\x44\x44\x44\x44", ETH_ALEN) ==
0) {
os_free(drv->assoc_req_ies);
drv->assoc_req_ies = NULL;
os_free(drv->assoc_resp_ies);
drv->assoc_resp_ies = NULL;
wpa_supplicant_event(drv->ctx, EVENT_DISASSOC,
NULL);

		} else {
			wpa_driver_wext_event_assoc_ies(drv);
			wpa_supplicant_event(drv->ctx, EVENT_ASSOC,
					     NULL);
		}
		break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant