mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(wpa_supplicant): Update supplicant last scan time when application scanning
- Any scanning currently updates the bss table held by supplicant anyway, but the time record used to maintain the recency of the last scan is only updated by supplicant issued scans. Updating the last scan time for application trigerred scanning will prevent the needless scanning by supplicant if there has been an application trigerred scan in the time diff threshold(currently 10s).
This commit is contained in:
parent
b23e29d5ae
commit
71e6c10f7c
@ -162,6 +162,7 @@ int esp_handle_beacon_probe(u8 type, u8 *frame, size_t len, u8 *sender,
|
||||
/* update rest of the frame */
|
||||
os_memcpy(ptr, frame, len);
|
||||
wpa_bss_update_scan_res(wpa_s, res, &now);
|
||||
os_get_reltime(&wpa_s->last_scan);
|
||||
os_free(res);
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user