2014-08-16 09:11:14 +02:00
|
|
|
|
|
|
|
|
|
|
|
#include "capwap.h"
|
|
|
|
#include "conn.h"
|
|
|
|
|
|
|
|
void cwmsg_addelem_capwap_timers(struct cwmsg *msg,int discovery,int echo_request)
|
|
|
|
{
|
|
|
|
uint8_t timers[2];
|
|
|
|
timers[0]=discovery;
|
|
|
|
timers[1]=echo_request;
|
2015-03-28 12:51:34 +01:00
|
|
|
cwmsg_addelem(msg,CW_ELEM_CAPWAP_TIMERS,timers,sizeof(timers));
|
2014-08-16 09:11:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void cwsend_conf_status_response(struct conn * conn,int seqnum, int rc, struct radioinfo * radioinfo, struct ac_info * acinfo, struct wtpinfo * wtpinfo)
|
|
|
|
{
|
2014-08-17 18:33:17 +02:00
|
|
|
struct cwmsg * cwmsg = &conn->resp_msg;
|
2015-03-23 07:48:27 +01:00
|
|
|
cwmsg_init(cwmsg,conn->resp_buffer,CW_MSG_CONFIGURATION_STATUS_RESPONSE,seqnum,NULL);
|
2014-08-16 09:11:14 +02:00
|
|
|
|
|
|
|
cwmsg_addelem_capwap_timers(cwmsg,120,15);
|
|
|
|
/*
|
|
|
|
cwmsg_addelem_result_code(cwmsg,rc);
|
|
|
|
cwmsg_addelem_ac_descriptor(cwmsg,acinfo);
|
|
|
|
|
|
|
|
cwmsg_addelem(cwmsg,CWMSGELEM_AC_NAME,acinfo->ac_name,strlen((char*)acinfo->ac_name));
|
|
|
|
cwmsg_addelem(cwmsg,CWMSGELEM_ECN_SUPPORT,&acinfo->ecn_support,sizeof(uint8_t));
|
|
|
|
cwmsg_addelem_ctrl_ip_addrs(cwmsg,acinfo);
|
|
|
|
cwmsg_addelem_cw_local_ip_addr(cwmsg,conn);
|
|
|
|
*/
|
|
|
|
conn_send_response(conn,cwmsg,seqnum);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|