2014-08-18 00:03:07 +02:00
|
|
|
#include "capwap.h"
|
|
|
|
|
2018-02-28 09:05:45 +01:00
|
|
|
#include "dbg.h"
|
2014-08-18 00:03:07 +02:00
|
|
|
|
|
|
|
int cw_readelem_statistics_timer(uint16_t *timer, int type, uint8_t * msgelem, int len)
|
|
|
|
{
|
2018-04-08 16:48:13 +02:00
|
|
|
if (type != CAPWAP_ELEM_STATISTICS_TIMER)
|
2014-08-18 00:03:07 +02:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
if (len!=2){
|
2018-02-28 09:05:45 +01:00
|
|
|
cw_dbg(DBG_RFC,"Statistics timer msgelem has wrong size, type=%d,len=%d",type,len);
|
2014-08-18 00:03:07 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
*timer=*((uint16_t*)msgelem);
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|