diff --git a/files/dawn.config b/files/dawn.config index a81923e..d8c27bc 100644 --- a/files/dawn.config +++ b/files/dawn.config @@ -32,7 +32,7 @@ config metric option low_rssi_val '-80' option chan_util_val '140' option max_chan_util_val '170' - option min_probe_count '4' + option min_probe_count '100' option bandwith_threshold '6' option use_station_count '1' option eval_probe_req '1' \ No newline at end of file diff --git a/src/utils/ubus.c b/src/utils/ubus.c index e7ca638..bb91980 100644 --- a/src/utils/ubus.c +++ b/src/utils/ubus.c @@ -596,6 +596,9 @@ static int add_subscriber(char *name) { hostapd_array_insert(id); fprintf(stderr, "Watching object %08x: %s\n", id, ubus_strerror(ret)); + // respond to notify... + respond_to_notify(id); + return 0; } @@ -1018,7 +1021,7 @@ static void ubus_add_oject() static void respond_to_notify(uint32_t id) { printf("SENDING NOTIFY!!!\n"); blob_buf_init(&b, 0); - blobmsg_add_u32(&b, "notify_response", 0); + blobmsg_add_u32(&b, "notify_response", 1); int timeout = 1; ubus_invoke(ctx, id, "notify_response", b.head, NULL, NULL, timeout * 1000);