actube/src/capwap/cw_readelem_statistics_timer.c
7u83@mail.ru 08f7697ccc More Cisco and LWAP specific stuff added.
WTP cann connect to a WLC and wait for and dump config update requests.

FossilOrigin-Name: 5b69ac4d9fd9f9a54395fe24de3456fff3bb76458d64c863d3cb7245dbda629c
2015-03-29 00:55:06 +00:00

19 lines
348 B
C

#include "capwap.h"
#include "cw_log.h"
int cw_readelem_statistics_timer(uint16_t *timer, int type, uint8_t * msgelem, int len)
{
if (type != CW_ELEM_STATISTICS_TIMER)
return 0;
if (len!=2){
cw_dbg(DBG_CW_RFC,"Statistics timer msgelem has wrong size, type=%d,len=%d",type,len);
return 0;
}
*timer=*((uint16_t*)msgelem);
return 1;
}