Skip to content

Commit 5e93ab6

Browse files
authored
Guard WPA Enterprise support
1 parent e9b3f26 commit 5e93ab6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: libraries/WiFi/src/STA.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@ bool STAClass::connect(const char *ssid, const char *passphrase, int32_t channel
421421
return true;
422422
}
423423

424+
#if CONFIG_ESP_WIFI_ENTERPRISE_SUPPORT
424425
/**
425426
* Start Wifi connection with a WPA2 Enterprise AP
426427
* if passphrase is set the most secure supported mode will be automatically selected
@@ -519,6 +520,7 @@ bool STAClass::connect(
519520

520521
return connect(wpa2_ssid, NULL, channel, bssid, tryConnect); //connect to wifi
521522
}
523+
#endif /* CONFIG_ESP_WIFI_ENTERPRISE_SUPPORT */
522524

523525
bool STAClass::disconnect(bool eraseap, unsigned long timeout) {
524526
if (eraseap) {

0 commit comments

Comments
 (0)