From fc9bf8399c81b50029d18d44a4cb448b95c0def3 Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Thu, 21 Aug 2014 19:37:02 +0000 Subject: [PATCH] Modified for radio operational state stuff. FossilOrigin-Name: df14e3747316012ff520ba6e8b9c033c1d57cfb690d160d331e33ee7f0bbe9e1 --- src/capwap/Makefile | 1 + src/capwap/capwap.h | 2 ++ src/capwap/radioinfo.h | 2 ++ 3 files changed, 5 insertions(+) diff --git a/src/capwap/Makefile b/src/capwap/Makefile index ec4783bc..31f9d899 100644 --- a/src/capwap/Makefile +++ b/src/capwap/Makefile @@ -115,6 +115,7 @@ CAPWAPOBJS= \ cw_readelem_result_code.o\ cw_readelem_ac_name.o \ cw_readelem_radio_administrative_state.o \ + cw_readelem_radio_operational_state.o \ cw_readelem_statistics_timer.o \ cw_readelem_wtp_reboot_statistics.o\ cwmsg_addelem_vendor_cisco_ap_timesync.o diff --git a/src/capwap/capwap.h b/src/capwap/capwap.h index b591cf38..0bcf3f18 100644 --- a/src/capwap/capwap.h +++ b/src/capwap/capwap.h @@ -384,6 +384,8 @@ extern int cw_readelem_ac_name(uint8_t **dst, int type,uint8_t *msgelem, int len extern int cw_readelem_wtp_reboot_statistics(struct wtp_reboot_statistics *s, int type,uint8_t *msgelem, int len); extern int cw_readelem_cw_local_ip_addr(struct sockaddr * local_ip, int type, uint8_t * msgelem, int len); extern int cw_readelem_radio_administrative_state(struct radioinfo * radioinfo, int type,uint8_t *msgelem, int len); +extern int cw_readelem_radio_operational_state(struct radioinfo * radioinfo, int type,uint8_t *msgelem, int len); + extern int cw_readelem_statistics_timer(uint16_t *timer, int type, uint8_t * msgelem, int len); extern int cw_readelem_result_code(uint32_t *result_code, int type, uint8_t * msgelem, int len); diff --git a/src/capwap/radioinfo.h b/src/capwap/radioinfo.h index 34618b94..370cc1c3 100644 --- a/src/capwap/radioinfo.h +++ b/src/capwap/radioinfo.h @@ -25,6 +25,8 @@ struct radioinfo{ int rid; uint32_t type; int admin_state; + int state; + int cause; uint8_t rmac[8]; };