mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
Fix hostapd ht and vht
This commit is contained in:
parent
bfa99147cd
commit
3fe77d4ad0
6 changed files with 77 additions and 53 deletions
|
|
@ -23,8 +23,8 @@ typedef struct probe_entry_s {
|
|||
uint8_t target_addr[ETH_ALEN];
|
||||
uint32_t signal;
|
||||
uint32_t freq;
|
||||
uint8_t ht_support;
|
||||
uint8_t vht_support;
|
||||
//uint8_t ht_support;
|
||||
//uint8_t vht_support;
|
||||
time_t time;
|
||||
int counter;
|
||||
} probe_entry;
|
||||
|
|
@ -83,11 +83,11 @@ void *remove_client_array_thread(void *arg);
|
|||
struct probe_entry_s probe_array[ARRAY_LEN];
|
||||
pthread_mutex_t probe_array_mutex;
|
||||
|
||||
void insert_to_array(probe_entry entry, int inc_counter);
|
||||
probe_entry insert_to_array(probe_entry entry, int inc_counter);
|
||||
|
||||
void probe_array_insert(probe_entry entry);
|
||||
|
||||
probe_entry *probe_array_delete(probe_entry entry);
|
||||
probe_entry probe_array_delete(probe_entry entry);
|
||||
|
||||
void print_array();
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#include <libubox/blobmsg_json.h>
|
||||
#include "datastorage.h"
|
||||
|
||||
#define MIN_PROBE_REQ 2 // TODO: Parse from config file...
|
||||
#define MIN_PROBE_REQ 5 // TODO: Parse from config file...
|
||||
|
||||
int dawn_init_ubus(const char *ubus_socket, char *hostapd_dir);
|
||||
int parse_to_probe_req(struct blob_attr *msg, probe_entry *prob_req);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue