From baa2faa94bd17900b77708ca604a6e3a13b15005 Mon Sep 17 00:00:00 2001 From: Harshit Malpani Date: Mon, 9 Aug 2021 18:48:45 +0530 Subject: [PATCH] provisioning: fix wifi warning in wifi_prov_mgr application Scan configuration parameters should not modify in co-existence mode. --- components/wifi_provisioning/src/manager.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/wifi_provisioning/src/manager.c b/components/wifi_provisioning/src/manager.c index df08130dd2..de80f34659 100644 --- a/components/wifi_provisioning/src/manager.c +++ b/components/wifi_provisioning/src/manager.c @@ -927,11 +927,17 @@ esp_err_t wifi_prov_mgr_wifi_scan_start(bool blocking, bool passive, if (passive) { prov_ctx->scan_cfg.scan_type = WIFI_SCAN_TYPE_PASSIVE; +/* We do not recommend scan configuration modification in Wi-Fi and BT coexistence mode */ +#if !CONFIG_BT_ENABLED prov_ctx->scan_cfg.scan_time.passive = period_ms; +#endif } else { prov_ctx->scan_cfg.scan_type = WIFI_SCAN_TYPE_ACTIVE; +/* We do not recommend scan configuration modification in Wi-Fi and BT coexistence mode */ +#if !CONFIG_BT_ENABLED prov_ctx->scan_cfg.scan_time.active.min = period_ms; prov_ctx->scan_cfg.scan_time.active.max = period_ms; +#endif } prov_ctx->channels_per_group = group_channels;