diff --git a/src/utils/dawn_iwinfo.c b/src/utils/dawn_iwinfo.c index a99a339..bb13b0c 100644 --- a/src/utils/dawn_iwinfo.c +++ b/src/utils/dawn_iwinfo.c @@ -31,14 +31,17 @@ int get_bandwidth_iwinfo(__uint8_t *client_addr, float *rx_rate, float *tx_rate) int sucess = 0; + int count = 0; while ((entry = readdir(dirp)) != NULL) { if (entry->d_type == DT_SOCK) { + printf("TRY TO GET BANDWITH: %d\n", count); if(get_bandwith(entry->d_name, client_addr, rx_rate, tx_rate)) { // bandwith found sucess = 1; break; } + count++; } } closedir(dirp);