freewtp/src/common/capwap_element_wtpradiostat.h
Andreas Schultz 471d1058c4 [wtp] prepare message elements for vendor element handling
convert message element type into a struct{ vendor, type }.
Vendor will be 0 for all RFC types.
2016-03-08 10:21:51 +01:00

32 lines
1.1 KiB
C

#ifndef __CAPWAP_ELEMENT_WTPRADIOSTAT_HEADER__
#define __CAPWAP_ELEMENT_WTPRADIOSTAT_HEADER__
#define CAPWAP_ELEMENT_WTPRADIOSTAT_VENDOR 0
#define CAPWAP_ELEMENT_WTPRADIOSTAT_TYPE 47
#define CAPWAP_ELEMENT_WTPRADIOSTAT (struct capwap_message_element_id){ .vendor = CAPWAP_ELEMENT_WTPRADIOSTAT_VENDOR, .type = CAPWAP_ELEMENT_WTPRADIOSTAT_TYPE }
#define CAPWAP_WTPRADIOSTAT_FAILER_TYPE_STATNOTSUPP 0
#define CAPWAP_WTPRADIOSTAT_FAILER_TYPE_SWFAIL 1
#define CAPWAP_WTPRADIOSTAT_FAILER_TYPE_HWFAIL 2
#define CAPWAP_WTPRADIOSTAT_FAILER_TYPE_OTHERFAIL 3
#define CAPWAP_WTPRADIOSTAT_FAILER_TYPE_UNKNOWN 255
struct capwap_wtpradiostat_element {
uint8_t radioid;
uint8_t lastfailtype;
uint16_t resetcount;
uint16_t swfailercount;
uint16_t hwfailercount;
uint16_t otherfailercount;
uint16_t unknownfailercount;
uint16_t configupdatecount;
uint16_t channelchangecount;
uint16_t bandchangecount;
uint16_t currentnoisefloor;
};
extern const struct capwap_message_elements_ops capwap_element_wtpradiostat_ops;
#endif /* __CAPWAP_ELEMENT_WTPRADIOSTAT_HEADER__ */