mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 00:36:01 -04:00
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:
parent
84d7ab5c0c
commit
560c951e33
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user