static int interface_count(struct hostapd_iface *iface)
{
int count = 0;
+ if (iface->for_each_interface == NULL)
+ return 0;
iface->for_each_interface(iface->interfaces, count_interface_cb,
&count);
return count;
{
if (hapd->wps == NULL)
return;
+
+#ifdef CONFIG_WPS_UPNP
+ hapd->wps->friendly_name = hapd->conf->friendly_name;
+ hapd->wps->manufacturer_url = hapd->conf->manufacturer_url;
+ hapd->wps->model_description = hapd->conf->model_description;
+ hapd->wps->model_url = hapd->conf->model_url;
+ hapd->wps->upc = hapd->conf->upc;
+#endif /* CONFIG_WPS_UPNP */
+
if (hapd->conf->wps_state)
wps_registrar_update_ie(hapd->wps->registrar);
else