From e3e7111078458be22b7e37bb55a4dc3c62e46219 Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Mon, 4 May 2015 05:42:09 +0000 Subject: [PATCH] Items added. FossilOrigin-Name: e5b2bd123857772d9fec36c547fa0ae2864a085823be572a91a27f128f31f5f2 --- src/capwap/radio.c | 9 +++++++-- src/capwap/radio.h | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/capwap/radio.c b/src/capwap/radio.c index ffbd9dab..830861da 100644 --- a/src/capwap/radio.c +++ b/src/capwap/radio.c @@ -8,7 +8,7 @@ const char CW_RADIO_ADMIN_STATE[]="admin_state"; const char CW_RADIO_OPER_STATE[]="oper_state"; -const char CW_RADIO_TYPE[]="type"; +const char CW_RADIO_TYPE[]="radio_type"; const char CW_RADIO_REG_DOMAIN[]="reg_domain"; const char CW_RADIO_BSSID[]="bssid"; const char CW_RADIO_SHORT_PREAMBLE[]="short_preamble"; @@ -21,8 +21,13 @@ const char CW_RADIO_CFP_PERIOD[]="cfp_period"; const char CW_RADIO_CFP_MAX_DURATION[]="cfp_max_duration"; +struct cw_itemdef capwap_radioitemdefs[] = { +{CW_RADIO_ADMIN_STATE,CW_ITEM_NONE,MBAG_WORD}, +{CW_RADIO_TYPE,CW_ITEM_NONE,MBAG_DWORD}, +{CW_RADIO_BSSID,CW_ITEM_NONE,MBAG_BSTR16}, - +{CW_ITEM_NONE} +}; /** diff --git a/src/capwap/radio.h b/src/capwap/radio.h index e4694fc7..952e9433 100644 --- a/src/capwap/radio.h +++ b/src/capwap/radio.h @@ -2,6 +2,7 @@ #define __CW_RADIO_H #include "mbag.h" +#include "item.h" @@ -44,6 +45,8 @@ enum radiodata{ int cw_radio_update_oper_states(mbag_t radios,int cause); +extern struct cw_itemdef capwap_radioitemdefs[]; + #endif