]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/p2p/p2p.c
P2P: Consider age for the P2P scan results
authorYoni Divinsky <yoni.divinsky@ti.com>
Tue, 25 Dec 2012 09:22:42 +0000 (11:22 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 25 Dec 2012 09:22:42 +0000 (11:22 +0200)
commit3dfd0484fc672860c824c5dcc6678153870d7664
tree5e55cf209af87381d425fc078d1c61a4fc71a160
parentd125df25e41eba7d815873ab73d415e237584c72
P2P: Consider age for the P2P scan results

cfg80211 caches the scan results according the channel number. Due to
the 15 sec aging this might cause the user mode to see more than one
scan result with the same BSSID, e.g. - one scan result for the
P2P Device and one for the P2P GO (once it's enabled).

Fix this by updating the device entry only if the new peer entry is
newer than the one previously stored.

Signed-off-by: Yoni Divinsky <yoni.divinsky@ti.com>
Signed-off-by: Victor Goldenshtein <victorg@ti.com>
Signed-off-by: Igal Chernobelsky <igalc@ti.com>
Signed-hostap: Arik Nemtsov <arik@wizery.com>
src/drivers/driver_test.c
src/p2p/p2p.c
src/p2p/p2p.h
src/p2p/p2p_i.h
src/p2p/p2p_invitation.c
src/p2p/p2p_pd.c
wpa_supplicant/p2p_supplicant.c