[wifi] Declare the AP portal helpers for builds without an access point

This commit is contained in:
J. Nick Koston
2026-08-19 14:30:46 -05:00
parent 55180938ca
commit 78258dc554
2 changed files with 0 additions and 4 deletions
@@ -2219,7 +2219,6 @@ bool WiFiComponent::is_ap_portal_active_() {
return this->is_captive_portal_active_();
}
#ifdef USE_WIFI_AP
void WiFiComponent::start_ap_portal_() {
#ifdef USE_CAPTIVE_PORTAL
if (captive_portal::global_captive_portal != nullptr)
@@ -2239,7 +2238,6 @@ void WiFiComponent::end_ap_portal_() {
web_server::global_web_server->end_captive();
#endif
}
#endif // USE_WIFI_AP
bool WiFiComponent::is_esp32_improv_active_() {
#ifdef USE_IMPROV
return esp32_improv::global_improv_component != nullptr && esp32_improv::global_improv_component->is_active();
-2
View File
@@ -791,10 +791,8 @@ class WiFiComponent final : public Component {
bool is_captive_portal_active_();
/// captive_portal or the web_server AP mode is serving a user on the access point
bool is_ap_portal_active_();
#ifdef USE_WIFI_AP
void start_ap_portal_();
void end_ap_portal_();
#endif
bool is_esp32_improv_active_();
#ifdef USE_WIFI_FAST_CONNECT