9d3e24df52
FossilOrigin-Name: 87d98b73010c7316cb9b53b5ba8c3dfdddca06042630cf8437ea506e1c424c70
30 lines
523 B
C
30 lines
523 B
C
#include "cw/capwap.h"
|
|
|
|
#include "cw/conn.h"
|
|
|
|
|
|
#include "wtp_interface.h"
|
|
|
|
|
|
int changestate(struct conn * conn)
|
|
{
|
|
|
|
|
|
/* Update operational states, so they will be included
|
|
in the change Change State Event Request message. */
|
|
/*// cw_radio_update_oper_states(conn->radios,0);*/
|
|
|
|
/*// mbag_set_dword(conn->outgoing,CW_ITEM_RESULT_CODE,0);*/
|
|
|
|
|
|
/* Change State ... */
|
|
int rc = cw_send_request(conn,CAPWAP_MSG_CHANGE_STATE_EVENT_REQUEST);
|
|
if ( !cw_result_is_ok(rc) ) {
|
|
cw_strresult(rc);
|
|
return 0;
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
|