fix(wpa_supplicant): Add default durations to supplicant issued scans

- Add default durations to supplicant issued scans based on results from
  initial experiments where probe response times were recorded in a
  significantly noisy environment. It was noticed  that  within 70ms
  we receive over 80% of the responses 90% of the time
This commit is contained in:
jgujarathi 2023-09-29 14:14:44 +05:30 committed by BOT
parent 84d7ab5c0c
commit 560c951e33
2 changed files with 7 additions and 0 deletions

View File

@ -240,6 +240,9 @@ static int issue_scan(struct wpa_supplicant *wpa_s,
params->scan_time.passive = scan_params->duration;
params->scan_time.active.min = scan_params->duration;
params->scan_time.active.max = scan_params->duration;
} else {
params->scan_time.active.min = SUPPLICANT_SCAN_ACTIVE_SCAN_MIN_DURATION;
params->scan_time.active.max = SUPPLICANT_SCAN_ACTIVE_SCAN_MAX_DURATION;
}
}

View File

@ -6,6 +6,10 @@
#ifndef ESP_SCAN_I_H
#define ESP_SCAN_I_H
#define SUPPLICANT_SCAN_ACTIVE_SCAN_MIN_DURATION 10
#define SUPPLICANT_SCAN_ACTIVE_SCAN_MAX_DURATION 70
void esp_scan_init(struct wpa_supplicant *wpa_s);
void esp_scan_deinit(struct wpa_supplicant *wpa_s);
int esp_handle_beacon_probe(u8 type, u8 *frame, size_t len, u8 *sender,