settings->ssid,
settings->channel,
settings->hide_mode ? 2 : 0,
- strlen(settings->mode) ? settings->mode : "g",
+ settings->mode,
settings->max_sta);
#else
snprintf(buf, sizeof(buf), HOSTAPD_CONF,
settings->ssid,
settings->channel,
settings->hide_mode ? 2 : 0,
- strlen(settings->mode) ? settings->mode : "g",
+ settings->mode,
settings->max_sta,
settings->mac_filter,
HOSTAPD_ALLOWED_LIST,
settings->ssid,
settings->channel,
settings->hide_mode,
- strlen(settings->mode) ? settings->mode : "g",
+ settings->mode,
settings->max_sta,
settings->mac_filter,
HOSTAPD_ALLOWED_LIST,
if (strlen(src->mode))
g_strlcpy(dst->mode, src->mode, sizeof(dst->mode));
+ else
+ g_strlcpy(dst->mode, "g", sizeof(dst->mode));
if (strlen(src->vendor_elements))
g_strlcpy(dst->vendor_elements, src->vendor_elements, sizeof(dst->vendor_elements));
if (strcmp(a->mode, b->mode) != 0)
return FALSE;
+ if (strcmp(a->vendor_elements, b->vendor_elements) != 0)
+ return FALSE;
+
if (a->channel != b->channel)
return FALSE;
sizeof(settings.security_type));
}
- g_strlcpy(wifi_ap_settings.vendor_elements, vendor_elements, sizeof(wifi_ap_settings.vendor_elements));
+ g_strlcpy(settings.vendor_elements, vendor_elements, sizeof(settings.vendor_elements));
settings.hide_mode = (!visibility);
settings.address_type = MOBILE_AP_ADDRESS_TYPE_IPV4;