Inital commit.

FossilOrigin-Name: 343a95167c722176e2c8315da9cf3e3ff8bbb9e8fda1c2b732db4112e7052582
This commit is contained in:
7u83@mail.ru
2016-03-22 00:54:11 +00:00
parent 218a2e5939
commit 2902bf7774
2 changed files with 39 additions and 0 deletions

15
src/cw/dot11.h Normal file
View File

@ -0,0 +1,15 @@
#ifndef __DOT11_H
#define __DOT11_H
#include <stdint.h>
extern const uint8_t dot11_tab_br[256];
#define dot11_br(b) (dot11_tab_br[b])
#define dot11_get_version(frame) (dot11_br(frame[0])&0x03)
#define dot11_get_type(frame) ((dot11_br(frame[0])&0x0c) >> 2)
#define dot11_get_subtype(frame) ((dot11_br(frame[0])&0x7f) >> 4)
#endif