mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
treewide: code and documentation cleanup
Tidy up a few bits of code - nothing very significant. Documentation fixes and updates [cleanup commit message] Signed-off-by: Nick Hainke <vincent@systemli.org>
This commit is contained in:
parent
8290138179
commit
5d8df44a3a
7 changed files with 18 additions and 20 deletions
|
|
@ -707,11 +707,11 @@ static int hostapd_notify(struct ubus_context* ctx_local, struct ubus_object* ob
|
|||
|
||||
dawnlog_debug_func("Entering...");
|
||||
|
||||
if (dawnlog_showing(DAWNLOG_DEBUG))
|
||||
if (dawnlog_showing(DAWNLOG_TRACE))
|
||||
{
|
||||
char* str = blobmsg_format_json(msg, true);
|
||||
dawn_regmem(str);
|
||||
dawnlog_info("hostapd sent %s = %s\n", method, str);
|
||||
dawnlog_trace("hostapd sent %s = %s\n", method, str);
|
||||
dawn_free(str);
|
||||
str = NULL;
|
||||
}
|
||||
|
|
@ -1572,7 +1572,15 @@ static int get_network(struct ubus_context *ctx_local, struct ubus_object *obj,
|
|||
|
||||
blob_buf_init(&b, 0);
|
||||
dawn_regmem(&b);
|
||||
|
||||
dawn_mutex_lock(&ap_array_mutex);
|
||||
dawn_mutex_lock(&client_array_mutex);
|
||||
|
||||
build_network_overview(&b);
|
||||
|
||||
dawn_mutex_unlock(&client_array_mutex);
|
||||
dawn_mutex_unlock(&ap_array_mutex);
|
||||
|
||||
ret = ubus_send_reply(ctx_local, req, b.head);
|
||||
if (ret)
|
||||
dawnlog_error("Failed to send network overview: %s\n", ubus_strerror(ret));
|
||||
|
|
@ -2061,7 +2069,6 @@ int build_hearing_map_sort_client(struct blob_buf *b) {
|
|||
}
|
||||
|
||||
|
||||
// FIXME: Should we have more mutex protection while accessing these lists?
|
||||
int build_network_overview(struct blob_buf *b) {
|
||||
dawnlog_debug_func("Entering...");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue