8fc3bf9808
FossilOrigin-Name: e3db257e0552412e68e3778dc6a224abc3cc756c5a15fd06a02506fc600d448a
28 lines
478 B
C
28 lines
478 B
C
#include "cw/capwap.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);
|
|
|
|
|
|
/* Change State ... */
|
|
int rc = cw_send_request(conn,CW_MSG_CHANGE_STATE_EVENT_REQUEST);
|
|
if ( !cw_rcok(rc) ) {
|
|
cw_strresult(rc);
|
|
return 0;
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
|