Lines Matching refs:nconf
400 FILE *oconf, *nconf;
479 nconf = fopen(tmp_fname, "w");
480 if (nconf == NULL) {
488 fprintf(nconf, "# WPS configuration - START\n");
490 fprintf(nconf, "wps_state=2\n");
493 fprintf(nconf, "ssid2=");
495 fprintf(nconf, "%02x", cred->ssid[i]);
496 fprintf(nconf, "\n");
498 fprintf(nconf, "ssid=");
500 fputc(cred->ssid[i], nconf);
501 fprintf(nconf, "\n");
516 fprintf(nconf, "wpa=%d\n", wpa);
518 fprintf(nconf, "wpa_key_mgmt=");
521 fprintf(nconf, "WPA-EAP");
525 fprintf(nconf, "%sWPA-PSK", prefix);
526 fprintf(nconf, "\n");
528 fprintf(nconf, "wpa_pairwise=");
531 fprintf(nconf, "CCMP");
535 fprintf(nconf, "%sTKIP", prefix);
537 fprintf(nconf, "\n");
540 fprintf(nconf, "wpa_passphrase=");
542 fputc(cred->key[i], nconf);
543 fprintf(nconf, "\n");
545 fprintf(nconf, "wpa_psk=");
547 fputc(cred->key[i], nconf);
548 fprintf(nconf, "\n");
555 fprintf(nconf, "auth_algs=1\n");
559 fprintf(nconf, "auth_algs=3\n");
561 fprintf(nconf, "auth_algs=2\n");
563 fprintf(nconf, "auth_algs=1\n");
569 fprintf(nconf, "wep_default_key=%d\n", key_idx);
570 fprintf(nconf, "wep_key%d=", key_idx);
574 fputc(cred->key[i], nconf);
578 fprintf(nconf, "%02x", cred->key[i]);
580 fprintf(nconf, "\n");
584 fprintf(nconf
603 fprintf(nconf, "#WPS# %s", buf);
605 fprintf(nconf, "%s", buf);
608 fclose(nconf);