DAWN/src/include/ieee80211_utils.h
Ian Clowes 67c3ed0d0a test_storage: extend test harness; datastorage: two bug fixes
datastorage (bug fix): deleting expired array item would fail to test next item
test_storage: extended to cover all required datastorage entry points
test_storage: added ability to read script file
test_storage: added new and revised test scripts
TESTING.md: added to describe testing approach
general: added various TODO notes on things to come back to
general: revised #includes to make each "self-compiling"
general: revised #includes to minimise usage across source files
general: moved declarations and defintions to simplify and rationalise code
datastorage: refactor to support scalability testing
datastorage: made independent of time() calls to support testing
datastorage: fixed redundant use of both SORT_NUM and SORT_LENGTH defines
datastorage: fake kicking to test clients move between access points
msghandler: new module to reduce compile time interdependencies
mshhandler: (issue #100?) fixed SEGV memcpy() in dump_client() using strncpy()
ubus: merged uface into ubus
mac_utils: new module for MAC address utilites
test_header: added target to help #include rationalisation

Tested-by: Nick Hainke <vincent@systemli.org>
2020-07-12 13:47:23 +02:00

27 lines
539 B
C

#ifndef DAWN_IEEE80211_UTILS_H
#define DAWN_IEEE80211_UTILS_H
#include <stdint.h>
/**
* Calculate bitrate using the supported rates values.
* @param supp_rate_val
* @return the bitrate.
*/
double iee80211_calculate_bitrate(uint8_t supp_rate_val);
/**
* Calculate expected throughput in Mbit/sec.
* @param exp_thr
* @return
*/
double iee80211_calculate_expected_throughput_mbit(int exp_thr);
/**
* Convert 802.11k RCPI value to RSSI dB
* @param rcpi
* @return
*/
int rcpi_to_rssi(int rcpi);
#endif //DAWN_IEEE80211_UTILS_H