actube/src/cw/cw_put_elem_radio_administrative_state.c
7u83@mail.ru 6620a5e8d6 cisco_wtp_admini_state added.
FossilOrigin-Name: 2aa60df00b3a48d1911ec2114ef89b7c5cd2167a02e748e73f09560137723406
2016-04-12 07:02:55 +00:00

12 lines
331 B
C

#include "cw.h"
#include "capwap_items.h"
int xcw_put_elem_radio_administrative_state(uint8_t *dst,int radio_id,mbag_t radio)
{
cw_put_byte(dst+4,radio_id);
cw_put_byte(dst+5,mbag_get_byte(radio,CW_RADIOITEM_ADMIN_STATE,CW_RADIO_ADMIN_STATE_DISABLED));
return 2 + cw_put_elem_hdr(dst,CW_ELEM_RADIO_ADMINISTRATIVE_STATE,2);
}