Skip to content

Commit 1f97325

Browse files
authored
add guard enterprise
1 parent 5cb6b50 commit 1f97325

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ wl_status_t WiFiSTAClass::status() {
6363
return STA.status();
6464
}
6565

66+
#if CONFIG_ESP_WIFI_ENTERPRISE_SUPPORT
6667
wl_status_t WiFiSTAClass::begin(
6768
const char *wpa2_ssid, wpa2_auth_method_t method, const char *wpa2_identity, const char *wpa2_username, const char *wpa2_password, const char *ca_pem,
6869
const char *client_crt, const char *client_key, int ttls_phase2_type, int32_t channel, const uint8_t *bssid, bool connect
@@ -77,6 +78,7 @@ wl_status_t WiFiSTAClass::begin(
7778

7879
return STA.status();
7980
}
81+
#endif /* CONFIG_ESP_WIFI_ENTERPRISE_SUPPORT */
8082

8183
wl_status_t WiFiSTAClass::begin(const char *ssid, const char *passphrase, int32_t channel, const uint8_t *bssid, bool connect) {
8284
if (!STA.begin()) {

0 commit comments

Comments
 (0)