Skip to content

Commit a35acd4

Browse files
committed
Use APSTA as the default AP mode in driver
1 parent ab2add4 commit a35acd4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

esp_hosted_ng/host/esp_cfg80211.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,12 @@ static int esp_nl_mode_to_esp_iface(enum nl80211_iftype type)
311311
}
312312

313313
static int8_t esp_get_mode_from_iface_type(int iface_type) {
314+
// Numbers return bellow has the following meaning
315+
// 3 => WIFI_MODE_APSTA
316+
// 1 => WIFI_MODE_STA
317+
314318
if (iface_type == ESP_AP_IF) {
315-
return 2;
319+
return 3;
316320
}
317321

318322
return 1;

0 commit comments

Comments
 (0)