mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
first version
This commit is contained in:
commit
f03f55ff92
28 changed files with 5682 additions and 0 deletions
11
src/utils/ieee80211_utils.c
Normal file
11
src/utils/ieee80211_utils.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#include "ieee80211_utils.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
double iee80211_calculate_bitrate(uint8_t supp_rate_val) {
|
||||
return ((double) supp_rate_val) / 2;
|
||||
}
|
||||
|
||||
double iee80211_calculate_expected_throughput_mbit(int exp_thr) {
|
||||
return (((double) exp_thr) / 1000);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue