Lines Matching refs:cred
510 struct wps_credential cred = {0}; in hostapd_wps_config_ap() local
512 os_memcpy(cred.ssid, hapd->conf->ssid.ssid, hapd->conf->ssid.ssid_len); in hostapd_wps_config_ap()
513 cred.ssid_len = hapd->conf->ssid.ssid_len; in hostapd_wps_config_ap()
514 cred.encr_type = WPS_ENCR_NONE; in hostapd_wps_config_ap()
515 cred.auth_type = WPS_AUTH_OPEN; in hostapd_wps_config_ap()
518 cred.auth_type = WPS_AUTH_WPAPSK; in hostapd_wps_config_ap()
519 cred.encr_type = WPS_ENCR_TKIP; in hostapd_wps_config_ap()
521 cred.auth_type = WPS_AUTH_WPA2PSK; in hostapd_wps_config_ap()
522 cred.encr_type = WPS_ENCR_AES; in hostapd_wps_config_ap()
524 cred.auth_type = WPS_AUTH_WPA2PSK | WPS_AUTH_WPAPSK; in hostapd_wps_config_ap()
525 cred.encr_type = WPS_ENCR_AES; in hostapd_wps_config_ap()
529 cred.key_len = os_strlen(hapd->conf->ssid.wpa_passphrase); in hostapd_wps_config_ap()
530 memcpy(cred.key, hapd->conf->ssid.wpa_passphrase, cred.key_len); in hostapd_wps_config_ap()
537 os_memcpy(wps_data->use_cred, &cred, sizeof(struct wps_credential)); in hostapd_wps_config_ap()