2015-04-05 20:26:33 +02:00
|
|
|
|
2018-04-07 19:26:22 +02:00
|
|
|
#include <stdint.h>
|
2015-04-05 20:26:33 +02:00
|
|
|
#include <time.h>
|
|
|
|
|
2022-07-28 01:36:16 +02:00
|
|
|
#include "cw/conn.h"
|
2018-04-07 19:26:22 +02:00
|
|
|
#include "cw/msgset.h"
|
|
|
|
#include "cw/cw.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int cisco_out_ap_timesync(struct cw_ElemHandler * eh,
|
|
|
|
struct cw_ElemHandlerParams * params, uint8_t * dst)
|
2015-04-05 20:26:33 +02:00
|
|
|
{
|
2018-04-07 19:26:22 +02:00
|
|
|
cw_set_dword(dst+10 , time(NULL));
|
|
|
|
cw_set_byte(dst+10 + 4, 0);
|
|
|
|
|
|
|
|
return 5 + cw_put_elem_vendor_hdr(dst, eh->vendor , eh->id, 5);
|
2015-04-05 20:26:33 +02:00
|
|
|
}
|
|
|
|
|