Updates Radio Oper State before sending the message.
FossilOrigin-Name: 22bd2eaceba40b09743b72e66d14bc0659a5e7c620506aa193b50a545b2a105d
This commit is contained in:
parent
67517ad163
commit
302a4b3247
@ -1,15 +1,22 @@
|
|||||||
#include "capwap/capwap.h"
|
#include "capwap/capwap.h"
|
||||||
#include "capwap/conn.h"
|
#include "capwap/conn.h"
|
||||||
#include "wtp_interface.h"
|
#include "capwap/radio.h"
|
||||||
|
|
||||||
|
#include "wtp_interface.h"
|
||||||
|
|
||||||
int changestate()
|
int changestate()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
struct conn * conn = get_conn();
|
struct conn * conn = get_conn();
|
||||||
int rc = cw_send_request(conn,CW_MSG_CHANGE_STATE_EVENT_REQUEST);
|
|
||||||
|
|
||||||
|
/* 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) ) {
|
if ( !cw_rcok(rc) ) {
|
||||||
cw_strresult(rc);
|
cw_strresult(rc);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user