2015-03-23 07:49:26 +01:00
|
|
|
|
|
|
|
#include "capwap.h"
|
|
|
|
#include "lwapp_cisco.h"
|
2015-03-28 08:29:59 +01:00
|
|
|
#include "capwap_cisco.h"
|
2015-03-23 07:49:26 +01:00
|
|
|
|
|
|
|
|
|
|
|
#include "conn.h"
|
|
|
|
#include "wtpinfo.h"
|
|
|
|
|
2015-03-28 08:29:59 +01:00
|
|
|
void cw_prepare_configuration_status_request(struct conn * conn, struct radioinfo * radioinfo, struct wtpinfo *wtpinfo)
|
2015-03-23 07:49:26 +01:00
|
|
|
{
|
|
|
|
struct cwmsg * cwmsg = &conn->req_msg;
|
|
|
|
uint8_t * buffer = conn->req_buffer;
|
2015-03-28 08:29:59 +01:00
|
|
|
|
|
|
|
cwmsg_init(cwmsg,buffer,CW_MSG_CONFIGURATION_STATUS_REQUEST,conn_get_next_seqnum(conn),radioinfo);
|
2015-03-23 07:49:26 +01:00
|
|
|
cwmsg->capwap_mode=conn->capwap_mode;
|
|
|
|
|
|
|
|
cwmsg_addelem_ac_name(cwmsg,(uint8_t *)"AC-iMaxi");
|
|
|
|
|
2015-03-28 08:29:59 +01:00
|
|
|
|
|
|
|
cwmsg_addelem_cisco_ap_regulatory_domain(cwmsg,&wtpinfo->radioinfo[0]);
|
|
|
|
cwmsg_addelem_cisco_ap_regulatory_domain(cwmsg,&wtpinfo->radioinfo[1]);
|
|
|
|
|
2015-03-29 01:55:06 +01:00
|
|
|
cwmsg_addelem_cisco_wtp_radio_cfg(cwmsg,&wtpinfo->radioinfo[0]);
|
|
|
|
cwmsg_addelem_cisco_wtp_radio_cfg(cwmsg,&wtpinfo->radioinfo[1]);
|
2015-03-28 08:29:59 +01:00
|
|
|
|
2015-03-23 07:49:26 +01:00
|
|
|
/*
|
|
|
|
uint8_t mtu[2048];
|
|
|
|
int l = lw_put_cisco_path_mtu(mtu,1485,1701);
|
|
|
|
|
|
|
|
printf("Len = %d\n",l);
|
|
|
|
|
|
|
|
cwmsg_addelem_vendor_specific_payload(cwmsg,LW_VENDOR_CISCO,
|
|
|
|
LW_ELEM_VENDOR_SPECIFIC,mtu,l);
|
|
|
|
|
|
|
|
*/
|
|
|
|
}
|