Kick if rssi is not strong enough

This commit is contained in:
PolynomialDivision 2017-07-17 21:46:41 +02:00
parent 5110bcfab6
commit 7a1c7e29d4
6 changed files with 62 additions and 4 deletions

View file

@ -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);

View file

@ -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...