mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
add debug
This commit is contained in:
parent
5c8abddd97
commit
8e98e47823
2 changed files with 4 additions and 4 deletions
|
@ -35,7 +35,7 @@ int compare_essid_iwinfo(__uint8_t *bssid_addr, __uint8_t *bssid_addr_to_compare
|
||||||
struct dirent *entry;
|
struct dirent *entry;
|
||||||
dirp = opendir(hostapd_dir_glob); // error handling?
|
dirp = opendir(hostapd_dir_glob); // error handling?
|
||||||
if (!dirp) {
|
if (!dirp) {
|
||||||
fprintf(stderr, "No hostapd sockets!\n");
|
fprintf(stderr, "[COMPARE ESSID] No hostapd sockets!\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ int get_bandwidth_iwinfo(__uint8_t *client_addr, float *rx_rate, float *tx_rate)
|
||||||
struct dirent *entry;
|
struct dirent *entry;
|
||||||
dirp = opendir(hostapd_dir_glob); // error handling?
|
dirp = opendir(hostapd_dir_glob); // error handling?
|
||||||
if (!dirp) {
|
if (!dirp) {
|
||||||
fprintf(stderr, "No hostapd sockets!\n");
|
fprintf(stderr, "[BANDWITH INFO]No hostapd sockets!\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@ int get_rssi_iwinfo(__uint8_t *client_addr) {
|
||||||
struct dirent *entry;
|
struct dirent *entry;
|
||||||
dirp = opendir(hostapd_dir_glob); // error handling?
|
dirp = opendir(hostapd_dir_glob); // error handling?
|
||||||
if (!dirp) {
|
if (!dirp) {
|
||||||
fprintf(stderr, "No hostapd sockets!\n");
|
fprintf(stderr, "[RSSI INFO] No hostapd sockets!\n");
|
||||||
return INT_MIN;
|
return INT_MIN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -636,7 +636,7 @@ static int subscribe_to_hostapd_interfaces(const char *hostapd_dir) {
|
||||||
|
|
||||||
dirp = opendir(hostapd_dir); // error handling?
|
dirp = opendir(hostapd_dir); // error handling?
|
||||||
if (!dirp) {
|
if (!dirp) {
|
||||||
fprintf(stderr, "No hostapd sockets!\n");
|
fprintf(stderr, "[SUBSCRIBING] No hostapd sockets!\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
while ((entry = readdir(dirp)) != NULL) {
|
while ((entry = readdir(dirp)) != NULL) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue