mirror of
https://github.com/espressif/esp-idf
synced 2025-03-13 02:59:13 -04:00
Merge branch 'fix/warning_in_wifi_prov_mgr_v4.2' into 'release/v4.2'
provisioning: fix wifi warning in wifi_prov_mgr application (v4.2) See merge request espressif/esp-idf!14764
This commit is contained in:
commit
48c9f47247
@ -924,11 +924,17 @@ esp_err_t wifi_prov_mgr_wifi_scan_start(bool blocking, bool passive,
|
|||||||
|
|
||||||
if (passive) {
|
if (passive) {
|
||||||
prov_ctx->scan_cfg.scan_type = WIFI_SCAN_TYPE_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;
|
prov_ctx->scan_cfg.scan_time.passive = period_ms;
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
prov_ctx->scan_cfg.scan_type = WIFI_SCAN_TYPE_ACTIVE;
|
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.min = period_ms;
|
||||||
prov_ctx->scan_cfg.scan_time.active.max = period_ms;
|
prov_ctx->scan_cfg.scan_time.active.max = period_ms;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
prov_ctx->channels_per_group = group_channels;
|
prov_ctx->channels_per_group = group_channels;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user