diff --git a/components/esp_wifi/wifi_apps/roaming_app/src/esp_roaming_i.h b/components/esp_wifi/wifi_apps/roaming_app/src/esp_roaming_i.h index 87400622d6..9ca515e6af 100644 --- a/components/esp_wifi/wifi_apps/roaming_app/src/esp_roaming_i.h +++ b/components/esp_wifi/wifi_apps/roaming_app/src/esp_roaming_i.h @@ -66,10 +66,17 @@ extern "C" { #endif /* Periodic RRM configuration */ +#ifdef CONFIG_ESP_WIFI_ROAMING_PERIODIC_RRM_MONITORING #define PERIODIC_RRM_MONITORING CONFIG_ESP_WIFI_ROAMING_PERIODIC_RRM_MONITORING +#else +#define PERIODIC_RRM_MONITORING 0 +#endif #if PERIODIC_RRM_MONITORING #define RRM_MONITOR_TIME CONFIG_ESP_WIFI_ROAMING_RRM_MONITOR_TIME #define RRM_MONITOR_RSSI_THRESHOLD CONFIG_ESP_WIFI_ROAMING_RRM_MONITOR_THRESHOLD +#else +#define RRM_MONITOR_TIME 232 +#define RRM_MONITOR_RSSI_THRESHOLD -100 #endif /*PERIODIC_RRM_MONITORING*/ #define MAX_SCAN_CHAN_LIST_COUNT 14 diff --git a/components/esp_wifi/wifi_apps/roaming_app/src/roaming_app.c b/components/esp_wifi/wifi_apps/roaming_app/src/roaming_app.c index 61ffb88afb..2612af40be 100644 --- a/components/esp_wifi/wifi_apps/roaming_app/src/roaming_app.c +++ b/components/esp_wifi/wifi_apps/roaming_app/src/roaming_app.c @@ -44,8 +44,12 @@ static void *neighbor_list_lock = NULL; static int wifi_post_roam_event(struct cand_bss *bss); static void determine_best_ap(int8_t rssi_threshold); +#if PERIODIC_RRM_MONITORING static void roaming_app_periodic_rrm_internal_handler(void *data, void *ctx); +#endif +#if PERIODIC_SCAN_MONITORING static void roaming_app_periodic_scan_internal_handler(void *data, void *ctx); +#endif static const char *ROAMING_TAG = "ROAM";