mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-12-01 03:38:21 -05:00
P2P: Allow pre-authorization of invitation to apply to src addr
For client-invites-device case, the pre-authorization of an invitation to running group will need to allow Invitation Request from specified address, too. This is for testing uses only.
This commit is contained in:
parent
6d4747a9a2
commit
131cb37c2d
@ -1707,8 +1707,9 @@ static u8 wpas_invitation_process(void *ctx, const u8 *sa, const u8 *bssid,
|
||||
wpa_printf(MSG_DEBUG, "P2P: Invitation from " MACSTR
|
||||
" to join an active group", MAC2STR(sa));
|
||||
if (!is_zero_ether_addr(wpa_s->p2p_auth_invite) &&
|
||||
os_memcmp(go_dev_addr, wpa_s->p2p_auth_invite, ETH_ALEN) ==
|
||||
0) {
|
||||
(os_memcmp(go_dev_addr, wpa_s->p2p_auth_invite, ETH_ALEN)
|
||||
== 0 ||
|
||||
os_memcmp(sa, wpa_s->p2p_auth_invite, ETH_ALEN) == 0)) {
|
||||
wpa_printf(MSG_DEBUG, "P2P: Accept previously "
|
||||
"authorized invitation");
|
||||
goto accept_inv;
|
||||
|
Loading…
Reference in New Issue
Block a user