actube/src/capwap/cwsend_echo_response.c
7u83@mail.ru da873e7408 New resp and req buffers.
FossilOrigin-Name: 04130bcd6a45f90b246c4876162d68cfa32642d353cf2e4b5434fee641c3763a
2014-08-17 16:43:44 +00:00

18 lines
509 B
C

#include "capwap.h"
#include "conn.h"
#include "cwmsg.h"
int cwsend_echo_response(struct conn * conn,int seqnum,struct radioinfo * radioinfo) //,struct wtpinfo * wtpinfo)
{
//uint8_t buffer[CWMSG_MAX_SIZE];
struct cwmsg * cwmsg = &conn->resp_msg;
cwmsg_init(cwmsg,conn->resp_buffer,CWMSG_ECHO_RESPONSE,seqnum,radioinfo);
conn_send_response(conn,cwmsg,seqnum);
return 1;
//cwmsg_init(&cwmsg,buffer,CWMSG_ECHO_REQUEST,conn_get_next_seqnum(conn),radioinfo);
// return conn_send_cwmsg(conn,&cwmsg);
}