diff --git a/src/include/ieee80211_utils.h b/src/include/ieee80211_utils.h index 74ceee5..92e9f20 100644 --- a/src/include/ieee80211_utils.h +++ b/src/include/ieee80211_utils.h @@ -15,6 +15,6 @@ double iee80211_calculate_bitrate(uint8_t supp_rate_val); * @param exp_thr * @return */ -double iee80211_calculate_expected_throughput_mbit(int exp_thr) +double iee80211_calculate_expected_throughput_mbit(int exp_thr); #endif //DAWN_IEEE80211_UTILS_H diff --git a/src/storage/datastorage.c b/src/storage/datastorage.c index 908be6a..f5662f0 100644 --- a/src/storage/datastorage.c +++ b/src/storage/datastorage.c @@ -6,6 +6,7 @@ #include "ubus.h" #include "dawn_iwinfo.h" #include "utils.h" +#include "ieee80211_utils.h" #define MAC2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5] @@ -419,7 +420,8 @@ void kick_clients(uint8_t bssid[], uint32_t id) { // update rssi int rssi = get_rssi_iwinfo(client_array[j].client_addr); int exp_thr = get_expected_throughput_iwinfo(client_array[j].client_addr); - printf("Expectd throughput %f Mbit/sec\n", iee80211_calculate_expected_throughput_mbit(exp_thr)); + double exp_thr_tmp = iee80211_calculate_expected_throughput_mbit(exp_thr); + printf("Expectd throughput %f Mbit/sec\n", exp_thr_tmp); if (rssi != INT_MIN) { pthread_mutex_unlock(&probe_array_mutex);