df6ce963ee
FossilOrigin-Name: 71fd059171a96310ba664dfe7b34ea5940eaf7f57837751d443d5f4335f38b76
32 lines
578 B
C
32 lines
578 B
C
#include "cw/capwap.h"
|
|
#include "cw/capwap_items.h"
|
|
#include "cw/conn.h"
|
|
#include "cw/radio.h"
|
|
|
|
#include "wtp_interface.h"
|
|
|
|
int changestate()
|
|
{
|
|
|
|
|
|
struct conn * conn = get_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;
|
|
}
|
|
|