GAS: Accept GAS response using AP MLD MAC address
The GAS request may have been issued using a link address of the AP MLD's affiliated link and the driver may translate that address to the MLD MAC address when associated with the AP MLD. Accept GAS responses where the addresses map to the same AP MLD. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
29814ee968
commit
bef4171521
1 changed files with 6 additions and 0 deletions
|
@ -199,10 +199,16 @@ static struct gas_query_pending *
|
|||
gas_query_get_pending(struct gas_query *gas, const u8 *addr, u8 dialog_token)
|
||||
{
|
||||
struct gas_query_pending *q;
|
||||
struct wpa_supplicant *wpa_s = gas->wpa_s;
|
||||
|
||||
dl_list_for_each(q, &gas->pending, struct gas_query_pending, list) {
|
||||
if (os_memcmp(q->addr, addr, ETH_ALEN) == 0 &&
|
||||
q->dialog_token == dialog_token)
|
||||
return q;
|
||||
if (wpa_s->valid_links &&
|
||||
os_memcmp(wpa_s->ap_mld_addr, addr, ETH_ALEN) == 0 &&
|
||||
wpas_ap_link_address(wpa_s, q->addr))
|
||||
return q;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue