Browse Source

Fix passive_scan config parameter writing

Commit c35e35ed8133bb6d7b96765c5f0b1d41efe09fc5 ('Add passive_scan
configuration parameter') used incorrect parameter name when writing the
passive_scan parameter into a configuration file.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Jouni Malinen 10 years ago
parent
commit
c4da67deef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wpa_supplicant/config_file.c

+ 1 - 1
wpa_supplicant/config_file.c

@@ -1232,7 +1232,7 @@ static void wpa_config_write_global(FILE *f, struct wpa_config *config)
 			config->mesh_max_inactivity);
 
 	if (config->passive_scan)
-		fprintf(f, "cert_in_cb=%d\n", config->passive_scan);
+		fprintf(f, "passive_scan=%d\n", config->passive_scan);
 }
 
 #endif /* CONFIG_NO_CONFIG_WRITE */