diff --git a/components/esp_wifi/include/esp_wifi_types_generic.h b/components/esp_wifi/include/esp_wifi_types_generic.h index 0469df0e63e..06f5b5d20c8 100644 --- a/components/esp_wifi/include/esp_wifi_types_generic.h +++ b/components/esp_wifi/include/esp_wifi_types_generic.h @@ -199,7 +199,8 @@ typedef enum { .scan_time.active.min = WIFI_ACTIVE_SCAN_MIN_DEFAULT_TIME, \ .scan_time.active.max = WIFI_ACTIVE_SCAN_MAX_DEFAULT_TIME, \ .scan_time.passive = WIFI_PASSIVE_SCAN_DEFAULT_TIME, \ - .home_chan_dwell_time = WIFI_SCAN_HOME_CHANNEL_DWELL_DEFAULT_TIME\ + .home_chan_dwell_time = WIFI_SCAN_HOME_CHANNEL_DWELL_DEFAULT_TIME, \ + .max_offchan_duration_ms = 0 \ } /** @@ -265,6 +266,7 @@ typedef struct { typedef struct { wifi_scan_time_t scan_time; /**< Scan time per channel */ uint8_t home_chan_dwell_time;/**< Time spent at home channel between scanning consecutive channels.*/ + uint16_t max_offchan_duration_ms; /**< Maximum accumulated off-channel scan duration before returning to home channel (0 = use WIFI_ACTIVE_SCAN_MAX_DEFAULT_TIME, range: 1-4500ms). */ } wifi_scan_default_params_t; /** diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index 9e91edcb2e6..c765fc78f0f 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit 9e91edcb2e64b5b137c78c9755296f97f414050c +Subproject commit c765fc78f0f420351d880a11c8335fb3f058fcbb diff --git a/components/esp_wifi/remote/include/injected/esp_wifi_types_generic.h b/components/esp_wifi/remote/include/injected/esp_wifi_types_generic.h index 56b40bd4a7d..00b6854c637 100644 --- a/components/esp_wifi/remote/include/injected/esp_wifi_types_generic.h +++ b/components/esp_wifi/remote/include/injected/esp_wifi_types_generic.h @@ -199,7 +199,8 @@ typedef enum { .scan_time.active.min = WIFI_ACTIVE_SCAN_MIN_DEFAULT_TIME, \ .scan_time.active.max = WIFI_ACTIVE_SCAN_MAX_DEFAULT_TIME, \ .scan_time.passive = WIFI_PASSIVE_SCAN_DEFAULT_TIME, \ - .home_chan_dwell_time = WIFI_SCAN_HOME_CHANNEL_DWELL_DEFAULT_TIME\ + .home_chan_dwell_time = WIFI_SCAN_HOME_CHANNEL_DWELL_DEFAULT_TIME, \ + .max_offchan_duration_ms = 0 \ } /** @@ -265,6 +266,7 @@ typedef struct { typedef struct { wifi_scan_time_t scan_time; /**< Scan time per channel */ uint8_t home_chan_dwell_time;/**< Time spent at home channel between scanning consecutive channels.*/ + uint16_t max_offchan_duration_ms; /**< Maximum accumulated off-channel scan duration before returning to home channel (0 = use WIFI_ACTIVE_SCAN_MAX_DEFAULT_TIME, range: 1-4500ms). */ } wifi_scan_default_params_t; /**