actube/src/capwap/cwsend_change_state_event_response.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

31 lines
759 B
C

/**
* @file
* @brief Implements change state event
*/
#include "cwmsg.h"
#include "capwap.h"
#include "cw_log.h"
#include "sock.h"
/**
* Send change state event response
* @param conn connection to use
* @param seqnum sequence number
* @param radioinfo radioinfo to us
*/
void cwsend_change_state_event_response(struct conn * conn,int seqnum, struct radioinfo * radioinfo)
{
cw_dbg(DBG_MSG,"Sending change state response to %s, seq = %d",sock_addr2str(&conn->addr),seqnum);
struct cwmsg * cwmsg = &conn->resp_msg;
cwmsg_init(cwmsg,conn->resp_buffer,CW_MSG_CHANGE_STATE_EVENT_RESPONSE,seqnum,NULL);
cwmsg_addelem_result_code(cwmsg,0);
// cwmsg_addelem_radio_operational_state(cwmsg,radioinfo);
conn_send_response(conn,cwmsg,seqnum);
}