actube/src/capwap/wtpinfo_readelem_location_data.c
7u83@mail.ru fcd4b31c85 More work on CAPWAP state machine...
FossilOrigin-Name: c9f31c71d46610612aafb5b4935aece949463d88eb86e4c22afa6991346185eb
2015-04-05 00:07:59 +00:00

20 lines
296 B
C

#include "wtpinfo.h"
#include "capwap.h"
#include "cw_util.h"
#include "cw_log.h"
int wtpinfo_readelem_location_data(struct wtpinfo * wtpinfo, int type, uint8_t * msgelem, int len)
{
if (type != CW_ELEM_LOCATION_DATA)
return 0;
cw_setstr(&wtpinfo->location,msgelem,len);
return 1;
}