mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
Fix bug
This commit is contained in:
parent
a63fe45662
commit
bfa99147cd
6 changed files with 72 additions and 24 deletions
|
|
@ -14,7 +14,7 @@
|
|||
#endif
|
||||
|
||||
#define SORT_NUM 5
|
||||
#define TIME_THRESHOLD 600 // every minute
|
||||
#define TIME_THRESHOLD 30 // every minute
|
||||
|
||||
// Probe entrys
|
||||
typedef struct probe_entry_s {
|
||||
|
|
@ -56,8 +56,10 @@ typedef struct client_s {
|
|||
|
||||
// Array
|
||||
#define ARRAY_CLIENT_LEN 1000
|
||||
#define TIME_THRESHOLD_CLIENT 10
|
||||
#define TIME_THRESHOLD_CLIENT_UPDATE 5
|
||||
#define TIME_THRESHOLD_CLIENT 30
|
||||
#define TIME_THRESHOLD_CLIENT_UPDATE 10
|
||||
#define TIME_THRESHOLD_CLIENT_KICK 60
|
||||
|
||||
|
||||
struct client_s client_array[ARRAY_CLIENT_LEN];
|
||||
pthread_mutex_t client_array_mutex;
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ int parse_to_probe_req(struct blob_attr *msg, probe_entry *prob_req);
|
|||
int parse_to_clients(struct blob_attr *msg, int do_kick);
|
||||
void del_client(const uint8_t* client_addr, uint32_t reason, uint8_t deauth, uint32_t ban_time);
|
||||
void *update_clients_thread(void *arg);
|
||||
void *kick_clients_thread(void *arg);
|
||||
|
||||
char* hostapd_dir_glob;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue