Struct mgos_config_wifi_ap issues

mgos_wifi.h is a little outdated regarding the documentation. The actual structure of mgos_config_wifi_ap and mgos_config_wifi_sta is defined by the config_schema in mos.yml.

The generated C structures can be found in build/gen/mgos_config.h:
esp8266:

struct mgos_config_wifi_ap {
  int enable;
  const char * ssid;
  const char * pass;
  int hidden;
  int channel;
  int max_connections;
  const char * ip;
  const char * netmask;
  const char * gw;
  const char * dhcp_start;
  const char * dhcp_end;
  int trigger_on_gpio;
  int disable_after;
  const char * hostname;
  int keep_enabled;
};

esp32:

struct mgos_config_wifi_ap {
  int enable;
  const char * ssid;
  const char * pass;
  int hidden;
  int channel;
  int max_connections;
  const char * ip;
  const char * netmask;
  const char * gw;
  const char * dhcp_start;
  const char * dhcp_end;
  int trigger_on_gpio;
  int disable_after;
  const char * hostname;
  int keep_enabled;
  int bandwidth_20mhz;
  const char * protocol;
};

The additional fields for esp32 are added here

PS. I don’t use VS code, just plane cli.