mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
get rssi from iwinfo lib
This commit is contained in:
parent
eadbaa2765
commit
38052e76fb
5 changed files with 44 additions and 73 deletions
|
|
@ -138,11 +138,13 @@ void kick_clients(uint8_t bssid[], uint32_t id) {
|
|||
}
|
||||
|
||||
// update rssi
|
||||
int rssi = get_rssi_from_iwinfo(client_array[j].client_addr);
|
||||
int rssi = get_rssi_iwinfo(client_array[j].client_addr);
|
||||
if (rssi != INT_MIN) {
|
||||
pthread_mutex_unlock(&probe_array_mutex);
|
||||
if (!probe_array_update_rssi(client_array[j].bssid_addr, client_array[j].client_addr, rssi)) {
|
||||
printf("Failed to update RSSI!\n");
|
||||
} else {
|
||||
printf("RSSI UPDATED: RSSI: %d\n\n", rssi);
|
||||
}
|
||||
pthread_mutex_lock(&probe_array_mutex);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue