]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Refresh peer entries on Probe Request RX
authorMarek Kwaczynski <marek.kwaczynski@tieto.com>
Sat, 1 Oct 2011 17:40:14 +0000 (20:40 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 1 Oct 2011 17:40:14 +0000 (20:40 +0300)
Do not expire P2P peer entries if Probe Request frames are received from
them.

src/p2p/p2p.c

index 3cb8f4dc7575cd4c9fcff24eec5dc576435bea9f..25d4d55e5c5ebdfaa7aa29069d6bf961c357466b 100644 (file)
@@ -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 */
        }