Lines Matching refs:nconf
404 FILE *oconf, *nconf;
492 nconf = fopen(tmp_fname, "w");
493 if (nconf == NULL) {
501 fprintf(nconf, "# WPS configuration - START\n");
503 fprintf(nconf, "wps_state=2\n");
506 fprintf(nconf, "ssid2=");
508 fprintf(nconf, "%02x", cred->ssid[i]);
509 fprintf(nconf, "\n");
511 fprintf(nconf, "ssid=");
513 fputc(cred->ssid[i], nconf);
514 fprintf(nconf, "\n");
529 fprintf(nconf, "wpa=%d\n", wpa);
531 fprintf(nconf, "wpa_key_mgmt=");
534 fprintf(nconf, "WPA-EAP");
538 fprintf(nconf, "%sWPA-PSK", prefix);
539 fprintf(nconf, "\n");
541 fprintf(nconf, "wpa_pairwise=");
545 fprintf(nconf, "GCMP");
547 fprintf(nconf, "CCMP");
552 fprintf(nconf, "%sTKIP", prefix);
554 fprintf(nconf, "\n");
557 fprintf(nconf, "wpa_passphrase=");
559 fputc(cred->key[i], nconf);
560 fprintf(nconf, "\n");
562 fprintf(nconf, "wpa_psk=");
564 fputc(cred->key[i], nconf);
565 fprintf(nconf, "\n");
572 fprintf(nconf, "auth_algs=1\n");
578 fprintf(nconf, "auth_algs=1\n");
581 fprintf(nconf, "# WPS configuration - END\n");
600 fprintf(nconf, "#WPS# %s", buf);
602 fprintf(nconf, "%s", buf);
605 fclose(nconf);