mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 02:44:03 -05:00
P2P: Refresh peer entries on Probe Request RX
Do not expire P2P peer entries if Probe Request frames are received from them.
This commit is contained in:
parent
56aa082a1d
commit
ed908a55da
@ -1517,6 +1517,7 @@ static void p2p_add_dev_from_probe_req(struct p2p_data *p2p, const u8 *addr,
|
|||||||
if (dev) {
|
if (dev) {
|
||||||
if (dev->country[0] == 0 && msg.listen_channel)
|
if (dev->country[0] == 0 && msg.listen_channel)
|
||||||
os_memcpy(dev->country, msg.listen_channel, 3);
|
os_memcpy(dev->country, msg.listen_channel, 3);
|
||||||
|
os_get_time(&dev->last_seen);
|
||||||
p2p_parse_free(&msg);
|
p2p_parse_free(&msg);
|
||||||
return; /* already known */
|
return; /* already known */
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user