mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
add files and so on
This commit is contained in:
parent
615f2c1fe0
commit
66c3f005e6
2 changed files with 5 additions and 2 deletions
|
@ -32,7 +32,7 @@ config metric
|
||||||
option low_rssi_val '-80'
|
option low_rssi_val '-80'
|
||||||
option chan_util_val '140'
|
option chan_util_val '140'
|
||||||
option max_chan_util_val '170'
|
option max_chan_util_val '170'
|
||||||
option min_probe_count '4'
|
option min_probe_count '100'
|
||||||
option bandwith_threshold '6'
|
option bandwith_threshold '6'
|
||||||
option use_station_count '1'
|
option use_station_count '1'
|
||||||
option eval_probe_req '1'
|
option eval_probe_req '1'
|
|
@ -596,6 +596,9 @@ static int add_subscriber(char *name) {
|
||||||
hostapd_array_insert(id);
|
hostapd_array_insert(id);
|
||||||
fprintf(stderr, "Watching object %08x: %s\n", id, ubus_strerror(ret));
|
fprintf(stderr, "Watching object %08x: %s\n", id, ubus_strerror(ret));
|
||||||
|
|
||||||
|
// respond to notify...
|
||||||
|
respond_to_notify(id);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1018,7 +1021,7 @@ static void ubus_add_oject()
|
||||||
static void respond_to_notify(uint32_t id) {
|
static void respond_to_notify(uint32_t id) {
|
||||||
printf("SENDING NOTIFY!!!\n");
|
printf("SENDING NOTIFY!!!\n");
|
||||||
blob_buf_init(&b, 0);
|
blob_buf_init(&b, 0);
|
||||||
blobmsg_add_u32(&b, "notify_response", 0);
|
blobmsg_add_u32(&b, "notify_response", 1);
|
||||||
|
|
||||||
int timeout = 1;
|
int timeout = 1;
|
||||||
ubus_invoke(ctx, id, "notify_response", b.head, NULL, NULL, timeout * 1000);
|
ubus_invoke(ctx, id, "notify_response", b.head, NULL, NULL, timeout * 1000);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue