From 8113bd379bae98e72d063c1c3864f4ead391aa0f Mon Sep 17 00:00:00 2001 From: PolynomialDivision Date: Tue, 12 Dec 2017 13:08:21 +0100 Subject: [PATCH] add counter to debug --- src/utils/dawn_iwinfo.c | 3 +++ 1 file changed, 3 insertions(+) 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);