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
1 changed files with 1 additions and 0 deletions
|
@ -1517,6 +1517,7 @@ static void p2p_add_dev_from_probe_req(struct p2p_data *p2p, const u8 *addr,
|
|||
if (dev) {
|
||||
if (dev->country[0] == 0 && msg.listen_channel)
|
||||
os_memcpy(dev->country, msg.listen_channel, 3);
|
||||
os_get_time(&dev->last_seen);
|
||||
p2p_parse_free(&msg);
|
||||
return; /* already known */
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue