diff --git a/src/cw/dot11.h b/src/cw/dot11.h index e5f96a64..e215a770 100644 --- a/src/cw/dot11.h +++ b/src/cw/dot11.h @@ -106,12 +106,14 @@ static inline void dot11_get_address(uint8_t * dst, uint8_t *frame) extern uint64_t dot11_timer_offset; + static inline uint64_t dot11_timer_get(){ struct timeval tv; gettimeofday(&tv, NULL); return 1000000 * tv.tv_sec + tv.tv_usec - dot11_timer_offset; } + static inline void dot11_timer_set(uint64_t val) { struct timeval tv; gettimeofday(&tv, NULL);