From 938dd97a840d8fe4b7a1faa29824416dc8d20e0e Mon Sep 17 00:00:00 2001 From: Roee Zamir Date: Sun, 26 Aug 2018 20:45:00 +0300 Subject: [PATCH] driver: Add OCE scan parameters Add a flag to scan parameters that enables OCE scan features. If this flag is set the device should enable the following features as defined in the Optimized Connectivity Experience Technical Specification v1.0: - Overwrite FILS request Max Channel Time with actual value (clause 3.8) - Send Probe Request frame in high rate (at least 5.5 Mbps) (clause 3.12) - Probe Request frame Transmission Deferral and Suppression (clause 3.5) - Accept broadcast Probe Response frame (clause 3.6) Signed-off-by: Roee Zamir --- src/drivers/driver.h | 12 ++++++++++++ wpa_supplicant/scan.c | 1 + 2 files changed, 13 insertions(+) diff --git a/src/drivers/driver.h b/src/drivers/driver.h index 9922962ea..22a37cc40 100644 --- a/src/drivers/driver.h +++ b/src/drivers/driver.h @@ -567,6 +567,18 @@ struct wpa_driver_scan_params { */ s8 relative_adjust_rssi; + /** + * oce_scan + * + * Enable the following OCE scan features: (WFA OCE TechSpec v1.0) + * - Accept broadcast Probe Response frame. + * - Probe Request frame deferral and suppression. + * - Max Channel Time - driver fills FILS request params IE with + * Maximum Channel Time. + * - Send 1st Probe Request frame in rate of minimum 5.5 Mbps. + */ + unsigned int oce_scan:1; + /* * NOTE: Whenever adding new parameters here, please make sure * wpa_scan_clone_params() and wpa_scan_free_params() get updated with diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c index 104b25898..3c52c395b 100644 --- a/wpa_supplicant/scan.c +++ b/wpa_supplicant/scan.c @@ -2401,6 +2401,7 @@ wpa_scan_clone_params(const struct wpa_driver_scan_params *src) params->low_priority = src->low_priority; params->duration = src->duration; params->duration_mandatory = src->duration_mandatory; + params->oce_scan = src->oce_scan; if (src->sched_scan_plans_num > 0) { params->sched_scan_plans =