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).
pull/13550/head
jgujarathi 2023-08-16 12:58:01 +05:30 zatwierdzone przez BOT
rodzic b23e29d5ae
commit 71e6c10f7c
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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;