mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
List all neighbors with same score when kicking
The wnm_disassoc_imminent procedure takes a list of neighbor reports to send to the client. Instead of picking just one AP to be sent, send all that have the same score. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
This commit is contained in:
parent
3ba0fa4947
commit
a7a830950a
10 changed files with 211 additions and 153 deletions
|
|
@ -347,9 +347,14 @@ void send_beacon_reports(ap *a, int id);
|
|||
#define SORT_LENGTH 5
|
||||
extern char sort_string[];
|
||||
|
||||
struct kicking_nr {
|
||||
char nr[NEIGHBOR_REPORT_LEN];
|
||||
int score;
|
||||
struct kicking_nr *next;
|
||||
};
|
||||
|
||||
// ---------------- Functions -------------------
|
||||
int better_ap_available(ap *kicking_ap, struct dawn_mac client_addr, char* neighbor_report);
|
||||
int better_ap_available(ap *kicking_ap, struct dawn_mac client_addr, struct kicking_nr** neighbor_report);
|
||||
|
||||
// All users of datastorage should call init_ / destroy_mutex at initialisation and termination respectively
|
||||
int init_mutex();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue