2015-03-16 02:41:35 +01:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief Implements change state event
|
|
|
|
*/
|
2014-08-22 22:37:45 +02:00
|
|
|
|
|
|
|
#include "cwmsg.h"
|
|
|
|
#include "capwap.h"
|
|
|
|
#include "cw_log.h"
|
|
|
|
#include "sock.h"
|
|
|
|
|
2015-03-16 02:41:35 +01:00
|
|
|
/**
|
|
|
|
* Send change state event response
|
|
|
|
* @param conn connection to use
|
|
|
|
* @param seqnum sequence number
|
|
|
|
* @param radioinfo radioinfo to us
|
|
|
|
*/
|
|
|
|
|
2014-08-22 22:37:45 +02:00
|
|
|
void cwsend_change_state_event_response(struct conn * conn,int seqnum, struct radioinfo * radioinfo)
|
|
|
|
{
|
2015-03-28 12:51:34 +01:00
|
|
|
cw_dbg(DBG_MSG,"Sending change state response to %s, seq = %d",sock_addr2str(&conn->addr),seqnum);
|
2014-08-22 22:37:45 +02:00
|
|
|
|
|
|
|
struct cwmsg * cwmsg = &conn->resp_msg;
|
2015-03-29 01:55:06 +01:00
|
|
|
cwmsg_init(cwmsg,conn->resp_buffer,CW_MSG_CHANGE_STATE_EVENT_RESPONSE,seqnum,NULL);
|
2014-08-22 22:37:45 +02:00
|
|
|
|
|
|
|
cwmsg_addelem_result_code(cwmsg,0);
|
2015-03-16 02:41:35 +01:00
|
|
|
// cwmsg_addelem_radio_operational_state(cwmsg,radioinfo);
|
2014-08-22 22:37:45 +02:00
|
|
|
|
|
|
|
conn_send_response(conn,cwmsg,seqnum);
|
|
|
|
}
|
|
|
|
|