Skip to content

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

@cfycyf

Description

@cfycyf

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions