added logs
Generate and publish developer Wiki / validate-wiki (pull_request) Successful in 15s
Generate and publish developer Wiki / publish-wiki (pull_request) Canceled after 0s

This commit is contained in:
2026-08-07 13:46:16 +00:00
parent 308803053c
commit 581cfb90bd
12 changed files with 110 additions and 83 deletions
+3 -3
View File
@@ -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));