diff options
author | Yoni Divinsky <yoni.divinsky@ti.com> | 2012-04-24 15:22:59 +0300 |
---|---|---|
committer | Arik Nemtsov <arik@wizery.com> | 2012-07-30 17:48:05 +0300 |
commit | 1d958189c0f383a281637b1c2b73bb2cd8d22f80 (patch) | |
tree | 417321b035da062792556c14ff8b2a376d132e56 /src/drivers | |
parent | 2df6d2659602e258447130d5d3be8c6b9cfdf13e (diff) | |
download | external_wpa_supplicant_8_ti-1d958189c0f383a281637b1c2b73bb2cd8d22f80.zip external_wpa_supplicant_8_ti-1d958189c0f383a281637b1c2b73bb2cd8d22f80.tar.gz external_wpa_supplicant_8_ti-1d958189c0f383a281637b1c2b73bb2cd8d22f80.tar.bz2 |
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>
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/driver_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/driver_test.c b/src/drivers/driver_test.c index f011651..fd93340 100644 --- a/src/drivers/driver_test.c +++ b/src/drivers/driver_test.c @@ -1321,7 +1321,8 @@ static void wpa_driver_test_scan_timeout(void *eloop_ctx, void *timeout_ctx) for (i = 0; i < drv->num_scanres; i++) { struct wpa_scan_res *bss = drv->scanres[i]; if (p2p_scan_res_handler(drv->p2p, bss->bssid, - bss->freq, bss->level, + bss->freq, bss->age, + bss->level, (const u8 *) (bss + 1), bss->ie_len) > 0) return; |