Copy WPS strings into AP configuration when using wpa_supplicant AP
This commit is contained in:
parent
1c9cb49fe9
commit
56815b2b7d
1 changed files with 11 additions and 4 deletions
|
@ -160,14 +160,21 @@ static int wpa_supplicant_conf_ap(struct wpa_supplicant *wpa_s,
|
||||||
bss->config_methods = os_strdup(wpa_s->conf->config_methods);
|
bss->config_methods = os_strdup(wpa_s->conf->config_methods);
|
||||||
if (wpa_s->conf->device_type)
|
if (wpa_s->conf->device_type)
|
||||||
bss->device_type = os_strdup(wpa_s->conf->device_type);
|
bss->device_type = os_strdup(wpa_s->conf->device_type);
|
||||||
#endif /* CONFIG_WPS */
|
|
||||||
|
|
||||||
#ifdef CONFIG_P2P
|
|
||||||
if (wpa_s->conf->device_name) {
|
if (wpa_s->conf->device_name) {
|
||||||
bss->device_name = os_strdup(wpa_s->conf->device_name);
|
bss->device_name = os_strdup(wpa_s->conf->device_name);
|
||||||
bss->friendly_name = os_strdup(wpa_s->conf->device_name);
|
bss->friendly_name = os_strdup(wpa_s->conf->device_name);
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_P2P */
|
if (wpa_s->conf->manufacturer)
|
||||||
|
bss->manufacturer = os_strdup(wpa_s->conf->manufacturer);
|
||||||
|
if (wpa_s->conf->model_name)
|
||||||
|
bss->model_name = os_strdup(wpa_s->conf->model_name);
|
||||||
|
if (wpa_s->conf->model_number)
|
||||||
|
bss->model_number = os_strdup(wpa_s->conf->model_number);
|
||||||
|
if (wpa_s->conf->serial_number)
|
||||||
|
bss->serial_number = os_strdup(wpa_s->conf->serial_number);
|
||||||
|
os_memcpy(bss->uuid, wpa_s->conf->uuid, WPS_UUID_LEN);
|
||||||
|
os_memcpy(bss->os_version, wpa_s->conf->os_version, 4);
|
||||||
|
#endif /* CONFIG_WPS */
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue