added logs
This commit is contained in:
+3
-3
@@ -134,14 +134,14 @@ int wlan_ensure_vap_ids(struct json_object *vaps)
|
||||
char generated[25];
|
||||
if (!id) {
|
||||
if (crypto_random_hex((unsigned char *)generated, 12) != 0) {
|
||||
printf("[openuf] Failed to generate a VAP ID for '%s'\n", ssid);
|
||||
LOGF(stdout, "Failed to generate a VAP ID for '%s'", ssid);
|
||||
if (pkg) uci_unload(ctx, pkg);
|
||||
if (ctx) uci_free_context(ctx);
|
||||
return -1;
|
||||
}
|
||||
id = generated;
|
||||
printf("[openuf] Generated persistent VAP ID %s for '%s'\n",
|
||||
id, ssid);
|
||||
LOGF(stdout, "Generated persistent VAP ID %s for '%s'",
|
||||
id, ssid);
|
||||
}
|
||||
|
||||
json_object_object_add(vap, "id", json_object_new_string(id));
|
||||
|
||||
Reference in New Issue
Block a user