mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
Kick if rssi is not strong enough
This commit is contained in:
parent
5110bcfab6
commit
7a1c7e29d4
6 changed files with 62 additions and 4 deletions
|
|
@ -54,12 +54,13 @@ typedef struct client_s {
|
|||
|
||||
|
||||
#define ARRAY_CLIENT_LEN 1000
|
||||
#define TIME_THRESHOLD_CLIENT 60
|
||||
#define TIME_THRESHOLD_CLIENT 5
|
||||
|
||||
struct client_s client_array[ARRAY_CLIENT_LEN];
|
||||
pthread_mutex_t client_array_mutex;
|
||||
|
||||
void insert_client_to_array(client entry);
|
||||
void kick_clients(uint8_t bssid[]);
|
||||
|
||||
void client_array_insert(client entry);
|
||||
client* client_array_delete(client entry);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#ifndef __DAWN_UBUS_H
|
||||
#define __DAWN_UBUS_H
|
||||
|
||||
#include <libubox/blobmsg_json.h>
|
||||
#include "datastorage.h"
|
||||
|
||||
#define MIN_PROBE_REQ 2 // TODO: Parse from config file...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue