mac operation reader.

FossilOrigin-Name: d9fe96fc4d1284bf8fd79b0ca327482a2b99255a9b910a0299b85e0741aafff6
This commit is contained in:
7u83@mail.ru 2016-04-02 10:30:38 +00:00
parent 7ae5c230a4
commit ed6f1186a2
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
#include "cw.h"
#include "capwap80211_items.h"
#include "dbg.h"
int cw_read_80211_mac_operation(uint8_t *data,mbag_t r)
{
mbag_set_word( r, CW_RADIOITEM80211_RTS_THRESHOLD,cw_get_word(data) );
mbag_set_byte( r, CW_RADIOITEM80211_SHORT_RETRY,cw_get_byte(data+2) );
mbag_set_byte( r, CW_RADIOITEM80211_LONG_RETRY,cw_get_byte(data+3) );
mbag_set_word( r, CW_RADIOITEM80211_FRAGMENTATION_THRESHOLD,cw_get_word(data+4) );
mbag_set_dword( r, CW_RADIOITEM80211_TX_MSDU_LIFETIME,cw_get_dword(data+6) );
mbag_set_dword( r, CW_RADIOITEM80211_RX_MSDU_LIFETIME,cw_get_dword(data+10) );
return 1;
}