Updates Radio Oper State before sending the message.

FossilOrigin-Name: 22bd2eaceba40b09743b72e66d14bc0659a5e7c620506aa193b50a545b2a105d
This commit is contained in:
7u83@mail.ru 2015-04-28 12:29:55 +00:00
parent 67517ad163
commit 302a4b3247
1 changed files with 9 additions and 2 deletions

View File

@ -1,15 +1,22 @@
#include "capwap/capwap.h"
#include "capwap/conn.h"
#include "wtp_interface.h"
#include "capwap/radio.h"
#include "wtp_interface.h"
int changestate()
{
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) ) {
cw_strresult(rc);
return 0;